Navigation

Pligg Support

All I found about it was an ages old forum post, saying that it would be included in Pligg 2.0.

Apparently, it's not. My question is, how to add it anyway? I can make it appear, but neither the formatting, nor the added images show up in the submitted comments or posts.

Possible Answers

    Be hurry and look how work with tinymce or ckeditor http://maslinuxblog.com/?p=1125 />
    Admins delete muy posts

    | Posted 296 days ago | Permalink | Hide Replies

    DannyV Be careful ¡¡ your installation is on a big RISK ¡¡

    | Posted 295 days ago | Permalink | Hide Replies

    And what this is supposed to mean??

    | Posted 295 days ago | Permalink | Hide Replies

    Please, send me a email. You are installing a Pligg site,delete install files

    | Posted 295 days ago | Permalink | Hide Replies

    ??

    | Posted 295 days ago | Permalink | Hide Replies

    I'm not installing anything right now and I still don't know what are you talking about.

    | Posted 295 days ago | Permalink | Hide Replies

    adultmonster.info is not your?

    | Posted 295 days ago | Permalink | Hide Replies

    I must have forgotten about that. But if you'd have tell me the url right away, we would have spared these extra rounds. Thanks by the way.

    | Posted 295 days ago | Permalink | Hide Replies

    I did not want to speak publicly.

    Sorry if I upset.

    | Posted 295 days ago | Permalink | Hide Replies

    It's alright. I totally forgot about that domain. Thanks again.

    | Posted 295 days ago | Permalink | Hide Replies

    DannyV try in /libs/utils.php with this lines:

    function save_text_to_html($string) {

    $string = strip_tags(trim($string));

    $string= htmlspecialchars($string);

    // $string= $string;

    $string = preg_replace("/[rn]{2,}/", "n", $string);

    return $string;

    }

    In libs/comment.php:

    $text = $this->content;

    $vars = array('comment_text' => $text, 'smarty' => $smarty);

    check_actions('show_comment_content', $vars);

    $smarty->assign('comment_content', html_entity_decode($this->content),"");

    And very important, in html1.php put:

    function sanitize($var, $santype = 1, $allowable_tags = ''){

    if ($santype == 1) {

    return strip_tags($var, $allowable_tags = '');

    }

    elseif ($santype == 2) {

    return htmlentities(strip_tags($var, $allowable_tags),ENT_QUOTES,'UTF-8');

    }

    elseif ($santype == 3) {

    return addslashes(strip_tags($var, $allowable_tags));

    }

    elseif ($santype == 4) {

    return stripslashes(preg_replace('/]+)>/es', "''",strip_tags($var, $allowable_tags)));

    }

    elseif ($santype == 5) {

    return preg_replace('/sonw+s*=/is','',$var);

    print "";

    }

    }

    Im working with ckeditor, not with Tinymce in comments. Anyway if still the problem just send me email. You'll find that in my profile. Or via Facebook.

    | Posted 296 days ago | Permalink | Hide Replies

    Well, I must be doing something wrong then, because it wouldn't show up neither in bootstrap, nor in OTNewz.

    It's not embedding the code that proves to be the issue, since I can simply put it in the body of the template, with a header call for the script.

    The problem is that the editor ignores the text formatting, and submits the plain text instead.

    | Posted 296 days ago | Permalink | Hide Replies

    May be you keep libs/comment.php and utils.php untouched. You must change some code in the two archives or download my comment.php & utills.php and replace. In my site work great.

    Regards,

    Pedro

    | Posted 296 days ago | Permalink | Hide Replies

    Overwrote everything on localhost, but still the same. The code has been added to the corresponding files, but even after rewriting the files mentioned, the live site still strips off every html tag TinyMCE puts into the comment.

    | Posted 296 days ago | Permalink | Hide Replies

    The editor doesn't dictate the allowed html. That's a Pligg function. Set the Allowed HTML in the 'submit' portion of the Configuration.

    | Posted 296 days ago | Permalink | Hide Replies

    If it would be that easy, I wouldn't come here asking. I tried to add the "strong" tag that TinyMCE uses for bold characters, and it all gets stripped out, no matter if it's a normal user or an administrator.

    But let's keep an open mind here. Let me know what html tags I should allow to have all the html tags allowed, except iframe.

    | Posted 296 days ago | Permalink | Hide Replies

    The tag for strong needs to use the greater than and less than characters

    http://www.w3schools.com/html/html_quick.asp

    | Posted 295 days ago | Permalink | Hide Replies

    So what you mean is, I should also add the closing tags as well? Because the admin area contains only the opening ones.

    | Posted 295 days ago | Permalink | Hide Replies

    Yeah, I tried to give you a full example but it stripped my tag example. Of course. So I edited and added the link

    You need the greater than and less than characters on the tag and you'll need the corresponding closing tags.

    | Posted 295 days ago | Permalink | Hide Replies

Who Upvoted this Story

Pligg.com's Support area is where you can ask questions and get answers. Just getting started with the Support area? This section describes tips for participating.

Submitting a Question or Comment

By taking a minute to research previous posts you may receive an answer much faster than waiting for a response to a new question. Begin by searching the support section for an answer. Sometimes you may even want to extend your search to the entire pligg.com domain.

If you are unable to find a relevant answer, submit a new question or comment here. Please provide a detailed description and, when necessary, debugging information such as your server environment (a link to a <?php phypinfo(); ?> .php page would be very helpful), your web browser, and any steps necessary to reproduce your issue.

Submitting an Answer

If you have an answer or useful response that you would like to add to a post, you can submit it as a comment which other users will then vote on. Answers are sorted by most popular to least, allowing the best information to climb to the top of the page.

Please read and vote for existing answers before submitting your own, as there may already be an acceptable answer provided. You can use the "Reply" link found within an answer to submit a response to it, in case you want to expand or comment on someone else's contribution.

Including Files or Code

Sometimes it is necessary for you to attach a file or include a snippet of code for others to reference in your response. In most cases, you can .zip up files and attach them to a question or answer using Pligg's file manager. At times though this may fail, and in these circumstances we recommend using a third party host. Below we are including a list of recommended websites where you can share easily share file uploads (or snippets of code) through the web.