vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Put Adsense Banners in Your Archive (https://vborg.vbsupport.ru/showthread.php?t=100299)

87accordlxi 09-05-2006 05:46 PM

Quote:

Originally Posted by friendly
I folowed this post and everything's fine now. Thanks!

I did that, and now nothing shows up at all :confused:

*edit* nevermind, I figured it out

John Diver 09-07-2006 08:51 PM

I'm having a problem with the placement on mine - www.DeuceAce.com/archive/

Anyone know what could be wrong? I know it was working beffore so not sure what happened, its meant to be one on top, one on the side and one on the bottom.


Thanks

amykhar 09-07-2006 09:03 PM

Put the code from your two plugins in a text file, then zip them and post it. I'll see what you might have gone awry in your modifcations.

John Diver 09-09-2006 02:45 PM

Hey,

Just attached the files.

Really appreciate the help :)

Caveman2k2 09-11-2006 01:32 AM

That's exactly what mine's doing. Looking at the page source, it looks like it's sticking the ads above the head portion.

John Diver 09-11-2006 10:16 PM

Did you work it out Caveman?

Anyone else know?

Thanks again :)

Caveman2k2 09-15-2006 01:31 AM

No, I never did. Still hoping Amy will give a hand.

John Diver 09-17-2006 09:17 PM

Hey Amy,

Do you have any idea whats up?

Thanks again
John

puregraf 09-19-2006 12:32 AM

hi i went to import product and i got this error can you help?



### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO plugin
(`active`, `executionorder`, `title`, `hookname`, `phpcode`, `product`)
VALUES
('1', '5', 'Archive Bottom', 'archive_complete', '$output.=\'\r\n<div align=\"center\" style=\"padding:4px; overflow: hidden;\\\">\r\n<script type=\"text/javascript\"><!--\r\ngoogle_ad_client = \"pub-7556473518368210\";\r\ngoogle_ad_width = 728;\r\ngoogle_ad_height = 90;\r\ngoogle_ad_format = \"728x90_as\";\r\ngoogle_ad_type = \"text_image\";\r\ngoogle_ad_channel =\"\";\r\n//--></script>\r\n<script type=\"text/javascript\"\r\n src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">\r\n</script>\r\n</div>\r\n</td><td width=\"15%\" valign=\"top\">\r\n<script type=\"text/javascript\"><!--\r\ngoogle_ad_client = \"pub-7556473518368210\";\r\ngoogle_ad_width = 120;\r\ngoogle_ad_height = 600;\r\ngoogle_ad_format = \"120x600_as\";\r\ngoogle_ad_type = \"text_image\";\r\ngoogle_ad_channel =\"\";\r\n//--></script>\r\n<script type=\"text/javascript\"\r\n src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">\r\n</script>\r\n</td>\r\n</tr>\r\n</table>\r\n\r\n\';', 'amykhar_11072005');

MySQL Error : Unknown column 'executionorder' in 'field list'
Error Number : 1054
Date : Monday, September 18th 2006 @ 06:30:35 PM
Script : http://www.puregraffiti.com/graffiti...ncp/plugin.php
Referrer : http://www.puregraffiti.com/graffiti...?do=productadd
IP Address : *****
Username : puregraffiti
Classname : vb_database

John Diver 09-19-2006 07:33 PM

Hey,

Is this still supported?

Seen you on most days but no replies.

Thanks again
John

kenji4861 09-20-2006 08:10 AM

Just wanted to say I'm getting the same error. I'm running 3.5.4

Quote:

Originally Posted by puregraf
hi i went to import product and i got this error can you help?



### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO plugin
(`active`, `executionorder`, `title`, `hookname`, `phpcode`, `product`)
VALUES
('1', '5', 'Archive Bottom', 'archive_complete', '$output.=\'\r\n<div align=\"center\" style=\"padding:4px; overflow: hidden;\\\">\r\n<script type=\"text/javascript\"><!--\r\ngoogle_ad_client = \"pub-7556473518368210\";\r\ngoogle_ad_width = 728;\r\ngoogle_ad_height = 90;\r\ngoogle_ad_format = \"728x90_as\";\r\ngoogle_ad_type = \"text_image\";\r\ngoogle_ad_channel =\"\";\r\n//--></script>\r\n<script type=\"text/javascript\"\r\n src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">\r\n</script>\r\n</div>\r\n</td><td width=\"15%\" valign=\"top\">\r\n<script type=\"text/javascript\"><!--\r\ngoogle_ad_client = \"pub-7556473518368210\";\r\ngoogle_ad_width = 120;\r\ngoogle_ad_height = 600;\r\ngoogle_ad_format = \"120x600_as\";\r\ngoogle_ad_type = \"text_image\";\r\ngoogle_ad_channel =\"\";\r\n//--></script>\r\n<script type=\"text/javascript\"\r\n src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">\r\n</script>\r\n</td>\r\n</tr>\r\n</table>\r\n\r\n\';', 'amykhar_11072005');

