vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   AdBrite in Vbulletin Error! (https://vborg.vbsupport.ru/showthread.php?t=231327)

shadowgfx 12-27-2009 03:09 PM

AdBrite in Vbulletin Error!
 
I try to add a simple AdBrite code to 4.0 after upgrading on the default skin into the footer, and I get an error:

Quote:

The following error occurred when attempting to evaluate this template:

Parse error: syntax error, unexpected '[' in /home/*****/public_html/forum/includes/adminfunctions_template.php(4597) : eval()'d code on line 131

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
If I continue, I get this error on the forum:
Quote:

Parse error: syntax error, unexpected '[' in /home/*****/public_html/forum/includes/class_core.php(3900) : eval()'d code on line 131
Any help? I don't like Adsense, and I have always used AdBrite. I have tried putting it in different templates, and a different skin, but have had no luck.

The only Mod I have installed right now is the GCBOS Chatbox, and the "Who has read a Thread" Mod.

Any help would be very nice, so I can start making income again :) lol

--------------- Added [DATE]1261979112[/DATE] at [TIME]1261979112[/TIME] ---------------

Anyone help with this? Very frustrating

Chainspell 01-12-2010 07:24 AM

anybody got a solution for this? i have the same problem.

I am using the built in ad manager in VB4.0.0. Was it not tested for adbrite ads? im having the exact same error the OP is getting.

Can anyone point me to the right direction about getting the ads in my site correctly? Thanks in advance!

--------------- Added [DATE]1263288672[/DATE] at [TIME]1263288672[/TIME] ---------------

Code:

The following error occurred when attempting to evaluate this template:

Parse error: syntax error, unexpected '[' in **************edited out*************\includes\adminfunctions_template.php(4597) : eval()'d code on line 8

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

when i try to put it in my template manually, thats the error code too

--------------- Added [DATE]1263288830[/DATE] at [TIME]1263288830[/TIME] ---------------

<!-- Begin: AdBrite, Generated: 2010-01-12 4:03:53 -->
<script type="text/javascript">
var AdBrite_Title_Color = 'e1771e';
var AdBrite_Text_Color = 'e6e6e6';
var AdBrite_Background_Color = '191919';
var AdBrite_Border_Color = '191919';
var AdBrite_URL_Color = 'A9501B';
try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==''?document.lo cation:document.referrer;AdBrite_Referrer=encodeUR IComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe='';var AdBrite_Referrer='';}
</script>
<span style="white-space:nowrap;"><script type="text/javascript">document.write(String.fromCharCode(60, 83,67,82,73,80,84));document.write(' src="http://ads.adbrite.com/mb/text_group.php?sid=1486781&zs=3732385f3930&ifr='+A dBrite_Iframe+'&ref='+AdBrite_Referrer+'" type="text/javascript">');document.write(String.fromCharCode( 60,47,83,67,82,73,80,84,62));</script>
<a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=1486781&afsid=1"><img src="http://files.adbrite.com/mb/images/adbrite-your-ad-here-leaderboard-w.gif" style="background-color:#191919;border:none;padding:0;margin:0;" alt="Your Ad Here" width="14" height="90" border="0" /></a></span>
<!-- End: AdBrite -->

thats my adbrite code

cad2go 01-12-2010 11:24 AM

Try wrapping the code like this
Code:

<vb:literal>ADBRITE3 CODE HERE</vb:literal>

Chainspell 01-12-2010 11:33 AM

omg you are amazing! i will name my first born cad2go! muwahah!

well that fixed it for me! thanks very much

DieselMinded 01-15-2010 02:05 AM

i trued using adbrite and my users couldnt log in and my forum home was taking for ever to load what could i do to fix that? the code was in my footer template

masterross 01-17-2010 04:08 PM

Quote:

Originally Posted by cad2go (Post 1953449)
Try wrapping the code like this
Code:

<vb:literal>ADBRITE3 CODE HERE</vb:literal>

Thx a lot dude!

BSMedia 01-17-2010 05:11 PM

Quote:

Originally Posted by DieselMinded (Post 1956167)
i trued using adbrite and my users couldnt log in and my forum home was taking for ever to load what could i do to fix that? the code was in my footer template

Adbrite is pretty slow sometimes and I've noticed the adverse performance impact it has on sites as well. The only real way around it, is to not use it. So I guess it's a fine line between money and user experience

syrn 03-17-2010 06:33 AM

Quote:

Originally Posted by cad2go (Post 1953449)
Try wrapping the code like this
Code:

<vb:literal>ADBRITE3 CODE HERE</vb:literal>

Great Job , thanx a million


All times are GMT. The time now is 03:35 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.02153 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
  • (4)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete