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 105 days ago | Permalink | Hide Replies

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

    | Posted 104 days ago | Permalink | Hide Replies

    And what this is supposed to mean??

    | Posted 104 days ago | Permalink | Hide Replies

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

    | Posted 104 days ago | Permalink | Hide Replies

    ??

    | Posted 104 days ago | Permalink | Hide Replies

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

    | Posted 104 days ago | Permalink | Hide Replies

    adultmonster.info is not your?

    | Posted 104 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 104 days ago | Permalink | Hide Replies

    I did not want to speak publicly.

    Sorry if I upset.

    | Posted 104 days ago | Permalink | Hide Replies

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

    | Posted 104 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 105 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 105 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 105 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 105 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 105 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 105 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 104 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 104 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 104 days ago | Permalink | Hide Replies

Who Upvoted this Story