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

TamDonCo
Forumember

Posts : 171
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.


SLGray
Administrator
Administrator

Male Posts : 35635
Reputation : 2372
Language : English
Location : United States

http://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()
            }
        }
    })

Ch@lo Valdez
Forumember

Male Posts : 33
Reputation : 12
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 ...

TamDonCo
Forumember

Posts : 171
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

Nemo
Support Moderator
Support Moderator

Male Posts : 992
Reputation : 99
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