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.
on forum home i see :
User: Mamochka
Your Posts: 250 Posts
New Posts: 49
if i read some thread :
userinfo: Mamochka
Administrator
Posts: 185 <- ?
Why?
Methinks Smash didn't update the hack with that fix yet.
Right now, it queries the post table, and generates the postcount based on the # of posts that are tagged with the user's ID. The postcount used in the postbit queries the actual postcount column in the user table. I thought he'd updated the hack here though, guess not. Anyways, I informed him of the problem for you.
Replace the relevant coding lines in the plugin XML:
Code:
$vbulletin->userinfo['yourposts'] = $db->query_first("select posts as your_posts from ".TABLE_PREFIX."user where userid = {$vbulletin->userinfo['userid']}");
$vbulletin->userinfo['yourposts'] = vb_number_format($vbulletin->userinfo['yourposts']['your_posts']);
Warning: Division by zero in /index.php(62) : eval()'d code on line 24
Get this too, disabling plugin gets rid of it but i done everything in the instructions by the letter, i looked ta index.php and found this
Code:
// get special data templates from the datastore
$specialtemplates = array(
'userstats',
'birthdaycache',
'maxloggedin',
'iconcache',
'eventcache',
'mailqueue'
Thats line 23/24+
So i removed line 24 witch was the 'userstats' and still got the error.
Silly question, is says works with 3.5.x but has it been tested and works on 3.5.4 as i had to do a little extra editing to remove the bottom stats than the instructions told me (Didnt cause the error i reverted it after to check)