Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> FCKeditor/WYSIWYG Issues
Author Message
steve_lemaster
Worker
Worker


Joined: Dec 26, 2006
Posts: 178

PostPosted: Sat Mar 17, 2007 10:50 pm Reply with quote

But, what is this WYSIWYG editor? I uploaded SPAW and can't figure out how to even find it, much less use it.

Anyone want to help a Nuke Noobie? Confused
 
View user's profile Send private message Send e-mail
jjh221
Worker
Worker


Joined: Dec 05, 2006
Posts: 178

PostPosted: Sun Mar 18, 2007 12:29 am Reply with quote

Hi noob, call me a noob what is spaw?

What You See Is What You Get
 
View user's profile Send private message
steve_lemaster
PostPosted: Sun Mar 18, 2007 12:31 am Reply with quote

LOL! Well, I know that. Sorry for not being more specific.

what I meant was how is it used and how is this SPAW used. I uploaded it and played with the demo, but, I don't know how to incorporate it into my Nuke site.

I am uploading Raven's 2.10 right now and I would like to see how this WYSIWYG editor works.
 
jjh221
PostPosted: Sun Mar 18, 2007 12:35 am Reply with quote

no really i dont know what spaw is. Where did you get it?
 
steve_lemaster
PostPosted: Sun Mar 18, 2007 12:45 am Reply with quote

Only registered users can see links on this board! Get registered or login!

How do you use the WYSIWYG editor? When I uploaded RavenNuke 2.10, it looked like the same ol' text editor to me.
 
jjh221
PostPosted: Sun Mar 18, 2007 12:56 am Reply with quote

Read your HowToInstall. Point your browser your Only registered users can see links on this board! Get registered or login! then go to Prepare/Install the Files.

You need to turn it on in your rnconfig.php
 
steve_lemaster
PostPosted: Sun Mar 18, 2007 12:58 am Reply with quote

Oh geez, DUH! I thought it was on by default! LOL!

Well, I guess you can call me Homer J. Simpson. I'm still learning.
 
jjh221
PostPosted: Sun Mar 18, 2007 1:03 am Reply with quote

I am too. Smile Looks like you can use that spaw with nuke but the page explaining how to, does not work, but only 1.x

Im sure there is a way to edit this one to make it look more pretty, but as far as how much you can do compared to others, i have no clue.
 
steve_lemaster
PostPosted: Sun Mar 18, 2007 1:09 am Reply with quote

Well, it looks like WYSIWYG editor is good enough. Somebody hacked one of my sites and rewrote the SQL tables and phpMyAdim couldn't upload my backup. So, I figured that I wasn't up to the challenge quite yet.
 
steve_lemaster
PostPosted: Sun Mar 18, 2007 1:16 am Reply with quote

Well, I see that it still doesn't allow the use of the backslash. Oh well.
 
jjh221
PostPosted: Sun Mar 18, 2007 1:19 am Reply with quote

I think its only whats allowable html in your config.php file. :shrugs:

as for the hack?! use rn Smile Im not sure exactly how to solve your problem, but id just drop your database and use your backup.
 
steve_lemaster
PostPosted: Sun Mar 18, 2007 1:22 am Reply with quote

I tried to use the backup and phpMyAdmin couldn't load it correctly.

I think any use of backslashes isn't allowed. If you try to refer to, say, a directory in Windows, it shows up as C:Windows.
 
jjh221
PostPosted: Sun Mar 18, 2007 1:25 am Reply with quote

hmm not sure what you are tryign to do with the \'s. Your back up might be bad? I dont know what all a hacker can do. If your back up is good id even change your $prefix's and user's. :shrugs: im sure someone will correct me.

Id even change your $prefix anyways.
 
steve_lemaster
PostPosted: Sun Mar 18, 2007 1:29 am Reply with quote

Quote:
hmm not sure what you are tryign to do with the \'s.


If I try to refer to a Windows directory in a story, the backslashes disappear. For example:

