

![]() |
| | Thread Tools | Display Modes |
| |||
|
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} |
| |||
|
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 |
| ||||
| Quote:
Just paste it above the other {literal} which is already there i.e. on TOP. |
| ||||
|
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. |
| ||||
| good work, works OK in 9.9
Last edited by computerbar; 01-19-2008 at 11:57 AM. |
| |||
|
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. |
| |||
|
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. |
| |||
|
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 |
![]() |
| 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 |