Page Index Toggle Pages: [1]  ReplyAdd Poll Send Topic
Very Hot Topic (More than 25 Replies) Re: Looking toward 2.6.1 (Read 30083 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
Re: Looking toward 2.6.1
Aug 24th, 2014 at 7:24pm
Mark & QuoteQuote  
XTC wrote on Aug 24th, 2014 at 7:17pm:
Slimbrowser!


In PostBox.pm find
Code (Perl)
Select All
    $ubbc_box_w = $boxlist1_w + $mods_w; 


That's the section that sets the px width of the UBBC box overall. See if adding 1 or 2 to it helps.
  

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: Looking toward 2.6.1
Reply #1 - Aug 24th, 2014 at 7:41pm
Mark & QuoteQuote  
Revising my previous patch...

Code
Select All
 --- C:/Users/Mika/AppData/Local/Temp/PostBox.pm-revBASE.svn001.tmp.pm	Fri Aug 22 16:41:00 2014
 +++ C:/build/yabb/trunk/cgi-bin/yabb2/Sources/PostBox.pm	Mon Aug 25 00:41:31 2014
 @@ -20,6 +20,8 @@
  $postboxpmver = 'YaBB 2.6.0 $Revision: 1545 $';
  if ( defined $actions && $action eq 'detailedversion' ) { return 1; }
  get_micon();
 +$ubbcbak = 'ubbc2.png';
 +
  #InstantMessage.pm and Post.pl use the same code for the posting box - why have two copies? #

  sub postbox {
 @@ -912,7 +914,7 @@
          $boxlist .= qq~<span class="ubbcbutton" style="background-image: url($imagesdir/UBBC/$ubbcbak);"><img src='$imagesdir/UBBC/$img' onclick='$click;' $hand alt='$alt' title='$alt' /></span>\n~;
          $w++
      }
 -    $boxlist_w = $w * 23;
 +    $boxlist_w = $w * 24;
      return ($boxlist, $boxlist_w);
  }

 @@ -933,7 +935,7 @@
      else {
          $mod_w = 1 + int $w/2;
      }
 -    $boxlist_w = $mod_w * 23;
 +    $boxlist_w = $mod_w * 24;
      return ($boxlist, $boxlist_w);
  }

  

« Last Edit: Aug 24th, 2014 at 9:42pm by Monni » 
Reason: Revise patch 
Back to top
IP Logged
 
Paste Member Name in Quick Reply Box XTC
Global Moderator
*****
Offline


YaBB 2.6.0/1/11 Mods

Posts: 174
Location: @ustria
Joined: Feb 12th, 2014
Gender: Male
Mood: Freaky
Zodiac sign: Aquarius
Re: Looking toward 2.6.1
Reply #2 - Aug 24th, 2014 at 8:05pm
Mark & QuoteQuote  
@Monni

Code (Perl)
Select All
    $boxlist_w = $w * 23; 



....is present twice (sub ubbc_boxlist & sub ubbc_modlist)

lg XTC
  

Back to top
 
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: Looking toward 2.6.1
Reply #3 - Aug 24th, 2014 at 9:43pm
Mark & QuoteQuote  
XTC wrote on Aug 24th, 2014 at 8:05pm:
@Monni

Code (Perl)
Select All
    $boxlist_w = $w * 23; 



....is present twice (sub ubbc_boxlist & sub ubbc_modlist)

lg XTC


Thanks, updated the patch in previous post...
  
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: Looking toward 2.6.1
Reply #4 - Aug 24th, 2014 at 11:58pm
Mark & QuoteQuote  
When I look at it in Slimbrowser setting the width to *24 makes the lower line wider than the upper one. *23 wide makes them line up again. I think adding a few pixels to $boxlist1_w should widen the entire enclosing box enough to keep the parse box on the same line as the rest of the upper line. (The graphics are 23px wide.)
Code (Perl)
Select All
$ubbc_box_w = $boxlist1_w + $mods_w + 2; 

  

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: Looking toward 2.6.1
Reply #5 - Aug 25th, 2014 at 7:18am
Mark & QuoteQuote  
Dandello wrote on Aug 24th, 2014 at 11:58pm:
When I look at it in Slimbrowser setting the width to *24 makes the lower line wider than the upper one. *23 wide makes them line up again. I think adding a few pixels to $boxlist1_w should widen the entire enclosing box enough to keep the parse box on the same line as the rest of the upper line. (The graphics are 23px wide.)
Code (Perl)
Select All
$ubbc_box_w = $boxlist1_w + $mods_w + 2; 



