Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> WYSIWYG - Raven's RavenNuke(tm) v2.x Distro
Author Message
greg01
New Member
New Member


Joined: Mar 07, 2005
Posts: 19

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

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: 6383

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

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 />

_________________
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
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> WYSIWYG - Raven's RavenNuke(tm) v2.x Distro

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 ©