PDA

View Full Version : UserCP information on FORUMHOME


ThorstenA
04 Jan 2008, 10:46
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('USERCP'),$vbulletin->templatecache['FORUMHOME']);
}


Place this code into hook: init_startup

if(THIS_SCRIPT == 'index')
{

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

}

Done

katilkuzu
04 Jan 2008, 14:59
any screenshoot? demo link something like :)

Forum Lover
04 Jan 2008, 15:20
screeny plz...

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

KURTZ
04 Jan 2008, 16:13
the pictures are too small ...

ThorstenA
04 Jan 2008, 16:58
the pictures are too small ...

Left picture is "User Control Panel" ( http://www.vbulletin.org/forum/usercp.php )
Right picture is "Forum Home" ( http://www.vbulletin.org/forum )

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

gldtn
04 Jan 2008, 21:24
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
04 Jan 2008, 21:34
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
05 Jan 2008, 13:00
............... :d

Magnumutz
05 Jan 2008, 13:42
People want to see the real demo, not a screenshot made in MS Paint.

ThorstenA
05 Jan 2008, 22:43
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.