Facebook Twitter Pinterest Share

vBulletin 3.X Add-ons & Template Modifications All the latest vBulletin 3.X Add-ons & Template Modifications.


New Thread  Post Reply
shicedreck's Avatar
shicedreck : Newbie +
shicedreck is on a distinguished road
offline Joined: Nov 2007 Posts: 11 Thanked: 8
  #1  
Thread Starter Unread 01-05-08
UserCP information on FORUMHOME

This product puts all UserCP informations (new subscribed threads, friend requests ...) on FORUMHOME without any style changes. The code is completely from jelsoft, therefore I do not want to publish this code here as "my code". If moderators agree, I will upload my product so you can easily install it. Here is what you have to do to do it on your own:

1. Open usercp.php in an editor.
2. Change

$phrasegroups
to
$phrasegroups[]
# . Same for $specialtemplates, $globaltemplates and $actiontemplates.
# Delete everything between
// ############################### start subscribed forums ###############################
and
// ############################### start new subscribed to threads ##############################
4. Copy everything from
// ################### PRE-CACHE TEMPLATES AND DATA ######################
to
($hook = vBulletinHook::fetch_hook('usercp_complete')) ? eval($hook) : false;
5. (optional) Put this code before the last line:
if(!$show['threads'])  
{  
$template_hook[usercp_main_pos2] .= '<div style="display:none">';  
$template_hook[usercp_main_pos3] .= '</div>';  
}
6. Create new plugin on hook "forumhome_start" called "USERCP information on FORUMHOME".
7. Put this code inside:
if($show['member']) 
{

Here comes the copied code from #4

$vbulletin->templatecache['FORUMHOME'] = str_replace('$navbar','$navbar'.fetch_template('USERCP'),$vbulletin->templatecache['FORUMHOME']); 
}
8. done
Attached Images You must register or login to view attachments.
New Thread  Post Reply

Thread Tools

Bookmarks
  • Submit Thread to Facebook
  • Submit Thread to Twitter
  • Submit Thread to Pinterest
  • Submit Thread to LinkedIn
  • Submit Thread to Reddit
Tags
forumhome, information, usercp
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Powered by GYSN Underground 2021