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
  #172  
Old 05-21-2007, 10:02 AM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK Try...

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 fetch_template('forumhome_welcomepanel_' $vbulletin->options['wp_style']);

Reply With Quote
  #173  
Old 05-21-2007, 11:25 AM
DaNIEL MeNTED DaNIEL MeNTED is offline
 
Join Date: Sep 2006
Posts: 152
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I upgraded but had to step back to the previous version as my counts were all screwed up as well...
Reply With Quote
  #174  
Old 05-21-2007, 12:07 PM
UncoderMom UncoderMom is offline
 
Join Date: May 2006
Location: My office chair!
Posts: 567
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nope.. It shows raw plug in code on forumhome

I am supposed to replace the main with that code.. correct?
Reply With Quote
  #175  
Old 05-21-2007, 06:41 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 DaNIEL MeNTED View Post
I upgraded but had to step back to the previous version as my counts were all screwed up as well...
Wonder why... I'll look into it...

Quote:
Originally Posted by UncoderMom View Post
nope.. It shows raw plug in code on forumhome

I am supposed to replace the main with that code.. correct?
Yeah... Don't do that then... Maybe revert back? For now..
Reply With Quote
  #176  
Old 05-23-2007, 03:53 AM
Rider69 Rider69 is offline
 
Join Date: Oct 2006
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would like additional links to the USER CP area of the template, like after the "Your Profile" link I would like to add a Donate link or an Announcement link. How can I do that?
Reply With Quote
  #177  
Old 05-23-2007, 10:08 AM
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 Rider69 View Post
I would like additional links to the USER CP area of the template, like after the "Your Profile" link I would like to add a Donate link or an Announcement link. How can I do that?
Use the "Admin Links"/"Useful Links" section of your template... For the announcement link, set up your announcement forum settings or your latest announcement settings... Admin Links show up as it's own little section, but it's the easiest way to add it to all of them.
Reply With Quote
  #178  
Old 06-01-2007, 03:14 PM
Lpspider Lpspider is offline
 
Join Date: Oct 2005
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If I would like to decrease the font size, how would I go about doing this?
Reply With Quote
  #179  
Old 06-01-2007, 06:35 PM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Gotta mess with the style...
Reply With Quote
  #180  
Old 06-01-2007, 06:36 PM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It has to do with the style
Reply With Quote
  #181  
Old 06-02-2007, 09:37 PM
Lpspider Lpspider is offline
 
Join Date: Oct 2005
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried a little... couldn't come up with it. Any ideas?
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 08:31 AM.


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.18531 seconds
  • Memory Usage 2,369KB
  • 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
  • (3)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