The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
How and where do I place this code-
HTML Code:
<SCRIPT charset="utf-8" type="text/javascript" src="http://ws.amazon.co.uk/widgets/q?rt=tf_sw&ServiceVersion=20070822&MarketPlace=GB&ID=V20070822/GB/midlaherit-21/8002/d03520b8-633a-4e27-b9ac-93cb2ff12515"> </SCRIPT> <NOSCRIPT><A HREF="http://ws.amazon.co.uk/widgets/q?rt=tf_sw&ServiceVersion=20070822&MarketPlace=GB&ID=V20070822%2FGB%2Fmidlaherit-21%2F8002%2Fd03520b8-633a-4e27-b9ac-93cb2ff12515&Operation=NoScript">Amazon.co.uk Widgets</A></NOSCRIPT> |
#2
|
||||
|
||||
![]()
You should put it in the appropriate ad location template and surrond the code with this conditional:
Code:
<if conditon="$show[guest]"> original code </if> |
#3
|
||||
|
||||
![]()
I tried all the ad locations for first post but they either showed it above the context of the post or outside it so I'm still head scratching at the moment..
|
#4
|
||||
|
||||
![]()
You can put it directly in the postbit template if you want and use this condition:
Code:
<if conditon="$show[guest] AND $post[isfirstshown]"> original code </if> |
#5
|
||||
|
||||
![]() Quote:
I'm not 100% sure whereabouts in there to put it so that shows the same as the adsense would look.. |
#6
|
||||
|
||||
![]()
I'm not sure how adsense looks, I mean, it looks like whatever it does depending on the ad location template used usually and it depends on what size/shape ad you choose when making your ad.
Places I would try would be immediately before or after $post[message] in the postbit(_legacy) template... probably right after that is best. Do you have a screen shot of an example of what you want it to look like? |
#7
|
||||
|
||||
![]()
I want to achieve something like the attached and the ad is more or less the same sort of size as mine I think.... the only difference here is that I'm running 3.8.5 and the example is 4. something or other..
|
#8
|
||||
|
||||
![]()
That's probably using some <div> or <table> tags to align the ad to the right. On that page use your browser to view the HTML source and you'll see the HTML around the ad... Just copy it and put it around your ad code.
To me it looks like a <table> but I'm not sure, it could definitely be done with a table... In your postbit_legacy find: Code:
$post[message] Code:
<if conditon="$show[guest] AND $post[isfirstshown]"> <table border="0" width="100%"> <tr> <td VALIGN="top"> $post[message] </td> <td VALIGN="top" width="200"> Ad Code Here </td> </tr> </table> <else /> $post[message] </if> |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|