Simple Machines Community Forum

SMF Development => Feature Requests => Applied or Declined Requests => Aiheen aloitti: mario2710 - toukokuu 21, 2007, 10:25:16 AP

Otsikko: Images in quotes
Kirjoitti: mario2710 - toukokuu 21, 2007, 10:25:16 AP
Would it be possible when someone quotes a topic with one or more images in it, that in the new reply the img tags automaticly would be converted to url tags???
Otsikko: Re: Images in quotes
Kirjoitti: Jack van Dijk - toukokuu 29, 2007, 02:59:43 IP
Exactly the mod I'm looking for!

Jack
Otsikko: Re: Images in quotes
Kirjoitti: Sverre - toukokuu 29, 2007, 07:30:13 IP
http://www.simplemachines.org/community/index.php?topic=30209.msg759140#msg759140
Otsikko: Re: Images in quotes
Kirjoitti: Jack van Dijk - toukokuu 30, 2007, 02:24:39 AP
Lainaus käyttäjältä: Sverre - toukokuu 29, 2007, 07:30:13 IP
http://www.simplemachines.org/community/index.php?topic=30209.msg759140#msg759140

That's one solution. I would like to take it a step further. So making this something that someone can set in his profile. So replacing it when posts are saved is then not an option, because it does change it for everybody. So instead of making the change I want to do it when it is displayed.
Otsikko: Re: Images in quotes
Kirjoitti: mario2710 - toukokuu 31, 2007, 02:48:53 AP
Lainaus käyttäjältä: Sverre - toukokuu 29, 2007, 07:30:13 IP
http://www.simplemachines.org/community/index.php?topic=30209.msg759140#msg759140

This is not an answer to my question though, so anyone else has an idea how to do this??
Otsikko: Re: Images in quotes
Kirjoitti: Sverre - toukokuu 31, 2007, 06:26:54 AP
Did you try it? The code in the post I linked to does exactly what you asked for - strip the [img][/img] tags so you're left with just links to the quoted images.
Otsikko: Re: Images in quotes
Kirjoitti: mario2710 - toukokuu 31, 2007, 04:41:31 IP
tried it but it doesn't work, I get a green background with "loading" in it and nothing happens
Otsikko: Re: Images in quotes
Kirjoitti: Sverre - toukokuu 31, 2007, 06:38:40 IP
Do you have other mods which modify Post.php installed?

If you followed the instructions, it should work. At least it does for me... I've used this myself on our live fourm for more than six months and without a hitch. Maybe your text editor has ******ed up one of the special characters when you copied and pasted it or changed the encoding when you saved the file???
Otsikko: Re: Images in quotes
Kirjoitti: mario2710 - kesäkuu 01, 2007, 05:42:34 AP
I tried again, and now it works perfectly, tnx Sverre, great hack  :) :)
Otsikko: Re: Images in quotes
Kirjoitti: Sverre - kesäkuu 01, 2007, 09:12:35 AP
Glad you got it working :)