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

View previous topic View next topic Go down

Solved Remove links when quote

Post by TamDonCo on 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
avatar
TamDonCo
Forumember

Posts : 186
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Remove links when quote

Post by SLGray on September 3rd 2016, 3:18 am

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

Male Posts : 131
Reputation : 45
Language : spanish

Back to top Go down

Solved Re: Remove links when quote

Post by TamDonCo on September 5th 2016, 5:11 pm

Thank You very much , Ch@lo Valdez

It works excellent ...
avatar
TamDonCo
Forumember

Posts : 186
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Remove links when quote

Post by Nemo on September 5th 2016, 5:14 pm

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

View previous topic View next topic Back to top


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