UserCP information on FORUMHOME
by
04 Jan 2008
Rating: (1 vote
- 5.00 average)
This product puts all UserCP informations (new subscribed threads, friend requests ...) on FORUMHOME without any style changes. Just install product, everything runs automatic. There are no template or other things changed. Enjoy
This is for all who like to do this product on their own handmade - Open usercp.php
- Change to . Same for $specialtemplates, $globaltemplates and $actiontemplates.
- Delete everything between
Code:
// ############################### start subscribed forums ###############################
and
Code:
// ############################### start new subscribed to threads ##############################
- Copy everything from
Code:
// ################### PRE-CACHE TEMPLATES AND DATA ######################
to
Code:
($hook = vBulletinHook::fetch_hook('usercp_complete')) ? eval($hook) : false;
- (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>';
}
- Create new plugin on hook "forumhome_start" called "USERCP information on FORUMHOME".
- 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']);
}
- Place this code into hook: init_startup
Code:
if(THIS_SCRIPT == 'index')
{
$phrasegroups[] = 'user';
$phrasegroups[] = 'infractionlevel';
}
- Done
|