Author |
Message |
steve_lemaster
Worker


Joined: Dec 26, 2006
Posts: 178
|
Posted:
Sat Mar 17, 2007 10:50 pm |
|
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?  |
|
|
|
 |
jjh221
Worker


Joined: Dec 05, 2006
Posts: 180
|
Posted:
Sun Mar 18, 2007 12:29 am |
|
Hi noob, call me a noob what is spaw?
What You See Is What You Get |
|
|
|
 |
steve_lemaster

|
Posted:
Sun Mar 18, 2007 12:31 am |
|
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

|
Posted:
Sun Mar 18, 2007 12:35 am |
|
no really i dont know what spaw is. Where did you get it? |
|
|
|
 |
steve_lemaster

|
Posted:
Sun Mar 18, 2007 12:45 am |
|
|
|
 |
jjh221

|
Posted:
Sun Mar 18, 2007 12:56 am |
|
Read your HowToInstall. Point your browser your http://yoursite/HowToInstall/ then go to Prepare/Install the Files.
You need to turn it on in your rnconfig.php |
|
|
|
 |
steve_lemaster

|
Posted:
Sun Mar 18, 2007 12:58 am |
|
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

|
Posted:
Sun Mar 18, 2007 1:03 am |
|
I am too. 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

|
Posted:
Sun Mar 18, 2007 1:09 am |
|
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

|
Posted:
Sun Mar 18, 2007 1:16 am |
|
Well, I see that it still doesn't allow the use of the backslash. Oh well. |
|
|
|
 |
jjh221

|
Posted:
Sun Mar 18, 2007 1:19 am |
|
I think its only whats allowable html in your config.php file. :shrugs:
as for the hack?! use rn Im not sure exactly how to solve your problem, but id just drop your database and use your backup. |
|
|
|
 |
steve_lemaster

|
Posted:
Sun Mar 18, 2007 1:22 am |
|
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

|
Posted:
Sun Mar 18, 2007 1:25 am |
|
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

|
Posted:
Sun Mar 18, 2007 1:29 am |
|
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:
, shows up without the backslashes when the story is published and it looks like C:WindowsINF |
|
|
|
 |
steve_lemaster

|
Posted:
Sun Mar 18, 2007 1:48 am |
|
|
|
 |
jjh221

|
Posted:
Sun Mar 18, 2007 1:51 am |
|
ah i see what you mean. dont know...
Night. |
|
|
|
 |
steve_lemaster

|
Posted:
Sun Mar 18, 2007 1:52 am |
|
I hope somebody knows.
night. |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Sun Mar 18, 2007 4:51 am |
|
You must use 2 \\ because 1 backslash is for escaping. So, for PHP to parse correctly, it needs to see \\. |
|
|
|
 |
steve_lemaster

|
Posted:
Sun Mar 18, 2007 10:26 am |
|
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

|
Posted:
Sun Mar 18, 2007 11:37 am |
|
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: 6437
|
Posted:
Sun Mar 18, 2007 12:15 pm |
|
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 search, therefore I exist...
Only registered users can see links on this board! Get registered or login! |
|
|
 |
steve_lemaster

|
Posted:
Sun Mar 18, 2007 1:39 pm |
|
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 . 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 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 http://www.pctechspot.net |
|
|
|
 |
kguske

|
Posted:
Mon Mar 19, 2007 10:14 am |
|
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

|
Posted:
Mon Mar 19, 2007 2:59 pm |
|
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

|
Posted:
Mon Mar 19, 2007 3:30 pm |
|
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. |
|
|
|
 |
|