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,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
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
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
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
1 members (Geoff), 1,018 guests, and 215 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)