Add members NickName to Blog page header and page text.
(see screen shots to clarify)
It is really crazy the booncrap did not "personalize" the members 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 BLOG they are posting to.
This is much much much better the OTB generic Blog display.....LOL...
Now instead of just BLOG your/their page will display "NickNames's Blog" and "My Blog" when you are viewing your own blog.
Those of you using multiple languages may want to use a text call to the lang file instead of hard coding Blog etc into the php file.
This is a variation of this hack for the guestbook.Code:in your page 49 add <title>__page_header__</title> if it is not already there. in your lang file find and replace '_Blog' => 'Blog', with '_Blog' => 'My Blog', find and replace '_blog' => 'Blog', with '_blog' => 'My Blog', in your blog.php find and delete $_page['header'] = _t("_Blog"); $_page['header_text'] = _t("_Blog"); find and delete // --------------- page components $_ni = $_page['name_index']; if($_GET['uri'] && $_GET['delete']) { $_page_cont[$_ni]['page_main_code'] = delete_blog($_GET['uri'], $_GET['delete']); } elseif($_GET['bid']) { $_page_cont[$_ni]['page_main_code'] = show_branch($_GET['bid']); } elseif($_GET['branch'] && $_GET['owner'] && $_GET['uri'] && $_GET['edit']) { $_page_cont[$_ni]['page_main_code'] = write_blog($_GET['branch'], $_GET['owner'], $_GET['uri'], $_GET['edit']); } elseif($_GET['branch'] && $_GET['owner'] && $_GET['uri']) { $_page_cont[$_ni]['page_main_code'] = write_blog($_GET['branch'], $_GET['owner'], $_GET['uri']); } else { $_page_cont[$_ni]['page_main_code'] = show_blogs($_GET['owner'], $_GET['from']); } // --------------- [END] page components replace with // --------------- page components $_ni = $_page['name_index']; if($_GET['uri'] && $_GET['delete']) { $_page_cont[$_ni]['page_main_code'] = delete_blog($_GET['uri'], $_GET['delete']); } elseif($_GET['bid']) { $_page_cont[$_ni]['page_main_code'] = show_branch($_GET['bid']); } elseif($_GET['branch'] && $_GET['owner'] && $_GET['uri'] && $_GET['edit']) { $_page_cont[$_ni]['page_main_code'] = write_blog($_GET['branch'], $_GET['owner'], $_GET['uri'], $_GET['edit']); } elseif($_GET['branch'] && $_GET['owner'] && $_GET['uri']) { $_page_cont[$_ni]['page_main_code'] = write_blog($_GET['branch'], $_GET['owner'], $_GET['uri']); $nick_id = $_GET['owner']; $nick_arr = db_arr("SELECT `NickName`, `Profiles`.`ID` FROM `Profiles` WHERE `ID` = $nick_id "); $_page['header'] = "{$nick_arr['NickName']}'s Blog"; $_page['header_text'] = "{$nick_arr['NickName']}'s Blog"; } else { $_page_cont[$_ni]['page_main_code'] = show_blogs($_GET['owner'], $_GET['from']); $_page['header_text'] = _t("_Blog"); $_page['header'] = _t("_Blog"); } // --------------- [END] page components You may want to use the simpler code $nick_id = $_REQUEST['owner'] ? (int)$_REQUEST['owner'] : (int)$_COOKIE['memberID']; and place it in the same place as the guestbook hack. It's up to you.
http://www.modmysite.com/showthread....0302#post20302
Done.
Enjoy
Prometheus


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks