Skip to:
Content
Pages
Categories
Search
Top
Bottom

Stop Auto Converting Text Url into Hyperlinked Url


  • laddi
    Participant

    @laddi

    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

    @robin-w

    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

    @laddi

    @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

    @robin-w

    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

    @laddi

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


    Robin W
    Moderator

    @robin-w

    try 10, as it is probably set with the default


    laddi
    Participant

    @laddi

    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

    @robin-w

    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

    @laddi

    @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

    @robin-w

    Great – glad you’re fixed !


    burhi
    Participant

    @gevv

    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

    @robin-w

    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); 

    burhi
    Participant

    @gevv

    working, thanks.


    ecollart
    Participant

    @ecollart

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

    Thanks again, Robin.


    Robin W
    Moderator

    @robin-w

    great – thanks for updating us 🙂

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