Code:
C:\Windows\INF
, shows up without the backslashes when the story is published and it looks like C:WindowsINF
 
steve_lemaster
PostPosted: Sun Mar 18, 2007 1:48 am Reply with quote

Well, time for bed.
 
jjh221
PostPosted: Sun Mar 18, 2007 1:51 am Reply with quote

ah i see what you mean. dont know...

Night.
 
steve_lemaster
PostPosted: Sun Mar 18, 2007 1:52 am Reply with quote

I hope somebody knows.

night.
 
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17086

PostPosted: Sun Mar 18, 2007 4:51 am Reply with quote

You must use 2 \\ because 1 backslash is for escaping. So, for PHP to parse correctly, it needs to see \\.
 
View user's profile Send private message
steve_lemaster
PostPosted: Sun Mar 18, 2007 10:26 am Reply with quote

Raven wrote:
You must use 2 \\ because 1 backslash is for escaping. So, for PHP to parse correctly, it needs to see \\.


Nope, that didn't work. Four did and it only worked in the News module..
 
Raven
PostPosted: Sun Mar 18, 2007 11:37 am Reply with quote

Then it appears that the editor is buggy. I will turn this over to our resident expert.
 
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6383

PostPosted: Sun Mar 18, 2007 12:15 pm Reply with quote

Following this thread is very confusing. First, RN 2.1 uses nukeWYSIWYG featuring FCKeditor 2.3.1. SPAW is another editor that we looked into, but it isn't installed with RN. Next, the WYSIWYG editor is off by default as jjh221 correctly noted.

But it seems the outstanding question is why are backslashes being removed? I haven't seen this, but I don't think it has to do with allowable_html, nor with the editor itself. It's more likely the addslashes / stripslashes logic being used in the various functions. I haven't tested Windows recently - but can't you replace the backslash \ with a forward slash / when referring to images, etc.?

Also, Steve, which functions did you test unsuccessfully (in addition to adding the 4 backslashes with news)?

_________________
I google, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
steve_lemaster
PostPosted: Sun Mar 18, 2007 1:39 pm Reply with quote

Ok.

Let's say I want to place a simple news article in the home page. In that article I refer to a Windows directory
Code:
C:\Windows\INF
. Well, when the article is published, the backslashes are removed and it looks like C:WindowsINF.

When I use C:\\\\Windows\\\\INF it shows up like
Code:
C:\Windows\INF
like it should, but, only in the home page. Everywhere else it shows up as C:WindowsINF.

Make sense.

Now I'm a complete noob when it comes to PHP coding, but, it seems that I recall somwhere that it is not alloweed because of the ability to inject malicious code into the SQL tables.

You can see the effects here Only registered users can see links on this board! Get registered or login!
 
kguske
PostPosted: Mon Mar 19, 2007 10:14 am Reply with quote

OK. Let me ask it a different way:

Can't you replace the backslash \ with a forward slash / when referring to images, etc.?

On which functions did you have this problem (in addition to adding the 4 backslashes with news)?
 
steve_lemaster
PostPosted: Mon Mar 19, 2007 2:59 pm Reply with quote

I am not referring to images I am referring to Windows directories. Of course I could probably do it in the way you describe, but, it could cause confusion.

I just don't understand why they get stripped.

As to what functions are affected, all of them are.
 
kguske
PostPosted: Mon Mar 19, 2007 3:30 pm Reply with quote

PHP uses backslashes to escape string variables that may contain characters like quotes and apostrophes so that these characters can be stored correctly in a database. PHP-Nuke uses addslashes and stripslashes functions to handle this scenario.

It may be that Nuke isn't using these functions correctly in all scenarios, which is why I asked which specific functions (e.g. adding news, editing news, adding messages, editing messages, etc.) aren't working. That helps us find answers more quickly than having to search every function.

I'll look into adding and editing news stories first to see what I can find. In the meantime, try changing the backslash to a forward slash to see if everything works correctly.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> FCKeditor/WYSIWYG Issues

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©