I tried to widen it and I had to add 15 pixels before it looked normal. The difference is that in other forums with custom templates there is actually 1 pixel padding between the UBBC buttons... You can adjust .ubbcbutton's margin-left and margin-right (default is -2px for both) to realign the two lines.
« Last Edit: Aug 25th, 2014 at 8:31am by Monni »  
Back to top
IP Logged
 
Paste Member Name in Quick Reply Box XTC
Global Moderator
*****
Offline


YaBB 2.6.0/1/11 Mods

Posts: 174
Location: @ustria
Joined: Feb 12th, 2014
Gender: Male
Mood: Freaky
Zodiac sign: Aquarius
Re: Looking toward 2.6.1
Reply #6 - Aug 25th, 2014 at 10:03am
Mark & QuoteQuote  
Hello

Ok... what is the best to do now ... ?

PostBox.pm or css edit ... or both  Huh

lg XTC
  

Back to top
 
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: Looking toward 2.6.1
Reply #7 - Aug 25th, 2014 at 10:22am
Mark & QuoteQuote  
XTC wrote on Aug 25th, 2014 at 10:03am:
Hello

Ok... what is the best to do now ... ?

PostBox.pm or css edit ... or both  Huh

lg XTC


It is obvious one fix doesn't work for all templates... I edited only PostBox.pm to align the css buttons. I haven't figured out yet what is the difference that adds the 1 pixel padding to custom templates on Chrome here, but not default template.
I also tested with IE, but it seems it looks even worse as the padding isn't even constant and varies between 0 and 1 pixels... When I did set "float: left" and cleared left and right margins for CSS buttons, the gap disappeared when using Chrome, but as the button spacing was still hardcoded to 24 in sources, the two rows were not same width yet.
« Last Edit: Aug 25th, 2014 at 6:07pm by Monni » 
Reason: Update with more tests 
Back to top
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: Looking toward 2.6.1
Reply #8 - Aug 25th, 2014 at 11:05am
Mark & QuoteQuote  
This is how it looks here with 24px per button and 2px left and right margin.

« Last Edit: Aug 25th, 2014 at 12:05pm by Monni »  
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: Looking toward 2.6.1
Reply #9 - Aug 25th, 2014 at 6:03pm
Mark & QuoteQuote  
I couldn't find where the padding/margin on the span/images was coming from either - that's why the ubbcbutton css has the
Code (CSS)
Select All
margin: 0 -2px 

  

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: Looking toward 2.6.1
Reply #10 - Aug 25th, 2014 at 6:06pm
Mark & QuoteQuote  
Monni wrote on Aug 24th, 2014 at 5:48pm:
Code
Select All
 $ubbcbak = 'ubbc2.png';
  


is missing from top of PostBox.pm



Actually, it was missing from MyCenter.template.  Embarrassed
  

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: Looking toward 2.6.1
Reply #11 - Aug 25th, 2014 at 6:12pm
Mark & QuoteQuote  
Dandello wrote on Aug 25th, 2014 at 6:06pm:
Monni wrote on Aug 24th, 2014 at 5:48pm:
Code
Select All
 $ubbcbak = 'ubbc2.png';
  


is missing from top of PostBox.pm



Actually, it was missing from MyCenter.template.  Embarrassed


I pretty much rewrote the PostBox.pm last night to cleanup things... I strongly think we should hardcode this filename instead of spreading the variable all around the files... There is some other fixes I need to diff, but currently my tree is pretty much based on assumptions what will become 2.6.2 or beyond, and not 2.6.1... I need to clean it up before I can make a usable diff.
  
Back to top
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: Looking toward 2.6.1
Reply #12 - Aug 25th, 2014 at 6:21pm
Mark & QuoteQuote  
Dandello wrote on Aug 25th, 2014 at 6:03pm:
I couldn't find where the padding/margin on the span/images was coming from either - that's why the ubbcbutton css has the
Code (CSS)
Select All
margin: 0 -2px 



Try replacing the "margin: 0 -2px;" css line with "float: left;" ... That worked for me... No more padding/margin.
  
Back to top
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: Looking toward 2.6.1
Reply #13 - Aug 25th, 2014 at 7:13pm
Mark & QuoteQuote  
This is the version I have now... Looks good with both Chrome and IE with constant 1 pixel padding...

