Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Welcome Panel Template Rewrite Details »»
Welcome Panel Template Rewrite
Version: 3.0.5, by King Kovifor King Kovifor is offline
Developer Last Online: Aug 2015 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.6.8 Rating:
Released: 06-11-2006 Last Update: 05-16-2007 Installs: 360
Uses Plugins Template Edits
Additional Files Translations  
No support by the author.

Introduction:

When I first installed Zero Tolerence's Welcome Panel, I found that it had a lot of mistakes on my computer. I set out to make a new template for the hack - and I succeeded. This template is my rewrite of Zero Tolerence's hack.

This Hack Made Possible By Zero Tolerance

Please Remove Zero Tolerance's Plugins When Upgrading from a Previous Version!

Hack Requirements:
This hack has one requirement:
  1. vBulletin v3.6.0 or higher. (Confirmed working with vB 3.7.0 RC1)
Installation

Installation is a breeze! Follow these simple steps:
  1. Upload Files into folders.
  2. Install Welcome Panel Product
  3. Customize!
Yes, it's that simple.

Feature Lists:
Support for v1.x has been dropped.

v2.2.0
  • Displays the number of new posts.
  • It displays the user's avatar & links to the edit avatar page.
  • Displays your forum stats:
    • Posts
    • Threads
    • Members
  • The welcome panel is fully phrased.
  • Displays a link for new posts.
  • There is a link to edit your profile.
  • It shows the forum your most active in.
  • It displays the percent of your posts compared to the total forum posts.
  • It displays the users posts per day count.
  • It displays the users number of posts.
  • The welcome panel is collapsable if the user doesn't want it there.
  • Completely customizable through a setting group with 13 settings.
  • Displays users current time (in their time zone)!
  • Image or Textual links for New Posts, Daily Posts, and Edit Your Profile.
  • Displays the number of new Private Messages.
  • Displays the number of new Threads.
  • Customizable link for forum rules.
  • Customizable to the latest forum announcement (thread only).
  • Latest Announcment name is customizable through a setting.
  • There is an admin editable section for "useful links", HTML required.
  • Link to forum leaders. (uses vB default phrase so if you change it to something else the welcome panel also changes)
  • Link to Mark Forums Read. (uses vB default phrase so if you change it to something else the welcome panel also changes)
  • Link to the announcement forum.
  • The colors now alternate correctly on your welcome panel.
  • Show Version
  • Welcome Panel Style (Second Style by Da Pro)
  • FAQ Entries
v3.0.0
  • Displays the number of new posts, threads, and unread private messages.
  • Displays the current time (using the user?s time settings)
  • It displays the user's avatar & links to the edit avatar page.
  • Displays your forum stats:
    • Posts
    • Threads
    • Members
  • Top Poster Statistics
    • Username
    • Profile
    • Amount of Posts
  • Fully Phrased
    • Re-Phrased from v2.2.0
  • New Posts Link (Image or Text)
  • Edit Profile Link (Image or Text)
  • Daily Posts (Image or Text)
  • The forum the user is most active in.
  • How much percentage of the forums total posts does the user own.
  • How many ?Posts Per Day? the user has.
  • The Panel is Collapsible
  • Customizable through 13 settings
    • Revamp Settings from v2.2.0
  • Forum Rules link.
  • Forums Latest Announcement
    • Pulled Dynamically from specified forum.
  • Admin Set ?useful? links ? BBCode allowed!
  • Links to Forum Leaders (vBulletin?s Phrase)
  • Links to the Mark Forums Read system (vBulletin?s Phrase)
  • Links to the Announcement Forum (optional)
  • Alternating Colors
  • Welcome Panel Version (optional)
  • Welcome Panel Style Improved!
  • BBCode Parsing
  • Link to vBulletin.org in ACP?s Product Manager
  • Version Checking enabled.
  • Retrieve Latest Version from database, and display in template.
  • Improved Code: With Zero Tolerance's Permission, code rerelease made this a possibility! Improved!
  • Optional Plural Checking (New Posts, New Threads) New!
  • No Avatar Image: Uses the Image Path setting New!
  • Multiple Templates! New!
