Skip to:
Content
Pages
Categories
Search
Top
Bottom

Stop Auto Converting Text Url into Hyperlinked Url

  • @laddi

    Participant

    Hello,
    I am tired but couldn’t find a way to stop converting a simple url text into a hyperlink url.

    This is where I working >> http://www.punjabi.cc/topics/zikar-lyrics-jagjeet-kooner/

    Is there any way I can remove this filter, even the code below returns no desired result.

     remove_filter( 'bbp_get_reply_content', 'make_clickable');
    remove_filter( 'bbp_get_topic_content', 'make_clickable');
    

    How to remove this?, Please help me guyz…

Viewing 14 replies - 1 through 14 (of 14 total)
  • @robin-w

    Moderator

    ok, you’ll need to specify exactly what you are trying to do – a link to a page means I have to guess which part of that page you are referring to.

    Please come back with further details

    @laddi

    Participant

    @Robin, I was annoyed by this problem I took 4 shots of vodka right before posting this topic, but it seem, you also had something??? LOL!

    In the link I posted about, you would see the external links, some mp3 and a google in last reply.

    When a member paste url, into reply or topic, I just want to keep them as text, not automatically parsed as hyperlinks. In other words, I don’t want to make urls clickable, just keep them usual text.

    The remove filter above I mentioned is not working for me, I even tried changing the priority 1 to 255.

    I hope you got what I trying to say… now please tell me what to do.?

    @robin-w

    Moderator

    The remove filter above I mentioned is not working for me, I even tried changing the priority 1 to 255.

    The remove must have the same priority – see

    https://codex.wordpress.org/Function_Reference/remove_filter

    @laddi

    Participant

    @Robin
    Then, what should I put to make it work…

    @robin-w

    Moderator

    try 10, as it is probably set with the default

    @laddi

    Participant

    Not Working with 10 🙁

    
    
    remove_filter( 'the_content', 'make_clickable', 10 );
    remove_filter( 'post_content', 'make_clickable', 10 );
    remove_filter( 'bbp_get_reply_content', 'make_clickable', 10 );
    remove_filter( 'bbp_get_topic_content', 'make_clickable', 10 );
    
    

    @robin-w

    Moderator

    ok, you got me interested enough to look it up.

    bbPress now uses its own version of make_clickable, so the two filters are :

    add_filter( 'bbp_get_reply_content', 'bbp_make_clickable', 4    );
    add_filter( 'bbp_get_topic_content', 'bbp_make_clickable', 4    );
    

    so you need

    remove_filter( 'bbp_get_reply_content', 'bbp_make_clickable', 4);
    remove_filter( 'bbp_get_topic_content', 'bbp_make_clickable', 4);

    @laddi

    Participant

    @Robin, 😯 Woooooooow, Amazing, Man its working, :mrgreen:
    Thanks a Billion Trillion Robin, My dear…
    Oh I am so happy to see its gone… 😀 😀

    Hey, Robin, check it out man, we just got it. You are super. If we could meet, I must arrange a Beer Party.

    Oh this is the lovely piece of art: 💡

    remove_filter( 'bbp_get_reply_content', 'bbp_make_clickable', 4);
    remove_filter( 'bbp_get_topic_content', 'bbp_make_clickable', 4); 

    So everybody just use this above code to stay better in Google, and Don’t Forget to Thanks dear Robin W. All Credit Goes to Him. Hats Off!

    Please make this topic Resolved.

    @robin-w

    Moderator

    Great – glad you’re fixed !

    @gevv

    Participant

    Hi,

    remove_filter( 'bbp_get_reply_content', 'bbp_make_clickable', 4);
    remove_filter( 'bbp_get_topic_content', 'bbp_make_clickable', 4); 

    not work bbpress 2.6.4

    is there any new code?

    @robin-w

    Moderator

    just looked at the new code – try

    remove_filter( 'bbp_get_reply_content', 'bbp_make_clickable', 40);
    remove_filter( 'bbp_get_topic_content', 'bbp_make_clickable', 40); 

    @gevv

    Participant

    working, thanks.

    @ecollart

    Participant

    Such great and useful info …
    Done successfully today, priority is still 40 in version 2.6.9

    Thanks again, Robin.

    @robin-w

    Moderator

    great – thanks for updating us 🙂

Viewing 14 replies - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.
Skip to toolbar