Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-15-2009, 08:17 AM
sisterhood's Avatar
sisterhood sisterhood is offline
 
Join Date: Nov 2008
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default how can the toplinks center my banner?

how can the toplinks center over my banner?

Attachment 107570
Reply With Quote
  #2  
Old 12-29-2009, 09:19 PM
notrious notrious is offline
 
Join Date: Mar 2007
Location: New York
Posts: 373
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's what i am looking for too..

Bump any help
Reply With Quote
  #3  
Old 12-29-2009, 10:16 PM
Front Range 4x4 Front Range 4x4 is offline
 
Join Date: Jan 2009
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'd like them below my mine.
Reply With Quote
  #4  
Old 12-31-2009, 08:49 AM
Easific Easific is offline
 
Join Date: Sep 2009
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #5  
Old 01-06-2010, 01:09 AM
pizzaservice pizzaservice is offline
 
Join Date: Aug 2009
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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&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>
			<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>
I have this header-template... What I have to do? I have the same problem with the toplinkt. It's over the style-sidebar.

Thanks
Reply With Quote
  #6  
Old 01-06-2010, 01:26 AM
mandingo's Avatar
mandingo mandingo is offline
 
Join Date: Jun 2008
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In your header template find:
Code:
<div id="toplinks" class="toplinks">
Add what's in red
Code:
<div id="toplinks" class="toplinks"style="padding-right:300px;">
Change the number to suit your needs.
Bear in mind I only checked this in firefox.
Reply With Quote
  #7  
Old 01-06-2010, 01:41 AM
pizzaservice pizzaservice is offline
 
Join Date: Aug 2009
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mandingo View Post
In your header template find:
Code:
<div id="toplinks" class="toplinks">
Add what's in red
Code:
<div id="toplinks" class="toplinks"style="padding-right:300px;">
Change the number to suit your needs.
Bear in mind I only checked this in firefox.
Thanks, you're best ;-)

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?
Reply With Quote
  #8  
Old 01-06-2010, 03:04 AM
mandingo's Avatar
mandingo mandingo is offline
 
Join Date: Jun 2008
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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};
}
change to:
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};
}
That should do it.
Reply With Quote
  #9  
Old 01-06-2010, 04:35 AM
pizzaservice pizzaservice is offline
 
Join Date: Aug 2009
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mandingo View Post
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};
}
change to:
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};
}
That should do it.
Hmmm. Just tried, that's not working... When i'm crossing some buttons with the mouse, it moves 50px right.


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;
}
Reply With Quote
  #10  
Old 01-06-2010, 06:44 AM
mandingo's Avatar
mandingo mandingo is offline
 
Join Date: Jun 2008
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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};
}
to:
Code:
.toplinks {
        position:absolute;
	width:100%;
	top:0;
	color:{vb:stylevar toplinks_link_color};
	font: {vb:stylevar header_font};
	right:350px;
}
changing the 350 to your needs.

--------------- Added [DATE]1262768249[/DATE] at [TIME]1262768249[/TIME] ---------------

I really need to learn how to make these mods instead of doing all this editing.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:37 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04162 seconds
  • Memory Usage 2,312KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (11)bbcode_code
  • (2)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete