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 September 3rd 2016, 2:15 am

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 September 5th 2016, 5:11 pm; 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 September 3rd 2016, 3:18 am

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 : 51554
Reputation : 3523
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 September 4th 2016, 9: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 September 5th 2016, 5:11 pm

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 September 5th 2016, 5:14 pm

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