bbPress Showcase » Plugins by _ck_

Re-using BBcode-lite Functions

(3 posts)

  1. filiped

    member
    Joined: Apr '09
    Posts: 15

    offline
    filiped

    Hi CK! How are you?

    I finally manage to make that system using bbPress to work perfectly, including ajax refresh of the latest replies. Really thanks for your help

    Since I'm calling everything from outise of bbPress, I'm having a detail with BBcode-lite not rendering the html tags, obviously.

    Since I want to make users able to re-edit bbCode, the 'pre_post' setup isn't a good alternative.

    I'm wondering: how can I reuse your filters in my application?

    Take a look in what's happening: http://www.insidernews.com.br/auditorio

    Best regards,

    Posted 1 year ago #
  2. _ck_

    senior admin
    Joined: Jul '06
    Posts: 685

    offline
    _ck_

    use bbcode_lite($text)

    but if you have the bbcode-lite plugin already installed, it should be running the filter automatically on post_text - unless you are bypassing all the filters which is very dangerous.

    Posted 1 year ago #
  3. filiped

    member
    Joined: Apr '09
    Posts: 15

    offline
    filiped

    CK, it worked perfectly! Thanks

    I'm using the plugin at the forum, but the insidernews.com.br/auditorio I'm making from zero using things like you teached @ bbpress forum:

    $query="SELECT * FROM bb_topics WHERE topic_status=0 AND forum_id=2 AND topic_sticky>=1 ORDER BY topic_time DESC LIMIT 1";
    $results=$wpdb->get_results($query);

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

keep _ck_ coding >> donate $5 <<     Theme Switcher:
15 users online from in the past 30 minutes. 12 bots 3 guests
254 views today 3,983 yesterday 9,585 peak. Most at once 20 today 77 yesterday 115 peak.
1,783 posts in 296 topics over 44 months by 344 of 1,173 members. Latest: juanmanolo, marcosgdf, fil.diesel