PDA

View Full Version : Put Adsense Banners in Your Archive


amykhar
11-06-2005, 10:00 PM
UPDATE: THIS PRODUCT NOW ONLY WORKS WITH VERSIONS 3.5.4 AND 3.6 AND UP. I WILL NOT RE-RELEASE THE OLDER VERSION.


This product is a simple one that will get you started in adding Google adsense banners to the top and bottom of your archive pages:

Demo here: http://www.eaforums.com/forums/archive/index.php/

To install: Import the product. Change the two plugins to use the adsense code for your site (instead of mine - unless you are feeling generous) and to arrange its positioning as desired.

To upgrade: Uninstall the old product. Install the new one.

Amy

NuclioN
11-07-2005, 01:14 PM
Nice one, clicked install ;)

Goatpod
11-07-2005, 02:16 PM
Thanks Amykhar, easy to install and works perfect :)

Snake
11-07-2005, 03:17 PM
Nice one Amy! :)

WNxWakko
11-07-2005, 04:32 PM
Thank you. Works perfectly.

michaelbenson
11-07-2005, 07:07 PM
Nice one, will this work with vB SEO which rewrites the archive directory and links?

jdingman
11-07-2005, 09:46 PM
Nice one, clicked install ;)

Quick and easy, EXACTLY what I was looking for. THANKS!

MentaL
11-07-2005, 09:55 PM
i did this but i just modified the search template

Gryphon
11-07-2005, 11:05 PM
Nice Amy, beats having to modify the file each update :D

Here is a small modification to it, allows you to show a PDA sized ads when in PDA mode.

makaveli420
11-07-2005, 11:16 PM
thank you very much

installed...

Damian
11-07-2005, 11:25 PM
Great plugin, thanks alot amykhar.

amykhar
11-07-2005, 11:51 PM
You're welcome all. I've been using it for a while and it never dawned on me to release it cause it seemed so simple.

yinyang
11-08-2005, 12:00 AM
nicely done! thanks for releasing it!

bada_bing
11-08-2005, 03:24 AM
Amy I am new to this can you please post instructions on how I can add your xml file and where I add it.

Thank You

butty
11-08-2005, 03:32 AM
thanks for that works great :)

Gryphon
11-08-2005, 05:31 AM
Amy I am new to this can you please post instructions on how I can add your xml file and where I add it.

Thank You

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

NxTek
11-08-2005, 02:58 PM
Can this be changed so instead of Adsense there can be HTML/PHP code?

D|ver
11-09-2005, 11:57 AM
really great addon :)

bada_bing
11-09-2005, 01:09 PM
Will this work on 3.0.7?

D|ver
11-09-2005, 01:44 PM
this is a plugin, so i guess it won't work on 3.0.x
but i edited index.php in the archive dir manually to include the google ads
i wasn't too difficult ;)

Moncal
11-11-2005, 01:35 AM
Thanks a lot.

*clicks install*

Koopa
11-13-2005, 02:16 PM
thanks for that works great :)

Nice, thank you :)

GamerJunk.net
11-15-2005, 06:09 AM
Thanks, how do I view a thread as an archive to test this out if I just opened my forum a month ago?

cyberbeggar
11-15-2005, 06:55 AM
Any chance someone could help me put this on two of my forums? I am not sure how to!
Cheers

Mastar
11-15-2005, 01:52 PM
It doesn't show anything on mine. Any suggestions?

irishblacknight
11-16-2005, 06:14 PM
Nice and simple :)

Gryphon
11-16-2005, 07:02 PM
Thanks, how do I view a thread as an archive to test this out if I just opened my forum a month ago?
At the bottom of your forum find the 'Archive' link.

Qwest
11-22-2005, 05:16 PM
I used my yahoo ads but.. whatever :) *installed*

amykhar
11-22-2005, 05:34 PM
Ads are ads :) I used adsense because more people seem to search for that term.

GlowHost.com
11-22-2005, 08:19 PM
Anyone else get a vBulletin Message

XML Error: xml declaration not at start of external entity at Line 1

with vb 3.5.1?

amykhar
11-23-2005, 12:31 AM
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.

jdebler
11-23-2005, 03:03 AM
First of all, I love this plugin. Thank you for making it.

OK, how did you get the skyscraper on the right?!

Cant figure that one out.

Same here! Please fill us in.

Thanks again!

amykhar
11-23-2005, 12:43 PM
It's HTML tables. Here's the product with tables. It also has Search included.

GlowHost.com
11-23-2005, 05:22 PM
Nice one, works this time, my text editor was adding some dashes on the first few lines of the XML for some reason.

Thanks again ;)

joeychgo
11-26-2005, 12:31 AM
Another great job Amy -

