Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-27-2009, 03:09 PM
shadowgfx shadowgfx is offline
 
Join Date: Jul 2009
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 01-12-2010, 07:24 AM
Chainspell Chainspell is offline
 
Join Date: Jan 2010
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 01-12-2010, 11:24 AM
cad2go cad2go is offline
 
Join Date: Feb 2009
Posts: 181
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try wrapping the code like this
Code:
<vb:literal>ADBRITE3 CODE HERE</vb:literal>
Reply With Quote
  #4  
Old 01-12-2010, 11:33 AM
Chainspell Chainspell is offline
 
Join Date: Jan 2010
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

well that fixed it for me! thanks very much
Reply With Quote
  #5  
Old 01-15-2010, 02:05 AM
DieselMinded's Avatar
DieselMinded DieselMinded is offline
 
Join Date: Mar 2007
Posts: 1,655
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 01-17-2010, 04:08 PM
masterross's Avatar
masterross masterross is offline
 
Join Date: Nov 2005
Location: Bulgaria
Posts: 315
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cad2go View Post
Try wrapping the code like this
Code:
<vb:literal>ADBRITE3 CODE HERE</vb:literal>
Thx a lot dude!
Reply With Quote
  #7  
Old 01-17-2010, 05:11 PM
BSMedia BSMedia is offline
 
Join Date: Feb 2009
Posts: 454
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DieselMinded View Post
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
Reply With Quote
  #8  
Old 03-17-2010, 06:33 AM
syrn's Avatar
syrn syrn is offline
 
Join Date: Mar 2010
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cad2go View Post
Try wrapping the code like this
Code:
<vb:literal>ADBRITE3 CODE HERE</vb:literal>
Great Job , thanx a million
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:36 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04579 seconds
  • Memory Usage 2,238KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete