The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Welcome Panel Hack [3.5.X] Details »» | |||||||||||||||||||||||||
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
|
Comments |
#12
|
|||
|
|||
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
|
#13
|
||||
|
||||
Quote:
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=&"><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 --> |
#14
|
|||
|
|||
Superb. Thanks
|
#15
|
||||
|
||||
Hey uh, could a mod/admin move this to the Extensions forum? I realised I put it in the wrong place. :/
|
#16
|
|||
|
|||
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! |
#17
|
|||
|
|||
Warning: Division by zero in /index.php(63) : eval()'d code on line 98
|
#18
|
||||
|
||||
Quote:
leedzinh: Did you try disabling the plugin? You might have done something wrong. =( |
#19
|
||||
|
||||
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 >.> |
#20
|
||||
|
||||
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.
|
#21
|
||||
|
||||
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.
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|