Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
Welcome Panel Hack V1.1 [vB3.0.x] Details »»
Welcome Panel Hack V1.1 [vB3.0.x]
Version: 1.10, by SmasherMaster SmasherMaster is offline
Developer Last Online: Sep 2011 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 07-07-2004 Last Update: 07-08-2004 Installs: 191
 
No support by the author.

Version 1.1

Hack Author:
Name: SmasherMaster
E-Mail: webmaster@megareviews.com
Forums: http://www.megareviews.com/forums


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.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:
Welcome_Panel_Hack.zip
|-instructions.txt -- Instructions on how to install this hack.
|-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.0.3

Files to Modify:
forumroot/global.php

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.

My first hack made, and thanks to Zero Tolerance for the Welcome Panel hack inspiration.

Show Your Support

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

Comments
  #72  
Old 01-04-2005, 10:55 AM
nathanaus nathanaus is offline
 
Join Date: Dec 2004
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SmasherMaster
Try this:

in /forumroot/global.php find

PHP Code:
$bbuserinfo['user_avatar']="<img src='{$bbuserinfo['user_avatar']}' alt='Edit Your Avatar' border='0'>"
and after the
Code:
<img src='
part and before the
Code:
{$bbuserinfo['user_avatar']}
part, enter your full dir leading to your forums and see if that works
Nice hack. I clicked install!

As to this issue above I had the same problem in that registered users without an avatar was showing up as a broken link. I'm running the forum as a subdirectory of the main site - www.example.com/forum

Anyway, you don't need to add the full path in etc all you need to do is find this line in the global.php:
Code:
$bbuserinfo['user_avatar']="<img src='/images/avatars/noavatar.gif' alt='Edit Your Avatar' border='0'>";
Notice the bolded / part (in the section <img src='/images)? Remove that forward slash (so you don't tell the script/hack to go to the root directory and look in the images folder of the root) so you have:
Code:
$bbuserinfo['user_avatar']="<img src='images/avatars/noavatar.gif' alt='Edit Your Avatar' border='0'>";
Problem solved

Nice work!
Reply With Quote
  #73  
Old 01-05-2005, 01:19 AM
dina dina is offline
 
Join Date: Apr 2004
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed this for 3.0.3 and it worked fine, but when I upgraded to 3.0.4 the text disappeared. I can see the avatar and the who is online bit, but not the text that's supposed to be next to the avatar (number of posts since your last visit if I remember correctly).

Any clues?
Reply With Quote
  #74  
Old 01-06-2005, 11:32 PM
wi11ie1950 wi11ie1950 is offline
 
Join Date: Sep 2004
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When attempting to save the navbar template in 3.0.4

The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/mikeydef/public_html/forums/includes/adminfunctions_template.php(3055) : eval()'d code on line 118

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
Reply With Quote
  #75  
Old 01-11-2005, 12:33 AM
Mythotical Mythotical is offline
 
Join Date: Jun 2004
Location: Booneville, AR, USA
Posts: 1,428
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am using Quick Account Switch, is there a way I can use this with that? For some reason, when I use this Welcome Panel but one prob, using Quick Account Switch caused the drop down box with the names in it not to work. What can I do to make the quick account switch work?

Thanks for the help in advance
Myth
Reply With Quote
  #76  
Old 01-11-2005, 01:20 AM
Mythotical Mythotical is offline
 
Join Date: Jun 2004
Location: Booneville, AR, USA
Posts: 1,428
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nevermind, I got it figured out. I will post the code here for anyone that uses Quick Account Switch.

go to AdminCP -> Styles Manager -> Edit Templates -> navbar
Find:
Code:
<!-- breadcrumb, login, pm info -->
Below that Find:
Code:
<!-- Welcome Panel Hack V1.1 [] 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" valign="middle" align="center">
	<if condition="$bbuserinfo[userid]!=0">
	<!-- Avatar Cell [] Begin -->
	{$welcome_avatar}
	<!-- Avatar Cell [] End -->
	</td>

	<td class="alt2" nowrap="nowrap" style="padding:3px">
	<!-- Your Stats [] Begin -->
	<div class="smallfont"><b>Your Info:</b><br />User: <a href="member.php?{$session['sessionurl']}u={$bbuserinfo['userid']}" title="Go To Your Profile">{$bbuserinfo['username']}</a><br />
	<a href="search.php?{$session['sessionurl']}do=getnew">New Posts</a>: {$welcome_new_posts['new_posts']}<br />New Threads: {$welcome_new_topics['new_topics']}<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 />
	<!-- Guest [] Begin -->
			<!-- Avatar --> 
		<td class="alt1" valign="middle" align="center"> 
		<a href="register.php?ID=&amp;"><img src="images/avatars/guestavatar.gif" border="0"></a> 
		</td> 
		<!-- / Avatar --> 

		<td class="alt2" nowrap="nowrap" style="padding:0px"> 
		<!-- 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="alt1" 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>
