Page 1 of 1

Guestbook hack: Add Guestbook to Article center subnav

Posted: Sun 27. Feb 2005, 18:09
by cyaneo
Just a little modification:

If you add the "GUESTBOOK" Hack by iP-e, you have to search the article with the guestbook content (not funny in case of many articles), click on "ARTICLE -> article center -> the article with guestbook -> the content with guestbook -> edit article content with guestbook" etc. to activate / edit guestbook entries.


This mod provide a much shorter way and add a sublink to the article center subnavigation:

Step 1:
open include/inc_lang/backend/en/lang.inc.php (or your language "de", "fr" etc.)

find

Code: Select all

$BL['be_subnav_article_new']            = 'new article';
add after

Code: Select all

$BL['be_subnav_guestbook']              = 'Guestbook';
Step 2:

Go to the article with the guestbook content.
Klick on "edit" button of the article.
In article information, you now see the content "GUESTBOOK/COMMENT" with the button "EDIT".
Click on this button (to edit the content) and write down the link from the adressbar.

Step 3:
open phpwcms.php

find

Code: Select all

        $subnav .= subnavtext($BL['be_subnav_article_new'], "phpwcms.php?do=articles&p=1", $p, "1", 0);
add after

Code: Select all

        $subnav .= subnavtext($BL['be_subnav_guestbook'], "phpwcms.php?do=articles&p=2&s=1&aktion=2&id=13&acid=87", $p, "", 0);
Note: replace phpwcms.php?do=articles&p=2&s=1&aktion=2&id=13&acid=87 with your link you've got in step 2.

Screenshots:

Standard:
Image

modified:
Image

sorry

Posted: Sat 12. Mar 2005, 23:06
by snezko
i dont exactly understand the step 2
can you explait it ?

Posted: Sun 13. Mar 2005, 18:29
by cyaneo
I dont know, how I should explain this better...

Just Another try:

From the Article Manager, go to the article with the guestbook content.
Klick on "edit" button (the button with the x) of the article.
Now you are in the article information.
You should now see the content "GUESTBOOK/COMMENT".
At the right of this content, there is a button "EDIT".
Move your mouse over it.
Do a right-click over this button and select "copy link".

go to Step 3

PS: Remove the http://www.yourdomain.com/ the link should just look like
phpwcms.php?do=somewhat...