Question post.php

Status
Not open for further replies.

Force

Customer
Code:
// Deal with the case that quote was the only content of the post
        if (trim($page_text) == '')
        {
            $page_text = $this->get_field('pagetext');
            $strip_quotes = false;
        }

        return htmlspecialchars_uni(fetch_censored_text(
            trim(fetch_trimmed_title(strip_bbcode($page_text, $strip_quotes, false, false), $length))));
    }
----------
        // DBTECH THANKS - STRIP HIDE
        global $vbphrase;
        THANKS::doBBCode($page_text, $vbphrase['dbtech_thanks_stripped_content']);
        // DBTECH THANKS - STRIP HIDE
----------
    /**
     * Enter description here...
     *
     * @return unknown
     */
    public function get_pagetext_noquote()
    {
        //figure out how to handle the 'cancelwords'
        $display['highlight'] = array();
        return preg_replace('#\[quote(=("|"|\'|)??.*\\2)?\](((?>[^\[]*?|(?R)|.))*)\[/quote\]#siUe',
            "process_quote_removal('\\3', \$display['highlight'])", $this->get_field('pagetext'));
    }
So i do it like this
 
I tried that, still there was an error when trying to make a post

Update: Got it working now
 
Last edited:
Status
Not open for further replies.

Legacy Advanced Post Thanks / Like

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
4,029
Customer rating
5.00 star(s) 1 ratings
Back
Top