Document directory
- Install the post-HTML editor plug-in of pligg9.7beta (tinymce_2_1_1_1)
Install the post-HTML editor plug-in of pligg9.7beta (tinymce_2_1_1_1)
How to Use the HTML editor when pligg submits news. There are no articles about this in China, so I have read the English tutorials on the pligg official website and hope to help you: to use the HTML editor instead of the pligg default monotonous plain text editor, we need a program called tinymce. You can download it from tinymce's official website.
By clin003 at 20070718 from: http://clin003.com/or http://blog.csdn.net/clin003/
It should be noted that it is best to select UTF-8 encoding for saving. Otherwise, a message will be prompted (the default yget template does not exist anymore. Please fix this so you can fix other problems!
)
++ Add at 20070826 ++
Problems solved in this article:
Added the pligg Content Management System rich content (HTML) Editor.
Display tips for inserting a video Abstract
Double quotation marks .. "Display disorder Solution
++ Add at 20070826 ++
Effect
By clin003 at 20070718 from: http://clin003.com/or http://blog.csdn.net/clin003/
After the download,
Step 1:
Unbind the tinymce package, just copy the tiny_mce folder under the/tinymce/jscripts/directory to the 3rdparty directory in the pligg installation path. (If you are in trouble, click here to download the clean Software Package (address 1: http: // assets // i0day.com/bbeta/tiny_mce.rar). decompress the package and copy it to the 3rdparty directory of pligg)
By clin003 at 20070718 from: http://clin003.com/or http://blog.csdn.net/clin003/
Step 2:
Go to the pligg Management Panel, edit the settings option, change the default parameter of "Submit news", and set the current HTML value as shown in this figure.
------------------------ Add at 20070819
(The <span> label may cause messy layout. We recommend that you do not use span)
------------------------ Add at 20070819
Step 3:
Use your preferred text editing tool to edit the pligg. TPL file in the templates/yget directory of the pligg installation path.
{checkForJs}
(About 36 rows)
{if $pagename eq "submit"}
<script language="javascript" type="text/javascript" src="{$my_pligg_base}/3rdparty/tiny_mce/tiny_mce.js"></script>
{/if}
Step 4:
Edit submit_step_2.tpl in the same directory.
{config_load file="/libs/lang.conf"}
(About the first line)
{literal}
<script language="javascript" type="text/javascript">
tinyMCE.init({
mode : "exact",
elements : "bodytext",
theme : "advanced",
plugins : "advimage,advlink,emotions,iespell,insertdatetime,preview,media,visualchars,xhtmlxtras",
theme_advanced_buttons1 : "bold,italic,underline,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,insertdate,inserttime,|,forecolor,backcolor,|,hr,removeformat,formatselect",
theme_advanced_buttons2 : "link,unlink,image,media,|,undo,redo,cleanup,|,code,preview",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_path_location : "bottom",
extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]"
});
</script>
{/literal}
Now, where are you going to submit the news? In step 2, is there a beautiful HTML editor in the submit box?
By clin003 at 20070718 from: http://clin003.com/or http://blog.csdn.net/clin003/
(The third fourth step modified the file, I here also provide download (address 1: http://redrenblog.googlepages.com/tpl.rar, address 2: http://i0day.com/bbeta/yget.rar), too troublesome words, put the two downloaded files in the directory I just mentioned .)
It should be noted that it is best to select UTF-8 encoding for saving. Otherwise, a message will be prompted (the default yget template does not exist anymore. Please fix this so you can fix other problems!
)
----------------------------- Edit and add at 20070824 ---
In addition, when you use this editor to insert a video (I only insert a YouTube video), the size adjustment may not work. In this way, you can directly use the HTML button to edit the HTML code and use the YouTube code, good performance testing @ _ @ (there is also the homepage call display and content display is a truth, as long as the summary shows enough characters, those codes are not truncated, you can call the home page to directly display videos and other rich content. Sometimes the connection or typographical error may occur after the article is submitted. Check if some code in your summary is truncated, if so, the problem can be solved after self-modification)
In fact, any code length may cause abnormal pages (such as display disorder, subscription to post content, etc) in this case, you can check the HTML code of your article to replace the double quotation marks (") with single quotation marks ('). At present, this can solve most of the problems, but for malicious people, this may not be bad news !!
----------------------
When the code section of the article contains double quotation marks ("), click" to add it... "The content of an article may be displayed incorrectly. The solution is to re-edit the article after the article is published (you can copy the code in the text box to notepad and replace double quotation marks with single quotes ).
------------------------ Add at 20070826
----------------------------- Edit and add at 20070824 ------
Code example: <p> <embed src = "http://www.youtube.com/v/i4BYMvVvMg0" type = "application/X-Shockwave-flash" wmode = "Transparent" width = "425" Height = "350"> </embed> </P>
Reference from: http://blog.redren.com /? P = 117 and pligg tutorials on the official website