Page Index Toggle Pages: 1 ReplyAdd Poll Send Topic
Normal Topic Image resize and the message dropdown (Read 3498 times)
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2235
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
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.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Monni
Language
***
Offline


Min izāmō

Posts: 413
Location: Kaarina, Finland
Joined: Jul 16th, 2014
Gender: Male
Mood: Frustrated
Zodiac sign: Pisces
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.
  
Back to top
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2235
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
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.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Monni
Language
***
Offline


Min izāmō

Posts: 413
Location: Kaarina, Finland
Joined: Jul 16th, 2014
Gender: Male
Mood: Frustrated
Zodiac sign: Pisces
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.
  
Back to top
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2235
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
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.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Monni
Language
***
Offline


Min izāmō

Posts: 413
Location: Kaarina, Finland
Joined: Jul 16th, 2014
Gender: Male
Mood: Frustrated
Zodiac sign: Pisces
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..." Smiley
  
Back to top
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2235
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
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.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 2235
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
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.  Shocked
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Monni
Language
***
Offline


Min izāmō

Posts: 413
Location: Kaarina, Finland
Joined: Jul 16th, 2014
Gender: Male
Mood: Frustrated
Zodiac sign: Pisces
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.  Shocked


Way to go... Cheesy
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
ReplyAdd Poll Send Topic
Bookmarks: del.icio.us Digg Facebook Google LinkedIn reddit Twitter Yahoo
Image resize and the message dropdown

Please type the characters exactly as they appear in the image,
without the first 2 and last 2 characters.
The characters must be typed in the same order,
and they are case-sensitive.
Open Preview Preview

You can resize the textbox by dragging the right or bottom border.
Off Topic Comment Insert Spoiler
Insert Hyperlink Insert FTP Link Insert Image Insert E-mail Insert Media Insert Table Insert Table Row Insert Table Column Insert Horizontal Rule Insert Teletype Insert Code Insert Quote Edited Superscript Subscript Insert List /me - my name Insert Marquee Insert Timestamp No Parse
Bold Italicized Underline Insert Strikethrough Highlight
                       
Change Text Color
Insert Preformatted Text Left Align Centered Right Align
resize_wb
resize_hb







Max 5000 characters. Remaining characters:
Text size: %
More Smilies
View All Smilies
Collapse additional features Collapse/Expand additional features Smiley Wink Cheesy Grin Angry Sad Shocked Cool Huh Roll Eyes Tongue Embarrassed Lips Sealed Undecided Kiss Cry