Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
Who's Online
0 Registered (), 24 Guests and 20 Spiders online.
Key: Admin, Global Mod, Mod
Top Posters
Gizmo 11708
Rick 7567
Ian 4107
Mark S 3984
ntdoc 3114
Sirdude 2041
jgeoff 1882
David Dreezer 1759
driv 1569
AllenAyres 1530
Latest Photos
Carrie - So Very
Testing
Test Photo
4TH of July at the river!
Test shots from D300 part 3
Topic Options
Rate This Topic
#207059 - 02/22/08 05:24 PM Parse error for smilies
gliderdad Offline
old hand

Registered: 06/07/06
Posts: 716
Loc: NY
Well I am getting this in 7.3b4. I have done some hacks already, most of them just to comment out a few things. I am getting this error when adding a smiley to a post. I know it is not a bug since it is only happening on an altered site and not here, but I would like to figure it out to see what needs altering. I have not altered the libs/bbcode.inc.php file. It only happens when making a post and inserting a smiley.

Code:
Parse error: syntax error, unexpected T_STRING in /home/glidercentral/public_html/test/libs/bbcode.inc.php(124) : regexp code on line 1

Fatal error: preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Failed evaluating code: ''.$this-&gt;handle_graemlin(':clap:', '&lt;img src=&quot;&lt;&lt;GRAEMLIN_URL&gt;&gt;/yelclap.gif&quot; alt=&quot;$ubbt_lang['ICON_CLAP']&quot; title=&quot;$ubbt_lang['ICON_CLAP']&quot; height=&quot;30&quot; width=&quot;20&quot; /&gt;').'' in /home/glidercentral/public_html/test/libs/bbcode.inc.php on line 124


line 124 reads

Code:
						$body = preg_replace("/( |\n|^|\r|\])($smiley)( |$|\.|\?|!|\n|\r|\[)/ie", '\'$1\'.$this->handle_graemlin(\'$2\', \'' . $repl . '\').\'$3\'',$body);
_________________________
$> cd /pub
$> more beer

Top
#207079 - 02/22/08 07:53 PM Re: Parse error for smilies [Re: gliderdad]
Gizmo Moderator Offline


Registered: 06/04/06
Posts: 11708
Loc: Portland, OR; USA
Easy, > is being converted to its ASCII equivelant of >
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB7 Beta Tester & Resident Post-A-Holic

Top


Shout Box

Recent Topics
Registration security
by adminwendy
Today at 09:33 PM
Problem with forum move
by AzHousePro
Today at 03:41 PM
[7.3.x] Ignore link showed in userprofile for global moderators
by blaaskaak
Yesterday at 01:27 PM
[7.3.x] Database password shown in adminlogs...
by blaaskaak
Yesterday at 10:24 AM
7.3.1 Flood protection
by MattUK
Yesterday at 03:55 AM
Forum Stats
4027 Members
33 Forums
30887 Topics
156842 Posts

Max Online: 978 @ 06/24/07 08:19 PM