Ive listed the hack at vBulletin Webmaster (http://www.vbwebmaster.com/forums/showthread.php?t=1549) - This is a good hack as it makes monitizing the forum archive easy to do.

As a note, your not limited to only adsense ads folks. You can use this hacvk to place anything in the header or footer of your archive. For example, your website banner or other banner ads. However, I dont recommend adding a whole bunch of graphics. The idea is to have a lean, mean copy of your forum for Google, Yahoo and other search engines to crawl easily.

FlyBoy73
11-26-2005, 09:02 PM
Excellent job, Amy... I've been running adsense in my archives for over a year and a half now but I like how you have them laid out.
Thanks!

friendly
11-27-2005, 02:27 AM
First plugin I ever installed by myself!
amykhar = brilliant!

*clicked install

GrBear
11-28-2005, 12:45 AM
Great mod - thank you!

Just one oddity.. while I get the adsense banner at the top, I don't get one at the bottom (just a blank space the size of what the banner would take). Very strange behaviour.

*clicks installed*

ConqSoft
11-28-2005, 12:56 AM
It does that if it doesn't have any additional relavent ads to display.

The Chief
11-30-2005, 02:17 PM
very nice product!

*clicks install

RWDF1
12-05-2005, 10:07 PM
Just installed it at http://www.motorsport-network.com/forums/archive/index.php

Looks good. thanks.

Lissa
12-07-2005, 10:16 PM
PERFECT! Thank you SO much.

Tefra
12-11-2005, 12:57 PM
thanks cool plugin

Michael_Goldma
12-11-2005, 02:45 PM
Just installed the plugin on my forum, seems to be working fine, thanks ;)

ferreo
12-14-2005, 10:35 PM
installed, thank you!

egyptsons
12-15-2005, 09:01 AM
I do some thing else ;)
I creat a new phrase "googleads" then I edite the "archive/index.php" like this

echo $vbphrase[googleads];

Then I edite the "googleads" phrase to any thing I want.

cgchris99
12-15-2005, 01:06 PM
Anyone know if I can use this on v3.0.x ?

Thanks

good2laugh
12-15-2005, 08:05 PM
hi, stupid here. Do I just edit archive header and archive bottom? or is there something else I have to edit.

I edited both with my google code and get a header on the top but not the bottom - but its cool, just want to make sure I've edited the right things.

Thanks :)

ConqSoft
12-15-2005, 08:33 PM
hi, stupid here. Do I just edit archive header and archive bottom? or is there something else I have to edit.

I edited both with my google code and get a header on the top but not the bottom - but its cool, just want to make sure I've edited the right things.

Thanks :)

If there are no ads available for your content, the footer may be blank. Try browsing around your archive and see if it ever shows.

Smiry Kin's
12-17-2005, 05:34 PM
very nice thank you

Smiry Kin's
12-17-2005, 11:42 PM
Thanks Amy

kpr
12-25-2005, 08:54 AM
Nice amykhar thanks for another great hack

cgchris99
12-29-2005, 12:23 AM
I recently installed this adsense plugin for the archive and it works great. However, I noticed the newer xml install in later posts of this thread that includes the google search and has a column on the right for additional adense ads.

My impressions have gone up but my eCPM has gone down. It's too early to say for sure but I am thinking 3 ads on the archive page may be too many. It is causing the eCPM to drop quite a bit. My earnings have been lower for the last 3 days. I'll leave it for a couple more days before I re-install the first version.

Any thoughts on this?

cinemablend
12-29-2005, 02:31 PM
So question...

In the archive, how are you getting google to index past the first page of threads?

Google is only indexing the 250 threads on page one of each forum, it's not indexing anything past that for me.

I guess I can set the thread count per page so high that they're all on one page, but I notice that on a lot of other people's pages the threads on deeper pages ARE getting indexed.

What's your secret?

Doozilla
12-30-2005, 02:51 AM
Sorry, I feel like a dunce for asking, but where/how do I change/control what shows up where the ads are?

Thank you :)

attroll
12-30-2005, 04:02 AM
Sorry, I feel like a dunce for asking, but where/how do I change/control what shows up where the ads are?

Thank you :)

I don't know what you are asking here. You have not control of what adds are going to be display on the page. The adds are picked but google. Google reads the content of your page and finds adds from that fit that content of your page.

Doozilla
12-30-2005, 05:35 AM
I don't know what you are asking here. You have not control of what adds are going to be display on the page. The adds are picked but google. Google reads the content of your page and finds adds from that fit that content of your page.

No, no. I figured it out now, but what I didn't understand before is that I had to go into the plugin manager to control the ad content. that was my question.

I do have a new question now though, I installed the revised edition that is suppoed to assist in the skyscraper on the right hand side, but I don't see any option to put one in. Can someone please explain a brief detail how to add the skyscraper to the right hand column?

Much appreciated, thank you.

AusFootball
01-02-2006, 06:45 PM
Very nice mod thank you :)

Code Monkey
01-04-2006, 06:06 AM
Great mod - thank you!

Just one oddity.. while I get the adsense banner at the top, I don't get one at the bottom (just a blank space the size of what the banner would take). Very strange behaviour.

*clicks installed*

Each banner should have a different channel asigned to it or it won't serve more than one add set to the same page. But even then you may get blanks if it can't find anything to serve.

Jon12345
01-24-2006, 11:23 AM
I have tried this script and it has entries for top and bottom. But what about the side? Incidentely, when I use the bottom entry, it goes to the side anyway!

John Diver
01-24-2006, 11:52 AM
Look at the second page for an update with the side bar.

My stats show a lot of traffic going to my archive but I have VERY low impressions in my adsense.
Does anyone else get this?

Guest210212002
01-24-2006, 04:40 PM
/me clicks install

mccollin
01-27-2006, 06:07 PM
Question on the hack... works great by the way. What is the value of adding the search box to the archive? Isn't that giving vistors a way off your page without going to your site, or one of your ads? I don't see the benefit of doing that.

amykhar
01-27-2006, 06:24 PM
The search box also pays. For us, it works if somebody finds us from google, and we're not quite what they thought they'd find. They just retype their query in the box and leap off to keep looking. It allows us to capitalize on traffic that was leaving anyway.

m_k
02-15-2006, 03:48 PM
nice hack amy... thanks :-)

993ti
02-21-2006, 09:27 PM
Argh, it puts the ads above the archive:
http://www.twenteracingscene.com/archive/index.php/

Paul M
02-21-2006, 10:15 PM
That's because it needs re-writinig for vb 3.5.4 due to the changes in the way the archive works.

Smiry Kin's
02-23-2006, 04:54 AM
dun work in 3.5.4 now well for me =-/ could ya test, or update might be me :( lol

Paul M
02-23-2006, 06:55 AM
dun work in 3.5.4 now well for me =-/ could ya test, or update might be me :( lolUm, read the post above yours .......

Smiry Kin's
02-23-2006, 09:09 AM
Um, read the post above yours .......

i just replyed on the first page. cba to read all the posts.....

amykhar
02-23-2006, 09:48 AM
Smiry, if you can't be bothered to read support threads before posting questions, please do not request support for my mods. If I can take the time to give you code, you can take the time to read the thread before you post.

I haven't upgraded to the new vbulletin yet. When I have time to do so, I will update any mods that need updating.

amykhar
02-23-2006, 01:33 PM
updated.

hotrod1
02-23-2006, 01:50 PM
I get this error when I try to edit the plugins to insert my own ads:

Parse error: syntax error, unexpected T_STRING in /archive/index.php(453) : eval()'d code on line 3

amykhar
02-23-2006, 02:04 PM
That's because you have to escape the quotes now. It's a royal pain in the patoot.

Tefra
02-23-2006, 02:09 PM
I get this error when I try to edit the plugins to insert my own ads:

Parse error: syntax error, unexpected T_STRING in /archive/index.php(453) : eval()'d code on line 3

open in notepad your archive header and footer code and just make a simple find and replace " to \"

thanks for the update working great.

amykhar
02-23-2006, 02:11 PM
One comment to Tefra's suggestion. You can't escape the first and last quotes that are wrapped around the banner code. ;)


Amy

Tefra
02-23-2006, 02:12 PM
One comment to Tefra's suggestion. You can't escape the first and last quotes that are wrapped around the banner code. ;)


Amy


oups i forgot to mention that

$output.=" your code hear ";

Code Monkey
02-23-2006, 02:27 PM
Or use single quotes so php doesn't have to waste time parsing text. ;)

hotrod1
02-23-2006, 03:03 PM
I tried doing what you said and it didn't work.

Monolith
02-23-2006, 07:14 PM
Thanks for this, Amy. Very nice.

Is there an easy way to stick the middle ad skyscraper on the left side of the page instead of the right, though?

Tefra
02-23-2006, 10:34 PM
Thanks for this, Amy. Very nice.

Is there an easy way to stick the middle ad skyscraper on the left side of the page instead of the right, though?

find this part in archive bottom

<td width=\"15%\" valign=\"top\">
your code here
</td>

then move it to archive header

between this
<table width=\"100%\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">
<tr>

and this

<td width=\"85%\" valign=\"top\">

Monolith
02-23-2006, 10:53 PM
Hmm... well, that got the ads to the left of the page, but now theyre acting as a buffer between the top ads and the archived content. Like theyre just stacked in between the top ads and the archived thread. Theyre not actually to the left of the content as i was hoping.

Any other ideas?

Tefra
02-24-2006, 11:29 AM
i don't understand what you mean but make sure the part of the code you moved to archieve header make sure to delete it from archieve bottom.

Monolith
02-24-2006, 06:59 PM
My page now looks like this:

<---------------ADS----------------->
^
|
|
|
|
A
D
S
|
|
|
|
^

<--------------------Content------------------->

<------------Ads----------->

Is that a little easier to visualize? The ads are stacked on top of the content, not to the left of it.

Tefra
02-24-2006, 08:08 PM
can you please copy past here your code in archieve bottom and header ?

esology
02-25-2006, 04:24 AM
I get this error when I try to edit the plugins to insert my own ads:

Parse error: syntax error, unexpected T_STRING in /archive/index.php(453) : eval()'d code on line 3


I get the exact same error.

jsharper
02-25-2006, 04:34 AM
I get the exact same error.

Like JumpD said .. In the two plugins, change the first line:
$output.="
to
$output.='

and change the last line:
";
to
';

and then you don't have to escape all of the " chars to \" in the adsense code.

djwins
02-26-2006, 07:01 AM
*clicks install* thanks!
Just curious what peoples earnings results have been so far...

mrahul
02-26-2006, 12:09 PM
getting some error in code phrase 3 when I try to edit the google code. can some one help me ??

imranbaig
02-26-2006, 01:59 PM
really nice thanks *Clicks Install*

Well I Installed it but not getting ads, check here http://forums.bollyheat.com/archive/index.php any reason why this is hapening?
Thanks!

amykhar
02-26-2006, 03:06 PM
imranbaig - read the first post. This ONLY works on 3.5.4 and above. Not 3.5.3. You didn't download in time to get the earlier version, sorry.

WNxWakko
02-26-2006, 04:45 PM
I dont understand,

When I change the google code to mine I get,

Parse error: parse error, unexpected T_STRING in /home/httpd/vhosts/warriornation.net/httpdocs/wakko/Forum/archive/index.php(254) : eval()'d code on line 3


I have redone it several times and still same error. The only lines in google I see different from yours is I dont have an alternative url line and my ad channel is blank while yours has info. I copy pasted my google code exact from my old to new.

amykhar
02-26-2006, 07:21 PM
OK This is getting ridiculous. READ THE THREAD BEFORE YOU POST A QUESTION.

Amy

Paul M
02-26-2006, 08:59 PM
Temper temper .......

amykhar
02-26-2006, 09:09 PM
You should have read the first three drafts of that post, Paul. Trust me, I showed restraint. ;)

Amy

Thierry Martin
02-26-2006, 09:40 PM
I dont understand,

When I change the google code to mine I get,



I have redone it several times and still same error. The only lines in google I see different from yours is I dont have an alternative url line and my ad channel is blank while yours has info. I copy pasted my google code exact from my old to new.

You entered an area where only top brains are at work and they don't have time for people like you - I too was perplexed, because they only use secret language that people who spend all their time with code understand.

I got it to work once I understood what "escape the code" meant. You have to find every instance of your google code where it says " and put \" in it's place. It's an easy thing to miss.

Paul M
02-26-2006, 09:52 PM
or you could just read post 89 ;)

Thierry Martin
02-26-2006, 10:22 PM
or you could just read post 89 ;)

Or the writer of the plugin could indicate the problem in a file with the download, or the post with the download, as the whole point of the download is to get the google ads to work in the archives.

It could also be explained in a language that normal people could understand.

Kihon Kata
03-07-2006, 02:23 AM
installed! phew im sweatin' over all the code moddin' . Boy, I'm glad I'm a Jedi Knight and can code like a mofo

AlpineZone
03-10-2006, 06:46 PM
Is it possible to set this up to show an ad after the first post like with this approach for the main forums?

http://www.vbulletin.com/forum/showthread.php?t=157022

Thanks!

drumsy
03-15-2006, 08:24 AM
What all do I need to edit in the plugins?

So far I've changed my publisher id, but nothing else.

amykhar
03-15-2006, 09:49 AM
drums, you can change the colors if you would like. Otherwise, you are really good to go as-is.

woodysfj40
03-15-2006, 12:20 PM
change the publisher ID number, change the site URL in the search portion...

viola....

great hack, thanks!

weitalia
03-16-2006, 12:24 PM
i use vbb 3.5.4 and i have this error:

Parse error: syntax error, unexpected T_STRING in /home/weitalia/public_html/archive/index.php(254) : eval()'d code on line 3

Parse error: syntax error, unexpected T_STRING in /home/weitalia/public_html/archive/index.php(453) : eval()'d code on line 3

what's the problem?

edit: probably it is a google error ... i try with another code and it's work, i'm waiting google's answers to try again

amykhar
03-16-2006, 01:43 PM
weitalia, if you are only using google adsense and not another banner type, change the quotes in the plugin that wrap the adsense code from quotes to apostrophes.

Amy
p.s. your problem was already addressed several times in the support thread. You really should read threads before posting questions :)

weitalia
03-16-2006, 01:47 PM
weitalia, if you are only using google adsense and not another banner type, change the quotes in the plugin that wrap the adsense code from quotes to apostrophes.

Amy
p.s. your problem was already addressed several times in the support thread. You really should read threads before posting questions :)
sure?
http://www.weitalia.net/archive/index.php/
it works already with other code as you can see ...

amykhar
03-16-2006, 01:58 PM
My company proxy is blocking your site and not letting me check it. I'll try to get to it tonight after work.

Smitty
03-16-2006, 04:17 PM
it works already with other code as you can see ...
I don't see any ads in the archive of the link given.

RichieBoy67
03-17-2006, 10:13 AM
Hi there,

Is there any chance you could modify this to work with 3.5.3???

Otherwise could you post the old version too??

Thanks

amykhar
03-17-2006, 11:33 AM
No, Richie. I no longer maintain multiple versions of the mods because support threads become a nighmare if I do. I code for the latest version available at the time the mod is written and any adjustments users need for versions are something they'll have to do themself.

Torqued
03-17-2006, 07:57 PM
woo. even made my first adsense dollars today.

RichieBoy67
03-17-2006, 09:31 PM
Would anyone be nice enough to send me the last version???

Thanks

Lissa
03-18-2006, 08:20 PM
i use vbb 3.5.4 and i have this error:

Parse error: syntax error, unexpected T_STRING in /home/weitalia/public_html/archive/index.php(254) : eval()'d code on line 3

Parse error: syntax error, unexpected T_STRING in /home/weitalia/public_html/archive/index.php(453) : eval()'d code on line 3

what's the problem?


