PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  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
Dawg
RavenNuke(tm) Development Team


Joined: Nov 07, 2003
Posts: 889

PostPosted: Sat Nov 08, 2008 1:12 am Reply with quote Back to top

In the "OLD" days (LOL) we did have a niffty thing called an editor.

What is the Proper way to call it for a text area?

Dawg
View user's profile Send private message
jestrella
Moderator


Joined: Dec 01, 2005
Posts: 535
Location: Santiago, Dominican Republic

PostPosted: Sat Nov 08, 2008 8:07 am Reply with quote Back to top

Do you mean how to call editor to display in a textarea?
View user's profile Send private message Visit poster's website
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Sat Nov 08, 2008 2:55 pm Reply with quote Back to top

From the nukeWYSIWYG readme:
Quote:
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.


Is that what you're looking for?
View user's profile Send private message
Dawg
RavenNuke(tm) Development Team


Joined: Nov 07, 2003
Posts: 889

PostPosted: Sun Nov 09, 2008 11:40 pm Reply with quote Back to top

Yes Excellent Thank you!

Dawg
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