Dandello Forum AdministratorYaBB Modder Offline I love YaBB 2.7! Posts: 2235 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: Image resize and the message dropdown Aug 12th, 2014 at 10:37pm Mark & QuoteQuote When in the MessageIndex dropdown, board pictures don't get included in the javascript array that controls the image resize. (I'm guessing that since they start out 'hidden', the javascript script in Subs.pm doesn't see them to change their IDs and stick them in the array.) It would be nice to not lose the board picture resize but this level of javascript writing is beyond me. Perfection is not possible. Excellence, however, is excellent. WWW IP Logged
Monni Language Offline Min izāmō Posts: 413 Location: Kaarina, Finland Joined: Jul 16th, 2014 Gender: Mood: Frustrated Zodiac sign: Re: Image resize and the message dropdown Reply #1 - Aug 13th, 2014 at 4:05am Mark & QuoteQuote The obvious solution is to add step to the Ajax call that loads the hidden boards, which either re-iterates the images and updates the list at the bottom of the page source or forces Perl to handle the image resize for them instead of JavaScript code. GTalk Skype/VoIP Facebook Twitter YouTube ICQ IP Logged
Dandello Forum Administrator Offline I love YaBB 2.7! Posts: 2235 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: Re: Image resize and the message dropdown Reply #2 - Aug 13th, 2014 at 5:02am Mark & QuoteQuote I was thinking about using the Board IDs to generate IDs for all the Board pics and put those into the javascript array for resizing. In theory, that should get around the problem of the pictures in the hidden tables not being detected. I'll work on it tomorrow. Perfection is not possible. Excellence, however, is excellent. WWW IP Logged
Monni Language Offline Min izāmō Posts: 413 Location: Kaarina, Finland Joined: Jul 16th, 2014 Gender: Mood: Frustrated Zodiac sign: Re: Image resize and the message dropdown Reply #3 - Aug 13th, 2014 at 10:44am Mark & QuoteQuote Dandello wrote on Aug 13th, 2014 at 5:02am:I was thinking about using the Board IDs to generate IDs for all the Board pics and put those into the javascript array for resizing. In theory, that should get around the problem of the pictures in the hidden tables not being detected. I'll work on it tomorrow. Even if you get all the IDs in the array, the result depends on whether the actual resize call in JavaScript code happens late enough that the actual DOM nodes are iterable. GTalk Skype/VoIP Facebook Twitter YouTube ICQ IP Logged
Dandello Forum Administrator Offline I love YaBB 2.7! Posts: 2235 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: Re: Image resize and the message dropdown Reply #4 - Aug 13th, 2014 at 1:22pm Mark & QuoteQuote There's a number of 'interesting' issues to be worked out. Perfection is not possible. Excellence, however, is excellent. WWW IP Logged
Monni Language Offline Min izāmō Posts: 413 Location: Kaarina, Finland Joined: Jul 16th, 2014 Gender: Mood: Frustrated Zodiac sign: Re: Image resize and the message dropdown Reply #5 - Aug 13th, 2014 at 2:16pm Mark & QuoteQuote Dandello wrote on Aug 13th, 2014 at 1:22pm:There's a number of 'interesting' issues to be worked out. I'm just saying "You can do it... You can do it..." GTalk Skype/VoIP Facebook Twitter YouTube ICQ IP Logged
Dandello Forum Administrator Offline I love YaBB 2.7! Posts: 2235 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: Re: Image resize and the message dropdown Reply #6 - Aug 13th, 2014 at 8:51pm Mark & QuoteQuote Well, the javascript solution based on the image_resize sub just didn't do it. BUT, a css solution worked. (I checked it in all the major browsers I have on my test machine and so far it's looking okay.) Edited: However, it still may not be quite 'smart' enough to 'smart resize' images that are tall and skinny. « Last Edit: Aug 13th, 2014 at 10:17pm by Dandello » Perfection is not possible. Excellence, however, is excellent. WWW IP Logged
Dandello Forum Administrator Offline I love YaBB 2.7! Posts: 2235 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: Re: Image resize and the message dropdown Reply #7 - Aug 14th, 2014 at 1:59am Mark & QuoteQuote To my utter astonishment I got a javascript image resizer for the board pictures to actually work - without breaking anything else. Perfection is not possible. Excellence, however, is excellent. WWW IP Logged
Monni Language Offline Min izāmō Posts: 413 Location: Kaarina, Finland Joined: Jul 16th, 2014 Gender: Mood: Frustrated Zodiac sign: Re: Image resize and the message dropdown Reply #8 - Aug 14th, 2014 at 3:51am Mark & QuoteQuote Dandello wrote on Aug 14th, 2014 at 1:59am:To my utter astonishment I got a javascript image resizer for the board pictures to actually work - without breaking anything else. Way to go... GTalk Skype/VoIP Facebook Twitter YouTube ICQ IP Logged