Code
Select All
 Index: cgi-bin/yabb2/Sources/PostBox.pm
 ===================================================================
 --- cgi-bin/yabb2/Sources/PostBox.pm	(revision 1550)
 +++ cgi-bin/yabb2/Sources/PostBox.pm	(working copy)
 @@ -66,21 +66,20 @@
      ( $boxlist1, $boxlist1_w )   = ubbc_boxlist(%boxlist1);
      ( $textdecor, $textdecor_w ) = ubbc_boxlist(%textdecor);
      ( $txtalgn, $txtalgn_w )     = ubbc_boxlist(%txtalgn);
 -    $fntcolor_w = 91;
 +    $fntcolor_w = 93;
      $font_w = $boxlist1_w - ( $textdecor_w + $txtalgn_w + $fntcolor_w );
      $ubbc_box_w = $boxlist1_w + $mods_w;
 -    $px = 'px';
 -    $box = qq~            <div style="float:left; width:$ubbc_box_w$px">
 -            <div style="float:right; width:$mods_w$px">
 +    $box = qq~            <div style="float:left; width:${ubbc_box_w}px">
 +            <div style="float:right; width:${mods_w}px">
              $mods
              </div>
 -            <div style="float:left; width:$boxlist1_w$px">
 +            <div style="float:left; width:${boxlist1_w}px">
              $boxlist1
              <br /></div>
 -            <div style="float:left; width:$textdecor_w$px">
 +            <div style="float:left; width:${textdecor_w}px">
              $textdecor
              </div>
 -            <div style="float:left; text-align:center; width:$font_w$px">
 +            <div style="float:left; text-align:center; width:${font_w}px">
              <select name="fontface" id="fontface" onchange="if(this.options[this.selectedIndex].value) fontfce(this.options[this.selectedIndex].value);">
                  <option value="Verdana">Verdana</option>
                  <option value="">-\\-\\-\\-\\-\\-\\-\\-\\-</option>
 @@ -132,7 +131,7 @@
                  if(thistask == "templ") previewColor(newcolor);
              }
              </script>
 -            <div style="float:left; height:22px; width:$fntcolor_w$px">
 +            <div style="float:left; height:22px; width:${fntcolor_w}px">
                  <div class="palettebox">
                      <span class="deftpal" style="background-color: #000000;" onclick="ConvShowcolor('#000000')">&nbsp;</span>
                      <span class="deftpal" style="background-color: #333333;" onclick="ConvShowcolor('#333333')">&nbsp;</span>
 @@ -147,11 +146,11 @@
                      <span id="defaultpal5" class="deftpal" style="background-color: $pallist[4];" onclick="ConvShowcolor(this.style.backgroundColor)">&nbsp;</span>
                      <span id="defaultpal6" class="deftpal" style="background-color: $pallist[5];" onclick="ConvShowcolor(this.style.backgroundColor)">&nbsp;</span>
                   </div>
 -                 <div style="float:right; height:22px; padding-left: 1px; width: 23px;">
 +                 <div style="float:right; height:22px; padding-left: 1px; padding-right: 1px; width: 23px;">
                       <span class="ubbcbutton" style="background-image: url($imagesdir/UBBC/$ubbcbak);"><img src="$imagesdir/UBBC/palette1.png" class="cursor" onclick="window.open('$scripturl?action=palette;task=post', '', 'height=308,width=302,menubar=no,toolbar=no,scrollbars=no')" alt="" /></span>
                    </div>
              </div>
 -            <div style="float:left; width:$txtalgn_w$px">
 +            <div style="float:left; width:${txtalgn_w}px">
              $txtalgn
              </div>
          </div>
 @@ -912,7 +911,7 @@
          $boxlist .= qq~<span class="ubbcbutton" style="background-image: url($imagesdir/UBBC/$ubbcbak);"><img src='$imagesdir/UBBC/$img' onclick='$click;' $hand alt='$alt' title='$alt' /></span>\n~;
          $w++
      }
 -    $boxlist_w = $w * 23;
 +    $boxlist_w = $w * 24;
      return ($boxlist, $boxlist_w);
  }

 @@ -933,7 +932,7 @@
      else {
          $mod_w = 1 + int $w/2;
      }
 -    $boxlist_w = $mod_w * 23;
 +    $boxlist_w = $mod_w * 24;
      return ($boxlist, $boxlist_w);
  }

 Index: public_html/yabbfiles/Templates/Forum/default.css
 ===================================================================
 --- public_html/yabbfiles/Templates/Forum/default.css	(revision 1550)
 +++ public_html/yabbfiles/Templates/Forum/default.css	(working copy)
 @@ -1293,7 +1293,7 @@
      height: 22px;
      width: 23px;
      border: 0;
 -    margin: 0 -2px;
 +    margin: 0 1px 1px 0;
      background-position: top right;
      background-repeat: no-repeat;
      text-decoration: none;
 @@ -1300,6 +1300,7 @@
      font-size: 18px;
      vertical-align: top;
      display: inline-block;
 +    float: left;
  }

  .tt { font-family: Courier, monospace; }
  

  
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: Looking toward 2.6.1
Reply #14 - Aug 25th, 2014 at 8:16pm
Mark & QuoteQuote  
And this is what I'm seeing in Firefox on my testbed:

Edited:
Now, there may be some minor differences in the default.css file between what's on the test bed and what's in the SVN and I'll double check those in a bit.
  

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: Looking toward 2.6.1
Reply #15 - Aug 25th, 2014 at 8:38pm
Mark & QuoteQuote  
Dandello wrote on Aug 25th, 2014 at 8:16pm:
And this is what I'm seeing in Firefox on my testbed:

Edited:
Now, there may be some minor differences in the default.css file between what's on the test bed and what's in the SVN and I'll double check those in a bit.


I don't have Firefox on this machine anymore... It was a lost cause with constant glitches and need to reinstall... I can debug the current template I have on my laptop though...

Edited:
I just checked the rendering on my laptop and Firefox, and it looks the same as with Chrome and IE. On my client's forum, the alignment is PERFECT. And on this forum it is OK except shifted by two pixels, which is expected.


It shouldn't do that unless the "float: left;" line is missing or on wrong line of the file...

the whole block should read:

Code
Select All
 .ubbcbutton {
     height: 22px;
     width: 23px;
     border: 0;
     margin: 0 1px 1px 0;
     background-position: top right;
     background-repeat: no-repeat;
     text-decoration: none;
     font-size: 18px;
     vertical-align: top;
     display: inline-block;
     float: left;
 }
  

  
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: Looking toward 2.6.1
Reply #16 - Aug 25th, 2014 at 9:21pm
Mark & QuoteQuote  
The float:left was missing - looks good on my testbed. Will upload here in a bit.
  

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: Looking toward 2.6.1
Reply #17 - Aug 25th, 2014 at 9:22pm
Mark & QuoteQuote  
Dandello wrote on Aug 25th, 2014 at 9:21pm:
The float:left was missing - looks good on my testbed. Will upload here in a bit.


You almost scared me...
  
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: Looking toward 2.6.1
Reply #18 - Aug 25th, 2014 at 10:38pm
Mark & QuoteQuote  
Not having a good day - Took an out-of-town guest out to dinner last night and woke up trying to figure out how to call in sick...  Tongue (I didn't have anything alcoholic so that isn't it.)
  

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: Looking toward 2.6.1
Reply #19 - Aug 26th, 2014 at 3:44am
Mark & QuoteQuote  
Found some other spots where the old css was interferring with the new. Also added a 'use today' option for the Event Calendar.
  

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: Looking toward 2.6.1
Reply #20 - Aug 26th, 2014 at 7:50am
Mark & QuoteQuote  
lol... getting closer to point where code freeze for 2.6.1 would make sense... Stop fixing bugs and hiccups so we still have enough left to fix for 2.6.2  :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: Looking toward 2.6.1
Reply #21 - Aug 26th, 2014 at 3:05pm
Mark & QuoteQuote  
Should we fix those bad '||' bits first?  I've spotted some where I can't even figure out what they're suppose to do.

Like line 2782 in Post.pm
Code (Perl)
Select All
            $mname ||= $musername || $post_txt{'470'}; 

  Huh

as near as I can tell it should be
Code (Perl)
Select All
            $mname = $musername || $post_txt{'470'}; 

as $musername should be either 'Guest' or a userID and this is just an error catcher in case it's empty.
  

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: Looking toward 2.6.1
Reply #22 - Aug 26th, 2014 at 3:13pm
Mark & QuoteQuote  
Dandello wrote on Aug 26th, 2014 at 3:05pm:
Should we fix those bad '||' bits first?  I've spotted some where I can't even figure out what they're suppose to do.

Like line 2782 in Post.pm
Code (Perl)
Select All
            $mname ||= $musername || $post_txt{'470'}; 

  Huh

as near as I can tell it should be
Code (Perl)
Select All
            $mname = $musername || $post_txt{'470'}; 

as $musername should be either 'Guest' or a userID and this is just an error catcher in case it's empty.


||= is supposed to be //= which means set if not defined...

So something like:

Code
Select All
 $mname = defined $musername ? $musername : $post_txt{'470'} unless defined $mname;
  



This is pretty much harakiri code as this doesn't work if $musername or $mname is defined but empty string.
  
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: Looking toward 2.6.1
Reply #23 - Aug 26th, 2014 at 3:24pm
Mark & QuoteQuote  
Code (Perl)
Select All
if ( ! defined $mname || $mname eq q{} ) { $mname = defined $musername ? $musername : $post_txt{'470'} ; }
   

?
  

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: Looking toward 2.6.1
Reply #24 - Aug 26th, 2014 at 3:28pm
Mark & QuoteQuote  
Dandello wrote on Aug 26th, 2014 at 3:24pm:
Code (Perl)
Select All
if ( ! defined $mname || $mname eq q{} ) { $mname = defined $musername ? $musername : $post_txt{'470'} ; }
   

?


almost... it doesn't check if $musername is empty string yet... But is that even possible?
  
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: Looking toward 2.6.1
Reply #25 - Aug 26th, 2014 at 3:31pm
Mark & QuoteQuote  
Both $mname and $musername come out of a split message string so could actually have a value of empty string - in which case there's more bad things going on with that message string than just not having $mname defined.  Grin

Code (Perl)
Select All
if ( ! defined $mname || $mname eq q{} ) { $mname = (defined $musername && $musername ne q{} ) ? $musername : $post_txt{'470'} ; }
   

  

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: Looking toward 2.6.1
Reply #26 - Aug 26th, 2014 at 3:33pm
Mark & QuoteQuote  
Dandello wrote on Aug 26th, 2014 at 3:31pm:
Both $mname and $musername come out of a split message string so could actually have a value of empty string - in which case there's more bad things going on with that message string than just not having $mname defined.  Grin

Code (Perl)
Select All
if ( ! defined $mname || $mname eq q{} ) { $mname = (defined $musername || $musername = q{} ) ? $musername : $post_txt{'470'} ; }
   



The bad code usually looks better than the good code... But it's better to make the code safe than fix it twice...
  
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: Looking toward 2.6.1
Reply #27 - Aug 26th, 2014 at 3:35pm
Mark & QuoteQuote  
I was rewriting it as you posted.  Wink
  

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: Looking toward 2.6.1
Reply #28 - Aug 26th, 2014 at 3:39pm
Mark & QuoteQuote  
Dandello wrote on Aug 26th, 2014 at 3:35pm:
I was rewriting it as you posted.  Wink


It could look a little nicer if we could move the "not defined or empty" test as a sub/function isempty() or something... only parameter to it would be the variable to test and it would return false only if the variable is defined and at least 1 character long.
  
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: Looking toward 2.6.1
Reply #29 - Aug 26th, 2014 at 3:42pm
Mark & QuoteQuote  
According to http://www.perlmonks.org/?node_id=653404 ||= should evaluate as false undefined, empty string and 0 values. Where we may still have some glitches are those places where '0' and empty are a valid values.
  

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: Looking toward 2.6.1
Reply #30 - Aug 26th, 2014 at 3:55pm
Mark & QuoteQuote  
Dandello wrote on Aug 26th, 2014 at 3:42pm:
According to http://www.perlmonks.org/?node_id=653404 ||= should evaluate as false undefined, empty string and 0 values. Where we may still have some glitches are those places where '0' and empty are a valid values.


The reason why I said || and ||= are bad is that it overwrites the original value even when it shouldn't... empty is valid value for variables that are strings by default, "0" is valid value for variables that are numeric by default... Perl doesn't differentiate between numeric 0 or string "0" when it does simple binary logic (for example true/false).

There is cases when empty or undefined means feature is disabled, but 0 means the check used in the feature has no limit (for example width/height variable pairs).
  
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: Looking toward 2.6.1
Reply #31 - Aug 26th, 2014 at 4:08pm
Mark & QuoteQuote  
Monni wrote on Aug 26th, 2014 at 3:55pm:
There is cases when empty or undefined means feature is disabled, but 0 means the check used in the feature has no limit (for example width/height variable pairs).
                     

Exactly.

I'll look at adding a 'isempty' sub to make things neater. (When we start on 2.6.2 I think we'll need to establish Perl 5.010 or even a bit higher as the Perl requirement so we can use newer and better shortcuts. ModuleChecker now has a Perl Version readout so telling people they need a newer version shouldn't be that hard.)


  

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: Looking toward 2.6.1
Reply #32 - Aug 26th, 2014 at 4:18pm
Mark & QuoteQuote  
Dandello wrote on Aug 26th, 2014 at 4:08pm:
Monni wrote on Aug 26th, 2014 at 3:55pm:
There is cases when empty or undefined means feature is disabled, but 0 means the check used in the feature has no limit (for example width/height variable pairs).
                   

Exactly.

I'll look at adding a 'isempty' sub to make things neater. (When we start on 2.6.2 I think we'll need to establish Perl 5.010 or even a bit higher as the Perl requirement so we can use newer and better shortcuts. ModuleChecker now has a Perl Version readout so telling people they need a newer version shouldn't be that hard.)




I know pretty much in how many places we need to recheck the logic, but honestly it is way beyond my coding skills to figure out which of the alternatives is the best fix, or should we just leave it like it was in 2.6.0 ...

In 2.6.2 we only need to change the "defined $x ? $x : $y" tests as "$x // $y"... Rest can stay as it is now or will be in 2.6.1 ...
  
Back to top
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: Looking toward 2.6.1
Reply #33 - Aug 27th, 2014 at 10:11am
Mark & QuoteQuote  
One thing I know for sure is that whenever the check involves a setting read from user vars file or forum settings file, we need to use isempty... because plain undefined check can cause Perl to crash.
  
Back to top
IP Logged
 
Paste Member Name in Quick Reply Box XTC
Global Moderator
*****
Offline


YaBB 2.6.0/1/11 Mods

Posts: 174
Location: @ustria
Joined: Feb 12th, 2014
Gender: Male
Mood: Freaky
Zodiac sign: Aquarius
Re: Looking toward 2.6.1
Reply #34 - Aug 27th, 2014 at 11:38am
Mark & QuoteQuote  
Hello

Monni wrote on Aug 25th, 2014 at 7:13pm:
This is the version I have now... Looks good with both Chrome and IE with constant 1 pixel padding...

Works for me in SlimBrowser  Wink

lg XTC
  

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: Looking toward 2.6.1
Reply #35 - Aug 27th, 2014 at 2:22pm
Mark & QuoteQuote  
Monni wrote on Aug 27th, 2014 at 10:11am:
because plain undefined check can cause Perl to crash


This is one of the things I'm testing
Code (Perl)
Select All
sub isempty {
     my ($x, $y) = @_;
     if ( defined $x && $x ne q{} ) {
         $y = $x;
     }
     return $y;
 } 



Not using it on things like vars or boards that are loaded in Load (Those are both fed into hashes so those things need to be checked in Load and I haven't gotten there yet. )

Where I'm using the new sub is in the spots where the result should be 'something', including a '0', but not a 'nothing'. In Settings we have some spots where 'nothing' is allowed but should be a 0 and some spots where it could be a 0 but 'nothing' should be something else. (Like the image sizes.)

I went though all the '||='s, checked on what the possible good results were and decided if it should be a '||=' or a ' = isempty'.

I need to do more testing but should have it in the SVN later today.

(Also converted the '||' related to the fopen function to 'or' - it's lower precidence and it what's usually used for system call errors anyway. Also makes for fewer '||' to check.  :Smiley)
  

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: Looking toward 2.6.1
Reply #36 - Aug 27th, 2014 at 3:08pm
Mark & QuoteQuote  
Dandello wrote on Aug 27th, 2014 at 2:22pm:
This is one of the things I'm testing
Code (Perl)
Select All
sub isempty {
     my ($x, $y) = @_;
     if ( defined $x && $x ne q{} ) {
         $y = $x;
     }
     return $y;
 } 


That code really doesn't make any sense to me... It looks like it sets $y to be equal to $x if $x is empty... but... isn't $y a local variable? For most of the times we only need it to return true or false, not the result as we already know it can also be invalid.
  
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: Looking toward 2.6.1
Reply #37 - Aug 27th, 2014 at 3:19pm
Mark & QuoteQuote  
$y isn't a local, $y is the alternate value.
Code (Perl)
Select All
$myval = isempty($x, $y); 



if $x isn't empty, it should return $x (even if $x == 0), otherwise it should return $y. (Kind of halfway between $x //= $y; and $x ||= $y;)

Where I'm currently using it is in places where there's a hard-coded good value for $y or in spots where if $y is a bad value, there's a subsequent catcher or it goes to a string like 'ex-member'.
  

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: Looking toward 2.6.1
Reply #38 - Aug 27th, 2014 at 3:22pm
Mark & QuoteQuote  
Dandello wrote on Aug 27th, 2014 at 3:19pm:
$y isn't a local, $y is the alternate value.
Code (Perl)
Select All
$myval = isempty($x, $y); 



if $x isn't empty, it should return $x (even if $x == 0), otherwise it should return $y. (Kind of halfway between $x //= $y; and $x ||= $y;)

I'm not joking... but we really need $z...
  
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: Looking toward 2.6.1
Reply #39 - Aug 27th, 2014 at 3:40pm
Mark & QuoteQuote  
There's one spot I can think of offhand where $z might be useful. (And I can't find it at the moment.  Huh  - it had to do with sorting.)
  

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: Looking toward 2.6.1
Reply #40 - Aug 27th, 2014 at 3:44pm
Mark & QuoteQuote  
Dandello wrote on Aug 27th, 2014 at 3:40pm:
There's one spot I can think of offhand where $z might be useful. (And I can't find it at the moment.  Huh  - it had to do with sorting.)


There is a lot of places that use $FORM{'foo'} and $INFO{'foo'} and third value... also... every place where it uses user's real name...
  
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: Looking toward 2.6.1
Reply #41 - Aug 27th, 2014 at 3:54pm
Mark & QuoteQuote  
Monni wrote on Aug 27th, 2014 at 3:44pm:
every place where it uses user's real name...


