Customizing SMF > SMF Coding Discussion
Open resized images in new window
Yağız...:
Or if you want a popup, find this in ./Themes/default/scripts/theme.js:
--- Code: ---this.style.width = this.style.height = this.style.width == 'auto' ? null : 'auto';
--- End code ---
Replace with:
--- Code: ---window.open(this.src, 'image', 'menubar=0,resizable=1,width=' + this.style.width + ',height=' + this.style.height + '');
--- End code ---
Arantor:
Um... Yagiz, that's referring again to the attachments, not to images that are just resized in a post body.
Yağız...:
--- Quote from: Arantor on April 04, 2010, 09:03:48 AM ---Um... Yagiz, that's referring again to the attachments, not to images that are just resized in a post body.
--- End quote ---
Sure? I tried on my local, and it worked
:)
Arantor:
Looks like the code in the attachments handler to me, unless you've found something else in the code... (or using a non standard theme)
Yağız...:
--- Quote from: Arantor on April 04, 2010, 09:13:04 AM ---Looks like the code in the attachments handler to me, unless you've found something else in the code... (or using a non standard theme)
--- End quote ---
Using Curve on a fresh install :)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version