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

Reply
 
Thread Tools
Welcome Panel Hack [3.5.X] Details »»
Welcome Panel Hack [3.5.X]
Version: 1.3, by SmasherMaster SmasherMaster is offline
Developer Last Online: Sep 2011 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 01-21-2006 Last Update: 01-24-2006 Installs: 87
Uses Plugins Template Edits
Additional Files  
No support by the author.

Version 1.3

Hack Author:
[size=2][b][color=yellow]Name: SmasherMaster
E-Mail: Xenaero@gmail.com

Description:
This hack replaces the box on top of the postbit in the index page with a snazzy panel with stats, new posts and PMs. When you go to view a different page, the box on top of the navbar changes into the default navigation/breadcrumb box.

Changelog:
V1.3 - Added 2 new texts, one under Forum Stats and one under Your Info:
Your Posts, which displays your total # of posts and the %
of the total forum's posts it is.
Active Members, this basically is the same stat as the one
in the bottom of the What's Going On? Panel.

V1.2 - Updated it for vB 3.5.x! Enjoy! Note also that since I do not have
the vBA portal anymore, I cannot be certain how to update that
coding as well, sorry! =(
I also fixed a few minor security bugs and avatar paths,
And made it work with the plugin system! Have fun!

V1.1 - Changed file edit to global.php for tidier code.
Added file and new template edits for VbAdvanced CMPS
So the welcome panel will work on CMPS.

V1.0 - Welcome Panel Hack RELEASED!

Installation Time:
5 min.

Zip Contents:
WelcomePanelHack_V1.3[3.5.x].zip
|-instructions.txt -- Instructions on how to install this hack.
|-WelcomePanel-Plugin.xml -- The plugin XML
|-noavatar.gif -- Image for members who don't have an avatar yet.
|-guestavatar.gif -- Image for guests.
|-Welcome_Panel_Guest.jpg -- What the panel will look like to a guest
|-Welcome_Panel_loggedin.jpg -- What the panel will look like to a member with an avatar
|-Welcome_Panel_loggedin_noav.jpg -- What the panel will look like to a member without an avatar


Testing:
Tested on vBulletin 3.5.3

Plugins to upload:
WelcomePanel-Plugin.xml

Templates to Modify:
forumhome (Optional)
navbar

Images to Upload:
noavatar.gif
guestavatar.gif

Notes:
If you use this hack, please click on the INSTALL button.
You will be notifited via email about any updates or changes.

Show Your Support

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

Comments
  #12  
Old 01-22-2006, 01:18 PM
chimaira chimaira is offline
 
Join Date: Feb 2005
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awsome and works fine... Just one thing... What part do i need to edit to have the avatar display on the right hand side.. rather than the left
Reply With Quote
  #13  
Old 01-22-2006, 10:10 PM
SmasherMaster's Avatar
SmasherMaster SmasherMaster is offline
 
Join Date: Feb 2004
Location: Florida
Posts: 176
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by chimaira
Awsome and works fine... Just one thing... What part do i need to edit to have the avatar display on the right hand side.. rather than the left

Replace the navbar template coding that I had you insert with this:

Code:
<!-- Welcome Panel Hack V1.2 [] Created By SmasherMaster -->
<if condition="THIS_SCRIPT == 'index'">
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" 

align="center"> 
<tr>
<!-- Main Welcome Panel Block [] Begin -->
	<td class="alt1" nowrap="nowrap" style="padding:3px">
	<if condition="$vbulletin->userinfo[userid]!=0">
	<!-- Your Stats [] Begin -->
	<div class="smallfont"><b>Your Info:</b><br />User: <a 

href="member.php?{$session['sessionurl']}u={$vbulletin->userinfo['userid']}" 

title="Go To Your Profile">{$vbulletin->userinfo['username']}</a><br />
	<a href="search.php?{$session['sessionurl']}do=getnew">New Posts</a>: 


{$vbulletin->userinfo['newposts']}<br />New Threads: 

{$vbulletin->userinfo['newthreads']}<br />
	<if condition="$show[pmstats]"><phrase 

1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 

3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase></if></div>
	<!-- Your Stats [] End -->
	<else />
		<!-- login form --> 
		<form action="login.php" method="post" 

onsubmit="md5hash(vb_login_password,vb_login_md5password)"> 
		<script type="text/javascript" 

src="clientscript/vbulletin_md5.js"></script> 
		<table cellpadding="0" cellspacing="3" border="0"> 
		<tr> 
		<td class="smallfont">User Name</td> 
		<td><input type="text" class="button" name="vb_login_username" 

id="navbar_username" size="10" accesskey="u" tabindex="1" value="User Name" 

onfocus="if (this.value == 'User Name') this.value = '';" /></td>

		</tr> 
		<tr> 
		<td class="smallfont">Password</td> 
		<td><input type="password" class="button" 

name="vb_login_password" size="10" accesskey="p" tabindex="2" /></td> 
		</tr> 
		<tr> 
		<td class="smallfont" colspan="2" nowrap="nowrap"> 
		<label for="cb_cookieuser_navbar"><input type="checkbox" 

name="cookieuser" value="1" tabindex="3" id="cb_cookieuser_navbar" accesskey="c" 

checked="checked" />Remember Me?</label> 
		<input type="submit" class="button" value="Log in" tabindex="4" 

title="Enter your username and password in the boxes provided to login, or click 

the 'register' button to create a profile for yourself." accesskey="s" /> 
		</td>
		</tr> 
		</table> 
		<input type="hidden" name="ID" value="" /> 
		<input type="hidden" name="s" value="" /> 
		<input type="hidden" name="do" value="login" /> 
		<input type="hidden" name="forceredirect" value="1" /> 
		<input type="hidden" name="vb_login_md5password" /> 
		</form> 
		<!-- / login form --> 
		</td>
	<!-- Guest [] End --></if>
	</td>
	<td class="alt2" valign="top" nowrap="nowrap">
	<!-- Forum Stats [] Begin -->
<div class='smallfont'><b>Forum Stats:</b><br />Threads: $welcome_topics<br 

/>Posts: $welcome_posts<br />Members: $welcome_members<br /><phrase 

1="member.php?$session[sessionurl]u=$newuserid" 

2="$newusername">$vbphrase[welcome_to_our_newest_member_x]</phrase></div>
	<!-- Forum Stats [] End -->
	</td>
	<td class="alt1" valign="middle" align="center">
	<if condition="$vbulletin->userinfo[userid]!=0">
	<!-- Avatar Cell [] Begin -->
	{$welcome_avatar}
	<!-- Avatar Cell [] End -->
	<else />
	<!-- Guest [] Begin -->
			<!-- Avatar --> 
		<a href="register.php?ID=&amp;"><img 

src="images/avatars/guestavatar.gif" border="0"></a> 
		</td> 
		<!-- / Avatar --> 
</if>
<!-- Main Welcome Panel Block [] End -->
</tr>
</table>
<else />
<!-- / Welcome Panel Hack V1.2 [] Created By SmasherMaster -->
Reply With Quote
  #14  
Old 01-22-2006, 10:29 PM
chimaira chimaira is offline
 
Join Date: Feb 2005
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Superb. Thanks
Reply With Quote
  #15  
Old 01-24-2006, 03:03 AM
SmasherMaster's Avatar
SmasherMaster SmasherMaster is offline
 
Join Date: Feb 2004
Location: Florida
Posts: 176
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey uh, could a mod/admin move this to the Extensions forum? I realised I put it in the wrong place. :/
Reply With Quote
  #16  
Old 01-27-2006, 01:03 PM
ggiersdorf ggiersdorf is offline
 
Join Date: Aug 2005
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you make this so that new posts, and new replies are both clickable taking you to a display of new messages and also to a display of the current threads with new posts in it? Also have it so once I click a thread and view the new messages that it updates them immediately right now it will still show 100 new posts even if I read 98 of them untill the next time I log on..

Great Hack though!
Reply With Quote
  #17  
Old 01-28-2006, 04:32 AM
leedzinh leedzinh is offline
 
Join Date: Oct 2002
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Warning: Division by zero in /index.php(63) : eval()'d code on line 98
Reply With Quote
  #18  
Old 01-28-2006, 04:51 PM
SmasherMaster's Avatar
SmasherMaster SmasherMaster is offline
 
Join Date: Feb 2004
Location: Florida
Posts: 176
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ggiersdorf
Can you make this so that new posts, and new replies are both clickable taking you to a display of new messages and also to a display of the current threads with new posts in it? Also have it so once I click a thread and view the new messages that it updates them immediately right now it will still show 100 new posts even if I read 98 of them untill the next time I log on..

Great Hack though!
My hack uses the coding from the new posts feature in vB, unless I misunderstood you. =o

leedzinh: Did you try disabling the plugin? You might have done something wrong. =(
Reply With Quote
  #19  
Old 02-13-2006, 07:49 PM
Megareus Rex's Avatar
Megareus Rex Megareus Rex is offline
 
Join Date: Feb 2004
Location: Pennsylvania, USA
Posts: 243
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey smash, I think I figured out that problem w/ the "% of total posts" feature that EF has been having (I'm posting this here in case you see it before I get to talk to you again, and because other people may have had the same problem).

Some things I noticed:
-It only gives the % to 2 decimal places. Since EF has 224000+ posts, even at 100 posts, the % of a member's total posts to 2 decimal places is still 0.00%, without rounding. The % should round the %, so that even if a person only has 1 post on a board with millions of posts total, it'll read "0.01%". Or if its 0.00% w/out rounding, have it say "negligable % of total posts"

-It ignores any manual edits to postcounts admins make. So if a person has only posted 10 times, and the admin changes their postcount to 10000, it'll still read the % as though they only have 10.

-Every post a user makes in a forum with the postcount turned off, it SUBTRACTS 1 post from the % of total posts. So if a person posts enough in a forum like Spammyland on EF (which pretty much any EF member has), their post % will read 0.00% easily.

Those are just 3 observations I made while testing it ay EFv's test forum, so I figure I'd relay them to you here before I forgot, since you arent on now >.>
Reply With Quote
  #20  
Old 02-13-2006, 09:10 PM
SmasherMaster's Avatar
SmasherMaster SmasherMaster is offline
 
Join Date: Feb 2004
Location: Florida
Posts: 176
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Making it round will be tough, since I haven't really dont anything like that yet, but I bet I can do it. As for the 2nd one, It reads from the user's postcount data, so I don't get how that wouldn't count though...Now the third one REALLY confuses me. I have absolutely no idea on what to do about that, but i'll look into it.
Reply With Quote
  #21  
Old 02-16-2006, 03:15 AM
Megareus Rex's Avatar
Megareus Rex Megareus Rex is offline
 
Join Date: Feb 2004
Location: Pennsylvania, USA
Posts: 243
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Idea! Why not add in parenthesis next to the total member count, the # of members that registered today. I've seen other hacks for that, so adding it may make your panel even more appealing.
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 09:02 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.05097 seconds
  • Memory Usage 2,324KB
  • Queries Executed 25 (?)
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_code
  • (2)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
  • (3)pagenav_pagelink
  • (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