The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to padding right?
How do I get to play this banner ad to the right side?
I'm trying to maintain a fixed proportion of the right side for the banner, because at lower resolutions it goes beyond the skin. How do I get it? CURRENT: http://www.himagens.com.br/?v=1hhh.bmp PREVIOUS http://www.himagens.com.br/?v=2oio.bmp CODE HEADER: Code:
<div class="above_body"> <!-- closing tag is in template navbar --> <div id="header" class="floatcontainer doc_header"> {vb:raw ad_location.ad_header_logo} <table border="0"> <tr> <td> <div style="padding-top: 11px;"><a name="top" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}" class="logo-image"><img src="/adrena_logo.png" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></div> </td> <td> <table border="0"> <tr><td> <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> <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 class="welcomelink">{vb:rawphrase welcome_x_link_y, {vb:raw bbuserinfo.username}, {vb:link member, {vb:raw bbuserinfo}}}(<a href="search.php?{vb:raw session.sessionurl}do=finduser&userid={vb:raw bbuserinfo.userid}&contenttype=vBForum_Post&showposts=1">{vb:raw bbuserinfo.posts} posts</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> <li> <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> <style type="text/css"> .toplinks form img { position:relative; top: 3px; } </style> <img src="http://www.himagens.com.br/images/username.png" alt="Usu?rio" /> <input id="navbar_username" class="bginput" type="text" onblur="if (this.value == '') this.value = 'Username';" onfocus="if (this.value == 'Username') this.value = '';" value="Username" tabindex="101" accesskey="u" size="10" name="vb_login_username" style="font-size: 11px;"/> <img src="http://www.himagens.com.br/images/password.png" alt="Senha" /> <input id="navbar_password" class="bginput" type="password" onblur="if (this.value == '') this.value = '';" onfocus="if (this.value == '') this.value = '';" value="" tabindex="102" accesskey="u" size="10" name="vb_login_password" style="font-size: 11px;/> <label for="cb_cookieuser_navbar"> <input id="cb_cookieuser_navbar" type="checkbox" accesskey="c" tabindex="103" value="1" name="cookieuser" checked="checked"/> </label> <input type="submit" class="loginbutton" value="Login" tabindex="104" title="{vb:rawphrase enter_username_to_login_or_register}" accesskey="s" /> </div> </div> </fieldset> <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> </td></tr> <tr> <td style="padding-top: 25px; margin-right: 50px;"> <!-- PUBLICIDADE SUPER BANNER --> <div align="right"> <SCRIPT LANGUAGE="JavaScript"><!-- OAS_AD('Top2');//--> </SCRIPT> <!-- PUBLICIDADE SUPER BANNER --> </td> </tr> </table> </td> </tr> </table> <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> |
#2
|
||||
|
||||
I don''t have much free time to have a deep look at the code but to make it appear at the right try to add the style atribute with the float: right. i.e.
HTML Code:
<div style="float:right;"> <!-- the ad code here --> </div> |
#3
|
|||
|
|||
Thanks borbole...
Not functionally. |
#4
|
|||
|
|||
Borbole.. Help-me.. please
|
#5
|
||||
|
||||
I don''t have much free time to have a deep look as I am extremly busy. But the code I posted above should align it to the right. Or create a class at the additional.css with the float right and then wrapp your ad code in it at the template.
It would also help if you posted the code of the advertisement. Anyway, that is all I can help you with right now. Sorry that I can''t be of more help. Hopefully someone else with more free time on their hands will help you further. P.s. Have a look at this topic. And try my solution there. It seems similiar to what you want. https://vborg.vbsupport.ru/showthread.php?t=243203 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|