YaBB Community and Support Forum
YaBB Home About YaBB Download YaBB YaBB Support Customize Your Forum Development Contribute to the Project
  Welcome, Guest. Please Login or Register


 
Pages: 1 2 
Topic Tools
 
Mark as read (Read 1,471 times)
 Dec 10th, 2012 at 1:51pm
There are no actions to perform.  

RonS2 
Full Member
Beta Testers
***
Offline
Posts: 447


YaBB 2.5
Mark as read
Version 2.4

There are a few members that this feature doesn't work (It works fine on my systems).

I had them:
Reboot the computer
Clear their cache
Clear their cookies
Update Java

None of which seems to work

Any ideas?
 
 
IP Logged  
 Reply #1 - Dec 10th, 2012 at 10:41pm
There are no actions to perform.  

Dandello 
Global Moderator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline
Posts: 1,862
Earth


YaBB 2.5
Re: Mark as read
Update their browser? (YaBB doesn't use java, but it does use javascript (different language)) and it's just possible they're using browsers that don't support all the javascript features (even though 2.4 is ancient by web standards.)
 
WWW  
IP Logged  
 Reply #2 - Dec 11th, 2012 at 1:15pm
There are no actions to perform.  

JonB 
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline
Posts: 3,625
Land of the Blazing Sun!


None
Re: Mark as read
I'd see what they have in common.

Browser choice?

Use of SmartPhone to access?

Use of the 'back arrow' to navigate?


Good Luck
Wink

 
I find your lack of faith disturbing.
jonbservergeek  
IP Logged  
 Reply #3 - Dec 11th, 2012 at 2:10pm
There are no actions to perform.  

RonS2 
Full Member
Beta Testers
***
Offline
Posts: 447


YaBB 2.5
Re: Mark as read
Most of them have tried a combination of Firefox, Chrome and Explorer. All use some version of windows and are on a desktop or laptop.

this is what one person sent me
Quote:
FireFox 17.0.1, from addon's list:

Java Deployment Toolkit 6.0.290.11 and 6.0.310.5 are enabled.
Java Platform SE U29 and U31 are disabled.

Windows XP service pack 3:

J2SE Runtime Environment 5.0 update 10, 11
Java 6 update 2, 3, 31


Another member sent me this
Quote:


When I click on the top link I get this error
Quote:
Untrapped Error :
Died at ./Sources/MessageIndex.pl line 829.

 
 
IP Logged  
 Reply #4 - Dec 11th, 2012 at 3:07pm
There are no actions to perform.  

Dandello 
Global Moderator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline
Posts: 1,862
Earth


YaBB 2.5
Re: Mark as read
And I'm betting that error is part of the problem. (The error is referring to the MarkRead sub in MessageIndex.pl - something is either wrong in the sub routine or the variables being set to it are bad. - and based on what your member sent, it's the variables being sent to the javascript.)

Have you added any mods recently?
 
WWW  
IP Logged  
 Reply #5 - Dec 11th, 2012 at 6:51pm
There are no actions to perform.  

RonS2 
Full Member
Beta Testers
***
Offline
Posts: 447


YaBB 2.5
Re: Mark as read
Its been over a year (maybe more) that I've added a new mod.

But wouldn't that effect everyone if that was the case? It works for many of the members including me.

Code (Perl)Select All
sub MarkRead { # Mark all threads in this board as read.
	# Load the log file
	&getlog;

	# Look for any threads marked unread in the current board and remove them
	fopen(BRDTXT, "$boardsdir/$currentboard.txt") || &fatal_error("cannot_open","$boardsdir/$currentboard.txt", 1);
	my @threadlist = map {/^(\d+)\|/} <BRDTXT>;
	fclose(BRDTXT);

	# Loop through @threadlist and delete the corresponding item from %yyuserlog
	foreach (@threadlist) { delete $yyuserlog{"$_--unread"}; }

	# Write it out
	&dumplog("$currentboard--mark");

	if($INFO{'oldmarkread'}) {
		&redirectinternal;
	}
	$elenable = 0;
	die ""; # This is here only to avoid server error log entries!
}
 



 
 
IP Logged  
 Reply #6 - Dec 11th, 2012 at 8:30pm
There are no actions to perform.  

Dandello 
Global Moderator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline
Posts: 1,862
Earth


YaBB 2.5
Re: Mark as read
The actual error appears to be something with the javascript that's sending the information to the MarkRead sub routine.
Code Select All
javascript:MarkAllAsRead('http://www.woodturnersresource.com/cgi-bin/yabb2/YaBB.pl?board=tips&&action=mark...','http://www.woodturnersresource.com/yabb2files/Templates/Forum/woody')  



OR that double ampersand. If that's part of the board name it could be causing issues - unless the coding has changed between 2.4 and 2.5 it should be a semi-colon separating the fields.

 
WWW  
IP Logged  
 Reply #7 - Dec 11th, 2012 at 9:28pm
There are no actions to perform.  

RonS2 
Full Member
Beta Testers
***
Offline
Posts: 447


YaBB 2.5
Re: Mark as read
so if its javascript how is that fixed?


Dandello wrote on Dec 11th, 2012 at 8:30pm:
OR that double ampersand. If that's part of the board name it could be causing issues

The double ampersand is not a part of the board name
 
 
IP Logged  
 Reply #8 - Dec 11th, 2012 at 10:29pm
There are no actions to perform.  

Dandello 
Global Moderator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline
Posts: 1,862
Earth


