Below is news admin interface from platinum 7.6.0 patched
I realized that it's a tool called tiny_mce but I have no idea how to add this to platinum 7.6.0 patched. Cany someone help me? Thank you very much in advance.
I'd recommend using nukeWYSIWYG (although I'm biased). It uses a different editor called FCKeditor, but provide similar (better, I think) functionality.
You can download it from nukeSEO, and it has instructions for modifying your files to support the editor. After installing nukeWYSIWYG and making some simple modifications to your config.php and mainfile.php, you replace a textarea (e.g. in the modules/News/admin/index.php) with one line of PHP code.
Sorry I am jumping in on this post, Since I know you guys are very knowledgeable with security and php. Plus it was recommended I come here.
For Platinum Nuke 764b2 I took the tiny_mce folder and added it to the includes directory. I then edited the Javascript.php file to add the two lines of code to activate tiny_mce to take over the text area for Admin news only. ( adminStory )
I tested this fuction and it worked out pretty well, Posted my news story no problem, Tiny_mce is not taking over any other text areas on the site or in the forums.
Question for you guys is how secure is this to run that way? I looked at nukeWYSIWYG its seems awesome but not what I was looking for.
I only want to use tiny_mce for admin news on my site. I did however remove all files and put the original javascript.php back until I could verify my site would not have a real security threat. Any ideas or help on this would be greatly appreciated.
Thank you very much for your time,
Ps luv2cd Sorry for jumping in here.
Eck
Last edited by Eck on Wed Jul 12, 2006 6:17 pm; edited 1 time in total
How did you "edit the Javascript.php file to add the two lines of code to activate tiny_mce to take over the text area for Admin news only. ( adminStory )" ?
I eventually decided to just use tiny_mce, but nobody is helping me how to activate it. I put the tiny_mce in the right folder, which is under includes, but I have no idea how to activate it. Just like you, I only need it on the text area for admin news only.
Luv2sd I have no problem helping you but I want to make sure there is no big security issue first. I would rather get a Stop don't do it before I say here it is and something happens to your site. I would really be upset over that especially if I did not ask first. Hope you understand.
nukeWYSIWYG editor allows you to create/modify a number of different 'toolbars' depending on the users status (I do not think tiny_mce allows that?) - so if you were using nukeWYSIWYG all you have to do is remove/disable the 'user' toolbar and only admins will see it.
How did you handle checking for bad HTML tags? Using any WYSIWYG editor increases the likelihood of using HTML that gets blocked by Nuke's check_html function. In 7.7 and higher, they basically stopped using that function where the editor is used, opening a huge security hole.
Using different toolbars as Guardian suggests gives you the ability to prevent uploading files through the editor (like images) that can contain malicious scripts.
Thank you Guardian and Kguske. I appreciate your replies. I am going to try and use nukeWYSIWYG instead, you have made me see the light. Kguske brought up a good point, I never thought about the extra checks for html codes since I am the only admin of my site and was only going to use it for myself. Plus I was under the assumption the Site would block it all if not allowed. Points very well taken and thanks for waking me up on this. I tried something it worked and I got a little excited.
Thank you again for all you hard work you have put into the nuke community. I appreciate it as well do many others. Your time on this post was much appreciated.
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