Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
Who's Online
5 registered (blaaskaak, Djuma, Organizer21, Thelockman, 1 invisible), 24 Guests and 18 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 11/02/08
Posts: 2
Top Posters (30 Days)
Ruben Rocha 179
Gizmo 112
Rick 109
Thelockman 80
driv 43
AllenAyres 35
ntdoc 28
Ian 24
Sirdude 23
ScriptKeeper 20
Latest Photos
My Home System
test photo gallery
Bernese Mountain Dogs
My Daimler
Dorado and shark
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: 728
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: 12007
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

Today's Birthdays
No Birthdays
Recent Topics
Shrinking graemlins
by Djuma
Yesterday at 05:48 PM
2 problems I'm seeing now.
by DougMM
Yesterday at 04:39 PM
Which CSS Style Controls the bottom lines
by David DelMonte
Yesterday at 01:51 PM
UBBThreads vs. vBulletin -- Defections & Why So Tough to Compare?
by WebMagic
Yesterday at 12:28 PM
Font and column shifts occuring
by Bill B
11/30/08 06:21 PM
Forum Stats
4261 Members
33 Forums
30532 Topics
154962 Posts

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