YaBB 2.5
Re: Mark as read
That's a good question. The code didn't change between 2.4 and 2.5
it's:
Code Select All
		$markalllink = qq~$menusep<a href="javascript:MarkAllAsRead('$scripturl?board=$INFO{'board'};action=markasread','$imagesdir')">$img{'markboardread'}</a>~;
 



Which indicate something in "$INFO{'board'}" as the culprit.

Note that in the javascript you were sent, there are two ampersands and no semi-colon. Which kind of tells me we're looking for an ampersand - in fact we're looking at something like '&amp'  or '&&amp' So open up in a text editor './Boards/forum.control' and './Boards/forum.master' - and make sure there are no errant ampersands, or partial codes for one, in there.

Edited:
And I've been playing around with ampersands in Board names and haven't been able to reproduce this problem.
« Last Edit: Dec 11th, 2012 at 10:37pm by Dandello »  
WWW  
IP Logged  
 Reply #9 - Dec 13th, 2012 at 7:12pm
There are no actions to perform.  

RonS2 
Full Member
Beta Testers
***
Offline
Posts: 447


YaBB 2.5
Re: Mark as read
Code Select All
$board{'tips'} = qq~Tips &amp; Techniques||~; 



There it is!

Let me inform the membership and see if that fixes the problem and I'll get back

Thanks
 
 
IP Logged  
 Reply #10 - Dec 14th, 2012 at 6:06pm
There are no actions to perform.  

RonS2 
Full Member
Beta Testers
***
Offline
Posts: 447


YaBB 2.5
Re: Mark as read
Unfortunately that wasn't the answer.

One person wrote
Quote:
nothing.  just a white bar, about 1/16" high by 4" long.


I have no idea what he means. I asked him to post an image so I can see what he is talking about
 
 
IP Logged  
 Reply #11 - Dec 14th, 2012 at 8:35pm
There are no actions to perform.  

Dandello 
Global Moderator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline
Posts: 1,862
Earth


YaBB 2.5
Re: Mark as read
It the problem only happening with the Tips board is involved in being marked as read? Or are other boards throwing similar errors?
 
WWW  
IP Logged  
 Reply #12 - Dec 14th, 2012 at 11:01pm
There are no actions to perform.  

RonS2 
Full Member
Beta Testers
***
Offline
Posts: 447


YaBB 2.5
Re: Mark as read
Yes, it happens on all the boards
 
 
IP Logged  
 Reply #13 - Dec 15th, 2012 at 12:23am
There are no actions to perform.  

Dandello 
Global Moderator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline
Posts: 1,862
Earth


YaBB 2.5
Re: Mark as read
You're going to have to do some sleuthing into the actual code.

download copies of Sources/BoardIndex.pl and MessageIndex.pl and open them in a good text-editor (not a word processor). Look for the string 'MarkAllAsRead' and inspect the lines you find with it (should be 1 in MessageIndex.pl and 2 in BoardIndex.pl.)

All three lines should resemble the code posted earlier (they won't be exactly alike but you're looking for things that shouldn't be there, like ampersands.)

The problem, though, is that apparently not everybody is getting this error, which makes it harder to track down.
 
WWW  
IP Logged  
 Reply #14 - Dec 15th, 2012 at 12:56am
There are no actions to perform.  

RonS2 
Full Member
Beta Testers
***
Offline
Posts: 447


YaBB 2.5
Re: Mark as read
From my amateur eye they look ok

From BoardIndex.pl
Code (Perl)Select All
		if ($INFO{'catselect'} eq '') {
			if ($colbutton) { $col_vis = ""; }
			else { $col_vis = " style='display:none;'"; }
			if (${$uid.$username}{'cathide'}) { $exp_vis = ""; }
			else { $exp_vis = " style='display:none;'"; }

			$expandlink = qq~<span id="expandall" $exp_vis><a href="javascript:Collapse_All('$scripturl?action=collapse_all;status=1',1,'$imagesdir','$boardindex_exptxt{'2'}')">$img{'expand'}</a>$menusep</span>~;
			$collapselink = qq~<span id="collapseall" $col_vis><a href="javascript:Collapse_All('$scripturl?action=collapse_all;status=0',0,'$imagesdir','$boardindex_exptxt{'1'}')">$img{'collapse'}</a>$menusep</span>~;
			$markalllink = qq~<a href="javascript:MarkAllAsRead('$scripturl?action=markallasread','$imagesdir')">$img{'markallread'}</a>~;

		} else {
			$markalllink  = qq~<a href="javascript:MarkAllAsRead('$scripturl?action=markallasread;cat=$INFO{'catselect'}','$imagesdir')">$img{'markallread'}</a>~;
			$collapselink = '';
			$expandlink   = '';
		}
 



From MessageIndex.pl
Code (Perl)Select All
	if (!$iamguest) {
		$markalllink = qq~$menusep<a href="javascript:MarkAllAsRead('$scripturl?board=$INFO{'board'};action=markasread','$imagesdir')">$img{'markboardread'}</a>~;
		$notify_board = qq~$menusep<a href="$scripturl?action=boardnotify;board=$INFO{'board'}">$img{'notify'}</a>~;
 

 
 
IP Logged  
Pages: 1 2 
Topic Tools
 

Get Yet another Bulletin Board at SourceForge.net. Fast, secure and Free Open Source software downloads Support This Project BoardMod - YaBB features and templates YaBB Codex - support on installation and usage YaBB Toolbar for your browser

YaBB Facebook Group Page

Vulnerability Scanner

Valid RSS Valid XHTML Valid CSS Powered by Perl
YaBB Chat and Support Community » Powered by YaBB 3.0 Beta!
YaBB Forum Software © 2000-2011. All Rights Reserved.