I have exactly the same error :(
http://www.lissaexplains.com/forum/archive/index.php/f-29.html

Torqued
03-18-2006, 08:33 PM
I have exactly the same error :(
http://www.lissaexplains.com/forum/archive/index.php/f-29.html

You can't just copy/paste your whole adsense code block.

You need to take your adsense code block from google and do a search and replace on all of the " - you need to replace them with \" before you load the xml file.

Paul M
03-18-2006, 11:18 PM
or just use a single quote at the start and finish, as per multiple posts in this thread .......

Smitty
03-19-2006, 07:24 AM
Figured it out....

Smitty
03-19-2006, 07:56 AM
My page now looks like this:

<---------------ADS----------------->
^
|
|
|
|
A
D
S
|
|
|
|
^

<--------------------Content------------------->

<------------Ads----------->


Is that a little easier to visualize? The ads are stacked on top of the content, not to the left of it.
I have the same problem getting them on the left. Anyone figure this one out?

Lissa
03-19-2006, 02:38 PM
You can't just copy/paste your whole adsense code block.

You need to take your adsense code block from google and do a search and replace on all of the " - you need to replace them with \" before you load the xml file.

Thanks :)

mattyk72
03-21-2006, 02:06 AM
nice job, clicking install!

RichieBoy67
03-21-2006, 04:12 PM
Why will this not work with 3.5.3???? Does anyone have the older version of this???

Thanks

ConqSoft
03-21-2006, 04:18 PM
3.5.4 changed the way the Archive works; that's why this is no longer compatible with 3.5.3.

RichieBoy67
03-21-2006, 05:40 PM
Do you have the last version??? If so can you send it to me??

-

ConqSoft
03-21-2006, 05:43 PM
Me? No, sorry.

RichieBoy67
03-22-2006, 11:44 AM
That's ok... I just coded it into the archive/index...... These plug ins are getting me way too lazy...

-

The Notorious
03-29-2006, 10:57 AM
Thanks, installed.

cmeinck
04-06-2006, 03:43 PM
This was a fantastic plug-in. Changed up my Pub #'s, Channel and then changed site to everythingtreo.com. I had forgot to put Adsense on my archives, so this should be a nice little bonus. Google search, site search -- all good stuff. Thanks.:banana:

amykhar
04-06-2006, 03:55 PM
My pleasure :)

spipo
04-06-2006, 08:13 PM
I see that the Adsence code is modified ( some / / separe the ad code ..)
Is this breaking the Google ToS .?
Thanks in advance Emy ..

amykhar
04-06-2006, 08:51 PM
No. It's not a violation.

Roms
04-07-2006, 04:28 AM
Works great. Good idea! Cheers

rrr
04-07-2006, 08:54 AM
No. It's not a violation.

Actually, I think it is a violation of the Adsense TOS to modify the code they generate for you in any way (including escaping quotes).

I've read responses from Google employees that say just this.

It's too bad that they changed the archive coding to require escapes.

amykhar
04-07-2006, 09:51 AM
rrr, you don't have to escape them if you use the single quotes. I am using double quotes because some other ad code I rotate in uses single quotes. But on the html page, the escapes don't show. There'd be no way to use google code in many other software packages if you didn't use escapes.

rrr
04-07-2006, 08:53 PM
rrr, you don't have to escape them if you use the single quotes. I am using double quotes because some other ad code I rotate in uses single quotes. But on the html page, the escapes don't show. There'd be no way to use google code in many other software packages if you didn't use escapes.


I understand that. Just passing on what I read from a Google employee.

If the adcode is modified in anyway, they consider it a violation of the TOS.

Now are they going to notice 99.9% of the time or is it as bad as other TOS violations? Probably not.

Just passing on what I've learned for those who might care :)

Ziki
04-20-2006, 08:05 PM
I think you get the money from the hits don't ya?:)

amykhar
04-20-2006, 08:07 PM
Not if people read and follow the directions I don't.

Dermo-MIO
04-21-2006, 11:51 AM
does this work if i have just installed the security plugin to 3.5.3 and not fully upgraded to 3.5.4 ? because i havent got the confidence to fully upgrade to 3.5.4

DeeperImage
04-21-2006, 12:06 PM
IN for later.

amykhar
04-21-2006, 12:41 PM
does this work if i have just installed the security plugin to 3.5.3 and not fully upgraded to 3.5.4 ? because i havent got the confidence to fully upgrade to 3.5.4

Don't know.

Ziki
04-21-2006, 12:42 PM
Not if people read and follow the directions I don't.

Oh well but you could make money outta it ;)

Paul M
04-21-2006, 01:34 PM
Don't know.The answer is no, the archive was re-written in 3.5.4 to use $output, not echo statements, so this won't work in a patched 3.5.3. You could however upload the 3.5.4 archive files without upgrading the rest of the forum.

Luxury
04-22-2006, 01:39 AM
Why do I get this error? >:(

Parse error: parse error, unexpected T_STRING in /home/xxxxx/public_html/forums/archive/index.php(254) : eval()'d code on line 3

All I did was replace your adsense code with mine.

Dermo-MIO
04-22-2006, 06:12 PM
is this just for archive, how i do i have the adsense show on the normal forum view do i need this ?

irishblacknight
04-22-2006, 06:44 PM
is this just for archive, how i do i have the adsense show on the normal forum view do i need this ?

There are other plugins / mods for the forum.

Luxury
04-25-2006, 01:01 AM
Why do I get this error? >:(

Parse error: parse error, unexpected T_STRING in /home/xxxxx/public_html/forums/archive/index.php(254) : eval()'d code on line 3

All I did was replace your adsense code with mine.

Anyone can help me?

amykhar
04-25-2006, 09:38 AM
your question has already been answered in the thread. You were helped even before you posted ;) How's that for timely assistance?

machelp
04-26-2006, 10:09 AM
Thanks Amykhar,

My archive now has Adsense !

regards

Ric

Suiko Jin
04-27-2006, 02:02 AM
Great idea! Thanks.

*Installs*

ryancooper
04-28-2006, 11:21 AM
This is great i never even thought about putting them in the archive.
Super simple to change and install!! ;)
Thanks a million!!

