Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Tue Dec 20, 2005 6:06 pm Reply with quote

Has anyone already incorporated the FCK Editor into the reviews index.php ?
Thought I would ask before I started on it
 
View user's profile Send private message Send e-mail
sixonetonoffun
Spouse Contemplates Divorce



Joined: Jan 02, 2003
Posts: 2496

PostPosted: Tue Dec 20, 2005 6:45 pm Reply with quote

They have several modules (kind of ported) at http://www.phpnuker.de/ you may have to configure some filtering to secure the module. (Use check_html() I guess).

_________________
[b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 
View user's profile Send private message
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6437

PostPosted: Tue Dec 20, 2005 7:19 pm Reply with quote

I'm working on a class that allows you to replace any textarea in Nuke with one line of PHP. It includes a replacement for check_html and the kses HTML filter class - based on a discussion with none other than...sixonetonoffun. I could use a little help six... Having trouble with subdomains.

_________________
I search, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
sixonetonoffun







PostPosted: Tue Dec 20, 2005 7:42 pm Reply with quote

Simular to the nukeurl vs subdomain on some servers in NukeSentinel I'd bet?
 
kguske







PostPosted: Tue Dec 20, 2005 8:05 pm Reply with quote

Not sure about that. It works on some sites with subdirectories, but not on the test site - either using the subdomain or subdirectory to access. I've tried many different combinations of setting the basepath - but nothing works.

I'm setting up another test site to see if it's really a subdomain / subdirectory issue or something else...
 
Guardian2003







PostPosted: Tue Dec 20, 2005 9:10 pm Reply with quote

six - thanks for the link I'll be sure to check that out.

kguske - sounds like an interesting project you have going there.
I just did a quick install myself and the first thing I noticed in the readme was edit this, edit that etc if your not using the root directory - wouldnt it be easier to declare a global $nukeurl to save all that hassle?
Your thoughts appreciated.
 
kguske







PostPosted: Tue Dec 20, 2005 9:20 pm Reply with quote

In the latest version, there is no need to edit anything for the root directory other than whatever textarea you want to use. Then again, it didn't work correctly on one of the test sites. It works well on the other sites I use it on.

nukeWYSIWYG includes a replacement for the mainfile check_html function that allows filtering HTML using the kses class. Sixonetonoffun had the idea and provide significant assistance in making it happen. You can also define different security levels - for example, to give admins full authority to all FCKeditor functions, vs. visitors or members.
 
kguske







PostPosted: Tue Dec 20, 2005 9:29 pm Reply with quote

The function is designed so that you can replace FCKeditor with SPAW or another HTML editor if you like. I'm thinking of doing a SPAW version, and adding the ability to configure for which functions not to use it.
 
Guardian2003







PostPosted: Tue Dec 20, 2005 9:50 pm Reply with quote

Interesting concept.
Yes you are right regarding no editing needing to be done *if* nuke is installed in the root directory but I was thinking out load as to why it would need to be edited at all when we can use $nukeurl to tell it where it is by pre defining the path but then I guess, there will always be someone that wants to install it outside of the conventional nukeroot/modules directory path.
 
kguske







PostPosted: Tue Dec 20, 2005 9:58 pm Reply with quote

Sorry - I meant in the latest version of nukeWYSIWYG. I added some code that eliminates (hopefully) the need to edit the basepath setting in 2 files regardless of whether it's in the root path or a directory. Theoretically, it should support having a subdomain (http://demo.mydomain.com) or a subdirectory (http://mydomain.com/demo). As soon as the install completes, I'll verify that...
 
kguske







PostPosted: Wed Dec 21, 2005 12:13 am Reply with quote

After a minor change, it does work for both subdomains and subdirectories on the same site. But still not working on the 2.0 test site. There must be some sort of conflict, but I've checked for javascript conflicts and can't find anything. Six, any ideas?
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

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 ©