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)

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

Quote:

Originally Posted by amykhar
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

Quote:

Originally Posted by amykhar
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

Quote:

Originally Posted by Dermo-MIO
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

Quote:

Originally Posted by amykhar
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

Quote:

Originally Posted by amykhar
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? >:(
Code:

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

Quote:

Originally Posted by Dermo-MIO
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

Quote:

Originally Posted by Luxury
Why do I get this error? >:(
Code:

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

PHP Code:

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

Quote:

Originally Posted by UK Jimbo
Great hack Amy. <plug>I think it compliments my postbit mod 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:

PHP Code:

$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

Quote:

Originally Posted by Al-Fateh
what would adsense exactly do?

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


All times are GMT. The time now is 10:50 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.01684 seconds
  • Memory Usage 1,798KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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