Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

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
  #12  
Old 03-18-2007, 03:29 AM
PoetJA-1975's Avatar
PoetJA-1975 PoetJA-1975 is offline
 
Join Date: Sep 2006
Location: Meh...
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tanyeri24 View Post
installed but doesn't work, no ads. Attachments are same...
Same here - installed on 3.6.5 with vBSEO using Opera 9.10
Shows no adsense ads = Help please!

Thanx,

Jacquii.
Reply With Quote
  #13  
Old 03-18-2007, 04:29 AM
kenfuzed kenfuzed is offline
 
Join Date: Dec 2006
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

anyone can provide a link to your site ? I can't debug this hack until then. You guys can check this out in my forum, it's working here: http://www.holvn.org/forum/showthrea...8805#post98805. This is an English box so you can even test it out by using this account: test/test.
Reply With Quote
  #15  
Old 03-18-2007, 07:50 AM
zlos zlos is offline
 
Join Date: May 2005
Location: PL
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Deathemperor - there is a bug, which I have corrected, but some other guys may overlook it. Your attachments are displayed through attachment.html file, while standard vB uses atachment.php.

Change the extension in the template
Reply With Quote
  #16  
Old 03-18-2007, 08:21 AM
deathemperor's Avatar
deathemperor deathemperor is offline
 
Join Date: Jul 2003
Location: HOL
Posts: 1,270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by zlos View Post
Deathemperor - there is a bug, which I have corrected, but some other guys may overlook it. Your attachments are displayed through attachment.html file, while standard vB uses atachment.php.

Change the extension in the template
Thanks for telling me. Fixed the xml.
Reply With Quote
  #17  
Old 03-18-2007, 12:15 PM
puertoblack2003's Avatar
puertoblack2003 puertoblack2003 is offline
 
Join Date: Aug 2005
Location: Philadelphia
Posts: 1,073
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by zlos View Post
Deathemperor - there is a bug, which I have corrected, but some other guys may overlook it. Your attachments are displayed through attachment.html file, while standard vB uses atachment.php.

Change the extension in the template

thanks for the heads up i think my issue maybe resolved after this post an made adjustment in template, i had the problem when my members upload an attachments you can see,so then i disabled it then it's viewable:up: ...how can you tell if it worked i don't see any difference
Reply With Quote
  #18  
Old 03-18-2007, 12:16 PM
Rich's Avatar
Rich Rich is offline
 
Join Date: Mar 2004
Location: U.S.A
Posts: 921
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If the google ad is displaying on a seperate page when an image is clicked, it can violate the TOS as that page has no content. Creating pages, like that, for the sake of adding adsense, can get you terminated.
Reply With Quote
  #19  
Old 03-18-2007, 12:31 PM
PoetJA-1975's Avatar
PoetJA-1975 PoetJA-1975 is offline
 
Join Date: Sep 2006
Location: Meh...
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

changed .html to .php in the xml file and made sure the image_adsense template corrected as well - still... no showing of adsense...

ALSO rebuilt attachment thumbnails in the admincp... Help!

Link to post with many attached pics: http://jpicforum.info/lots-humor/cats-painted-2508.html

Could it be a conflict with vBSEO and this modification?

Thanx,
Jacquii.
Reply With Quote
  #20  
Old 03-18-2007, 12:36 PM
deathemperor's Avatar
deathemperor deathemperor is offline
 
Join Date: Jul 2003
Location: HOL
Posts: 1,270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by PoetJA-1975 View Post
changed .html to .php in the xml file and made sure the image_adsense template corrected as well - still... no showing of adsense...

ALSO rebuilt attachment thumbnails in the admincp... Help!

Link to post with many attached pics: http://jpicforum.info/lots-humor/cats-painted-2508.html

Could it be a conflict with vBSEO and this modification?

Thanx,
Jacquii.
You are using vbSeo which changes the url of the attachment. I can't be sure if vbseo is making the hack useless on your board.
Reply With Quote
  #21  
Old 03-18-2007, 06:55 PM
tanyeri24 tanyeri24 is offline
 
Join Date: Feb 2005
Location: Switzerland
Posts: 229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by zlos View Post
Deathemperor - there is a bug, which I have corrected, but some other guys may overlook it. Your attachments are displayed through attachment.html file, while standard vB uses atachment.php.

Change the extension in the template
I saw this bug before too but no matter anyways no ads in att. I think the problem i in the .xml
Reply With Quote
Reply

Thread Tools

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 11:17 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.05396 seconds
  • Memory Usage 2,310KB
  • 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
  • (5)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
  • (3)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