![]() |
Google Adsense (or any kind of ads) on attachment image
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 :p . 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. |
BANG!
First - ordered, installed and thankfull for this mod. Results after 24h in operations: - Google Analytics registered +25% of page impressions :) - Google Adsense paid 10% extra to my account :D Have fun! :) |
Installed. tks
|
installed but doesn't work, no ads. Attachments are same...
|
Deathemperor - please check if this product does influence browsing of inline small graphical attachments within the thread. Please see enclosure :)
These attachmenst are small gif files (emoticons). |
Hats off to you!! Thanks so much for spending your time to do this..... If I do end up installing and using this I will donate for sure...
I cannot wait to take a look and see how this was done... Thanks again.. Rich |
awesome, i've wanted this for a while!
|
Quote:
|
i found one problem one of my members when they upload an attachment the attachment is not viewable till i disabled hack..
|
Quote:
|
Quote:
Shows no adsense ads = Help please! Thanx, Jacquii. |
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. |
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.
|
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 ;) |
Quote:
|
Quote:
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 :eek: |
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.
|
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. |
Quote:
|
Quote:
|
Quote:
I am still in progress of building a content page displaying images instead of staying with simple - maybe TOS-violating - page. Quote:
- delete the product completely (inluding the plugin) - install it once more I don't know about dependencies with SEO or portal systems, since I am not using those. |
Many images, when clicked, will open the original file in a new window. If THAT page is displaying these ads, you are in violation of googles TOS.
Adding relevant content for google ads to be displayed on a page where the only thing displayed is the original file size is pretty difficult to do. (Not to mention a massive waste of time.) Those who use this feature, if it is iondeed how it works, need to realize that if caught, your account WILL be terminated. |
Quote:
Standard behaviour of vB is that images which are of the same size are not clickable. Anyhow - I will write to Google to clarify this from their point of view. |
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.
|
Still waiting for answer from Google :)
Here you can see this hack in action. Click and see the page source. |
This is clearly a violation of Google Adsense TOS.
But, it can be use for other ad networks, great idea ;) |
Quote:
Although I don't want my account to be cancelled and thus replaced GA ads with another network, which has responded positively. p.s. Still waiting for answer from Google guys... |
Isn't working for me either on 3.6.5 attachments are in filesystem.
The attachments appear just fine, but no advertisements. |
Anyone get this to work other then the creator?
|
Quote:
|
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. |
Quote:
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 ;) |
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> |
Not working for me. :(
Great idea, just get it to work. :) |
Quote:
|
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.
|
Quote:
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... :( |
Quote:
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. |
Not working for me either... tried all the suggestions here. Great concept but needs more troubleshooting I suppose. Deinstalled.
|
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 07:37 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|