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
nextgen
Worker
Worker


Joined: Sep 28, 2006
Posts: 227
Location: Maryland

PostPosted: Sun Apr 19, 2009 5:49 am Reply with quote

What would i need to change to make the wysiwyg to get the downloads admin text areas ?

Heres what i have currently:

Code:
.'' . _DESCRIPTION . ': <br /><textarea name="description" cols="60" rows="10">'.$description.'</textarea><br />'


any help would be terrific.
 
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6383

PostPosted: Sun Apr 19, 2009 7:53 am Reply with quote

nukeWYSIWYG manual wrote:
6. For the standard "display-as-you-go" approach, replace textarea HTML tags in modules and admin scripts with a PHP call to function wysiwyg_textarea with 5 arguments: textarea name, textarea value, the toolbar set name, textarea columns and textarea rows. For example, in modules/Submit_News/index.php:

echo "<br><br>"
."<b>"._STORYTEXT.":</b> ("._HTMLISFINE.")<br>
."<textarea cols=\"50\" rows=\"12\" name=\"story\"></textarea><br>";

becomes:

echo "<br><br>"
."<b>"._STORYTEXT.":</b> ("._HTMLISFINE.")<br>";
# ."<textarea cols=\"50\" rows=\"12\" name=\"story\"></textarea><br>"
wysiwyg_textarea("story", "", "NukeUser", "50", "12");

If there is a value between the <textarea> and </textarea>, tags, that should be specified as the second argument in the wysiwyg_textarea function call.

The 3rd argument defines the toolbar set, which controls which functions are available to the user. Since these functions can present security risks, this should be chosen carefully. By default, the most limited toolset bar will be chosen. In admin functions, you may choose to use PHPNukeAdmin which loads all FCKeditor functions. The NukeUser toolbar set is more limited, more secure and loads faster.

The textarea columns and rows are used in the event the WYSIWYG editor is turned off. Rows are used to control the height of the text editor when the WYSIWYG editor is on.

NOTE: The name of the first argument cannot contain reserved HTML tags, e.g. description contains SCRIPT. This requires that the fields be renamed.

Note that the variable name containts "SCRIPT" so you'll need to rename the $description variable (and any corresponding description form fields) here and anywhere else it's used in this module (for editing, saving). Assuming you rename it to be desc, then you would change it to be:
Code:
.'' . _DESCRIPTION . ': <br />wysiwyg_textarea("desc", $desc, "PHPNukeAdmin", "60", "10")<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
nextgen
PostPosted: Sun Apr 19, 2009 8:11 am Reply with quote

I will give that a go, Thank you so much. Have been at this for a bit so far. Never gave it a second thought till i started adding downloads to the site. I need to read the manual so i can get a better understanding of it for sure.
 
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 ©