WowUltra Forums Home 
Search     Members Calendar Help Home
Search by username
Not logged in - Login | Register 

 Moderated by: Jim
New Topic Reply Printer Friendly
Apostrophe catastrophe - Bug Reports - News and Announcements - WowUltra Forums
AuthorPost
 Posted: Mon Apr 7th, 2008 01:29 am
PMQuoteReply  
1st Post
Di
Customer Service Rep.


Joined: Sat Apr 28th, 2007
Location: Columbus, Ohio USA
Posts: 1207
Status: 
Offline
Mana: 
We found a "bug" if you will with the announcement message block, if you enter a word with an apostrophe it shows the backslash apostrophe (needed as part of the PHP translation). It can be re translated and should. If anyone has the new version and wants to fix it, here is how. ALTERNATELY if you want us to fix it just make sure we have your current FTP info if you are not hosted with us and ask.

We will update the downloads here in a couple minutes.

Open lib.php and find:
"guest_message"    => GUEST_MESSAGE,
"member_message"   => MEMBER_MESSAGE,


Replace it with:
"guest_message"    => str_replace("'", "'", GUEST_MESSAGE),
"member_message"   => str_replace("'", "'", MEMBER_MESSAGE),


This happens other places throughout the WowBB code that is part of Ultra, if you notice it happening alert us and we can make it look right with a similar fix.

Back To Top PMQuoteReply

 Posted: Mon Apr 7th, 2008 11:25 pm
PMQuoteReply  
2nd Post
Jim
Administrator


Joined: Wed Apr 11th, 2007
Location:  
Posts: 1854
Status: 
Offline
Mana: 
APOSTROPHE CATASTROPHE, The sequal.

WELL the first fix worked until you saved again in the admin panel. It pulled the backslash up in the text box and when saved.... it put 2 of them in the string! Since the fix only removed one.... it would show again in the announcement.

So you need the first fix along with:

open admin.php and find:
"gen_guest_message" => $guest_message,
"gen_member_message" => $member_message,


And replace it with:
"gen_guest_message" => str_replace("\'", "'", $guest_message),
"gen_member_message" => str_replace("\'", "'", $member_message),


If you see any backslashes in the message after that save blank and write it over, it won\'t happen again. Just kidding with the won\'t. Geek humor.

Back To Top PMQuoteReply

Current time is 08:47 am  
WowUltra Forums > News and Announcements > Bug Reports > Apostrophe catastrophe



WowUltra 1.15 Copyright © 2007-2008 by Jim Hale
Page processed in 0.1363 seconds (11% database + 89% PHP). 19 queries executed.