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)

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 12:33 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.01204 seconds
  • Memory Usage 1,736KB
  • 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
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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