Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Google Adsense (or any kind of ads) on attachment image Details »»
Google Adsense (or any kind of ads) on attachment image
Version: 1.0.1, by deathemperor deathemperor is offline
Developer Last Online: Jul 2011 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.x Rating:
Released: 03-16-2007 Last Update: 01-13-2008 Installs: 39
Uses Plugins Template Edits
 
No support by the author.

I coded this hack as a paid service request here
by zlos.

I'll go fast on this by using his request thread as a description for this hack.

Briefly it allows you to put Google adsense ( or any kind of ads) on image attachments. Currently supported gif, jpeg, jpg, bmp and psd.

To customize your ads, edit image_adsense template. Make sure to change the adsense code to yours or I'll steal the money from you clicks .

check attachment for Screenshot.

UPDATE:

- 03/20/2007: Correct a bug for PSD or JGP/GIF files. The ads will now be displayed with those files (upper case letters). Thanks zlos for this.

- Edit 17/04/2007:

I've corrected one error and I think it should be working now. Or you can try it here:

http://area51.holvn.org/attachment.p...1&d=1176805966

user:admin/password: admin. The product I used there is the same as at vb.org.

Hope it works now.

This hack is absolutely free (no f***king lite version whatsoever). however anykind of donation is welcome, my paypal is bloodynighcrawler [at] gmail [dot] com.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 03-24-2007, 12:39 AM
PoetJA-1975's Avatar
PoetJA-1975 PoetJA-1975 is offline
 
Join Date: Sep 2006
Location: Meh...
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #33  
Old 03-24-2007, 09:24 AM
zlos zlos is offline
 
Join Date: May 2005
Location: PL
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by PoetJA-1975 View Post
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
Reply With Quote
  #34  
Old 03-24-2007, 04:32 PM
fasteddie fasteddie is offline
 
Join Date: Jan 2004
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #35  
Old 03-26-2007, 02:05 PM
scottct1 scottct1 is offline
 
Join Date: Mar 2002
Location: Connecticut
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not working for me.

Great idea, just get it to work.
Reply With Quote
  #36  
Old 03-26-2007, 03:30 PM
RedTyger's Avatar
RedTyger RedTyger is offline
 
Join Date: Nov 2006
Location: UK
Posts: 1,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fasteddie View Post
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.
Reply With Quote
  #37  
Old 03-27-2007, 12:47 AM
deathemperor's Avatar
deathemperor deathemperor is offline
 
Join Date: Jul 2003
Location: HOL
Posts: 1,270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #38  
Old 03-27-2007, 01:05 AM
fasteddie fasteddie is offline
 
Join Date: Jan 2004
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RedTyger View Post
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...
Reply With Quote
  #39  
Old 03-27-2007, 03:19 AM
BigJimTheLug BigJimTheLug is offline
 
Join Date: Nov 2006
Posts: 354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kenfuzed View Post
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.
Reply With Quote
  #40  
Old 04-02-2007, 10:55 AM
HawKe HawKe is offline
 
Join Date: May 2004
Location: South Carolina, USA
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not working for me either... tried all the suggestions here. Great concept but needs more troubleshooting I suppose. Deinstalled.
Reply With Quote
  #41  
Old 04-05-2007, 10:28 PM
fasteddie fasteddie is offline
 
Join Date: Jan 2004
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:24 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05710 seconds
  • Memory Usage 2,312KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete