Search

bbPress Showcase » Plugins by _ck_

Re-using BBcode-lite Functions

RSS

  1. filiped
    filiped

    member
    Joined: Apr '09
    Posts: 15

    offline

    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 3 years ago #
  2. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 908

    offline

    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 3 years ago #
  3. filiped
    filiped

    member
    Joined: Apr '09
    Posts: 15

    offline

    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 3 years ago #

RSS feed for this topic

Post a reply to “Re-using BBcode-lite Functions”

You must log in to post.

keep _ck_ coding >> donate $5 <<     Theme Switcher:
28 users online from in the past 30 minutes. 18 bots 10 guests
7,482 views today 8,426 yesterday 16,043 peak. Most at once 50 today 62 yesterday 131 peak. Visited today: Amylawrence, guava, JeffreyCasivant, wigbuy123, gdfddfs, nandao, _ck_, summerfortun
2,288 posts in 394 topics over 66 months by 430 of 2,167 members. Latest: watchessaleus, wigbuy123, JeffreyCasivant