vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   UserCP information on FORUMHOME (https://vborg.vbsupport.ru/showthread.php?t=166906)

ThorstenA 01-03-2008 10:00 PM

UserCP information on FORUMHOME
 
1 Attachment(s)
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

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

Quote:

Originally Posted by KURTZ (Post 1415348)
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

Quote:

Originally Posted by gldtn (Post 1415517)
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.


All times are GMT. The time now is 11:02 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02040 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (9)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete