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.


All times are GMT. The time now is 09:00 AM.

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.01201 seconds
  • Memory Usage 1,754KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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