Advertisement:

Author Topic: Remove images from Quotes  (Read 21764 times)

Offline Chas Large

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,108
  • Gender: Male
  • Running 2.0.xx on Apache.
    • Chas.Large on Facebook
    • https://www.linkedin.com/in/charles-large-568ba213 on LinkedIn
    • @https://twitter.com/ on Twitter
    • Chas Large's Site
Remove images from Quotes
« on: March 30, 2010, 03:34:14 PM »
Link to Mod

Remove Images from quotes

This modification is based on the [TIP] by Heavyccasey on the support forum.

This mod removes images from quoted text and leaves a link to the image.
Clicking the link restores the removed image.

Version History:
1.4 Final installer bug fix.
1.3 Minor bug fix on installer.
1.2 Included Skip for Language support and corrected code for xHtml validation.
1.1 Included reference to text in modifications list and Skip on error for language english_british.
1.0 Mod tested and working on two forums.

Please use the support link if required.

Regards

Chas Large
March 2010
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

RagingHippieHost

  • Guest
Re: Remove images from Quotes
« Reply #1 on: March 30, 2010, 10:46:48 PM »
Link to Mod

Remove Images from quotes

This modification is based on the [TIP] by Heavyccasey on the support forum.

This mod removes images from quoted text and leaves a link to the image.
Clicking the link restores the removed image.

Version History:
1.4 Final installer bug fix.
1.3 Minor bug fix on installer.
1.2 Included Skip for Language support and corrected code for xHtml validation.
1.1 Included reference to text in modifications list and Skip on error for language english_british.
1.0 Mod tested and working on two forums.

Please use the support link if required.

Regards

Chas Large
March 2010

awesome mod! thanks!

Offline Chas Large

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,108
  • Gender: Male
  • Running 2.0.xx on Apache.
    • Chas.Large on Facebook
    • https://www.linkedin.com/in/charles-large-568ba213 on LinkedIn
    • @https://twitter.com/ on Twitter
    • Chas Large's Site
Re: Remove images from Quotes
« Reply #2 on: March 31, 2010, 04:58:16 AM »
You're welcome, glad you found it useful :)
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

Offline aw06

  • SMF Hero
  • ******
  • Posts: 2,763
  • Gender: Male
  • Make The Link
    • shopinja.classifieds on Facebook
    • @shopinja on Twitter
    • ShopinJA.com
Re: Remove images from Quotes
« Reply #3 on: March 31, 2010, 11:55:07 AM »
Simple mods like these are what make a community better :P

About the install & test................
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,982
    • StoryBB/StoryBB on GitHub
Re: Remove images from Quotes
« Reply #4 on: March 31, 2010, 11:59:53 AM »
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline aw06

  • SMF Hero
  • ******
  • Posts: 2,763
  • Gender: Male
  • Make The Link
    • shopinja.classifieds on Facebook
    • @shopinja on Twitter
    • ShopinJA.com
Re: Remove images from Quotes
« Reply #5 on: March 31, 2010, 12:10:17 PM »
This author only ported it over the rc3 ?
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,982
    • StoryBB/StoryBB on GitHub
Re: Remove images from Quotes
« Reply #6 on: March 31, 2010, 12:12:14 PM »
No, it is different code to the others. I'm just thinking that we now have three mods that do basically the same thing.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline aw06

  • SMF Hero
  • ******
  • Posts: 2,763
  • Gender: Male
  • Make The Link
    • shopinja.classifieds on Facebook
    • @shopinja on Twitter
    • ShopinJA.com
Re: Remove images from Quotes
« Reply #7 on: March 31, 2010, 12:13:31 PM »
No, it is different code to the others. I'm just thinking that we now have three mods that do basically the same thing.

really, this one expands the image inline when clicked ... AFAIN the others only give the image url ....

Also this works on Rc3 :P
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,982
    • StoryBB/StoryBB on GitHub
Re: Remove images from Quotes
« Reply #8 on: March 31, 2010, 12:16:44 PM »
Did you try looking at the ones I linked...?
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline aw06

  • SMF Hero
  • ******
  • Posts: 2,763
  • Gender: Male
  • Make The Link
    • shopinja.classifieds on Facebook
    • @shopinja on Twitter
    • ShopinJA.com
Re: Remove images from Quotes
« Reply #9 on: March 31, 2010, 12:22:18 PM »
Did you try looking at the ones I linked...?

I have one installed on my 1.1.x ... it not even puts are url most of the time, it just says quoted image removed.
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,982
    • StoryBB/StoryBB on GitHub
Re: Remove images from Quotes
« Reply #10 on: March 31, 2010, 12:22:50 PM »
There are 2 mods I linked. Look at both of them.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline aw06

  • SMF Hero
  • ******
  • Posts: 2,763
  • Gender: Male
  • Make The Link
    • shopinja.classifieds on Facebook
    • @shopinja on Twitter
    • ShopinJA.com
Re: Remove images from Quotes
« Reply #11 on: March 31, 2010, 12:38:09 PM »
There are 2 mods I linked. Look at both of them.

