Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-08-22 14:11:04

nejra
Member
From: Groningen
Registered: 2006-07-06
Posts: 38
Website

Use Jibberbook guestbook in a txp section

Hi,

I would like to know if it’s possible to use Jibberbook in a TXP section.

First, I created a section called ‘guestbook’ and refered it to a page called “guestbook”.

Second, I copied all the contents of the jibberbook ‘index.php’ and replaced the <?php [code goes here] ?> by <txp:php> [code goes here] </txp:php>.

When I try to load the page I get an error of 403 Acces denied. When I rename the subdir ‘guestbook’ to another name I get all kinds of php errors.

Does this make any sense to someone? Because it sure doesn’t to me. Does it have something to do with VARIABLE SCOPE as descriped in the manual?

Thanks for any thoughts,

Nejra

edit: allow php is on in the preferecens tab.

Last edited by nejra (2008-08-22 14:25:23)

Offline

#2 2008-08-23 09:39:28

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Use Jibberbook guestbook in a txp section

Is there a reason you do not wish to use the existing commenting system? Jibberbook does not seem to be doing much more to what can already be achieved with txp out of the box.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2008-08-25 04:54:57

Ruhh
Member
From: dakota dunes
Registered: 2008-01-20
Posts: 305

Re: Use Jibberbook guestbook in a txp section

You can’t have the same name for both the section and the subdir. Instead of copying and pasting all the contents from your index.php, try using PHP includes. If that still gives you errors, there could possibly be some functions in the file that is already called by TXP. Well, that’s my guess. Good luck.

By the way, I really like the TXP’s commenting system. If you want to have a guestbook, just make a new section and post an intro article for the guestbook. You can find a plugin that will paginate the comments.

Last edited by Ruhh (2008-08-25 04:56:35)


<txp:Ruhh />

Offline

#4 2008-08-25 09:35:45

nejra
Member
From: Groningen
Registered: 2006-07-06
Posts: 38
Website

Re: Use Jibberbook guestbook in a txp section

Using comments is probably the best way to do it. I was just trying out some using php in a txp site. Thanks for your thoughts.

Offline

Board footer

Powered by FluxBB