MySQL Error : Unknown column 'executionorder' in 'field list'
Error Number : 1054
Date : Monday, September 18th 2006 @ 06:30:35 PM
Script : http://www.puregraffiti.com/graffiti...ncp/plugin.php
Referrer : http://www.puregraffiti.com/graffiti...?do=productadd
IP Address : *****
Username : puregraffiti
Classname : vb_database


kenji4861 09-20-2006 08:15 AM

Ok, I got it fixed. At least for Version 3.5.4, use the file I attached.

http://www.spoofee.com/forums/archive

Thanks Amy!

Quote:

Originally Posted by puregraf
hi i went to import product and i got this error can you help?



### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO plugin
(`active`, `executionorder`, `title`, `hookname`, `phpcode`, `product`)
VALUES
('1', '5', 'Archive Bottom', 'archive_complete', '$output.=\'\r\n<div align=\"center\" style=\"padding:4px; overflow: hidden;\\\">\r\n<script type=\"text/javascript\"><!--\r\ngoogle_ad_client = \"pub-7556473518368210\";\r\ngoogle_ad_width = 728;\r\ngoogle_ad_height = 90;\r\ngoogle_ad_format = \"728x90_as\";\r\ngoogle_ad_type = \"text_image\";\r\ngoogle_ad_channel =\"\";\r\n//--></script>\r\n<script type=\"text/javascript\"\r\n src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">\r\n</script>\r\n</div>\r\n</td><td width=\"15%\" valign=\"top\">\r\n<script type=\"text/javascript\"><!--\r\ngoogle_ad_client = \"pub-7556473518368210\";\r\ngoogle_ad_width = 120;\r\ngoogle_ad_height = 600;\r\ngoogle_ad_format = \"120x600_as\";\r\ngoogle_ad_type = \"text_image\";\r\ngoogle_ad_channel =\"\";\r\n//--></script>\r\n<script type=\"text/javascript\"\r\n src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">\r\n</script>\r\n</td>\r\n</tr>\r\n</table>\r\n\r\n\';', 'amykhar_11072005');

MySQL Error : Unknown column 'executionorder' in 'field list'
Error Number : 1054
Date : Monday, September 18th 2006 @ 06:30:35 PM
Script : http://www.puregraffiti.com/graffiti...ncp/plugin.php
Referrer : http://www.puregraffiti.com/graffiti...?do=productadd
IP Address : *****
Username : puregraffiti
Classname : vb_database


puregraf 09-27-2006 09:25 PM

thank you!!!!

MRGTB 01-16-2007 08:42 PM

How can you add a conditional to this hack so the adsence banners will only be shown to certain usergroups you choose:

IE: Usergroups 1,3,4

Can this be done, or does it not recognize conditionals because it's in the archive pages.

amykhar 01-16-2007 08:49 PM

You can check for usergroup memberships, but not with template conditional syntax.

MRGTB 01-16-2007 08:53 PM

So does that mean you could not use this for example to show the banners to just 3 usergroups then.

Code:

<if condition="is_member_of($bbuserinfo, 1, 3, 4)">
As I'm not sure what you meant in your last post. If that would work, I'm not sure were I would add the code though exactly in the XML file.

amykhar 01-16-2007 09:01 PM

In the plugin, you could use
Code:

if(is_member_of($vbulletin->userinfo,1,3,4)){
}

around any instance of the ad banners. I don't bother with it because my members don't use the archives.

MRGTB 01-16-2007 09:15 PM

yea I know what you mean about members not using the archives, I thoguht about that also. But I think I would still rather exclude the banners from them anyway just in-case. As you never know.

So that code you posted above, would I just wrap that around the adsence code only.

Would it then look like this:

Code:

if(is_member_of($vbulletin->userinfo,1,3,4)){
}

Adsence code
</if>


Greek76 03-21-2007 08:43 AM

Mine only shows in the footer it wont show anywhere else. Any ideas? thanks

BigJimTheLug 03-26-2007 03:15 AM

This is a great modification. Thanks.

Please be sure to remove the author's Google Adsense code and place your Google Adsense code on this modification.

If you are unsure how to do this, download this modification and open it with notepad.

Then look for her codes and replace them with yours.

Thank you.

DeeperImage 06-19-2007 03:28 AM

Great hack Amy. Thanks for sharing. Only thing I noticed, and I could be doing this wrong is that the ads only display on the index archive page. Once I click on a section or topic, no ads.

