[MOD] TinyMCE editor for Story Submission at Step 2

Register an Account
Closed Thread
 
Thread Tools Display Modes
  #51 (permalink)  
Old 01-09-2008, 12:30 AM
Casual Pligger
Pligg Version: 9.9
Pligg Template: default
 
Join Date: Jan 2008
Posts: 46
how to install it?
  #52 (permalink)  
Old 01-09-2008, 03:49 AM
netwb's Avatar
Casual Pligger/Coder
Pligg Version: 1.0
Pligg Template: wistie
 
Join Date: Dec 2006
Location: Bruxelles
Posts: 86
Quote:
Originally Posted by werushka View Post
how to install it?
in the templates folder / In the submit_step_2.pl after {config_load file="/libs/lang.conf"}{literal}
example:
HTML Code:
{config_load file="/libs/lang.conf"}
{literal}<script src="http://your_domain.com/js/nicEdit.js" type="text/javascript"></script>
<script type="text/javascript">
     bkLib.onDomLoaded(nicEditors.allTextAreas);
</script>

<script type="text/javascript">
function SetState(obj_checkbox, obj_textarea)
{ if(obj_checkbox.checked)
{ obj_textarea.disabled = false;
}
else
{ obj_textarea.disabled = true;
}
}
function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else
countfield.value = maxlimit - field.value.length;
}
</script>

{/literal}
  #53 (permalink)  
Old 01-18-2008, 10:46 PM
New Pligger
Pligg Version: 9.8
Pligg Template: asd
 
Join Date: Jan 2008
Posts: 23
to install tinymce in edit page:

insert "{if $pagename eq "editlink"}
<script language="javascript" type="text/javascript" src="{$my_pligg_base}/3rdparty/tiny_mce/tiny_mce.js"></script>
{/if}"

after "{checkForJs}" in editlink_edit_center.tpl

and dont forget to download the newest version of tinymce
  #54 (permalink)  
Old 01-19-2008, 09:49 AM
computerbar's Avatar
Pligg Donor
Pligg Version: 9.9.5
Pligg Template: yget,lemontwi
 
Join Date: Nov 2007
Location: UK
Posts: 67
Quote:
Originally Posted by werushka View Post
I don't seem to find

{config_load file="/libs/lang.conf"}

in submit_step_2.tpl
I am using default template

I am using 9.9 any help please?
the 9.9 does not have {config_load file="/libs/lang.conf"}

Just paste it above the other {literal} which is already there i.e. on TOP.
  #55 (permalink)  
Old 01-19-2008, 09:53 AM
computerbar's Avatar
Pligg Donor
Pligg Version: 9.9.5
Pligg Template: yget,lemontwi
 
Join Date: Nov 2007
Location: UK
Posts: 67
Thanks dollars5
(I cant see THANKS button on first post bytheway)

works great in 9.9


TIP: After this editor you do not need to show the ALLOWED HTML TAGS to users.
You can disable it in submit_step_2.tpl

FIND: (the code is there twice)
{if $Story_Content_Tags_To_Allow eq ""}
<br/><b>{#PLIGG_Visual_Submit2_No_HTMLTagsAllowed#} </b>{#PLIGG_Visual_Submit2_HTMLTagsAllowed#}
{else}
<br/>{#PLIGG_Visual_Submit2_HTMLTagsAllowed#}: {$Story_Content_Tags_To_Allow}
{/if}

wrap it with <!-- code --> like in red:
<!--{if $Story_Content_Tags_To_Allow eq ""}
<br/><b>{#PLIGG_Visual_Submit2_No_HTMLTagsAllowed#} </b>{#PLIGG_Visual_Submit2_HTMLTagsAllowed#}
{else}
<br/>{#PLIGG_Visual_Submit2_HTMLTagsAllowed#}: {$Story_Content_Tags_To_Allow}
{/if}
-->

Last edited by computerbar; 01-19-2008 at 11:58 AM.
  #56 (permalink)  
Old 01-19-2008, 10:20 AM
computerbar's Avatar
Pligg Donor
Pligg Version: 9.9.5
Pligg Template: yget,lemontwi
 
Join Date: Nov 2007
Location: UK
Posts: 67
Quote:
Originally Posted by Naranja View Post
i made it and it works well
1) edit editlink_edit_center.tpl and add the same code for submit_step2.tpl on the same part.
2) edit pligg.tpl and add below this code:


this:


cheers.
good work, works OK in 9.9

Last edited by computerbar; 01-19-2008 at 11:57 AM.
  #57 (permalink)  
Old 01-24-2008, 08:18 PM
New Pligger
Pligg Version: 9.9
Pligg Template: standard, with some edits.
 
Join Date: Jan 2008
Posts: 10
Nice .... thanks a bunch, I was worried this would be very difficult to do on my own.

In Pligg 9.9, submit_step_2.tpl does not have the line:
{config_load file="/libs/lang.conf"}

Just place that part of the code at the beginning of the file.
  #58 (permalink)  
Old 02-09-2008, 09:50 PM
New Pligger
Pligg Version: 1.5
Pligg Template: default
 
Join Date: Dec 2007
Posts: 2
I followed all steps to add tiny mce editor in my submisson. but its added only description form. Not added in summary. How can i add both sides? see my screenshot.



2. there is word limit in summary field. i wanna cut this limit.
  #59 (permalink)  
Old 02-10-2008, 09:03 AM
New Pligger
Pligg Version: 1.5
Pligg Template: default
 
Join Date: Dec 2007
Posts: 2
hi all,

i added nicedit editor to my pligg submission. but my editor image not appear.



all my web process stuck because of this problem. please help me. thanks
  #60 (permalink)  
Old 02-13-2008, 11:27 PM
Casual Pligger
 
Join Date: Feb 2008
Posts: 47
Is this secure for mysql database??
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Warning messages in the 3rd step of submission - Please help PurpleCow Questions and Comments 12 10-02-2007 10:27 PM
"Confirm" message box when trying to modify submission in Step 3 nothingman Questions and Comments 0 09-22-2007 06:53 PM
[SOLVED] how to make url submission as not a mandatory step sharatthakur Questions and Comments 2 07-02-2007 01:36 PM
Step 2 Submission Formatting Problem csakon Questions and Comments 0 04-15-2007 11:05 PM
Pligg step 3 of 3 submission error xur17 Questions and Comments 1 04-20-2006 08:22 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