Conflicts:
Users have reported that there is a conflict with this modification:
https://vborg.vbsupport.ru/showthread.php?t=122995

Change Log:
v3.0.5: May 16, 2007 - New Features & Improved Code
v3.0.4: March 23, 2007 - Bug Fix - new auto version update.
v3.0.3: Immediately released to replace 3.0.2 to add the correct template.
v3.0.2: Bug Fix, immediately removed from download
v3.0.1: Bug Fix
v3.0.0: Initial Release of 3.0.0

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #162  
Old 05-19-2007, 01:07 PM
masons masons is offline
 
Join Date: Jan 2007
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

fantastic add-on! A top asset to the site and community!
Reply With Quote
  #163  
Old 05-19-2007, 08:13 PM
The Scriblerian The Scriblerian is offline
 
Join Date: Oct 2006
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's working great.

Small question though, for some reason where it reads "Welcome back (Insert name)!" It has a strange (AVC) after it. Like

"Welcome back The Scriblerian! (AVC)" What is this?

EDIT: Stupid me...I should really read back before I post these kind of things. I believe I saw the answer at the top of the page.
Reply With Quote
  #164  
Old 05-20-2007, 02:01 PM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by The Scriblerian View Post
It's working great.

Small question though, for some reason where it reads "Welcome back (Insert name)!" It has a strange (AVC) after it. Like

"Welcome back The Scriblerian! (AVC)" What is this?

EDIT: Stupid me...I should really read back before I post these kind of things. I believe I saw the answer at the top of the page.
That (AVC) would be (Avatar Center) I believe... I added that for testing purposes.
Reply With Quote
  #165  
Old 05-20-2007, 03:08 PM
Philipaclayton Philipaclayton is offline
 
Join Date: Apr 2007
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed. great hack
Reply With Quote
  #166  
Old 05-20-2007, 03:24 PM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Philipaclayton View Post
installed. great hack
Thanks... The original code was by Zero Tolerance.
Reply With Quote
  #167  
Old 05-20-2007, 08:23 PM
random1 random1 is offline
 
Join Date: May 2007
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you and thank Zero, this is great!!!! i would rather it be at the bottom of the page but untill i figure out how to do this stuff, i'll be happy i got it running!

thanks agian!
Reply With Quote
  #168  
Old 05-20-2007, 09:30 PM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by random1 View Post
thank you and thank Zero, this is great!!!! i would rather it be at the bottom of the page but untill i figure out how to do this stuff, i'll be happy i got it running!

thanks agian!
The plugin replaces $navbar with $navbar fetch_template('forumhome_welcomepanel_' . $style);

so it's hard coded at the top.
Reply With Quote
  #169  
Old 05-20-2007, 10:40 PM
UncoderMom UncoderMom is offline
 
Join Date: May 2006
Location: My office chair!
Posts: 567
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by King Kovifor View Post
The plugin replaces $navbar with $navbar fetch_template('forumhome_welcomepanel_' . $style);

so it's hard coded at the top.

Is there a way to get rid of that? I have stuff that Id like to put before it and I cant..so Ive been just dealing

But I would love to turn off the hook and do the edit manually!

How could I do this?
Reply With Quote
  #170  
Old 05-20-2007, 11:05 PM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well... UncoderMom, you could modify the plugin to use a variable for the template... I'll whip up the code for you.