amykhar
04-28-2006, 11:30 AM
My pleasure.

UK Jimbo
04-28-2006, 03:56 PM
Great hack Amy. <plug>I think it compliments my postbit mod (https://vborg.vbsupport.ru/showthread.php?t=98057) quite really well</plug> :)

One suggestion I have is that you could use PHP's "heredoc" syntax to avoid having to quote any of the ad calls.

If you used:

$output .= <<<EOBANNER
Google adsense code goes here
...
...
...
end adsense code
EOBANNER;

Then no escaping is required, the code can just be pasted in from Google's adsense interface without having to check for/escape single or double quotes.

amykhar
04-28-2006, 05:18 PM
good idea.

CSS59
05-01-2006, 12:29 AM
well i read all the posts and tryed about 8 times not and still no luck :(

i get the same thing as other members
Parse error: syntax error, unexpected T_STRING in /home/jcardraf/public_html/chevyhhr/forums/archive/index.php(254) : eval()'d code on line 4

Parse error: syntax error, unexpected T_STRING in /home/jcardraf/public_html/chevyhhr/forums/archive/index.php(453) : eval()'d code on line 4

CSS59
05-01-2006, 12:30 AM
can you post that entire file so we try it please?

Great hack Amy. <plug>I think it compliments my postbit mod (https://vborg.vbsupport.ru/showthread.php?t=98057) quite really well</plug> :)

One suggestion I have is that you could use PHP's "heredoc" syntax to avoid having to quote any of the ad calls.

If you used:

$output .= <<<EOBANNER
Google adsense code goes here
...
...
...
end adsense code
EOBANNER;

Then no escaping is required, the code can just be pasted in from Google's adsense interface without having to check for/escape single or double quotes.

UK Jimbo
05-01-2006, 05:20 PM
I don't want to hijack Amy's modification/thread so I'll leave it to her :)

GTAce
05-01-2006, 11:03 PM
*clicks Install*

Thanks amy, looks great with YPN as well :)

amykhar
05-02-2006, 11:50 AM
It will work with anything you want to display on the archive. Logos, Web Rings, banners from any ad agency.

masterross
05-04-2006, 01:32 PM
hmmm
iv've installed but the column on the right side is not shown..
any ideas why?

BR

FrankR310
05-05-2006, 03:43 PM
Thank you for this hack. Installed. :)

I was wondering if there's any way to add a conditional where the ads wouldnt show if they are browsing the forum as registered, moderator, supermod, or admin usergroups? ...or alternatively, if they are logged in or click the pdf link.

I think you have to be logged in to use the pda feature and for those people who do want to use this feature, I'd like it to not show those ads if possible.

Also, I just noticed that if I go to archive/index it shows all three ads..but if i got to a specific thread it only shows the top ad and search with no side or bottom ads. Is this how it's supposed to work?

Thank you.

Al-Fateh
05-10-2006, 07:54 PM
what would adsense exactly do?

UK Jimbo
05-10-2006, 08:34 PM
what would adsense exactly do?

http://www.google.co.uk/services/adsense_tour/

Ryan McBain
05-23-2006, 02:21 PM
well i read all the posts and tryed about 8 times not and still no luck :(

i get the same thing as other members
Parse error: syntax error, unexpected T_STRING in /home/jcardraf/public_html/chevyhhr/forums/archive/index.php(254) : eval()'d code on line 4

Parse error: syntax error, unexpected T_STRING in /home/jcardraf/public_html/chevyhhr/forums/archive/index.php(453) : eval()'d code on line 4
I'm getting the same error

amykhar
05-23-2006, 02:24 PM
What did you change in the code? If you post it here, I can see where you went wrong.

Amy

Ryan McBain
05-23-2006, 02:26 PM
What did you change in the code? If you post it here, I can see where you went wrong.

Amy

Nevermind, I got it working. Thanks

UK Jimbo
05-23-2006, 02:32 PM
I'm getting the same error

You need to reformat your server.

Ryan McBain
05-23-2006, 02:45 PM
You need to reformat your server. Thanks but no I don't. I got it working.

UK Jimbo
05-23-2006, 02:52 PM
Thanks but no I don't. I got it working.

It must have reformatted itself. They do that sometimes.

amykhar
05-23-2006, 03:27 PM
Only in the UK. American made and operated servers never do that. :D

havefun
05-30-2006, 11:59 AM
thx amykhar! :)

amykhar
05-30-2006, 12:31 PM
you're welcome :)

wizardace
06-06-2006, 07:51 PM
Thanks a lot amykhar!

amykhar
06-09-2006, 01:09 PM
Just noting: this still works in 3.6

carmineroma
06-09-2006, 06:59 PM
i receive this error message
Parse error: parse error, unexpected T_STRING in /home/fastdri/public_html/forum/archive/index.php(254) : eval()'d code on line 3

Parse error: parse error, unexpected T_STRING in /home/fastdri/public_html/forum/archive/index.php(453) : eval()'d code on line 3

On 3.5.4 version

UK Jimbo
06-09-2006, 08:53 PM
carmineroma " characters in your ad code will need to be escaped with a backslash so they look like this \"

ThorstenA
06-13-2006, 04:40 PM
seems to work with 3.6

zooki
06-21-2006, 09:16 PM
thanks and happy birthday Amy.. :bunny:

how do u get the colomn on the right of the archive pages?

thankss

lexx27
06-30-2006, 03:23 PM
I installed the product and nothing changed in my archive.
I modyfied the plugins and inseterd my info and nothing changed...

Why?

http://www.akrovates.com/forums/archive/index.php/

amykhar
06-30-2006, 04:47 PM
because you are using an usupported version of vbulletin. This one is for 3.5.4 and above only.

lexx27
06-30-2006, 05:34 PM
That was the problem. Thanx!

Zowners
07-08-2006, 12:41 PM
*installs*

Thanks a lot. I had a few problems, but I worked it all out :)

