Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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