UserCP information on FORUMHOME

shicedreck

New Member
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

Code:
$phrasegroups
to
Code:
$phrasegroups[]
# . Same for $specialtemplates, $globaltemplates and $actiontemplates.
# Delete everything between
Code:
// ############################### start subscribed forums ###############################
and
Code:
// ############################### start new subscribed to threads ##############################
4. Copy everything from
Code:
// ################### PRE-CACHE TEMPLATES AND DATA ######################
to
Code:
($hook = vBulletinHook::fetch_hook('usercp_complete')) ? eval($hook) : false;
5. (optional) Put this code before the last line:
Code:
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:
Code:
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 :)
 
Top