GrendelKhan{TSU
07-12-2006, 05:28 PM
i receive this error message

Parse error: parse error, unexpected T_STRING in /home/fastdri/public_html/forum/archive/index.php(254) : eval()'d code on line 3

Parse error: parse error, unexpected T_STRING in /home/fastdri/public_html/forum/archive/index.php(453) : eval()'d code on line 3


On 3.5.4 version

I'm having the exact same problem

carmineroma " characters in your ad code will need to be escaped with a backslash so they look like this \"

...can you explain that again? I don't understand what you mean. :(

UK Jimbo
07-12-2006, 09:39 PM
...can you explain that again? I don't understand what you mean. :(

Give the attached a try...

induslady
07-18-2006, 12:18 AM
Hi UK Jimbo,

I tried the attached version. But I receive the below error...

Parse error: parse error, unexpected $ in /home/induslad/public_html/forums/archive/index.php(254) : eval()'d code on line 18

Please could you help.

Thanks,

Induslady

ConqSoft
07-18-2006, 05:33 PM
Sounds like you made a mistake when modifying the adsense code to add your publisher id, colors, etc. Uninstall, re-install, and look carefully at how the code is arranaged. (Using \ to escape ", etc)

induslady
07-20-2006, 10:09 PM
Hello ConqSoft,

Thank you for your reply message.

I unistalled, modified the xml product carefully and re-uploaded. It works fine now.

Regards,
Induslady

GrendelKhan{TSU
07-24-2006, 05:04 PM
what does "(Using \ to escape ", etc)" mean??

grrr. .. can someone just post an full example of the edited plugins?


amy always has great hacks, but the WORST readmes. heh (no offense amy, but you are always skippy on your readmes for us stoooopid n00bs. :()

anyway her's what I was trying EXACTLY:

archive header

$output.="
<div align=\"center\" style=\"padding:4px;overflow:hidden;\">
<script type="text/javascript"><!--
google_ad_client = "pub-2448266096720402";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="0786918499";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

<!-- SiteSearch Google -->
<form method="get" action="http://www.google.com/custom" target="_top">
<table border="0" bgcolor="#ffffff">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">

</td>
<td nowrap="nowrap">
<input type="hidden" name="domains" value="www.clantsu.org"></input>
<input type="text" name="q" size="35" maxlength="255" value=""></input>
<input type="submit" name="sa" value="Google Search"></input>
</td></tr>
<tr>
<td>&nbsp;</td>
<td nowrap="nowrap">
<table>
<tr>
<td>
<input type="radio" name="sitesearch" value="" checked="checked"></input>
<font size="-1" color="#000000">Web</font>
</td>
<td>
<input type="radio" name="sitesearch" value="www.clantsu.org"></input>
<font size="-1" color="#000000">www.clantsu.org</font>
</td>
</tr>
</table>
<input type="hidden" name="client" value="pub-2448266096720402"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="channel" value="4507399014"></input>
<input type="hidden" name="ie" value="ISO-8859-1"></input>
<input type="hidden" name="oe" value="ISO-8859-1"></input>
<input type="hidden" name="flav" value="0000"></input>
<input type="hidden" name="sig" value="OFvSZsc0F28XTqlc"></input>
<input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center ;BGC:FFFFFF;LBGC:000000;ALC:0000FF;LC:0000FF;T:000 000;GFNT:0000FF;GIMP:0000FF;LH:50;LW:169;L:http://clantsu.org/forums/images/misc/vbulletin3_logo_white.gif;S:http://;FORID:1;"></input>
<input type="hidden" name="hl" value="en"></input>
</td></tr></table>
</form>
<!-- SiteSearch Google -->
</div>
<table width=\"100%\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">
<tr><td width=\"85%\" valign=\"top\">
";

Archive Footer:
$output.="
<div align=\"center\" style=\"padding:4px; overflow: hidden;\">
<script type="text/javascript"><!--
google_ad_client = "pub-2448266096720402";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="1878637765";
//--></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-2448266096720402";
google_ad_width = 160;
google_ad_height = 600;
google_ad_format = "160x600_as";
google_ad_type = "text_image";
google_ad_channel ="4640775997";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
</tr>
</table>
";

which gives me the errors as seen here: http://www.clantsu.org/forums/archive/index.php

what'd I do wrong? :confused:

amykhar
07-24-2006, 05:26 PM
You missed a bunch of quotes. EVERY internal quote must have a \ in front of it.

OR change the external quotes to single quotes.

The internal ones are the ones that are in the google code itself. The external ones are the ones in the first and last lines of the plugin code.

I am leaving the mod with the escaped quotes version because many of us use alternative ads in addition too google and the other ad code uses single quotes.

Kihon Kata
07-24-2006, 11:51 PM
amy always has great hacks, but the WORST readmes. heh (no offense amy, but you are always skippy on your readmes for us stoooopid n00bs. :()Ditto

GrendelKhan{TSU
07-25-2006, 04:57 AM
You missed a bunch of quotes. EVERY internal quote must have a \ in front of it.

OR change the external quotes to single quotes.

The internal ones are the ones that are in the google code itself. The external ones are the ones in the first and last lines of the plugin code.

I am leaving the mod with the escaped quotes version because many of us use alternative ads in addition too google and the other ad code uses single quotes.

woot! that did it. Thanks!!

for reference:
I just change first and last lines of code in each plugin from:


$output.="

(to)

$output.='


(and)

";

(to)

';


......that's it!! :D :D *boy do I wish that was in the readme. (would saved a looot of time ;) hint hint nudge nudge. :p)

only issue now is the site search isn't crawling the site AT ALL. (0 results :eek: ). anyone happen to know why? :/

Aunt Clara
07-25-2006, 09:49 PM
I followed the instructions, read the whole thread, am using version 3.5.4, and only changed the URLs and AdSense customer code and I am still getting an error message

Parse error: syntax error, unexpected '<' in /home/domicook/public_html/forums/archive/index.php(255) : eval()'d code on line 1

Please somebody help me.

Aneurysm
07-30-2006, 08:54 AM
Thanks, Rock-on.

soletrader
07-31-2006, 01:20 AM
Change the two plugins to use the adsense code for your site (instead of mine - unless you are feeling generous) and to arrange its positioning as desired.



Where do I go to change this?

gingery
08-03-2006, 01:36 PM
Where do I go to change this?
Plugin manager in your adminCP

bbcentral
08-22-2006, 07:34 PM
Any reason why you're escaping all your quotes instead of using PHP heredocs?
They make it much easier to paste code in without having to escape everything.


$output.=<<<OUTPUT
<div align="center" style="padding:4px;overflow:hidden;">
<script type="text/javascript"><!--
google_ad_client = "pub-CODE;
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="123456789";
google_color_border = "336699";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<table width="100%" border="0" cellpadding="4" cellspacing="0">
<tr><td width="85%" valign="top">
OUTPUT;


Unless there's some negative to using that method I'm not aware of?

bbcentral
08-22-2006, 07:47 PM
Oh, where are my manners...
Great mod!!!!
Thanks Amy :D
It looks fantastic!
I have one tip for people, don't forget to create a custom channel called "Forum Archive" or something, so that when you generate the code for these ads it will track them properly. I get a lot of traffic on my archived pages, from people searching for information. But it can be really useful to know how much of your Adsense revenue is coming from the archive, and how much is coming from your regular forum (assuming you have ads there).
If I remember, in a few weeks I might post a followup here to show what percentage of my revenue came from the Archive, it might be useful information for someone.

blue_chi
08-27-2006, 06:49 AM
Works fine on 3.6, great product. Thanks so much!

MajorFm.com
08-30-2006, 05:27 PM
Installed on 3.6.0 and added my own banners:

http://www.majorfm.com/forum/archive/index.php

If you want to add your own banners, you simply have to replace all " with \"

agitated
09-03-2006, 05:42 PM
Thanks for this amykhar. perfect.:cool:
Did away with the Google code and inserted banners, <h1> text and a couple of <a href> hyperlinks. Looks good, I'm pleased with it.

Caveman2k2
09-03-2006, 06:38 PM
I'm having some problems with the layout of the ads. Please take a look at my archive Here (http://forum.nfltalk.com/archive/index.php)
How can I fix this?

friendly
09-04-2006, 09:27 PM
Greetings Amy!

I inserted the top and bottom codes for 3.6.0 but none of the ads show up at all.

Any ideas what could be wrong?

friendly
09-04-2006, 09:49 PM
I folowed this post (https://vborg.vbsupport.ru/showpost.php?p=1037016&postcount=190)and everything's fine now. Thanks!

87accordlxi
09-05-2006, 05:46 PM
I folowed this post (https://vborg.vbsupport.ru/showpost.php?p=1037016&postcount=190)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-space/admincp/plugin.php
Referrer : http://www.puregraffiti.com/graffiti-space/admincp/plugin.php?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

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-space/admincp/plugin.php
Referrer : http://www.puregraffiti.com/graffiti-space/admincp/plugin.php?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!

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-space/admincp/plugin.php
Referrer : http://www.puregraffiti.com/graffiti-space/admincp/plugin.php?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.

<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 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:


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
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
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
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