Mod 'improvement' ; Auto Resizing Images - Postet den (9543 Views)
Retired Support Moderator
MarcelG
Innlegg: 2625
2625
I was requested to assist Riccardo80 with the installation of the Auto Resize Images mod from WorkMule at SnitzBitz. It seems that Work Mules instructions aren't very clear to most people. I've tried to create an easier implementation method, with some clearer instructions, and it seems to be working ok. So, that's why I decided to at least share it here. You can download the entire mod with instructions here.
As we had a discussion about improvement of mod quality, perhaps this one is one to replace at SnitzBitz ? Just a thought. shy<
   
 Sidestørrelse 
Postet den
New Member
Riccardo
Innlegg: 86
86
Yes. He is right...i've implemented correctly and rapidly his instructions..good work!<
http://www.peperonciniamoci.it peppers and peppers and peppers (working on an international version)
Postet den
New Member
goorootech
Innlegg: 53
53
It IS nice and easy, thanks WorkMule and MarcelG for the effort in a fine mod addon - and soo much better rather than having a wide picture destroy your forum smile
A quick observation; you should be able to click on the 'large' popped up picture in order to close it rather than clicking the [x] close button... I'll see if I can change the code and post here when I have some time today or sometime this week.
Jason<
regards,
Jason Binder
Postet den
Junior Member
Bassman
Innlegg: 256
256
Very nice work WorkMule and Marcel, thanks.<
Postet den
Retired Support Moderator
MarcelG
Innlegg: 2625
2625
Added a new feature for this mod, to enable auto-resizing images on the profile page. Check it out here: http://www.oxle.com/topic.asp?TOPIC_ID=3153 (use demo/demo if you do not wish to register)<
Postet den
Medlem er låst
eauxvives
Innlegg: 145
145
Hi, nice work
there is a very smal mistake in instructions.htm
it says "Find the function ReplaceImgTags"
while I guess it should be "Find the function ReplaceImageTags"<
Postet den
Snitz Forums Admin
ruirib
Innlegg: 26364
26364
These instructions are a huge improvement over what existed before. Well done Marcel and thx.<
Postet den
Retired Support Moderator
MarcelG
Innlegg: 2625
2625
eauxvives, thanks for that ! I've updated the zip file. Rui ; you're welcome.<
Postet den
Retired Support Moderator
MarcelG
Innlegg: 2625
2625
Here's another addition. To show a red dashed border arounnd all resized images, add this line to resizeimgs.js.
Code:
thisimage.style.border = '1px dashed #FF0000'
It needs to be added above this line:
Code:
thisimage.title='Click the image to enlarge';
Demo: http://oxle.com/topic.asp?tid=3484 - some images have the red border around them...others don't. bigsmile Now I just need to add a small line below the image if it's resized, saying 'this image is resized, as it is too wide to show on the forum'. But, hey, the weekend is long! bigsmile<
Postet den
Senior Member
tribaliztic
Innlegg: 1532
1532
"some images have the red border around them...others don't."
is there a bug or is it supposed to be that way? =)
<
/Tribaliztic
- www.gotlandrace.se -
Postet den
Retired Support Moderator
MarcelG
Innlegg: 2625
2625
Only the resized images should have a border around them, indicating that they're not displayed at their full size. So, no, it's not a bug, it's a feature.<
Du må legge inn en melding