<!-- Main Welcome Panel Block [] End -->
</tr>
</table>
<else />
<!-- / Welcome Panel Hack V1.1 [] Created By SmasherMaster -->
Replace with:
Code:
<!-- Welcome Panel Hack V1.1 [] 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" valign="middle" align="center">
	<if condition="$bbuserinfo[userid]!=0">
	<!-- Avatar Cell [] Begin -->
	{$welcome_avatar}
	<!-- Avatar Cell [] End -->
	</td>

	<td class="alt2" nowrap="nowrap" style="padding:3px">
	<!-- Your Stats [] Begin --><!-- Quick Account Switch v1.2 -->
			<if condition="$account_master">
				<span id="switchacc"><a href="#switchacc"><strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong></a> <script type="text/javascript"> vbmenu_register("switchacc"); </script></span><br />
			<else />
				<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
			</if>
                 	<!-- Quick Account Switch v1.2 -->
	<div class="smallfont"><b>Your Info:</b><br />User: <a href="member.php?{$session['sessionurl']}u={$bbuserinfo['userid']}" title="Go To Your Profile">{$bbuserinfo['username']}</a>                 
<br />
	<a href="search.php?{$session['sessionurl']}do=getnew">New Posts</a>: {$welcome_new_posts['new_posts']}<br />New Threads: {$welcome_new_topics['new_topics']}<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 />
	<!-- Guest [] Begin -->
			<!-- Avatar --> 
		<td class="alt1" valign="middle" align="center"> 
		<a href="register.php?ID=&amp;"><img src="images/avatars/guestavatar.gif" border="0"></a> 
		</td> 
		<!-- / Avatar --> 

		<td class="alt2" nowrap="nowrap" style="padding:0px"> 
		<!-- 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="alt1" 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>
<!-- Main Welcome Panel Block [] End -->
</tr>
</table>
<else />
<!-- / Welcome Panel Hack V1.1 [] Created By SmasherMaster -->
Enjoy and you shouldn't have any problems getting QAS to work with Welcome Panel.

Myth
Reply With Quote
  #77  
Old 01-15-2005, 02:07 PM
StuKeR StuKeR is offline
 
Join Date: Nov 2004
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you have disabled the navbar on the CMPS there's any way to made it run? Because in muy website I just disabled my navbar, but I wish to use this nice hack.
I upload one capture from my web side to see if could be posible to made it run

"Bienvenido/ a usuario [desconectar] -> Welcome (name of the user that has login) [log out]"
Usuarios: -> Users
(On line) -> Users online on the web
Posts: -> Discusions or threads ( I don't know the diference )
Fotos : Photos from VBgallery
Enlaces : URLS form VBdirectory

the 000.000 that apears are only a 000.000 texted, I mean I writte my self this stats...

any one could helpme please??

edited : Sorry I forgot to upload the image...

solved
Reply With Quote
  #78  
Old 01-15-2005, 06:46 PM
Sen Sen is offline
 
Join Date: Jul 2004
Location: Angleterre
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had it installed also on 3.0.3 and then when upgrading to 3.0.5 the text disappeared.
When I edited the global.php file again to add in the coding, there was an error which basically said it would not work.

Any chance we could get some modified code?
Reply With Quote
  #79  
Old 01-15-2005, 07:00 PM
StuKeR StuKeR is offline
 
Join Date: Nov 2004
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sen try to edit template of navbar and save. Simple to recharge the new template...
Reply With Quote
  #80  
Old 01-15-2005, 07:42 PM
lanc3lot's Avatar
lanc3lot lanc3lot is offline
 
Join Date: Sep 2004
Location: Athens, Greece
Posts: 454
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So is this hack working ok for 3.0.3 ppl?

Reply With Quote
  #81  
Old 01-15-2005, 07:46 PM
biggkay biggkay is offline
 
Join Date: Sep 2003
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lanc3lot
So is this hack working ok for 3.0.3 ppl?

I have it on my 3.0.3 and works great. I had to do some mods to make it work with my CMPS but works nicely.
Reply With Quote
Reply

Thread Tools

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 06:34 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.04778 seconds
  • Memory Usage 2,329KB
  • Queries Executed 27 (?)
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
  • (7)bbcode_code
  • (1)bbcode_php
  • (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
  • (4)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_postinfo_query
  • fetch_postinfo
  • 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