PHP Code:
if ($vbulletin->userinfo['userid'] > && $vbulletin->userinfo['userid'] != '' || !$vbulletin->userinfo['userid'])
{
    require_once(
DIR '/includes/functions_user.php');
    
$vbulletin->userinfo['avatar_build'] = fetch_avatar_url($vbulletin->userinfo['userid']);

    if (empty(
$vbulletin->userinfo['avatar_build']) || !is_array($vbulletin->userinfo['avatar_build']))
    {
        
$vbulletin->userinfo['avatar_build'] = array($vbulletin->options['wp_forumimagelink'] . 'noavatar.gif');
    }

    
$vbulletin->userinfo['avatar_build'] = '<img src="' $vbulletin->userinfo['avatar_build'][0] . '"'.iif($vbulletin->userinfo['avatar_build'][1],$vbulletin->userinfo['avatar_build'][1],'').'border="0" alt="Edit Your Avatar" />';

    
$postsin = array();
    
$gp      $db->query_read("SELECT p.threadid, t.forumid FROM " TABLE_PREFIX "post p LEFT JOIN " TABLE_PREFIX "thread t ON(t.threadid = p.threadid) WHERE p.userid = {$vbulletin->userinfo['userid']}");
    while (
$gpb $db->fetch_array($gp))
    {
        if (!
$postsin[$gpb['forumid']])
        {
            
$postsin[$gpb['forumid']] = 1;
        }
        else
        {
            
$postsin[$gpb['forumid']]++;
        }
    }

    
$active = array(0);

    if (
is_array($postsin) && is_array($vbulletin->forumcache))
    {
        foreach (
$postsin as $forumid => $pi)
        {
            if (
$pi $active[0])
            {
                
$active = array($pi$forumid);
            }
        }
    }

    if (!empty(
$active[1]))
    {
        
$vbulletin->userinfo['active'] = array($vbulletin->forumcache[$active[1]], $active[0]);
    }
    else
    {
        
$vbulletin->userinfo['active'] = false;
    }

    
$exec_totalposts str_replace(','''$totalposts);

    if (
$exec_totalposts 1)
    {
        
$exec_totalposts 1;
    }

    
$vbulletin->userinfo['posts'] = vb_number_format($vbulletin->userinfo['posts']);
    
$jointime = (TIMENOW $vbulletin->userinfo['joindate']) / 86400;

    if (
$jointime 1)
    {
        
$vbulletin->userinfo['postsperday'] = $vbulletin->userinfo['posts'];
    }
    else
    {
        
$vbulletin->userinfo['postsperday'] = vb_number_format(str_replace(','''$vbulletin->userinfo['posts']) / $jointime2);
    }

    
$vbulletin->userinfo['postpercent'] = vb_number_format(((str_replace(','''$vbulletin->userinfo['posts']) / $exec_totalposts ) * 100),2);

    
$vbulletin->userinfo['newposts'] = $db->query_first("SELECT COUNT(*) AS newposts FROM " TABLE_PREFIX "post WHERE dateline >= '{$vbulletin->userinfo['lastvisit']}' AND visible = '1'");
    
$vbulletin->userinfo['newposts'] = vb_number_format($vbulletin->userinfo['newposts']['newposts']);

    
$vbulletin->userinfo['newthreads'] = $db->query_first("SELECT COUNT(*) AS newthreads FROM " TABLE_PREFIX "thread WHERE dateline >= '{$vbulletin->userinfo['lastvisit']}' AND visible = '1' AND sticky in(0,1)");
    
$vbulletin->userinfo['newthreads'] = vb_number_format($vbulletin->userinfo['newthreads']['newthreads']);

    
$vbulletin->userinfo['lastvisit'] = vbdate($vbulletin->options['timeformat'], $vbulletin->userinfo['lastvisit']) . ', ' vbdate($vbulletin->options['dateformat'], $vbulletin->userinfo['lastvisit']);

    
$exec_lastposts $db->query_first("SELECT COUNT(*) AS lastposts FROM " TABLE_PREFIX "post WHERE visible = 1 AND dateline >= ".(TIMENOW 86400));
    
$exec_lastposts vb_number_format($exec_lastposts['lastposts']);

    
$welcomepanel $vbulletin->templatecache['forumhome_welcomepanel_' $vbulletin->options['wp_style']];

Try that... Just place $welcomepanel in your template...
Reply With Quote
  #171  
Old 05-21-2007, 02:53 AM
UncoderMom UncoderMom is offline
 
Join Date: May 2006
Location: My office chair!
Posts: 567
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay.. I did that but its not rendering now... No mater where I place it ..dunno...
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:47 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05965 seconds
  • Memory Usage 2,379KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete