Add-on: Spell checker for submitting stories

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 08-08-2006, 11:57 AM
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,215
Since you said you kept forgetting to do this Ash I went ahead and figured it out. This add-on is for anyone who wants to add the spell checker to step 2 of submitting a new story. This add-on only applies to those who are already using the spell checker. If you don't have the spell checker installed and you want to install it go here

In your submit_step_2.tpl below
Code:
<textarea name="bodytext"  rows="10" cols="60" id="bodytext" >{$submit_content}</textarea>
add
PHP Code:
<br />
    {if 
$Spell_Checker eq 1}<input type="button" name="spelling" value="Check Spelling" class="submit" onClick="openSpellChecker('bodytext');"/>{/if} 
In your submit.php below
Code:
function do_submit1() {    
	global $main_smarty, $db, $dblang, $current_user, $the_template;
add
PHP Code:
$main_smarty->assign('Spell_Checker',Spell_Checker); 
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable the spell checker? nicog Questions and Comments 1 07-27-2009 12:08 PM
Error while using spell checker blitz Questions and Comments 0 04-22-2009 01:20 PM
Add-on: Spell checker while editing your stories kbeeveer46 Questions and Comments 1 08-23-2006 10:02 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development