|
|
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
Carpal Tunnel
|
Carpal Tunnel
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
|
|
|
|
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
Pooh-Bah
|
Pooh-Bah
Joined: Jan 2004
Posts: 2,474 Likes: 3 |
$body = <<<EOF<div align="center"> is the problem. Split them into two lines...
$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
Pooh-Bah
|
Pooh-Bah
Joined: Jan 2004
Posts: 2,474 Likes: 3 |
A new topic - for sure
|
|
|
|
Bots
by Outdoorking - 04/13/2024 5:08 PM
|
|
|
|
|
|
|
|