Results 1 to 1 of 1

Thread: Add members NickName to Guestbook page header and page text.

  1. #1
    Prometheus
    Guest

    Default Add members NickName to Guestbook page header and page text.

    (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.

    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";
    Done.

    Enjoy

    Prometheus
    Attached Images Attached Images

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Question about member search page - Header & Text Colors?
    By Troy in forum Dolphin General Discussion v6.00 and above
    Replies: 1
    Last Post: 12-03-2007, 11:51 PM
  2. Replies: 10
    Last Post: 06-18-2007, 01:21 PM
  3. Add members NickName to Blog page header and page text.
    By Prometheus in forum Free Mod Exchange
    Replies: 0
    Last Post: 03-09-2007, 05:50 PM
  4. Replies: 0
    Last Post: 02-09-2007, 08:02 PM
  5. Add your members Nickname to their Guestbook header / title
    By Prometheus in forum Free Mod Exchange
    Replies: 0
    Last Post: 12-22-2006, 01:22 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •