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)

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.


All times are GMT. The time now is 10:22 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.01247 seconds
  • Memory Usage 1,735KB
  • 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
  • (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