Customizing SMF > Tips and Tricks
Auto-show image links as pictures without using [img] tag in messages
~DS~:
--- Quote from: Duncan85 on July 13, 2010, 12:02:32 PM ---
--- Quote from: Delita Heiral on July 13, 2010, 10:53:01 AM ---Let's say it auto show the images, great, but what if some user rather not show but a normal link if they so decide?
--- End quote ---
It's a thing which would demand kinda long work,as this is just a little trick,i would rather not do it here,if you want ,you can create a topic in mod request board
--- End quote ---
That's allright. 8)
Thanks for sharing with the community. :)
devoetbalkantine:
I have a question... This is working perfectly with 1 minor problem...
When a picture is posted without using the img-tags and the message also has a quote-tags in it, the picture doesn't show.
Just to be clear: The image is NOT in the quote but above it
Kermit:
--- Quote from: devoetbalkantine on March 03, 2011, 11:00:52 AM ---I have a question... This is working perfectly with 1 minor problem...
When a picture is posted without using the img-tags and the message also has a quote-tags in it, the picture doesn't show.
Just to be clear: The image is NOT in the quote but above it
--- End quote ---
I think it's because of this line
--- Code: ---if (strpos($message, '<a href') !== false && !strpos($message ,'quote'))
--- End code ---
you can try to replace this with this
--- Code: ---if (strpos($message, '<a href') !== false)
--- End code ---
I didn't try it by myself,but i think it might work
devoetbalkantine:
In which file is that?
Kermit:
--- Quote from: devoetbalkantine on March 19, 2011, 07:01:28 PM ---In which file is that?
--- End quote ---
The file is written already in the first message ;)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version