The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
![]() |
|||||||||||||||||||||||||
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
|
Comments |
#102
|
|||
|
|||
![]() Quote:
Wish I knew php better... |
#103
|
|||
|
|||
![]() Quote:
Code:
</script> <br /> <!-- breadcrumb, login, pm info --> <!-- 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=&"><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 --> Code:
</tr> </table> <!-- / breadcrumb, login, pm info --> </if> |
#104
|
|||
|
|||
![]() Quote:
I tried what you suggested but unfortunately it didn't work. As soon as I turn the weclome block off in vbadvanced the avatar in the welcome hack goes off too. Even after making your suggested change. |
#105
|
||||
|
||||
![]() Quote:
|
#106
|
|||
|
|||
![]()
Problem fixed! Actually guyincorby your fix did it.
It was around 2am when I tried it and sure enough I applied the fix to global.php in the main forum not on the testing forum which is where I am testing all mods before making them live. So today when I applied the fix to the correct file it worked perfectly ![]() Great work, thank you for your help ![]() Of course if I just get the "guest avatar" to show up on the vbadvance page it would be perfect ![]() |
#107
|
|||
|
|||
![]()
Found another issue. While the fix above works in that it allows the avatar to show while the welcome block is gone from the VBA page.
It unfortunately removes the avatar from the actual forum itself. I think it's just going to be easier to have two welcome block there. |
#108
|
||||
|
||||
![]() Quote:
https://vborg.vbsupport.ru/showpost....&postcount=100 have a great day... |
#109
|
||||
|
||||
![]()
I got the same issua as nathanaus, once I leave the cmps front page my avatars is replaced by "image.php?u=5&dateline=5764864890"
|
#110
|
|||
|
|||
![]()
Does this work with 3.0.6?
|
#111
|
|||
|
|||
![]() Quote:
|
![]() |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|