Mod 'improvement' ; Auto Resizing Images - Posted (9538 Views)
Retired Support Moderator
MarcelG
Posts: 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<
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Posted
Junior Member
balexandre
Posts: 418
418
it's easy to implement Lightbox 2 on this but it will take the forum a little slower cause it needs to load the scriptaculous effects, prototype and the lightbox javascripts first ... but it get a much better visibility

if you guys want, I can build the MOD to use lightbox 2

see more information on Lightbox 2<
Posted
Retired Support Moderator
MarcelG
Posts: 2625
2625
balexandre, that would be great! smile It's indeed a bit slower, but man, it's sleek!! bigsmile<
Posted
Senior Member
muzishun
Posts: 1079
1079
I had thought about doing the same thing, balexandre. However, you may have more time in the near future than me, as I'm working on several other MODs, so go for it!<
Bill Parrott
Senior Web Programmer, University of Kansas
Co-Owner and Code Monkey, Eternal Second Designs (www.eternalsecond.com)
Personal Website (www.chimericdream.com)
Posted
Junior Member
campinmom03
Posts: 190
190
Does anyone know what db's this mod has been tested on?<
Have a great day! Terry
Posted
Retired Support Moderator
MarcelG
Posts: 2625
2625
Ehm...I don't think it's db dependent....there's no db calls in any of the functions.<
Posted
Junior Member
campinmom03
Posts: 190
190
Originally posted by MarcelG:
Ehm...I don't think it's db dependent....there's no db calls in any of the functions.

Ehm... I didn't realize that and just wanted to be sure to ask first.

Anyway, I found time to install this today. I didn't really need the added feature for the pop profile, but I did use the feature with the dashed border. Great job on the instructions - it installed nicely on a current version of snitz! Thank you. smile<
Have a great day! Terry
Posted
Retired Support Moderator
MarcelG
Posts: 2625
2625
You're welcome, and I'm glad to see it still works. bigsmile<
Posted
New Member
radiodelicate
Posts: 53
53
Originally posted by balexandre
it's easy to implement Lightbox 2 on this but it will take the forum a little slower cause it needs to load the scriptaculous effects, prototype and the lightbox javascripts first ... but it get a much better visibility

if you guys want, I can build the MOD to use lightbox 2

see more information on Lightbox 2
have you done any progress on that? I'd love a mod like it!<
Posted
Senior Member
leatherlips
Posts: 1838
1838
Today I noticed something about this mod. If the image is placed in the spoiler tag, the image does not resize. Any idea how to fix that?
Edit: It actually does work with the Snitz default spoiler tag. I forgot that I added a new spoiler tag a few years ago. The image resize does not work in my new spoiler tag. Here is the code for my spoiler tag. How can I get the image to resize in it?
Code:
fString = doCode(fString, "Reveal hidden content", "", "<div style=""margin:1em auto; width: 100%;"">" & vbNewline & "  <div><b> Spoiler: </b><input type=""button"" value=""Show"" style=""width:45px;font-size:10px;margin:0px;padding:0px;"" onclick=""if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }"" /></div>" & vbNewline & "  <div style=""margin: 5px; padding: 5px; border: 1px solid; border-color: #333399;"">" & vbNewline & "      <div style=""display: none;"">" & vbNewline, "     </div>" & vbNewline & " </div>" & vbNewline & "</div>" & vbNewline)
You Must enter a message