The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Wrap Javascript advertisement around text in first post
Hi,
Im having trouble getting my adbrite javascript code to wrap correctly, anyone able to help? Thanks Code:
<!-- message --> <!--Intergrated advertisement first post guest--> <if condition="$show['guest'] AND $post[postcount] == 1"> <div style="float:right"> adbrite code </div> </if> <!--Intergrated advertisement first post guest--> <div id="post_message_$post[postid]"> $ad_location[ad_showthread_firstpost_start] $post[message] </div> <!-- / message --> |
#2
|
||||
|
||||
bumperty bump.
|
#3
|
||||
|
||||
Seeing the postbit changes doesn't help since it is the adbright ad that is screwing up. You need to post the code for that also. And, you may try floating the message left since you are floating the ad right.
|
#4
|
||||
|
||||
Thanks for the reply, here is the code.
Code:
<script type="text/javascript"> var AdBrite_Title_Color = '716648'; var AdBrite_Text_Color = '535353'; var AdBrite_Background_Color = 'FFFFFF'; var AdBrite_Border_Color = 'FFFFFF'; var AdBrite_URL_Color = '247fa7'; try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==''?document.location:document.referrer;AdBrite_Referrer=encodeURIComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe='';var AdBrite_Referrer='';} </script> <script type="text/javascript">document.write(String.fromCharCode(60,83,67,82,73,80,84));document.write(' src="http://ads.adbrite.com/mb/text_group.php?sid=1343006&zs=3330305f323530&ifr='+AdBrite_Iframe+'&ref='+AdBrite_Referrer+'" type="text/javascript">');document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62));</script> <div style="text-align: center;"><a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=1343006&afsid=1" style="font-weight:bold;font-family:Arial;font-size:13px;">Your Ad Here</a></div> |
#5
|
||||
|
||||
And you can see in there that they have a div align center. You probably need to modify the javascript to position it correctly.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|