Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 06-07-2013, 08:49 AM
Nieth's Avatar
Nieth Nieth is offline
Aspiring
 
Join Date: Dec 2012
Location: North Carolina
Posts: 154
Gender: Male
Credits: 11,047
Nieth is on a distinguished road
Send a message via MSN to Nieth
Default 'rn' in text boxes.

I've noticed that the website script does not take kindly to the the letters 'rn' being together in that order, especially on the ToS page.

I have often tried to edit the page, but every time I do those two letter vanish when they are placed in that order right next to eachother.

This can be checked by trying to type in 'warning' or 'alternative' into the rules page. When you hit submit and then go to view the page, the words will be 'waing' and 'alteative.'
Reply With Quote
  #2  
Old 06-07-2013, 09:28 AM
Tequila's Avatar
Tequila Tequila is offline
The Grim One
 
Join Date: Jan 2009
Location: Souther Tier, New York State
Posts: 1,356
Gender: Female
Credits: 97,349
Tequila is on a distinguished road
Default

A quick google search pulled this up:
http://www.tinymce.com/forum/viewtopic.php?id=12092

Quote:
This is a bug but i created some cheat in php... Basically, /r/n is "new line" in html that can be read by tinymce, and some hosting company uses "addslashes" function to resolve sql injection...
In order to remove those slashes, you need to use "stripslashes", but it will also remove the slashes in "/r/n" so it will produce the string "rn". Therefore, that "rn" will appear as text in tinymce... (i used this also in <img> slashes problem)
To resolve that, you just have to add "replace_str" before sending it to database (replace 'rn' with '')....
like this >>>

stripslashes(str_replace('\r\n', '', mysql_real_escape_string($post['description'])))


hope this help... it works with me....
Last edited by rexjaysoncortez (2010-12-19 16:31:42)
Just have to add that code in. I'll let Hoffie know that this bug is still going...
__________________
Artist. Designer. Gamer. Mother.
[portfolio] [tarot] [Rune Hollow] [freebies]
Reply With Quote
  #3  
Old 06-07-2013, 09:35 AM
Nieth's Avatar
Nieth Nieth is offline
Aspiring
 
Join Date: Dec 2012
Location: North Carolina
Posts: 154
Gender: Male
Credits: 11,047
Nieth is on a distinguished road
Send a message via MSN to Nieth
Default

Alright, but I'm rather new to all of this, where would I put that string of code?
Reply With Quote
  #4  
Old 06-07-2013, 01:30 PM
Tequila's Avatar
Tequila Tequila is offline
The Grim One
 
Join Date: Jan 2009
Location: Souther Tier, New York State
Posts: 1,356
Gender: Female
Credits: 97,349
Tequila is on a distinguished road
Default

I'm not sure...
I'd say somewhere in the same folder as the tinymce program. If that doesn't work we'll have to keep trying...
__________________
Artist. Designer. Gamer. Mother.
[portfolio] [tarot] [Rune Hollow] [freebies]
Reply With Quote
  #5  
Old 06-07-2013, 02:38 PM
Nieth's Avatar
Nieth Nieth is offline
Aspiring
 
Join Date: Dec 2012
Location: North Carolina
Posts: 154
Gender: Male
Credits: 11,047
Nieth is on a distinguished road
Send a message via MSN to Nieth
Default

There's a tinymce program in Mysidia..?
Reply With Quote
  #6  
Old 06-07-2013, 09:06 PM
Tequila's Avatar
Tequila Tequila is offline
The Grim One
 
Join Date: Jan 2009
Location: Souther Tier, New York State
Posts: 1,356
Gender: Female
Credits: 97,349
Tequila is on a distinguished road
Default

It's either TinyMCE or one of the other editors... I can't remember which off hand (not running my adopts site any more, just hanging around designing themes)...
__________________
Artist. Designer. Gamer. Mother.
[portfolio] [tarot] [Rune Hollow] [freebies]
Reply With Quote
  #7  
Old 06-07-2013, 09:57 PM
Nieth's Avatar
Nieth Nieth is offline
Aspiring
 
Join Date: Dec 2012
Location: North Carolina
Posts: 154
Gender: Male
Credits: 11,047
Nieth is on a distinguished road
Send a message via MSN to Nieth
Default

Alright. I'm sorry to be nosy, but do you know if HoF's alright? I haven't seen him posting much lately.
Reply With Quote
  #8  
Old 06-10-2013, 06:50 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 334,325
Hall of Famer is on a distinguished road
Default

The reason why I made 'rn' impossible to be used in the script is that it messes up with empty spaces and new lines. I will see if theres a better solution though.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Text Box in Pages? Clessidra Questions and Supports 5 06-13-2013 06:51 PM
Text getting deleted Empress_Swanbottom Questions and Supports 4 02-15-2013 10:40 PM
Pet and Item boxes Question Nieth Questions and Supports 4 12-14-2012 08:33 PM
Change adopt.php text? Skullette Questions and Supports 8 06-14-2010 07:56 AM
Reseting text 12345 Questions and Supports 4 03-04-2009 11:26 PM


All times are GMT -5. The time now is 02:03 PM.

Currently Active Users: 9821 (0 members and 9821 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636