vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Adsense Ads in avatars till user picks one (https://vborg.vbsupport.ru/showthread.php?t=132557)

tonym 11-26-2006 11:22 PM

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

dougeetx 11-26-2006 11:29 PM

I can tell you how to do it with the sigs.

tonym 11-26-2006 11:31 PM

so if they dont have a sig it will post an ads in there till they get 1?

Zia 01-23-2007 05:12 PM

Quote:

Originally Posted by dougeetx (Post 1125992)
I can tell you how to do it with the sigs.

why not ?

but it need html allowed?

lebanon 01-23-2007 07:08 PM

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>
so before the </if> exactly you should add this
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>

ofcourse replacing with ur own google code

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>

let me know if that worked :)

xlguy 01-23-2007 11:30 PM

You are only allowed a maximum of 3 adsense on 1 page.

Zia 01-26-2007 04:39 PM

hello Lebanon...:) every where..

w/o manual tempate editing..is there any way to do it?

Quote:

Originally Posted by xlguy (Post 1166091)
You are only allowed a maximum of 3 adsense on 1 page.

that means..if there 3+ user w/o avtar there will 3+ adsense will be shown....
is it againts tos?

lebanon 01-28-2007 03:27 PM

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 :)


All times are GMT. The time now is 06:18 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00967 seconds
  • Memory Usage 1,730KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete