Search

bbPress Showcase » bbPress Chat

Need help merging 2 functions

RSS

  1. Null
    User has not uploaded an avatar

    member
    Joined: May '08
    Posts: 43

    offline

    Hmmm yes that would be an option and then manually add the </p> behind the ...

    Then there only will be a problem when the last word happens to be a hyperlink and the isn't processed, but thats something I can live with.

    So, how would I remove the </p>'s??

    Kind regards,

    Posted 3 years ago #
  2. Null
    User has not uploaded an avatar

    member
    Joined: May '08
    Posts: 43

    offline

    I think I am on to something, testing it right now, keep you posted!

    Posted 3 years ago #
  3. Null
    User has not uploaded an avatar

    member
    Joined: May '08
    Posts: 43

    offline

    Ok I have some new code, but it aint working as intended:
    http://pastebin.com/m5e541754

    It returns 4 words and images aint displaying anymore...

    I am thinking of another solution. i am beginning to think shorten the post text is plain impossible....

    The new plan: is to add a new filter so only the stuff between the new tags <rm>textextxt</rm> is shown on the blog page. But how can I auto add ... before the </rm> and the read more link (so this should be done while filtering)? And how do I get bbpress normal posts to hide the <rm> tags when viewing a post and do nothing with them? Adding a filter <rm> to do just nothing wont work I guess since it will interfere with the blog <rm>?

    Posted 3 years ago #

RSS feed for this topic

Post a reply to “Need help merging 2 functions”

You must log in to post.

keep _ck_ coding >> donate $5 <<     Theme Switcher:
36 users online from in the past 30 minutes. 12 bots 24 guests
7,348 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