Dave Hawley 06-19-2007 08:02 AM

<a href="https://vborg.vbsupport.ru/showpost.php?p=815268&postcount=9" target="_blank">See Here</a>

PugWD 10-14-2007 12:29 PM

Amy. I'm trying to browse your archives to see this in use but whenever I click on an actual thread, it takes me to the interactive version. :confused:

This would be a wild guess but from looking at the redirected url, it's adding keywords to the end... perhaps you have a mod which does this, which is causing it?

To give you an example; if I click on the link
http://www.eaforums.com/forums/archive/index.php/t-2769.html,
it takes you to
http://www.eaforums.com/forums/computers-science-technology/2769-i-stole-name-forum.html

I guess it's going to hurt your earnings, so I thought I ought to bring it to your attention. :)

g00gl3r 10-16-2007 04:42 PM

How do you edit the adsense code?

g00gl3r 10-16-2007 04:46 PM

ignore me lol

nascimbeni 10-18-2007 07:18 PM

It worked great and - by the way - I just added my google analytics script right after the adsense and all is working perfectly after a set up of only a few minutes.

Paolo

oldengine 11-01-2007 04:13 PM

I just want to add my thanks to amykhar on this hack. I read through all the posts on this long thread to sort out what was what. In the end, simply uninstall the previous version and reinstall the current download from post #1 and it works great!

momo2 11-04-2007 01:23 PM

very nice and useful, maybe few more $ per month, thanks

Pebbled 11-24-2007 11:14 AM

Superb Amy if you don't mind me saying :)

A reminder to any users to REMEMBER to edit the xml file to show your google publisher details before you import the product, I opened the xml file using notepad - changes shown below:
  • Change the google_ad_client = "pub-YOUR PUBLISHER ID NUMBER HERE";
  • Change the google_ad_channel =""; to google_ad_channel ="YOUR AD CHANNEL HERE";

Easiest way to find these details is to view the source code where any Google ads are showing on your forum and simply copy and paste the details - Remember you need a channel for this to work, though it can be the same one that you are already using on the site though I guess you won't know exactly how much money the archive pages are generating because they will be lumped in with the rest of the ads on the forum.

To any folks out there wondering how to install this xml file:

Go to AdminCP > Manage Products and click on [Add/Import Product] then browse for the XML file and press the Import button.

If I can do it then anyone can do it ;)

For info I'm running 3.6.8 PL2

joshbond 11-24-2007 11:45 PM

ok, I just installed it and made sure to replace my pub id but when I go to the archive page no ads show up.
If I check the source of the archive page it shows google ad source code. just no ads are showing up.
Any ideas on this?

thanks.

joshbond 11-25-2007 12:21 AM

Quote:

Originally Posted by joshbond (Post 1388898)
ok, I just installed it and made sure to replace my pub id but when I go to the archive page no ads show up.
If I check the source of the archive page it shows google ad source code. just no ads are showing up.
Any ideas on this?

thanks.

nevermind. I guess it just takes a few minutes for google to find the ads and start displaying them. it seems to be working fine now.
Thank you very much for this plug-in.


So do you recomend showing the archives to visitors or having them linked directly to the actual thread?

BuRaCh 11-25-2007 05:47 PM

this hack would working 3.6.8?

amykhar 12-05-2007 12:44 PM

Quote:

Originally Posted by BuRaCh (Post 1389255)
this hack would working 3.6.8?

Yes. It does.

Bulent Tekcan 03-11-2008 08:41 AM

How can I filter some forumID ?

Thanks

Freesteyelz 03-13-2008 02:12 AM

Seems to be working with 3.7 Betas. Thanks, Amy. :)

Cyn 03-26-2008 03:40 PM

This works great Amy, thanks! Is it at all possible to get the ads to display within the archive box rather than above it, beside it and below it? I would prefer a 300x250 ad format and it be placed within the box of the archive. Thanks!

sorry01 04-13-2008 02:22 PM

tanks a lots works 3.6.5

Nadeemjp 10-15-2008 04:47 AM

Quote:

Originally Posted by amykhar (Post 828213)
Glow, you probably messed up when you made your edits to use your own ad code. Reinstall it and try it without edits first. If it works then, CAREFULLY edit the code to use your ad banners.

hello amy, i am new in here i mean in the world of coding and forums. i dont know how to edit codes. i have learnt how to import a product, but i do not know how to edit and where to edit ..... i would want my adsense to appear just below navbar in the center, every page. and in the bottom, just below every statistics in page center..............just like GM diesel showed his page in your article.

can you please help me to figure out how to edit the product?

thank you


All times are GMT. The time now is 04:55 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.01473 seconds
  • Memory Usage 1,830KB
  • 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
  • (3)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (38)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