PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
greg01
New Member
New Member


Joined: Mar 07, 2005
Posts: 19

PostPosted: Sun Feb 11, 2007 2:51 pm Reply with quote Back to top

Sorry for dumb question fellas but what would be the syntax for this line to enable WYSIWYG in the "Description" text area?

Code:
      <b>Title:</b><br /><input name=\"title\" value=\"".htmlentities(Sanitize($title, 0, 0, 0, 1))."\" size=\"65\" /><br /><br />
      <b>Description:</b><br /><textarea name=\"description\" cols=\"85\" rows=\"15\" style=\"width: 95%;\">".htmlentities(Sanitize($description, 0, 0, 0, 1))."</textarea>
      <br /><br />

I've already tried a few times. Normally I don't have any trouble getting the editor enabled, but this one is stumping me.

Thanks
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 5997

PostPosted: Sun Feb 11, 2007 3:11 pm Reply with quote Back to top

The editor has problems with fields that have names that include reserved words like script in description. You'll need to change the name of the field (e.g. desc) both here and wherever that variable ($description) is processed.

Also, I'm not sure that you want to Sanitize the variable and change it to HTML entities before displaying it.

If not, and assuming this is not an admin function, the syntax here would be:
Code:

      <b>Title:</b><br /><input name=\"title\" value=\"".htmlentities(Sanitize($title, 0, 0, 0, 1))."\" size=\"65\" /><br /><br />
      <b>Description:</b><br />";
# <textarea name=\"description\" cols=\"85\" rows=\"15\" style=\"width: 95%;\">".htmlentities(Sanitize($description, 0, 0, 0, 1))."</textarea>
      wysiwyg_textarea('desc', $desc, 'NukeUser', '85', '15');
      echo "<br /><br />
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum