vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Miscellaneous Hacks - Alternative Header User Info (https://vborg.vbsupport.ru/showthread.php?t=230719)

ViciousCode 12-20-2009 10:00 PM

Alternative Header User Info
 
1 Attachment(s)
Step One...

Open header template...

Find this...

Code:

<ul class="isuser">
                                <li>{vb:rawphrase welcome_x_link_y, {vb:raw bbuserinfo.username}, {vb:link member, {vb:raw bbuserinfo}}}</li>
                                <vb:if condition="$notifications_total">
                                <li class="popupmenu notifications" id="notifications">
                                        <a class="popupctrl" href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase your_notifications}: <span class="notifications-number"><strong>{vb:raw notifications_total}</strong></span></a>
                                        <ul class="popupbody popuphover">
                                                {vb:raw notifications_menubits}
                                        </ul>
                                </li>
                                <vb:else />
                                <li class="popupmenu nonotifications" id="nonotifications">
                                        <a class="popupctrl" href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase your_notifications}</a>
                                        <div class="popupbody popuphover">
                                                <p>{vb:rawphrase no_new_messages}</p>
                                                <p><a href="private.php{vb:raw session.sessionurl_q}">{vb:rawphrase inbox}</a></p>
                                        </div>
                                </li>
                                </vb:if>
                                <li><a href="{vb:link member, {vb:raw bbuserinfo}}">{vb:rawphrase your_profile}</a></li>
                                <li><a href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase control_panel}</a></li>
                                <vb:if condition="$show['registerbutton']">
                                <li><a href="register.php{vb:raw session.sessionurl_q}" rel="nofollow">{vb:rawphrase register}</a></li>
                                </vb:if>                               
                                <li><a href="login.php?{vb:raw session.sessionurl}do=logout&amp;logouthash={vb:raw bbuserinfo.logouthash}" onclick="return log_out('{vb:rawphrase sure_you_want_to_log_out}')">{vb:rawphrase log_out}</a></li>
                        </ul>

Replace with this...

Code:

<ul class="isuser">
                                <li>Welcome,</li>
                                <vb:if condition="$notifications_total">
                                <li class="popupmenu nonotifications" id="nonotifications">
                                        <a class="popupctrl" href="usercp.php{vb:raw session.sessionurl_q}" style="color: #ffffff;">{vb:raw bbuserinfo.username}</a>
                                        <div class="popupbody popuphover">
<p>{vb:raw notifications_menubits}</li>
<p><a href="{vb:link member, {vb:raw bbuserinfo}}">{vb:rawphrase your_profile}</a></p>
<p><a href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase control_panel}</a></p>
<p><a href="private.php{vb:raw session.sessionurl_q}">{vb:rawphrase inbox}</a></p>
<p><a href="login.php?{vb:raw session.sessionurl}do=logout&amp;logouthash={vb:raw bbuserinfo.logouthash}" onclick="return log_out('{vb:rawphrase sure_you_want_to_log_out}')">{vb:rawphrase log_out}</a></p>
                                </div>
                                </li>
                                <vb:else />
                                <li class="popupmenu nonotifications" id="nonotifications">
                                        <a class="popupctrl" href="usercp.php{vb:raw session.sessionurl_q}" style="color: #ffffff;">{vb:raw bbuserinfo.username}</a>
                                        <div class="popupbody popuphover">
<p><a href="{vb:link member, {vb:raw bbuserinfo}}">{vb:rawphrase your_profile}</a></p>
<p><a href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase control_panel}</a></p>
<p><a href="private.php{vb:raw session.sessionurl_q}">{vb:rawphrase inbox}</a></p>
<p><a href="login.php?{vb:raw session.sessionurl}do=logout&amp;logouthash={vb:raw bbuserinfo.logouthash}" onclick="return log_out('{vb:rawphrase sure_you_want_to_log_out}')">{vb:rawphrase log_out}</a></p>
                                        </div>
                                </li>
                                </vb:if>
                                <vb:if condition="$show['registerbutton']">
                                <li><a href="register.php{vb:raw session.sessionurl_q}" rel="nofollow" style="color: #fff;">{vb:rawphrase register}</a></li>
                                </vb:if>                               
                        </ul>

