Previous Thread
Next Thread
Print Thread
Hop To
#207059 02/22/2008 9:24 PM
Joined: Jun 2006
Posts: 1,344
G
veteran
veteran
G Offline
Joined: Jun 2006
Posts: 1,344
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);

Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Easy, > is being converted to its ASCII equivelant of >


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
3 members (rootman, Gizmo, Nightcrawler), 562 guests, and 186 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 20230217)