The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
how can the toplinks center my banner?
|
#2
|
|||
|
|||
That's what i am looking for too..
Bump any help |
#3
|
|||
|
|||
I'd like them below my mine.
|
#4
|
|||
|
|||
It would help if we can see how is it placed currently. Basically you need to cascade your divs properly. Something like the following code. Anyway show us the code if you want a readymade copy paste solution.
Code:
<div id="banner"> <div id="toplinks> </div> <img src="banner" /> </div> |
#5
|
|||
|
|||
HTML Code:
<center> <table id='container' cellpadding='0' cellspacing='0' style='table-layout:fixed';><tr> <td id='left'><img src='images/underground/style/spacer.gif' alt='' /></td> <td id='middle'> <div class="above_body"> <div id="header" class="floatcontainer doc_header"> {vb:raw ad_location.ad_header_logo} <div><a name="top" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}" class="logo-image"><img src="images/underground/style/logo.png" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></div> <div id="toplinks" class="toplinks"> <vb:if condition="$show['member']"> <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&logouthash={vb:raw bbuserinfo.logouthash}" onclick="return log_out('{vb:rawphrase sure_you_want_to_log_out}')">{vb:rawphrase log_out}</a></li> </ul> <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> </ul> <script type="text/javascript" src="clientscript/vbulletin_md5.js?v={vb:raw vboptions.simpleversion}"></script> <form 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 default-value" 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>" onfocus="if (this.value == '<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>'){this.value=''; this.style.color='black';}" onblur="if (this.value == '') {this.value='<vb:if condition="$username">{vb:raw username}<vb:else />{vb:rawphrase username}</vb:if>'; this.style.color='#828282';}"/> <input type="password" class="textbox default-value" name="vb_login_password" id="navbar_password" size="10" tabindex="102" onfocus="this.style.color='black';" /> <input type="submit" class="loginbutton" value="{vb:rawphrase log_in}" tabindex="104" 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" tabindex="103" id="cb_cookieuser_navbar" class="cb_cookieuser_navbar" accesskey="c" /> {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> </vb:if> </div> <div class="ad_global_header"> {vb:raw ad_location.global_header1} {vb:raw ad_location.global_header2} </div> <hr /> {vb:raw ad_location.ad_header_end} </div> Thanks |
#6
|
||||
|
||||
In your header template find:
Code:
<div id="toplinks" class="toplinks"> Code:
<div id="toplinks" class="toplinks"style="padding-right:300px;"> Bear in mind I only checked this in firefox. |
#7
|
|||
|
|||
Quote:
Edit: Uhm.... Now following probleme: When I click on the PopUp menu to look for PM's f.e. the toplinks moves again right. How to disable this? |
#8
|
||||
|
||||
Go to vbulletin chrome.css
find: Code:
.toplinks { position:absolute; {vb:stylevar right}:{vb:math {vb:stylevar padding}*2}; top:0; color:{vb:stylevar toplinks_link_color}; font: {vb:stylevar header_font}; text-align:{vb:stylevar right}; } Code:
.toplinks { position:absolute; {vb:stylevar right}:{vb:math {vb:stylevar padding}*2}; top:0; position:absolute; width:100% margin-right: auto; margin-left: auto; color:{vb:stylevar toplinks_link_color}; font: {vb:stylevar header_font}; text-align:{vb:stylevar right}; } |
#9
|
|||
|
|||
Quote:
That's in vbulletin-chrome.css: HTML Code:
.toplinks { position:absolute; {vb:stylevar right}:{vb:math {vb:stylevar padding}*2}; top:0; position:absolute; width:100% margin-right: auto; margin-left: auto; color:{vb:stylevar toplinks_link_color}; font: {vb:stylevar header_font}; text-align:{vb:stylevar right}; } .toplinks ul.isuser, .toplinks ul.nouser { float: {vb:stylevar right}; clear: {vb:stylevar left}; list-style: none; } .toplinks ul.isuser li { display:inline; margin-{vb:stylevar left}: {vb:stylevar padding}; position: relative; top: {vb:math {vb:stylevar padding}/2}; color: {vb:stylevar header_color}; } .toplinks ul.isuser li.logoutlink { top: 0; } .toplinks ul.isuser li a { padding-top: 3px; padding-bottom: 3px; padding-{vb:stylevar left}: 4px; padding-{vb:stylevar right}: 4px; font-weight:bold; color:{vb:stylevar toplinks_link_color}; } .toplinks ul.isuser li a:hover { padding-top: 3px; padding-bottom: 3px; padding-{vb:stylevar left}: 4px; padding-{vb:stylevar right}: 4px; background: {vb:stylevar navbar_tab_background.backgroundColor}; color:{vb:stylevar toplinks_linkhover_color}; } .toplinks ul.nouser li { display:inline; } .toplinks ul.nouser li a { float:{vb:stylevar left}; clear:{vb:stylevar right}; color:{vb:stylevar toplinks_link_color}; } .toplinks ul.nouser li a{ position: relative; padding: 6px {vb:stylevar padding} 0 {vb:stylevar padding}; background: {vb:stylevar navbar_tab_background.backgroundColor}; -moz-border-radius-bottom{vb:stylevar left}: {vb:stylevar border_radius}; -webkit-border-bottom-{vb:stylevar left}-radius: {vb:stylevar border_radius}; -moz-border-radius-bottom{vb:stylevar right}:{vb:stylevar border_radius}; -webkit-border-bottom-{vb:stylevar right}-radius:{vb:stylevar border_radius}; height:{vb:math 8px + {vb:math {vb:stylevar font.fontSize}-1}}; font-weight:bold; display: block; font-size:{vb:math {vb:stylevar font.fontSize}-1}px; } .toplinks ul.nouser li a{ margin-{vb:stylevar left}: {vb:math {vb:stylevar padding}/2}; } .toplinks ul.nouser li a:hover { background: {vb:stylevar navbar_tab_background.backgroundColor}; color:{vb:stylevar toplinks_linkhover_color}; } .toplinks ul.isuser li.popupmenu { color: {vb:stylevar navbar_selected_popup_body_a_Color}; } .toplinks ul.isuser li.popupmenu ul li { position: relative; top: 0; margin: {vb:stylevar padding} 0 0; text-align: {vb:stylevar left}; } .toplinks ul.isuser .notifications .popupbody { background: {vb:stylevar navbar_tab_background.backgroundColor}; border: 1px solid {vb:stylevar navbar_tab_background.backgroundColor}; /* makes it look consistent with the popup background */ } .toplinks ul.isuser .notifications .popupbody li a{ color: {vb:stylevar navbar_selected_popup_body_a_Color}; padding: 2px {vb:math {vb:stylevar padding}/2}; font-weight: normal; background:{vb:stylevar navbar_popup_link_background}; border-top:1px solid {vb:stylevar navbar_tab_background.backgroundColor}; /* makes it look consistent with the popup background */ position: relative; text-align: {vb:stylevar left}; padding-{vb:stylevar left}: 30px; } .toplinks ul.isuser .notifications .popupbody li a span { position: absolute; {vb:stylevar left}: {vb:math {vb:stylevar padding}/2}; } .toplinks ul.isuser .notifications .popupbody li a:hover { background:{vb:stylevar imodhilite_backgroundColor}; color: {vb:stylevar navbar_selected_popup_body_a_Color}; text-decoration: underline; } .toplinks form { text-align: {vb:stylevar left}; width:auto; float: {vb:stylevar right}; clear: {vb:stylevar left}; _display:block; _width:230px; } .toplinks .logindetails { padding: 0 {vb:stylevar padding}; background: {vb:stylevar navbar_tab_background.backgroundColor}; -moz-border-radius-bottom{vb:stylevar left}: {vb:stylevar border_radius}; -webkit-border-bottom-{vb:stylevar left}-radius: {vb:stylevar border_radius}; -moz-border-radius-bottom{vb:stylevar right}:{vb:stylevar border_radius}; -webkit-border-bottom-{vb:stylevar right}-radius:{vb:stylevar border_radius}; height: {vb:stylevar navbar_tab_size.height}px; } .toplinks form input { margin: 3px 0 0; vertical-align: baseline; font-size: {vb:math {vb:stylevar font.fontSize}-2}px; padding: 1px; border: 0; } .toplinks form input.default-value { color: {vb:stylevar toplinks_form_input}; } .toplinks .remember { margin: -{vb:math {vb:stylevar padding}/3} 0 0 {vb:math {vb:stylevar padding}*2}; font-size: {vb:math {vb:stylevar font.fontSize}-3}px; } .toplinks .remember input { vertical-align: baseline; } |
#10
|
||||
|
||||
oops.
o.k. try this: vbulletin-chrome.css change Code:
.toplinks { position:absolute; {vb:stylevar right}:{vb:math {vb:stylevar padding}*2}; top:0; color:{vb:stylevar toplinks_link_color}; font: {vb:stylevar header_font}; text-align:{vb:stylevar right}; } Code:
.toplinks { position:absolute; width:100%; top:0; color:{vb:stylevar toplinks_link_color}; font: {vb:stylevar header_font}; right:350px; } --------------- Added [DATE]1262768249[/DATE] at [TIME]1262768249[/TIME] --------------- I really need to learn how to make these mods instead of doing all this editing. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|