Page Index Toggle Pages: 1
Topic Tools
Normal Topic Most recent topic view - broken (Read 5,367 times)
Jet Li
Legacy Dev Team
Development Team
****
Offline



Posts: 6,588
Location: Hong Kong
Re: Most recent topic view - broken
Reply #7 - Jul 4th, 2010 at 5:20pm
Post Tools
New
Sources/Recent.pl
in CVS.

Need more changes. Tested and works with this:

Code
Select All
		if (${$uid.$tusername}{'regdate'} && $trstart> $registrationdate) {
			$tname = qq~<a href="$scripturl?action=viewprofile;username=$useraccount{$tusername}">${$uid.$tusername}{'realname'}</a>~;
		} elsif ($tusername !~ m~Guest~ && $trstart< $registrationdate) {
			$tname = qq~$tname - $maintxt{'470a'}~;
		} else {
			$tname = "$tname ($maintxt{'28'})";
		}

		if ($musername ne 'Guest' && -e ("$memberdir/$musername.vars")) { &LoadUser($musername); }
		if (${$uid.$musername}{'regtime'}) {
			$registrationdate = ${$uid.$musername}{'regtime'};
		} else {
			$registrationdate = $date;
		}

		if (${$uid.$musername}{'regdate'} && $mdate> $registrationdate) {
			$mname = qq~<a href="$scripturl?action=viewprofile;username=$useraccount{$musername}">${$uid.$musername}{'realname'}</a>~;
		} elsif ($musername !~ m~Guest~ && $mdate < $registrationdate) {
			$mname = qq~$mname - $maintxt{'470a'}~;
		} else {
			$mname = "$mname ($maintxt{'28'})";
		} 

« Last Edit: Jul 4th, 2010 at 5:22pm by Jet Li »  

PM me for YaBB Installation Service
Back to top
WWWGTalkFacebook  
IP Logged
 
Unilat
Development Team
Theme Team
****
Offline



Posts: 1,047
Location: Columbus Ohio, USA
Re: Most recent topic view - broken
Reply #6 - Jul 4th, 2010 at 4:17pm
Post Tools
Switch the highlighted in RecentTopics sub:

Code
Select All
		if (${$uid.$tusername}{'regdate'} && $mtime > $registrationdate) {
			$tname = qq~<a href="$scripturl?action=viewprofile;username=$useraccount{$tusername}">${$uid.$tusername}{'realname'}</a>~;
		} elsif ($tusername !~ m~Guest~ && $mtime < $registrationdate) {
			$tname = qq~$tname - $maintxt{'470a'}~;
		} else {
			$tname = "$tname ($maintxt{'28'})";
		}

		if ($musername ne 'Guest' && -e ("$memberdir/$musername.vars")) { &LoadUser($musername); }
		if (${$uid.$musername}{'regtime'}) {
			$registrationdate = ${$uid.$musername}{'regtime'};
		} else {
			$registrationdate = $date;
		}

		if (${$uid.$musername}{'regdate'} && $trstart > $registrationdate) {
			$mname = qq~<a href="$scripturl?action=viewprofile;username=$useraccount{$musername}">${$uid.$musername}{'realname'}</a>~;
		} elsif ($musername !~ m~Guest~ && $mdate < $registrationdate) {
			$mname = qq~$mname - $maintxt{'470a'}~;
		} else {
			$mname = "$mname ($maintxt{'28'})";
		}

		&wrap;
		($message, undef) = &Split_Splice_Move($message,$tnum);
		if ($enable_ubbc) {
			$ns = $mns;
			if (!$yyYaBBCloaded) { require "$sourcedir/YaBBC.pl"; }
			&DoUBBC;
		} 

« Last Edit: Jul 4th, 2010 at 4:17pm by Unilat »  
Back to top
 
IP Logged
 
Captain John
Ex Member


Re: Most recent topic view - broken
Reply #5 - Jul 3rd, 2010 at 5:06pm
Post Tools
Confirmed in Y2.4.x CVS

  

spammove.jpg ( 37 KB | 258 Downloads )
spammove.jpg
Back to top
 
IP Logged
 
AmishCake
Junior Member
**
Offline



Posts: 97
Location: Ohio, USA
Re: Most recent topic view - broken
Reply #4 - Jun 30th, 2010 at 11:44pm
Post Tools
Yes, and no.

And now I see it happening on another forum I manage, although this one is a 2.3.1 installation, and it looks just a little different - same thing, only in the Most Recent Topics view:



Freaky.
« Last Edit: Jun 30th, 2010 at 11:50pm by AmishCake »  

E.
Back to top
WWW  
IP Logged
 
Captain John
Ex Member


Re: Most recent topic view - broken
Reply #3 - Jun 30th, 2010 at 2:49pm
Post Tools
Are the registration date of those members "after" the start date of the forum ?  Has the member been banned (either by Ip or email) ?
« Last Edit: Jun 30th, 2010 at 9:08pm by »  
Back to top
 
IP Logged
 
AmishCake
Junior Member
**
Offline



Posts: 97
Location: Ohio, USA
Re: Most recent topic view - broken
Reply #2 - Jun 30th, 2010 at 10:33am
Post Tools
Quote:
Ex-Member is usually caused by the deletion of User's (Members) Profile.It can be reversed by replacing the members .vars file from a backup to the ./Members folder.


Those members are not showing up as Ex-Members anywhere but in that Most Recent Topic view. On the regular board view, their posts are showing up normally.
  

E.
Back to top
WWW  
IP Logged
 
Captain John
Ex Member


Re: Most recent topic view - broken
Reply #1 - Jun 29th, 2010 at 3:42pm
Post Tools
Ex-Member is usually caused by the deletion of User's (Members) Profile.  It can be reversed by replacing the members .vars file from a backup to the ./Members folder.
  
Back to top
 
IP Logged
 
AmishCake
Junior Member
**
Offline



Posts: 97
Location: Ohio, USA
Most recent topic view - broken
Jun 28th, 2010 at 11:28pm
Post Tools
Using the forum jump drop-down to go to "most recent topics" view, I am seeing posts marked as by "ex-member" and using their e-mail addresses instead of their user name. I have tried rebuilding and recounting and am still getting this. This is on a YaBB 2.4 installation that's been running very well for several months now. Any thoughts?



  

E.
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools
 
  « Board Index ‹ Board  ^Top