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.
I installed the mod.. works fine. Had some issues with CMPS with avatars and i was able to resolve most myself by editing the gif location except 1.
1. Members with avatars cannot see any avatar in CMPS homepage but they show up on forumshome
2. I would like to moify the navbar template for NON-REGISTERED members
I want to have 3 <TD> tags... 1 for image, 1 for login boxes and 1 for my custom message. (no "forum stats")
How can I achieve that? I was playing with <IF> <else> statement and the template kept screwing on me...
can someone else me with that?
much appreciated and thanks for the mod :up:
I will like to suggest to please update the install instructions with all the fixes - it will help new installers a great deal!
Hi, I am posting my questions again.. hope I get some help this time around..SmasherMaster.
1. Members with avatars cannot see their avatar in CMPS homepage.
2. I would like to moify the navbar template for NON-REGISTERED members
I want to have 3 <TD> tags... 1 for image, 1 for login boxes and 1 for my custom message. (no "forum stats")
How can I achieve that? I was playing with <IF> <else> statement and the template kept messing up..
Hi, I am posting my questions again.. hope I get some help this time around..SmasherMaster.
1. Members with avatars cannot see their avatar in CMPS homepage.
2. I would like to moify the navbar template for NON-REGISTERED members
I want to have 3 <TD> tags... 1 for image, 1 for login boxes and 1 for my custom message. (no "forum stats")
How can I achieve that? I was playing with <IF> <else> statement and the template kept messing up..
can someone else me with that?
VIKS, I would like to know the answer to this as well. I have the *exact* same problem. :ermm:
Actually...one workaround I thought about for #1 is to put the CPMS index page in the forums directory (perhaps portal.php) and then make a permanent redirect from your root index to the CPMS page. It's a little messy and could cause other issues, but it's a thought anyway.....
Does anyone have an answer to the avatar issue. I resolved the guest avatar problem on the cmps main page, but my registered users avatar's do not appear and this sucks!! I like the hack but will uninstall if a I can't resolve this!!
Maybe if you were a little more descriptive in your problem, people aren't mind readers.
When you say 'avatars do not appear', do you mean the code is not there in the HTML, the avatar shows up as a little red x, or what?
If it is the latter, what is the path that the page is trying to find an avatar at?
Sorry, thought it was described thoroughly in previous posts. The link appears broken on the cmps page only for the registered user. There is a red x but the path is correct as far as I can tell. Here is the code in the navbar template:
PHP Code:
<!-- Welcome Panel Hack V1.1 [] Created By SmasherMaster -->
<if condition="THIS_SCRIPT == 'index' OR THIS_SCRIPT == 'adv_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 -->
<if condition="THIS_SCRIPT == 'adv_index'">
<a href="$vboptions[bburl]/profile.php?do=editavatar"><img src="$avatarurl" border="0"></a>
<else />
{$welcome_avatar}
</if>
<!-- 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=&"><img src="http://strengthinthelord.com/forum/images/avatars/guestavatar.gif" border="0"></a>
</td>
<!-- / Avatar -->
Does anyone have an answer to the avatar issue. I resolved the guest avatar problem on the cmps main page, but my registered users avatar's do not appear and this sucks!! I like the hack but will uninstall if a I can't resolve this!!
For whatever reason, the $avatarurl tag is not populating the avatar URL. I'm investigating.......