View Single Post
Old 10-09-2011, 02:36 AM  
darksoul
Confirmed User
 
darksoul's Avatar
 
Join Date: Apr 2002
Location: /root/
Posts: 4,997
There is no smarty solution to this.
The best solution would be to keep the extension/filename in the database along with the other details.
Alternatively you can use onerror, although I don't really like it:
src="{$name_name2}/path/{$xxx1.xxx2}/thumbnails/01.JPG" onerror='this.src={$name_name2}/path/{$xxx1.xxx2}/thumbnails/01.jpg'
__________________
1337 5y54|)m1n: 157717888
BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
Cambooth
darksoul is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote