Guestbook hack: Add Guestbook to Article center subnav

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
Post Reply
cyaneo
Posts: 128
Joined: Sun 6. Feb 2005, 01:23
Contact:

Guestbook hack: Add Guestbook to Article center subnav

Post 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
Gruss
cyaneo
Zen Cart - The Art of e-Commerce

Wenn jeder dem anderen helfen wollte, wäre allen geholfen.
-------------------------------------------
Ein Problem ist halb gelöst, wenn es klar formuliert ist.
snezko
Posts: 21
Joined: Fri 11. Mar 2005, 18:33
Location: Wien
Contact:

sorry

Post by snezko »

i dont exactly understand the step 2
can you explait it ?
many thanks Snezko
cyaneo
Posts: 128
Joined: Sun 6. Feb 2005, 01:23
Contact:

Post 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...
Gruss
cyaneo
Zen Cart - The Art of e-Commerce

Wenn jeder dem anderen helfen wollte, wäre allen geholfen.
-------------------------------------------
Ein Problem ist halb gelöst, wenn es klar formuliert ist.
Post Reply