The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Remove links when quote

Go down

Solved Remove links when quote

Post by TamDonCo on Fri 2 Sep - 17:15

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 5 Sep - 8:11; edited 1 time in total
avatar
TamDonCo
Forumember

Posts : 284
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Remove links when quote

Post by SLGray on Fri 2 Sep - 18:18

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


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

avatar
SLGray
Administrator
Administrator

Male Posts : 41867
Reputation : 2877
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Remove links when quote

Post by Ch@lo Valdez on Sun 4 Sep - 0:25

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()
            }
        }
    })
avatar
Ch@lo Valdez
Forumember

Male Posts : 131
Reputation : 46
Language : spanish

Back to top Go down

Solved Re: Remove links when quote

Post by TamDonCo on Mon 5 Sep - 8:11

Thank You very much , Ch@lo Valdez

It works excellent ...
avatar
TamDonCo
Forumember

Posts : 284
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Remove links when quote

Post by Nemo on Mon 5 Sep - 8:14

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

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

http://www.helpgr.forumgreek.com

Back to top Go down

Back to top


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