vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Welcome Panel Hack V1.1 [vB3.0.x] (https://vborg.vbsupport.ru/showthread.php?t=66969)

NSeXcellent 11-16-2004 12:22 AM

Quote:

Originally Posted by ChrisBaktis
That will no longer show up on the Forum Home page...the welcome panel will - once you go into a forum or thread that part of the navigational bar will come back.

Actually, that screen shot was taken from a forum ...

ChrisBaktis 11-16-2004 12:46 PM

woops - sorry

chad smith 11-28-2004 08:28 PM

Very nice! I love this hack!

SmasherMaster 11-30-2004 12:44 AM

Quote:

Originally Posted by NSeXcellent
Installed.. nice addition.. however, I seem to have lost this... can anyone help?

Are you sure? That's very odd...Can I have a link?

teamgofast 12-01-2004 02:17 AM

installed nice hack thank you!

biggkay 12-09-2004 12:56 AM

I have a problem with the vbadvanced panel. First off it just displays the text "Edit Your Avatar" and not the avatar, and the link orginates from mysite.com/home/profile.php?&do=editavatar and not from mysite.com/forums/profile.php?&do=editavatar How and where can I change this so it works?

biggkay 12-10-2004 11:27 PM

Anybody??

IC-Games 12-11-2004 08:57 AM

Can you force the avatar profile to be fixed at a certain dimension. The template starts looking ugly with the larger avatars

trevelyn1015 12-12-2004 08:00 PM

i installed, then uninstalled... kinda cluttered looking...

nice work, though...

ragintajin 12-12-2004 09:12 PM

Looks great!!

Any ideas on how to add this to the CMPS only??

SmasherMaster 12-15-2004 12:17 AM

Quote:

Originally Posted by biggkay
I have a problem with the vbadvanced panel. First off it just displays the text "Edit Your Avatar" and not the avatar, and the link orginates from mysite.com/home/profile.php?&do=editavatar and not from mysite.com/forums/profile.php?&do=editavatar How and where can I change this so it works?

Well that's odd, can I have a link? Because it certainly shouldn't point to /home/ it should point to /forums/ or your main forum DIR...

biggkay 12-15-2004 02:18 AM

You got PM

SmasherMaster 12-15-2004 06:44 PM

Ahh, I see the problem. It seems any dir used other than the base dir ( like www.mysite.com ) seems to mess it up, i'll see what I can do to fix it...

biggkay 12-15-2004 06:50 PM

Thanks...
/me is wating impatiently.

SmasherMaster 12-15-2004 06:53 PM

I may have found something.

In /forumroot/global.php find this

PHP Code:

$bbuserinfo['user_avatar']="<a href='profile.php?{$session['sessionurl']}&do=editavatar'>{$bbuserinfo['user_avatar']}</a>"

And right before the "profile.php" part add in "forums/" (Or whatever your forums DIR is named & Without quotations) and see if that works.

Edit: Sorry that probably wouldn't work, put in your full forum URL, including site before the profile, like: "http://www.yourskite.com/forums/"

biggkay 12-15-2004 07:27 PM

That works, however the avatars are still not showing up.

It sources the avatar from "http://www.mysite.com/home/image.php?u=1&dateline=1103146281"
Where can I change it so it sources from /forums/

SmasherMaster 12-15-2004 08:14 PM

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

biggkay 12-15-2004 09:12 PM

It works! Great, thanks. Now 1 more question. Should it have the guest avatar up for lurkers as well? I'm asking because it doesn't show anything.

SmasherMaster 12-15-2004 10:00 PM

Yeah, here's the fix.

find in your navbar template

PHP Code:

    <!-- 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 --> 

And where it says
Code:

<img src="images/avatars/guestavatar.gif" border="0">
input your full dir including your forums subdir, so it would end up looking like this
Code:

<img src="www.mysite.com/forums/images/avatars/guestavatar.gif" border="0">

biggkay 12-15-2004 10:43 PM

It works fine on the forums when I leave like it is, if i change the code to the full path then it totally takes off the guest avatar from forums and still doesn't do anything for the vbadvanced. :(

SmasherMaster 12-16-2004 12:35 AM

Well then how about putting 'forums/' in front of 'images/' in the img src coding that i put in above instead of the full URL, that might work.

biggkay 12-16-2004 03:40 AM

Still doesn't work. Did the same thing as for the full url. Took off the guest avatar from the forums and didn't do anything for vbadvanced.

biggkay 12-16-2004 09:05 PM

I finally got it. I had to instert the full path url where the avatar was orginally placed with the skin, which was
Code:

forums/images/skin_name/mics/guestavatar.gif
Thanks a lot for your help.

SmasherMaster 12-17-2004 01:17 AM

Ah ok, glad you got it working. :) No problem, any time you got another problem come here post a link and i'll see what I can do. :D

Sleepyk 12-19-2004 11:51 PM

the count is messing up and sense i installed it people cannot post

well they do but appears invisible and cant be seen

winky6 12-25-2004 11:09 PM

Great job on this hack.

After installing it, I noticed that the left side had an extra column to the left of the guest avatar.... So I changed this in your hack

from -
<!-- Main Welcome Panel Block [] Begin -->
<td class="alt1" valign="middle" align="center">
<if condition="$bbuserinfo[userid]!=0">
To

<!-- Main Welcome Panel Block [] Begin -->
<if condition="$bbuserinfo[userid]!=0">
<td class="alt1" valign="middle" align="center">

The way it was written created 2 blocks for the guest avatar.
Oddly, this was only in the step 2 directions, and not in the second directions for vb-cmps

Don't know if anyone else caught this, But great job just the same.

jamesk 12-26-2004 12:45 AM

thx, man, it rox da box :)

http://www.xoohq.com/forums/index.php?

jamesk 12-26-2004 12:46 AM

i noticed what winky was talking about the first time i installed the mod, so i redid it and it works like a charm. everything works as far as i can tell and i dont have the extra column on the left like i did the first time.

Clb 12-28-2004 03:53 AM

[high]* Clb clicks install :)
[/high]

thnx!

KBV 01-04-2005 09:27 AM

What would I have to do to make this show up on all the pages on vB? My users love it and want it on all the pages they are on. :P

nathanaus 01-04-2005 10:55 AM

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!

dina 01-05-2005 01:19 AM

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?

wi11ie1950 01-06-2005 11:32 PM

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.

Mythotical 01-11-2005 12:33 AM

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

Mythotical 01-11-2005 01:20 AM

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

StuKeR 01-15-2005 02:07 PM

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 :p )
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

Sen 01-15-2005 06:46 PM

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?

StuKeR 01-15-2005 07:00 PM

Sen try to edit template of navbar and save. Simple to recharge the new template...

lanc3lot 01-15-2005 07:42 PM

So is this hack working ok for 3.0.3 ppl?

:)

biggkay 01-15-2005 07:46 PM

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.


All times are GMT. The time now is 02:32 PM.

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.01616 seconds
  • Memory Usage 1,872KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (12)bbcode_code_printable
  • (4)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete