![]() |
Adsense Banners in Your Archive
I've updated this script to remove the quote problem many users were having. It is tested on vbulletin 3.6 and can be seen at http://eaforums.com/forums/archive/index.php/
Essentially, this product allows you to have adsense (or other) banners in your forum archives. To install: Import the product. Edit the plugin code to substitute your adsense code. To upgrade: Uninstall the old product. Import and edit the new product to use your code. Note: There is no need to upgrade if you are not having problems or you don't need to put in new banner code. This just makes the initial edit easer. |
first post :)
thanx amykhar |
jepp, thx, works fine :laugh:
|
Thanks Amy, your always releasing good stuff.
just a quick question coz im not using google ads so i cant compare the code to that, do i just keep Code:
$output.=' then code in the middle then Code:
</td> and pretty much the same for the other one? it seems to be working fine, just wanted to make sure I have not left any important code out that may make it not function correctly on some browsers. Thanks. |
Yep. as long as you get the $output.=' and the ending '; you are fine.
|
Neat.
/installed |
Thanks :)
|
Nice work as always Amy. Well done :)
|
Nice and easy :)
|
The one for 3.5 was working fine on my 3.6 forums,i updated and its not working now.
will you please post the older file. |
Nooooob....sorry here.... :cross-eyed:
I imported the product. When I go to the Plugins & Products >> Manage Products >> Edit Archive Adsense.... I don't see where I'm to add my adsense code....? Please understand that I am a noob here with these plugins and products... |
You go in the plugin manager and edit the two plugins.
|
Quote:
I then select edit for this plugin....but I don't understand where I am to edit in my adsense data....? Under Add New Install/Uninstall Code >> Install Code?? Sorry, but I'm really lost..... Also, you say I'm to edit the two plugins....there is only one plugin in your download here and that's what I have installed. Yea like I said.....I'm really lost here. Sorry.... |
There is one product containing TWO plugins. Do not go to the product manager. Go to the plugin manager. look for two plugins with the word adsense in them. Click edit. You will see the code there. Take out the existing adsense code and put in the new code you wish to use.
|
Ah yup, definitely a newb here.... :hurt:
K, I went in and edted both codes and they look as such: Product: "Archive Adsense" Hook Location: "archive_complete" Title: "Archive Bottom" Execution Order: "5" Plugin PHP Code: $output.=' <div align="center" style="padding:4px; overflow: hidden;\"> <script type="text/javascript"><!-- google_ad_client = "pub-1087880827049389"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text_image"; google_ad_channel =""; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </div> </td><td width="15%" valign="top"> <script type="text/javascript"><!-- google_ad_client = "pub-1087880827049389"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text_image"; google_ad_channel =""; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </td> </tr> </table> '; Plugin Is Active: "Yes" I cannot get my adsense script to run with the above. Thanks Amy |
I see the banners on your site, but your html adjustments are a wee bit out of whack.
|
Quote:
http://www.f-bodyhideout.com/forums I don't see adsense running at all.... |
Yep. That's the one. It's got two banners about rss at the top and the content is scrunched over to the side in firefox.
|
Interesting....IE doesn't show any banners.
Do you know why this is? |
Excellent thanks :)
|
This is really good Amy, I've used the "text only" option though, instead of images/text (am I allowed to use 3 text only banners)?
Very good hack and only after 5 minutes I see I have a hit already. Quick question though. On my main forum I use conditionals with my adsence banners code to exclude 3 forums ID's from displaying the adsence banner in Showthread and Forumdisplay templates. It there anyway to do the same with this hack. I use this code: Code:
<if condition="!in_array($forumid, array(19,78,114))"> |
thanks! :)
working great << install |
Thanks alot! Installed.
|
thanks, worked well.
|
thanks amy
installed* |
In the Plugin Manager for archive, I only archive for header and bottom.
Where is the right column? For the default setting of this plugin, it is located top, bottom, and right. And how can you locate the ad from right to the left column? Thank you in advance. |
Columns are done by wrapping tables around the main content. So, depending on how you want your page to look, you have the right or left column in the header or footer. Left columns are done in the header. Right columns are done in the footer.
|
is there a way to put the adsense code between the threads or under the forums titles?
thanks |
Yes, but not with this mod.
|
Quote:
where can I find it? |
If you mean in the archive threads, I don't know if one's been written. If you mean in the forum threads, there are several template mods.
|
Installed , Thank you
|
great thanks :)
5 stars for you |
Should I see something immediately? I mean, I get nothing. This is what I have in both. Is this right? Is there any advantage to having them on the top and bottom at the same time?
$output.=' <div align="center" style="padding:4px; overflow: hidden;\"> <script type="text/javascript"><!-- google_ad_client = "pub-3725641775541024"; google_alternate_color = "FFFFFF"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text_image"; //2006-11-07: http://tga.dynu.com/archive google_ad_channel = "6003384529"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </td> </tr> </table> '; |
Really Good Thank You But 160*600 adsense code is on the right side, can we change it to left side ?
http://www.baktabul.com/archive/index.php |
sloppy, you won't always see something immediately. Sometimes, a google ad won't be appropriate for a given page. Browse around a bit and see if they don't show up.
|
I see it now. I realized that my hosts file was blocking all google adsense ads. Hahaha!!! :D Thanks.
|
thanks
|
thank you :)
|
Here's an odd one:
To solve a problem with Chinese ads showing for some reason, Adsense support told me to add "google_language = 'en';" (no quotes) to my Adsense script. But if I add it anywhere in the script, it breaks this mod and I get errors instead of ads in my archives. |
All times are GMT. The time now is 05:32 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|