Previous Thread
Next Thread
Print Thread
Hop To
#212166 05/14/2008 8:40 AM
Joined: Dec 2007
Posts: 32
newbie
newbie
Joined: Dec 2007
Posts: 32
Hi, Hopefully i have this post in right area.. After the problems the other day (thanks again for ian and ricks help), the client has asked us to make a few changes. I get this error when trying to make changes to the script. Any suggestions? This is with version 7.0.2

Parse error: syntax error, unexpected T_SL in /home/public_html/board/cache_builders/custom/portal_box_1.php on line 5

Joined: Jun 2006
Posts: 3,837
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
it is going to be connected with the code used for the first portal box.

You might like to post that code, so that we can take a look as without that we are working blind wink

Joined: Dec 2007
Posts: 32
newbie
newbie
Joined: Dec 2007
Posts: 32
k. Sorry..

If i go into Admin CP... Display Options > General and make any changes there, i get that error..

As to our portal box. What i was doing shouldn't effect that, but maybe it does

Here is the code for our custom portal box which is used as adspace. We use this same code on a few diff related boards..

/* PHP CODE HERE */


/* BODY HERE */
$body = <<<EOF<div align="center">
<script language='JavaScript' type='text/javascript' src='http://mickmars.tv/phpAdsNew/adx.js'></script>
<script language='JavaScript' type='text/javascript'>
<!--
if (!document.phpAds_used) document.phpAds_used = ',';
phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);


document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
document.write ("http://mickmars.tv/phpAdsNew/adjs.php?n=" + phpAds_random);
document.write ("&what=zone:1&source=store&target=_blank&withText=1");
document.write ("&exclude=" + document.phpAds_used);
if (document.referrer)
document.write ("&referer=" + escape(document.referrer));
document.write ("'><" + "/script>");
//-->
</script><noscript><a href='http://mickmars.tv/phpAdsNew/adclick.php?n=ae344989' target='_blank'><img src='http://mickmars.tv/phpAdsNew/adview.php?what=zone:1&source=store&n=ae344989' border='0' alt=''></a></noscript>


EOF;


Joined: Jan 2004
Posts: 2,474
Likes: 3
D
Pooh-Bah
Pooh-Bah
D Offline
Joined: Jan 2004
Posts: 2,474
Likes: 3
$body = <<<EOF<div align="center"> is the problem.

Split them into two lines...

Code
$body = <<<EOF

<div align="center">



Joined: Dec 2007
Posts: 32
newbie
newbie
Joined: Dec 2007
Posts: 32
that did it.. Thanks Darv! hmm, i wonder if its like that on our other UBB forums.. will have to look into that..

thanks again

Joined: Dec 2007
Posts: 32
newbie
newbie
Joined: Dec 2007
Posts: 32
Other sites seem to be ok! thanks again for the help..

Since that error is resolved. I now need to move on changing to a diff theme/style..I have looked around but havent found a direct tutorial for doing that... I found a couple of style downloads that look like it might work for our forum, again for version 7.0.2 Any suggestions on that or should i start a new topic?

thanks

Joined: Jan 2004
Posts: 2,474
Likes: 3
D
Pooh-Bah
Pooh-Bah
D Offline
Joined: Jan 2004
Posts: 2,474
Likes: 3
A new topic - for sure smile


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Version 7.7.5 Images suddenly not displaying
by Stovebolt - 05/04/2024 11:19 AM
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Who's Online Now
0 members (), 736 guests, and 155 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240505)