The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
Quote:
Quote:
Remember this is simple a discussion on how to move the login box, we certainly don't want to open up a can of worms about how vB should and should not be besides my list is bigger LOL so you two work on this, take your time and I guarantee you will get it! Edit: I took a few minutes to run through this and you can easily move it to the navbar the only snag will be the css meaning you'll have to do some adjustments to make it look right after moving it just a heads up . *The only thing that will botch this all to hello and back is as Greg noted in one of his previous posts in regards to a style... if the user is on a smaller screen they will see the text all scrunched up and it will look awkward. You could easily for now modify the .toplinks css definition (Search in templates) and where it says top: 0; simply change that to top: 40px; or something along those lines to easily move the header up and down. |
#12
|
|||
|
|||
Ok Superman, i managed to move the entire fields below navbar with Lynne's help, so here is that code that displays the fields after a user logs in..
Code:
.toplinks {top: 355px; right: 51px; z-index: 10;} width:"40%"; color:{vb:stylevar toplinks_link_color}; font: {vb:stylevar header_font}; text-align:{vb:stylevar right}; Welcone, Antidepresiv Notifications, My profile Settings Logout and i would like it to be, Welcome, Antidepresiv. You last visited: Yesterday at 06:55 PM Private Messages: Unread 0, Total 0. Is this possible, with this piece of code above, or do i have to change smtin else.. Cmon Clark, i know you can save the day Best Regards, Antidepresiv |
#13
|
||||
|
||||
Quote:
So long story short... you could more than likely remove the <ul wrapper from the toplinks just be sure the toplinks class is still defined, place them on their own lines using <br />'s and call it a day, it should still be in the position Lynne helped you with although you may want to adjust top value more or less . |
#14
|
|||
|
|||
Okay ? this is definitely a good discussion, and is heading in a positive direction. I tried using Antidepresiv's toplinks code in additional.css, but with tweaks for my forum:
Code:
.toplinks {top: 225px; right: 185px; z-index: 10;} width:"40%"; color:{vb:stylevar toplinks_link_color}; font: {vb:stylevar header_font}; text-align:{vb:stylevar right}; and after the user logs in ? and So I don't know that this particular solution is robust enough for me to move forward with, unfortunately. It appears that the best solution would be for someone to implement the "cut out of header, paste into navbar with a plugin to register the variables for the toplinks and login to work in the navbar" solution ? and to post it all here. [I assume that could also solve the issue of the "Remember Me?" box ? shown in my first screenshot above by also moving that box to the right of the "login" button.] I understand what TheLastSuperman said, "I felt the same way (frustrated) until I kept on and worked through it... well previous vB3 experience had me up to par but that's the besides the point, the actual point is you need to learn it this way you can have free reign over your site and how to develop it" and I fully understand that ? but at the risk of being politically incorrect, I will quote the former CEO of BP, Tony Hayward, who said, "I want my life back" ? ;o) This migration from 3.8.6 is sucking the life out of me (not to mention my vacation days). No ? I don?t want any cheese to go with my wine/whine. ha ha It is all good. It would appear that if I really want to do this migration anytime soon ? I'll need to pursue my Option 2 (discussed several posts above): ************** 2) Cosmetically change the foreground/background colors of the user log on section - so that it is really obvious ... and just keep that located in the upper right-hand side of the browser. This is undesirable because it just doesn't look right - violates the "look and feel" of my overall website (the forum is just one part of my overall website). ************** This should have the additional benefit of making future vB upgrades easier (as there would be less tweaks to have to potentially deal with). I shall ponder the above ? any other comments? |
#15
|
||||
|
||||
Quote:
If you don't have it by later tonight my time I'll post it, that does not mean however to not try and go off to do something else... that's what I'm about to do . --------------- Added [DATE]1293085847[/DATE] at [TIME]1293085847[/TIME] --------------- Basics - How to relocate Login to Navbar Edit your header template, cut this code (or similar depending on version): Code:
<div id="toplinks" class="toplinks"> <vb:if condition="$show['member']"> <ul class="isuser"> <li><a href="login.php?{vb:raw session.sessionurl}do=logout&logouthash={vb:raw bbuserinfo.logouthash}" onclick="return log_out('{vb:rawphrase sure_you_want_to_log_out}')">{vb:rawphrase log_out}</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="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase control_panel}</a></li> <li><a href="{vb:link member, {vb:raw bbuserinfo}}">{vb:rawphrase your_profile}</a></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> <ul class="popupbody popuphover"> <li>{vb:rawphrase no_new_messages}</li> <li><a href="private.php{vb:raw session.sessionurl_q}">{vb:rawphrase inbox}</a></li> </ul> </li> </vb:if> <li class="welcomelink">{vb:rawphrase welcome_x_link_y, {vb:raw bbuserinfo.username}, {vb:link member, {vb:raw bbuserinfo}}}</li> <vb:if condition="$vboptions['enablefacebookconnect']"> {vb:raw facebook_header} </vb:if> </ul> {vb:raw template_hook.header_userinfo} <vb:comment><p>{vb:rawphrase last_visited_x_at_y, {vb:raw pmbox.lastvisitdate}, {vb:raw pmbox.lastvisittime}}</p></vb:comment> <vb:else /> <ul class="nouser"> <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 rel="help" href="faq.php{vb:raw session.sessionurl_q}">{vb:rawphrase help}</a></li> <li> <script type="text/javascript" src="clientscript/vbulletin_md5.js?v={vb:raw vboptions.simpleversion}"></script> <form id="navbar_loginform" action="login.php?{vb:raw session.sessionurl}do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, {vb:raw show.nopasswordempty})"> <fieldset id="logindetails" class="logindetails"> <div> <div> <input type="text" class="textbox" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>" /> <input type="text" class="textbox default-value" tabindex="102" name="vb_login_password_hint" id="navbar_password_hint" size="10" value="{vb:rawphrase password}" style="display:none;" /> <input type="password" class="textbox" tabindex="102" name="vb_login_password" id="navbar_password" size="10" /> <input type="submit" class="loginbutton" tabindex="104" value="{vb:rawphrase log_in}" title="{vb:rawphrase enter_username_to_login_or_register}" accesskey="s" /> </div> </div> </fieldset> <div id="remember" class="remember"> <label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" id="cb_cookieuser_navbar" class="cb_cookieuser_navbar" accesskey="c" tabindex="103" /> {vb:rawphrase remember_me}</label> </div> <input type="hidden" name="s" value="{vb:raw session.sessionhash}" /> <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" /> <input type="hidden" name="do" value="login" /> <input type="hidden" name="vb_login_md5password" /> <input type="hidden" name="vb_login_md5password_utf" /> </form> <script type="text/javascript"> YAHOO.util.Dom.setStyle('navbar_password_hint', "display", "inline"); YAHOO.util.Dom.setStyle('navbar_password', "display", "none"); YAHOO.util.Dom.setStyle('navbar_username', "color", "#828282"); vB_XHTML_Ready.subscribe(function() { // YAHOO.util.Event.on('navbar_username', "focus", navbar_username_focus); YAHOO.util.Event.on('navbar_username', "blur", navbar_username_blur); YAHOO.util.Event.on('navbar_password_hint', "focus", navbar_password_hint); YAHOO.util.Event.on('navbar_password', "blur", navbar_password); }); function navbar_username_focus(e) { // var textbox = YAHOO.util.Event.getTarget(e); if (textbox.value == '<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>') { // textbox.value=''; textbox.style.color='black'; } } function navbar_username_blur(e) { // var textbox = YAHOO.util.Event.getTarget(e); if (textbox.value == '') { // textbox.value='<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>'; textbox.style.color='#828282'; } } function navbar_password_hint(e) { // var textbox = YAHOO.util.Event.getTarget(e); YAHOO.util.Dom.setStyle('navbar_password_hint', "display", "none"); YAHOO.util.Dom.setStyle('navbar_password', "display", "inline"); YAHOO.util.Dom.get('navbar_password').focus(); } function navbar_password(e) { // var textbox = YAHOO.util.Event.getTarget(e); if (textbox.value == '') { YAHOO.util.Dom.setStyle('navbar_password_hint', "display", "inline"); YAHOO.util.Dom.setStyle('navbar_password', "display", "none"); } } </script> </li> <vb:if condition="$vboptions['enablefacebookconnect']"> {vb:raw facebook_header} </vb:if> </ul> </vb:if> </div> Quote:
Code:
</vb:if> {vb:raw template_hook.navtab_end} </ul> Code:
<div id="toplinks" class="toplinks"> <vb:if condition="$show['member']"> <ul class="isuser"> <li><a href="login.php?{vb:raw session.sessionurl}do=logout&logouthash={vb:raw bbuserinfo.logouthash}" onclick="return log_out('{vb:rawphrase sure_you_want_to_log_out}')">{vb:rawphrase log_out}</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="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase control_panel}</a></li> <li><a href="{vb:link member, {vb:raw bbuserinfo}}">{vb:rawphrase your_profile}</a></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> <ul class="popupbody popuphover"> <li>{vb:rawphrase no_new_messages}</li> <li><a href="private.php{vb:raw session.sessionurl_q}">{vb:rawphrase inbox}</a></li> </ul> </li> </vb:if> <li class="welcomelink">{vb:rawphrase welcome_x_link_y, {vb:raw bbuserinfo.username}, {vb:link member, {vb:raw bbuserinfo}}}</li> <vb:if condition="$vboptions['enablefacebookconnect']"> {vb:raw facebook_header} </vb:if> </ul> {vb:raw template_hook.header_userinfo} <vb:comment><p>{vb:rawphrase last_visited_x_at_y, {vb:raw pmbox.lastvisitdate}, {vb:raw pmbox.lastvisittime}}</p></vb:comment> <vb:else /> <ul class="nouser"> <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 rel="help" href="faq.php{vb:raw session.sessionurl_q}">{vb:rawphrase help}</a></li> <li> <script type="text/javascript" src="clientscript/vbulletin_md5.js?v={vb:raw vboptions.simpleversion}"></script> <form id="navbar_loginform" action="login.php?{vb:raw session.sessionurl}do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, {vb:raw show.nopasswordempty})"> <fieldset id="logindetails" class="logindetails"> <div> <div> <input type="text" class="textbox" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>" /> <input type="text" class="textbox default-value" tabindex="102" name="vb_login_password_hint" id="navbar_password_hint" size="10" value="{vb:rawphrase password}" style="display:none;" /> <input type="password" class="textbox" tabindex="102" name="vb_login_password" id="navbar_password" size="10" /> <input type="submit" class="loginbutton" tabindex="104" value="{vb:rawphrase log_in}" title="{vb:rawphrase enter_username_to_login_or_register}" accesskey="s" /> </div> </div> </fieldset> <div id="remember" class="remember"> <label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" id="cb_cookieuser_navbar" class="cb_cookieuser_navbar" accesskey="c" tabindex="103" /> {vb:rawphrase remember_me}</label> </div> <input type="hidden" name="s" value="{vb:raw session.sessionhash}" /> <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" /> <input type="hidden" name="do" value="login" /> <input type="hidden" name="vb_login_md5password" /> <input type="hidden" name="vb_login_md5password_utf" /> </form> <script type="text/javascript"> YAHOO.util.Dom.setStyle('navbar_password_hint', "display", "inline"); YAHOO.util.Dom.setStyle('navbar_password', "display", "none"); YAHOO.util.Dom.setStyle('navbar_username', "color", "#828282"); vB_XHTML_Ready.subscribe(function() { // YAHOO.util.Event.on('navbar_username', "focus", navbar_username_focus); YAHOO.util.Event.on('navbar_username', "blur", navbar_username_blur); YAHOO.util.Event.on('navbar_password_hint', "focus", navbar_password_hint); YAHOO.util.Event.on('navbar_password', "blur", navbar_password); }); function navbar_username_focus(e) { // var textbox = YAHOO.util.Event.getTarget(e); if (textbox.value == '<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>') { // textbox.value=''; textbox.style.color='black'; } } function navbar_username_blur(e) { // var textbox = YAHOO.util.Event.getTarget(e); if (textbox.value == '') { // textbox.value='<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>'; textbox.style.color='#828282'; } } function navbar_password_hint(e) { // var textbox = YAHOO.util.Event.getTarget(e); YAHOO.util.Dom.setStyle('navbar_password_hint', "display", "none"); YAHOO.util.Dom.setStyle('navbar_password', "display", "inline"); YAHOO.util.Dom.get('navbar_password').focus(); } function navbar_password(e) { // var textbox = YAHOO.util.Event.getTarget(e); if (textbox.value == '') { YAHOO.util.Dom.setStyle('navbar_password_hint', "display", "inline"); YAHOO.util.Dom.setStyle('navbar_password', "display", "none"); } } </script> </li> <vb:if condition="$vboptions['enablefacebookconnect']"> {vb:raw facebook_header} </vb:if> </ul> </vb:if> </div> AdminCP > Plugins & Products > Add new plugin Product = vBulletin Hook Location = process_templates_complete Title = Login relocated to Navbar Execution order = 5 Plugin PHP Code: PHP Code:
Now view your site, it should be there however this was a "Basic How 2 Guide" now you'll notice right off the bat it's to the right a bit too much and depending on your screen resolution and/or max width on your site it could flow under the search so you must adjust CSS and more to make it look right for your site and Lynne supplied one of you plus it's posted above some tricks to adjust the toplinks css . |
#16
|
|||
|
|||
Wow - thank you so much for doing this, TheLastSuperman!!!
I have made the changes, and been playing around with the CSS for toplinks ? specifically margin-left and margin-right. Margin-right (for me) being set at 185px does the trick. As far as margin-left goes, if I leave it in ? then when the window narrows, it causes the login/welcome user section to fall below (and bleed over into the New Posts/Private Messages/FAQ/etc. part of the navbar ? which is bad). If instead I remove the margin-left altogether, there is still some overlapping of text ? but it is more tolerable IMO. Either way ? there is a tragic flaw though ? which I'm not sure there is a solution to. Here is what I have now that is most tolerable. First here is the toplink section in additional.css ... Code:
. . . .toplinks {margin-right: 185px; z-index: 10;} width:"40%"; color:{vb:stylevar toplinks_link_color}; font: {vb:stylevar header_font}; text-align:{vb:stylevar right}; This looks GREAT ... However, the flaw I cannot seem to get around happens when the browser is narrowed ... and AFTER Login, here is what I see (first the good) ... and then the flaw when the browser is narrowed ... Again, I know I can use "margin-left" to control how far left it goes ... but then when the browser narrows, it hops down and covers up the links right below it. So there is a flaw either way. Unless there is something (or some CSS property) that I'm not considering ... any ideas? |
#17
|
||||
|
||||
Quote:
The only way to bypass this would be to make the style a fixed width... OR remove that What's new and place in in the sub-menu so that removes one more tab then it should just fit barely! As for the remember me well remove it from it's div and place at the end of the global search then it's inline... I do remember the entire search area being in a "wrapper" per say with a certain width so you may need to use firebug to track down the exact css you will need to change if you have major issues come back and post. That's the only thing that usually "bites" you in regards to style and that's screen resolution and the size you want your site... most prefer a fluid i.e. stretchable style and some others prefer a fixed width, I myself love a fixed width as it's easier to style in regards to css and more . |
#18
|
|||
|
|||
Greg my suggestion for all this would be folowing.
For the fields, before a user logs in use the hack from this thread https://vborg.vbsupport.ru/showthread.php?t=238152 , just read up the whole post, otherwise it wont work, make sure you read page 7 and post #95!!! And for the "after login" problem i would suggest that you get rid of My Profile and Settings, they are useless anyway, when you click on you'r name you go on your profile, and you can tweek settings from navbar links, i think "My profile" and "Settings" was only added for visual immprovement of login fields.. And SuperDude, thank you for you'r help with the <ul> Best Regards, AntiDepresiv |
#19
|
|||
|
|||
Hi All
I have followed the advice here and ended up with something very close There are just a couple of things I cannot get my head around The way of moving the header menu options to the navbar sub menu, as you can see I have a working notifications tab there but if I do the same with the other options they appear between the arcade & quick links tabs for some reason, I am using sections such as Code:
{vb:raw template_hook.navbar_after_community} The way of moving the advanced search link to the left of the search box The way of moving the last login notification to the navbar e.g after navbar tabs the following is displayed on the navbar Code:
hello username <P> {vb:rawphrase last_visited_x_at_y, {vb:raw pmbox.lastvisitdate}, {vb:raw pmbox.lastvisittime}} <P> Regards Jim |
#20
|
|||
|
|||
bump... this thread helped out.. and is amazing.
I ended up removing the information for advanced search (ive never once used advance search my entire life) as well as moved the search box to where the advance search box was. Moved this code: PHP Code:
PHP Code:
removed this Advanced search: PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|