(see screen shots to clarify)
It is really crazy that booncrap did not "personalize" the members Guestbooks and Blogs
This hack diplays the members nickname in the browser page header as well as on/in the page text.
Members like to know whos Guestbook they are posting to. Ya Think???....LOL...
This is much much much better the OTB generic Guestbook text that was displayed.....LOL...
Now instead of Guestbook your/their page will display NickName's Guestbook.
If you have not implemented my other hacks then the area marked with a green circle will not appear.
Those of you using multiple languages may want to use a text call to the lang file instead of hard coding Guestbook etc into the php file.
Done.Code:in your guestbook.php find and delete $_page['header'] = _t("_guestbook"); $_page['header_text'] = ('g4' != $tmpl) ? _t("_guestbook") : "<img src=\"{$site['images']}guestbook.gif\">"; find $_page_cont[$_ni]['page_main_code'] = ThisPageMainCode(); below add $nick_id = $_REQUEST['owner'] ? (int)$_REQUEST['owner'] : (int)$_COOKIE['memberID']; $nick_arr = db_arr("SELECT `NickName`, `Profiles`.`ID` FROM `Profiles` WHERE `ID` = $nick_id "); $_page['header'] = "{$nick_arr['NickName']}'s Guestbook"; $_page['header_text'] = "{$nick_arr['NickName']}'s Guestbook";
Enjoy
Prometheus


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks