Page Index Toggle Pages: 1
Topic Tools
Normal Topic output to sub permtimer (Read 1,115 times)
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,266
Location: Earth

YaBB 2.6.0
Re: output to sub permtimer
Reply #1 - Nov 6th, 2012 at 9:33pm
Post Tools
This Topic was moved here from YaBB 2 - Bugs [Need Verification] [move by] Dandello.
  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,266
Location: Earth

YaBB 2.6.0
output to sub permtimer
May 8th, 2012 at 12:36am
Post Tools
Just passing this along:
I have the warnings pragma turned on for my test-bed copy of YaBB2.5AE and YaBB3.0 running on Perl5.12 (can't upgrade to 5.14 until a couple modules I need get updated) and I've gotten some interesting warnings besides the ones I knew about.

in MessageIndex.pl for YaBB 2.4/2.5 & Next there's
Code
Select All
	foreach (@threads) {
		($mnum, $msub, $mname, $memail, $mdate, $mreplies, $musername, $micon, $mstate) = split(/\|/, $_);

		my ($movedSubject, $movedFlag) = &Split_Splice_Move($msub,$mnum);

		&MessageTotals('load', $mnum);

		my $altthdcolor = (($alternatethreadcolor % 2) == 1) ? "windowbg" : "windowbg2";
		$alternatethreadcolor++;

		my $goodboard = $mstate =~ /a/i ? $annboard : $currentboard;
		if (${$mnum}{'board'} ne $goodboard) {
			${$mnum}{'board'} = $goodboard if $goodboard;
			&MessageTotals('recover', $mnum);
		}

		$permlinkboard = ${$mnum}{'board'} eq $annboard ? $annboard : $currentboard;
		my $permdate = &permtimer($_);
		my $message_permalink = qq~<a href="http://$perm_domain/$symlink$permdate/$permlinkboard/$mnum">$messageindex_txt{'10'}</a>~;
 



sub permtimer needs a number as input, not a non-numeric string, and the corresponding function in Display.pl is:
Code
Select All
    my $permdate = permtimer($mnum);
 


  

If you only have one solution to a problem you're not trying hard enough!
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools
 
  « Board Index ‹ Board  ^Top