Now open navbar_notifications_menubit

Find This

Code:

<li><a href="{vb:raw notification.link}"><span>{vb:raw notification.total}</span> {vb:raw notification.phrase}</a></li>
Replace with This

Code:

<a href="{vb:raw notification.link}">Unread Messages (<strong>{vb:raw notification.total}</strong>)</a>
And thats it, you are done.

Look at the screenshot for example

http://img.solidsyn.net/box/userpanelv2.png

SteveLV702 12-21-2009 07:39 PM

how do I make it look like the very first one you posted at http://www.vbulletin.com/forum/showt...o-modification ?

ViciousCode 12-21-2009 07:47 PM

Quote:

Originally Posted by Digital Mayhem (Post 1934791)
how do I make it look like the very first one you posted at http://www.vbulletin.com/forum/showt...o-modification ?

im still trying to figure out how to make that one.

i will let you know as soon as i figure it out.

mabersoft 12-21-2009 09:06 PM

Quote:

Originally Posted by ViciousCode (Post 1934793)
im still trying to figure out how to make that one.

i will let you know as soon as i figure it out.


Well try a HTML Table? then add the varribuls? (i know what i mean :P)

ViciousCode 12-21-2009 10:45 PM

what about the rounded corners?

BSMedia 12-22-2009 03:19 AM

use the webkit and mozilla rounded corners.

I've already got a similar block all coded up actually. I just need the avatar in header modification.

pozo 12-22-2009 07:09 AM

Very nice, I'll test it! :)

VonDoom 12-22-2009 04:49 PM

Works Great and all i can think of that this really must have is the ability identify easier when there is a new notification. Currently you have to hoover over the block and click the drop down to see if you have new messages. It would be nice if it could display a mail icon (Or something) similar to what is done here on vB.org when you have a new notification. As an Administrator its important that we notice our messages ASAP. Other then that i really like this mod. Thanks.

milsirhc 12-22-2009 09:48 PM

Thanks for this! Looks great.

I agree, the design at: http://www.vbulletin.com/forum/showt...o-modification looks awesome.

I know there's an avatar picture add-on for the header that is out.

Anyone managed to integrate it to look like the first post?

BSMedia 12-22-2009 10:17 PM

1 Attachment(s)
Quote:

Originally Posted by milsirhc (Post 1935824)
Thanks for this! Looks great.

I agree, the design at: http://www.vbulletin.com/forum/showt...o-modification looks awesome.

I know there's an avatar picture add-on for the header that is out.

Anyone managed to integrate it to look like the first post?

This is what i've got so far for what its worth.

VonDoom 12-22-2009 10:20 PM

Looking good you guys. Kinda reminds me of the 3.x series login/notifications box with an updated clean look.

milsirhc 12-24-2009 08:31 AM

Quote:

Originally Posted by BSMedia (Post 1935848)
This is what i've got so far for what its worth.

That's look really good!

Will you be releasing this as a mod to us all?

Merry Christmas btw!

Alecsmith 12-24-2009 10:45 AM

look good

Charlie98902 12-24-2009 01:10 PM

This is something that may be an interest to me when the avatar ordeal is sorted.

ViciousCode 12-24-2009 06:26 PM

well my design has the avatar working :)

Charlie98902 12-24-2009 06:32 PM

So the resulting code includes the pic in post #10?

ViciousCode 12-25-2009 01:38 AM

yes it does, it will show your current avatar next to your name :)

im adding some finishing touches and will release it soon.

Charlie98902 12-25-2009 01:44 AM

Thanks as this might be one of the best mods yet.

ViciousCode 12-25-2009 02:21 AM

here is version 2:

https://vborg.vbsupport.ru/showthread.php?t=231122

puncol 05-10-2013 11:35 AM

Can anyone help me? I am a knew here and my adventure with vBulletin has jus began.

I have 4.2.1 and this Alternative Header User Info is not working for me :(

Do you know any other mods? I need to change my default login box... I want to put there an user avatar... make it more modern.
Thanks :)


All times are GMT. The time now is 06:19 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.02414 seconds
  • Memory Usage 1,776KB
  • 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
  • (4)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (20)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete