Back to vBulletin 3 Articles

UserCP information on FORUMHOME
by ThorstenA 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
  1. Open usercp.php
  2. Change
    Code:
    $phrasegroups
    to
    Code:
    $phrasegroups[]
    . Same for $specialtemplates, $globaltemplates and $actiontemplates.
  3. 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. Place this code into hook: init_startup
    Code:
    if(THIS_SCRIPT == 'index')
    {
    $phrasegroups[] = 'user';
    $phrasegroups[] = 'infractionlevel';
    }
  9. Done
Attached Thumbnails
Click image for larger version
Name:	picture.jpg
Views:	445
Size:	27.9 KB
ID:	74182  

Similar Mods

End-User Options Change your UserCP Navbar with the New UserCP Dropdown Menu! vBulletin 3.7 Add-ons

vblts.ru supports vBulletin®, 2022-2024