The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Adsense Ads in avatars till user picks one
Is there a way to put an ad in avatars that arnt in use....
say im a user of the forum....i didnt choose to have a avatar then a ad would be displayed in the box ...untill the users picks a avatar thanks |
#2
|
|||
|
|||
I can tell you how to do it with the sigs.
|
#3
|
||||
|
||||
so if they dont have a sig it will post an ads in there till they get 1?
|
#4
|
||||
|
||||
why not ?
but it need html allowed? |
#5
|
|||
|
|||
i suppose editing the postbit template should do what ur asking for.
from my template Code:
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if> Code:
<td class="alt2"><script type="text/javascript"><!-- google_ad_client = "pub-0984414105651333"; google_ad_width = 125; google_ad_height = 125; google_ad_format = "125x125_as"; google_ad_type = "text_image"; google_ad_channel = ""; google_color_border = "F5F7F9"; google_color_bg = "F5F7F9"; google_color_link = "000000"; google_color_text = "000000"; google_color_url = "0049AA"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></td> so the whole thing looks like : Code:
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td><else /> <td class="alt2"><script type="text/javascript"><!-- google_ad_client = "pub-0984414105651333"; google_ad_width = 125; google_ad_height = 125; google_ad_format = "125x125_as"; google_ad_type = "text_image"; google_ad_channel = ""; google_color_border = "F5F7F9"; google_color_bg = "F5F7F9"; google_color_link = "000000"; google_color_text = "000000"; google_color_url = "0049AA"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></td></if> |
#6
|
||||
|
||||
You are only allowed a maximum of 3 adsense on 1 page.
|
#7
|
||||
|
||||
hello Lebanon... every where..
w/o manual tempate editing..is there any way to do it? that means..if there 3+ user w/o avtar there will 3+ adsense will be shown.... is it againts tos? |
#8
|
|||
|
|||
hey zia
Well i dont think it can be done without template edit. But i guess xlguy is right too, its against the tos, and after all i havent tried it, i just supposed the if/else situation in the template |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|