The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Remove links when quote

4 posters

Go down

Solved Remove links when quote

Post by TamDonCo Fri Sep 02, 2016 7:15 pm

When the user click on Quote button of another user , it looks like this


Code:
[quote="ABC"]
bla bla bla ...............

[img] image link here [/img]

bla bla bla ...

[img] image link here [/img]

bla bla bla

[/quote]


can we have the code automatically remove all the image links ??


Last edited by TamDonCo on Mon Sep 05, 2016 10:11 am; edited 1 time in total
TamDonCo
TamDonCo
Forumember

Posts : 427
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Remove links when quote

Post by SLGray Fri Sep 02, 2016 8:18 pm

I have not seen any codes that will remove images from quotes.


Remove links when quote Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51528
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Remove links when quote

Post by Ch@lo Valdez Sun Sep 04, 2016 2:25 am

ok, this code works in the posts, try:

Code:

    $(function () {
        if (/\/t\d+/g.test(window.location.pathname)) {
            var i, a = document.querySelectorAll('blockquote img');
            for (i = 0; i < a.length; i++) {
                a[i].remove()
            }
        }
    })
Ch@lo Valdez
Ch@lo Valdez
Forumember

Male Posts : 138
Reputation : 50
Language : spanish

Back to top Go down

Solved Re: Remove links when quote

Post by TamDonCo Mon Sep 05, 2016 10:11 am

Thank You very much , Ch@lo Valdez

It works excellent ... Remove links when quote 1f44d
TamDonCo
TamDonCo
Forumember

Posts : 427
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Remove links when quote

Post by Nemo Mon Sep 05, 2016 10:14 am

Problem solved & topic archived.
Please read our forum rules: ESF General Rules
Nemo
Nemo
Active Poster

Male Posts : 1203
Reputation : 119
Language : Greek, English, French

http://www.helpgr.forumgreek.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum