vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Miscellaneous Hacks - Google Adsense Banners (or others) in Your Archive (https://vborg.vbsupport.ru/showthread.php?t=166209)

amykhar 04-11-2008 12:05 PM

Why would it break the TOS? It simply puts ad banners on archive content pages. Or am I missing some use of it?

FlyBoy73 04-11-2008 05:26 PM

Quote:

Originally Posted by GrAveTzT (Post 1488115)
You just go to "Manage products" then hit the drop down tab where it says "edit" for the "Archive Adsense" Product. It will say "uninstall".



I realize that there is no support for this but I might as well ask anyway.

Can anyone confirm that this does not break the TOS of Google Adsense?

It does not break any Adsense TOS.

crkgb 04-11-2008 09:52 PM

Quote:

Originally Posted by GrAveTzT (Post 1488115)
You just go to "Manage products" then hit the drop down tab where it says "edit" for the "Archive Adsense" Product. It will say "uninstall".

lol thank you so much stupid me could not find the name of the mod

GrAveTzT 04-12-2008 05:10 AM

I guess it shouldn't break the TOS.

Its just google demands you to have content on the site and I figured that the archive list may not be enough.

almannai 04-20-2008 11:16 AM

thanks, nice hack:)

fukdawrld 04-21-2008 03:05 AM

i cant seem to get it to show anywhere please help

amykhar 04-21-2008 01:42 PM

To the above poster (sorry, refuse to type that name :D) I can't check your installation because your homepage isn't linked. However, when you first start using adsense banners on new pages, it often takes some time for the banners to show up. This is because it takes google a bit of time to serve the ads to the page. If they are still not there after a day, pm me the link to your archive and I'll see what I can see.

Phornixx 05-03-2008 08:20 PM

I dont seem to get this working, I dont use Adsense, I use AdutAdWorld ads, my code is as follows:

Header

Code:

$output.='
<div align="center">

<!-- begin Ad World Media for channel: Amateur , publisher: XXX http://XXXXXXX.com , Ad Dimension: Super Banner - 728 x 90 -->
<script language="javascript">
document.write('<iframe src="http://newt1.adultadworld.com/jsc/z5/ff2.html?n=607;c=2437;s=6320;d=14;w=728;h=90;p=6320" frameborder=0 marginheight=0 marginwidth=0 scrolling="no" allowTransparency="true" width=728 height=90></iframe>');
</script>
<!-- end Ad World Media for channel: Amateur , publisher: XXX http://XXXXXXXX.com , Ad Dimension: Super Banner - 728 x 90 -->

</div>
</td>
</tr>
</table>
';

The error in the archive page is this:

Code:

Parse error: syntax error, unexpected T_STRING in /usr/www/XXXX/www.XXXXXX.com/archive/index.php(254) : eval()'d code on line 6
And the same for the footer code, any help?


Thanks in advance...

Julie 05-04-2008 11:31 AM

Thanks :)

Edit: I'm having some problems with some conditionals. The ads show up alright, but the user groups I've specified, shouldn't see the ads. Here's part of my conditional code:

Code:

<if condition="is_member_of($bbuserinfo, 21, 26, 6, 1)"><p>No ads</p><else /><div align="center">
<p>Ads code</p>
</div>
</if>

But what it is doing, is (if using the code above) print out both "No ads" and "Ads code". What do I have to write in the plugin to get it to NOT display ads for members of user groups X, Y, Z, but show the ads for members of user groups A, B, C?

I also tried writing a PHP conditional
Code:

if (condition) {
}
else {
}

But that didn't work either :/

Thanks in advance :)

veenuisthebest 05-04-2008 12:42 PM

I believe your conditional is wrong..

Use this instead

Code:

<if condition="is_member_of($vbulletin->userinfo, 21, 26, 6, 1)"><p>No ads</p><else /><div align="center">
<p>Ads code</p>
</div>
</if>



All times are GMT. The time now is 11:27 PM.

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.01056 seconds
  • Memory Usage 1,740KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete