Log in

View Full Version : UserCP information on FORUMHOME


ThorstenA
01-03-2008, 10:00 PM
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 $phrasegroups to $phrasegroups[]. Same for $specialtemplates, $globaltemplates and $actiontemplates.
Delete everything between
// ############################### start subscribed forums ###############################
and
// ############################### start new subscribed to threads ##############################
Copy everything from
// ################### PRE-CACHE TEMPLATES AND DATA ######################
to
($hook = vBulletinHook::fetch_hook('usercp_complete')) ? eval($hook) : false;

(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>';
}

Create new plugin on hook "forumhome_start" called "USERCP information on FORUMHOME".
Put this code inside:

if($show['member'])
{

Here comes the copied code from #4

$vbulletin->templatecache['FORUMHOME'] = str_replace('$navbar','$navbar'.fetch_template('US ERCP'),$vbulletin->templatecache['FORUMHOME']);
}


Place this code into hook: init_startup

if(THIS_SCRIPT == 'index')
{

$phrasegroups[] = 'user';
$phrasegroups[] = 'infractionlevel';

}

Done

katilkuzu
01-04-2008, 12:59 PM
any screenshoot? demo link something like :)

Forum Lover
01-04-2008, 01:20 PM
screeny plz...

ThorstenA
01-04-2008, 01:48 PM
Uploaded a picture to show you what content will appear on FORUM HOME (start page).

KURTZ
01-04-2008, 02:13 PM
the pictures are too small ...

ThorstenA
01-04-2008, 02:58 PM
the pictures are too small ...

Left picture is "User Control Panel" ( https://vborg.vbsupport.ru/usercp.php )
Right picture is "Forum Home" ( https://vborg.vbsupport.ru )

With this modification, all "news" from user control panel are shown on forum home.

gldtn
01-04-2008, 07:24 PM
Hmmm.. very interesting, Mods what you guys say about the xml product? I don't think it's a big deal..

Will wait for a response on this ;)

ThorstenA
01-04-2008, 07:34 PM
Hmmm.. very interesting, Mods what you guys say about the xml product? I don't think it's a big deal..

Will wait for a response on this ;)

I'd also be happy to provide you with the xml file, then all you need is to install it via product system.

ThorstenA
01-05-2008, 11:00 AM
............... :d

Magnumutz
01-05-2008, 11:42 AM
People want to see the real demo, not a screenshot made in MS Paint.

ThorstenA
01-05-2008, 08:43 PM
Moved to vBulletin.org Forum / vBulletin Article Depository / Read An Article / vBulletin Articles because I can not provide you with xml file due to jelsoft copyright licence.