The only time that should be an issue is if someone is using ancient vars files and didn't process them through one of the Convert utilites on upgrading - in that case they've got more problems than just missing user display names.  :Smiley  (YaBB Forum is still has messed up vars files because it didn't get run through Convert - EVER! on any upgrade! EVER!)

I'll track down the multiple Form, Info, whatever calls.
  

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: Looking toward 2.6.1
Reply #42 - Aug 27th, 2014 at 4:03pm
Mark & QuoteQuote  
Dandello wrote on Aug 27th, 2014 at 3:54pm:
Monni wrote on Aug 27th, 2014 at 3:44pm:
every place where it uses user's real name...


The only time that should be an issue is if someone is using ancient vars files and didn't process them through one of the Convert utilites on upgrading - in that case they've got more problems than just missing user display names.  :Smiley  (YaBB Forum is still has messed up vars files because it didn't get run through Convert - EVER! on any upgrade! EVER!)

I'll track down the multiple Form, Info, whatever calls.


Today morning was the last time I have seen forum with totally messed up vars files and that was a forum I did upgrade... had to do some serious hacking to get it even log people in... Seriously... the Converter in original 2.6.0 zip file is totally busted... It leaves some fields empty when empty value is invalid. That was one of the first reasons I started digging up all the wrong uses of ||, because those just masquerade the real problem. Some users complained that some calculations were off by 2 or 3 because it reverted back to 0 when it shouldn't.
  
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: Looking toward 2.6.1
Reply #43 - Aug 27th, 2014 at 4:20pm
Mark & QuoteQuote  
Ah hah - off to check the converters after I get more coffee.
  

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: Looking toward 2.6.1
Reply #44 - Aug 27th, 2014 at 4:27pm
Mark & QuoteQuote  
Dandello wrote on Aug 27th, 2014 at 4:20pm:
Ah hah - off to check the converters after I get more coffee.


First thing I noticed after upgrading to 2.6.0 was that default_tz and user_tz didn't work as expected... In the clock at top of forum, when user_tz was empty string, it didn't use default_tz for already registered users, but did use for guests.
  
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: Looking toward 2.6.1
Reply #45 - Aug 27th, 2014 at 6:15pm
Mark & QuoteQuote  
That one actually works as designed - registered users should either see UTC or their timezone choice. Guests will see UTC or the Admin's forum choice. In either case the default is UTC. (Now, we could add a reminder for members to update their tz choice...  Wink )
  

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: Looking toward 2.6.1
Reply #46 - Aug 27th, 2014 at 6:38pm
Mark & QuoteQuote  
Dandello wrote on Aug 27th, 2014 at 6:15pm:
That one actually works as designed - registered users should either see UTC or their timezone choice. Guests will see UTC or the Admin's forum choice. In either case the default is UTC. (Now, we could add a reminder for members to update their tz choice...  Wink )


It's a design flaw by some people... As they had different timezone selected before the upgrade... if it would have preserved the old settings value, it could have used it as fallback inside toffs()... one hour difference half of the year is a lot better than 3 hour difference half of the year...

Honestly it would be better to have admin setting that makes user_tz equal to default_tz when user_tz is empty. DateTime.pm actually already supports that but it is disabled.
  
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: Looking toward 2.6.1
Reply #47 - Aug 27th, 2014 at 6:56pm
Mark & QuoteQuote  
There was actually a lot of discussion on this when we decided to trash the old 'never worked right' TimeZone system.  A '-8' tz correction doesn't mean a lot when it's wrong a big part of the time and if DateTime::TimeZone is working, it REALLY doesn't mean anything. If we do decide to put back an ability to set an hour offset for users, it will only work if DateTime::TimeZone is not working.
  

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: Looking toward 2.6.1
Reply #48 - Aug 27th, 2014 at 6:56pm
Mark & QuoteQuote  
Monni wrote on Aug 27th, 2014 at 6:38pm:
Honestly it would be better to have admin setting that makes user_tz equal to default_tz when user_tz is empty. DateTime.pm actually already supports that but it is disabled.
                     


That we can do.
  

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: Looking toward 2.6.1
Reply #49 - Aug 27th, 2014 at 7:07pm
Mark & QuoteQuote  
Dandello wrote on Aug 27th, 2014 at 6:56pm:
There was actually a lot of discussion on this when we decided to trash the old 'never worked right' TimeZone system.  A '-8' tz correction doesn't mean a lot when it's wrong a big part of the time and if DateTime::TimeZone is working, it REALLY doesn't mean anything. If we do decide to put back an ability to set an hour offset for users, it will only work if DateTime::TimeZone is not working.


In most local area forums, there really is only one timezone that most of the users expect to be in use... As long as admin is wise enough to set the default timezone, there is really no use for user timezone. For the less than 1% of the registered users who want to use different timezone, the user_tz option is useful.
  
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: Looking toward 2.6.1
Reply #50 - Aug 27th, 2014 at 7:09pm
Mark & QuoteQuote  
In theory changing:
Code (Perl)
Select All
    if ( $iamguest || $forum_default ) {
         $tzname = $default_tz || 'UTC';
     }
     else {
         $tzname = ${ $uid . $username }{'user_tz'} || 'UTC';
     } 



to
Code (Perl)
Select All
    if ( $iamguest || $forum_default || !${ $uid . $username }{'user_tz'} ) {
         $tzname = $default_tz || 'UTC';
     }
     else {
         $tzname = ${ $uid . $username }{'user_tz'};
     } 


should do it.
  

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: Looking toward 2.6.1
Reply #51 - Aug 27th, 2014 at 7:15pm
Mark & QuoteQuote  
Dandello wrote on Aug 27th, 2014 at 7:09pm:
In theory changing:
Code (Perl)
Select All
    if ( $iamguest || $forum_default ) {
         $tzname = $default_tz || 'UTC';
     }
     else {
         $tzname = ${ $uid . $username }{'user_tz'} || 'UTC';
     } 



to
Code (Perl)
Select All
    if ( $iamguest || $forum_default || !${ $uid . $username }{'user_tz'} ) {
         $tzname = $default_tz || 'UTC';
     }
     else {
         $tzname = ${ $uid . $username }{'user_tz'};
     } 


should do it.


Looks ok, but I need to logout to test that with my test account Wink
  
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: Looking toward 2.6.1
Reply #52 - Aug 27th, 2014 at 7:21pm
Mark & QuoteQuote  
Not uploaded here yet.  Wink

BTW, what things disappeared or changed on you when running Convert2x? (I assume it was Convert2x.pl)
  

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: Looking toward 2.6.1
Reply #53 - Aug 27th, 2014 at 7:36pm
Mark & QuoteQuote  
Dandello wrote on Aug 27th, 2014 at 7:21pm:
Not uploaded here yet.  Wink

BTW, what things disappeared or changed on you when running Convert2x? (I assume it was Convert2x.pl)


I could test the change quickly in one of my clients forum, because I'm still logged in to its cPanel... I just don't leave the change in permanently until I have talked with the forum admin Wink

Two standard smileys in @SmilieURL of Settings.pm and all group stars stopped working, because the extension changed from .gif to .png. Not to mention the Admin Center gave me lots of 503 errors trying to edit forum settings. I had to fix settings file manually because %templateset didn't save correctly.
  
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: Looking toward 2.6.1
Reply #54 - Aug 27th, 2014 at 7:49pm
Mark & QuoteQuote  
Okay - the stars is a known issue - it's a tossup between forcing admins with custom  stars to reset their MemberGroup stars to the new versions or having them upload their old ones and not worry about messing with changing their MemberGroups - which can be a pain in really big Boards. (It took about 3 hours to get YaBBForum changed over to the new graphics because every time one of the MemberGroups got changed it had to update the entire memberlist.)
(Needs better documentation.)
In any case, any time graphics are changed there are issues.

%templateset is a problem to be looked at.
  

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: Looking toward 2.6.1
Reply #55 - Aug 27th, 2014 at 7:56pm
Mark & QuoteQuote  
Dandello wrote on Aug 27th, 2014 at 7:49pm:
Okay - the stars is a known issue - it's a tossup between forcing admins with custom  stars to reset their MemberGroup stars to the new versions or having them upload their old ones and not worry about messing with changing their MemberGroups - which can be a pain in really big Boards.


The forum didn't have custom stars... They were the default ones back when the forum was still using old version of YaBB.

Same goes for the smileys... two smileys (exclamation and question) were renamed so didn't work with default template, but did work with custom template used on the forum.
  
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: Looking toward 2.6.1
Reply #56 - Aug 27th, 2014 at 8:02pm
Mark & QuoteQuote  
The quick fix is to upload the gif versions of the 2 smilies and the old group stars into the default graphics directory. (Again, it's not well documented.) Then later you can edit the smilies list and the MemberGroups to use the new graphics.
  

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: Looking toward 2.6.1
Reply #57 - Aug 27th, 2014 at 8:07pm
Mark & QuoteQuote  
Dandello wrote on Aug 27th, 2014 at 8:02pm:
The quick fix is to upload the gif versions of the 2 smilies and the old group stars into the default graphics directory. (Again, it's not well documented.) Then later you can edit the smilies list and the MemberGroups to use the new graphics.


That's actually what I did back then Smiley Took me a while to check that no other graphics were MIA...
  
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
Re: Looking toward 2.6.1

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