Yeah, one says it put's a button... but I'm on Rc3 hence whey i chose this mod ...
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

Offline aw06

  • SMF Hero
  • ******
  • Posts: 2,763
  • Gender: Male
  • Make The Link
    • shopinja.classifieds on Facebook
    • @shopinja on Twitter
    • ShopinJA.com
Re: Remove images from Quotes
« Reply #12 on: March 31, 2010, 12:40:16 PM »
Now that i look into it , a button would look better . by button i hope they mean thumbnail of quoted image ...
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

Offline aw06

  • SMF Hero
  • ******
  • Posts: 2,763
  • Gender: Male
  • Make The Link
    • shopinja.classifieds on Facebook
    • @shopinja on Twitter
    • ShopinJA.com
Re: Remove images from Quotes
« Reply #13 on: March 31, 2010, 12:45:08 PM »
This mod removes images from quoted text and leaves a link to the image.
Clicking the link restores the removed image.

Hey Chas, mod installed ok, no error in logs, however i don't see the little expand up icon you have in your screenshot,

http://custom.simplemachines.org/mods/index.php?action=download;mod=2430;id=133819;image

Also i don't see any image file for it in the package file, did you remove it ?
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

Offline Chas Large

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,108
  • Gender: Male
  • Running 2.0.xx on Apache.
    • Chas.Large on Facebook
    • https://www.linkedin.com/in/charles-large-568ba213 on LinkedIn
    • @https://twitter.com/ on Twitter
    • Chas Large's Site
Re: Remove images from Quotes
« Reply #14 on: March 31, 2010, 02:47:49 PM »
This mod removes images from quoted text and leaves a link to the image.
Clicking the link restores the removed image.

Hey Chas, mod installed ok, no error in logs, however i don't see the little expand up icon you have in your screenshot,

http://custom.simplemachines.org/mods/index.php?action=download;mod=2430;id=133819;image

Also i don't see any image file for it in the package file, did you remove it ?
No, sorry, should have been more careful with my screen shot, that comes from a FireFox add-on.

[Edit] Actually it's a Greasemonkey Script for FireFox, so if you're using both of those you can install and make use of it yourself, see attached.
« Last Edit: March 31, 2010, 03:18:16 PM by Chas Large »
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

Offline aw06

  • SMF Hero
  • ******
  • Posts: 2,763
  • Gender: Male
  • Make The Link
    • shopinja.classifieds on Facebook
    • @shopinja on Twitter
    • ShopinJA.com
Re: Remove images from Quotes
« Reply #15 on: March 31, 2010, 03:18:32 PM »
you mod was conflicting with post rating mod ... or it was conflicting with yours, either way i removed quoted images, take a look here
http://www.simplemachines.org/community/index.php?topic=344748.msg2563330#msg2563330
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

Offline Chas Large

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,108
  • Gender: Male
  • Running 2.0.xx on Apache.
    • Chas.Large on Facebook
    • https://www.linkedin.com/in/charles-large-568ba213 on LinkedIn
    • @https://twitter.com/ on Twitter
    • Chas Large's Site
Re: Remove images from Quotes
« Reply #16 on: March 31, 2010, 03:22:35 PM »
you mod was conflicting with post rating mod ... or it was conflicting with yours, either way i removed quoted images, take a look here
http://www.simplemachines.org/community/index.php?topic=344748.msg2563330#msg2563330
Sorry about that aw06. Sadly I can't possibly check compatibility with every other mod but it probably could be hard coded by hand and as Arantor has mentioned, there are other mods that do similar things to mine, perhaps one of them won't conflict.

Chas
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

Offline aw06

  • SMF Hero
  • ******
  • Posts: 2,763
  • Gender: Male
  • Make The Link
    • shopinja.classifieds on Facebook
    • @shopinja on Twitter
    • ShopinJA.com
Re: Remove images from Quotes
« Reply #17 on: March 31, 2010, 04:48:51 PM »
ok, will look into it ..
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

Offline Bruno36

  • Full Member
  • ***
  • Posts: 570
  • Gender: Male
    • Scooter Chinois 4T
Re: Remove images from Quotes
« Reply #18 on: April 02, 2010, 04:04:29 AM »
Hello!

The mod does not work on my forum.
When I quote a message I still see the image
http://www.scooter-chinois-4t.com/poubelle/t3428/new/#new

login: invite
Passe: 123456
Bruno36 the French
SMF 2.0.9

Offline aw06

  • SMF Hero
  • ******
  • Posts: 2,763
  • Gender: Male
  • Make The Link
    • shopinja.classifieds on Facebook
    • @shopinja on Twitter
    • ShopinJA.com
Re: Remove images from Quotes
« Reply #19 on: April 02, 2010, 04:18:19 AM »
Are you using English-utf8 ? if so ad the edits in /Themes/default/languages/Modifications.english-utf8.php

Code: (Find at the end of the file) [Select]
?>
Code: (Add Before:) [Select]
$txt['remove_image_from_post'] = 'Image removed from quote';
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth