vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - Google Adsense (or any kind of ads) on attachment image (https://vborg.vbsupport.ru/showthread.php?t=142293)

PoetJA-1975 03-24-2007 12:39 AM

I sure as hell ain't got it to work either....
To bad - I was looking forward to this modification = kinda sucks - but oh well...

Jacquii.

zlos 03-24-2007 09:24 AM

Quote:

Originally Posted by PoetJA-1975 (Post 1210732)
I sure as hell ain't got it to work either....
To bad - I was looking forward to this modification = kinda sucks - but oh well...

Jacquii.

If you can't get it working, it means that the first if(...) instruction from plugin is false.

Go to Plugin edit and go through these conditions. There is definetely something, which is being hacked or changed compared to the original.

I have also changed this code a little to reflect my changes and it works.

BTW: adding &postid=$thread[postid] to link to the attachment would be an option for some of you, I think ;)

fasteddie 03-24-2007 04:32 PM

zlos: THANK YOU!

I had to add that &postid=$thread[postid] to get it working myself... just one little change to the image_adsense template (just pasted the snippet I changed)

Code:

<div><center><img src="$vboptions[bburl]/attachment.php?attachmentid=$attachmentid&ads=1&d=$time&postid=$thread[postid]" border="0" alt="" /></div></center>
It showed ads for a few minutes, but now it's not working... Very odd! :(

scottct1 03-26-2007 02:05 PM

Not working for me. :(

Great idea, just get it to work. :)

RedTyger 03-26-2007 03:30 PM

Quote:

Originally Posted by fasteddie (Post 1211183)
zlos: THANK YOU!

I had to add that &postid=$thread[postid] to get it working myself... just one little change to the image_adsense template (just pasted the snippet I changed)

Code:

<div><center><img src="$vboptions[bburl]/attachment.php?attachmentid=$attachmentid&ads=1&d=$time&postid=$thread[postid]" border="0" alt="" /></div></center>
It showed ads for a few minutes, but now it's not working... Very odd! :(

Are you using Adsense? That bases itself on text within the page, since there is none I'm sure it would simply fail unless it's using banners or something. Might fail even then, I'm not sure.

deathemperor 03-27-2007 12:47 AM

I really can't get an idea why it does not work because it is working on my board without any modifications to the template, except from installing the hack. I sincerely desire to know why it's not working for you really.

fasteddie 03-27-2007 01:05 AM

Quote:

Originally Posted by RedTyger (Post 1212787)
Are you using Adsense? That bases itself on text within the page, since there is none I'm sure it would simply fail unless it's using banners or something. Might fail even then, I'm not sure.


Yes, I am using Adsense. I also tried to put in just a static image on the attachments page (just to test out), but that didn't work either... :(

BigJimTheLug 03-27-2007 03:19 AM

Quote:

Originally Posted by kenfuzed (Post 1206073)
Just curious if anyone has run this by Google to see if it's in line with their TOS.
I'd want to make sure my Adsense account is not in danger of cancelation before installing.

it is your responsibility to make sure it is within Google's TOS.

Send them a screen shot and explain it to them.

So far, this appears to be withing the TOS because you are not making the ads look like a post, you are simply adding them as attachments to the post.

In a sense, you add Google adsense as attachments every where else, but if you need clarification or peace of mind, contact Google.


Good luck.

HawKe 04-02-2007 10:55 AM

Not working for me either... tried all the suggestions here. Great concept but needs more troubleshooting I suppose. Deinstalled.

fasteddie 04-05-2007 10:28 PM

Any ideas on why this doesn't work for so many??? It's just the hack I've been waiting for!


All times are GMT. The time now is 10:52 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.01192 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
  • (2)bbcode_code_printable
  • (4)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