Need help with tinyMCE editor. It removes the backslashes

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Need help with tinyMCE editor. It removes the backslashes
OptimusPrime
CZ Newbie
OptimusPrime has been a member for over 18 year's 18 Year Member
usa.gif washington.gif
Occupation: Security
Age: 58
Gender: Male
Status: Offline
Joined: Jul 13, 2006
0.00 posts per day
Posts: 18
Points: 25
   
I have Nuke 7.8 and I noticed something odd.

I do alot of articles on Windows XP errors and fixes and use Windows directories quite often. when I typed C:WindowsINF into the text editor and published it, I noticed that the backslashes were gone and it looked this: C:WindowsINF

Can anyone tell me why it's doing this and if there is a work around?

Thanks



Back to top Reply with quote
#2   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
There is probably a stripslashes() lfunction used right before the information is sent to the database. Locate it and comment it out then test your News storys.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   
OptimusPrime
CZ Newbie
OptimusPrime has been a member for over 18 year's 18 Year Member
usa.gif washington.gif
Occupation: Security
Age: 58
Gender: Male
Status: Offline
Joined: Jul 13, 2006
0.00 posts per day
Posts: 18
Points: 25
   
Hello Telli

Is it the articles.php file?

$bodytext = stripslashes($row['bodytext']);



Back to top Reply with quote
#4   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
Where are you submitting the storys? Through admin or Submit News? Thats where you need to look.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#5   re: Need help with tinyMCE editor. It removes the backslashe
OptimusPrime
CZ Newbie
OptimusPrime has been a member for over 18 year's 18 Year Member
usa.gif washington.gif
Occupation: Security
Age: 58
Gender: Male
Status: Offline
Joined: Jul 13, 2006
0.00 posts per day
Posts: 18
Points: 25
   
admin

Is it the /News/admin/index.php file?



Back to top Reply with quote
#6   re: Need help with tinyMCE editor. It removes the backslashe
OptimusPrime
CZ Newbie
OptimusPrime has been a member for over 18 year's 18 Year Member
usa.gif washington.gif
Occupation: Security
Age: 58
Gender: Male
Status: Offline
Joined: Jul 13, 2006
0.00 posts per day
Posts: 18
Points: 25
   
Ok. I finally got the backslashes to stay in the text editor. However, even though they display in preview, they disappear when the actual article is published.

Any ideas what I am missing? I know I am on the right track.



Back to top Reply with quote
#7   
floppydrivez
CZ Addict
 Codezwiz Site Donator
floppydrivez has been a member for over 18 year's 18 Year Member
usa.gif mississippi.gif
Occupation: graphic design
Age: 43
Gender: Male
Website:
Status: Offline
Joined: Feb 26, 2006
0.08 posts per day
Posts: 518
Points: 4,848
AIM Address Yahoo Messenger MSN Messenger 


Originally posted by Telli @ Thu Jul 13, 2006 10:09 am:

There is probably a stripslashes() lfunction used right before the information is sent to the database. Locate it and comment it out then test your News storys.


I have had this same problem, so I just been avoiding slashes. I didn't think of the above suggestion. It also occured on a 7.8 installation.



Back to top Reply with quote
#8   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
Check the News/admin/index.php: function PostStory().




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#9   re: Need help with tinyMCE editor. It removes the backslashe
OptimusPrime
CZ Newbie
OptimusPrime has been a member for over 18 year's 18 Year Member
usa.gif washington.gif
Occupation: Security
Age: 58
Gender: Male
Status: Offline
Joined: Jul 13, 2006
0.00 posts per day
Posts: 18
Points: 25
   
if ($hometext == $bodytext) $bodytext = "";

Is this it?



Back to top Reply with quote
#10   re: Need help with tinyMCE editor. It removes the backslashe
OptimusPrime
CZ Newbie
OptimusPrime has been a member for over 18 year's 18 Year Member
usa.gif washington.gif
Occupation: Security
Age: 58
Gender: Male
Status: Offline
Joined: Jul 13, 2006
0.00 posts per day
Posts: 18
Points: 25
   
Well, I had it working and now it's not.

This is frustrating and I can't understand why it was made this way.

Well, I've tried everything I can think of and I just can't get it to work.



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum