Page Index Toggle Pages: 1
Topic Tools
Normal Topic 2.5.2 Guest names not properly formated (Read 647 times)
Dandello
YaBB Administrator
YaBB Next Team
Operations Team
Beta Testers
Support Team
*****
Offline



Posts: 2,170
Location: Earth

YaBB 2.6.0
2.5.2 Guest names not properly formated
Jan 11th, 2013 at 7:49pm
Post Tools
In 2.5.2 : when Guests are allowed to post, the Guest's name is not properly formatted, shows them as an ex-member, and the email address is missing in the mini-profile

in Display.pl find
Code (Perl)
Select All
			$cryptmail = &scramble($memailad, $musername);
		}
		$usernames_life_quote{$useraccount{$musername}} = $displayname; # for display names in Quotes in LivePreview

		# Insert 2
		if ((!${$uid.$musername}{'hidemail'} || $iamadmin || $allow_hide_email != 1 || $musername eq 'Guest') && !$exmem) {
			$template_email = $menusep . &enc_eMail($img{'email_sm'},$memailad,'','');
			if ($iamadmin) { $template_email =~ s~title=\\"$img_txt{'69'}\\"~title=\\"$memailad\\"~; }
		}
 



Replace with:
Code (Perl)
Select All
			$cryptmail = &scramble($memail, $musername);
		}
		$usernames_life_quote{$useraccount{$musername}} = $displayname; # for display names in Quotes in LivePreview

		# Insert 2
		if ((!${$uid.$musername}{'hidemail'} || $iamadmin || $allow_hide_email != 1 || $musername eq 'Guest') && !$exmem) {
			if ($musername ne 'Guest') {$template_email = $menusep . enc_eMail($img{'email_sm'},$memailad,q{},q{});}
			else {$template_email = $menusep . enc_eMail($img{'email_sm'},$memail,q{},q{});}
			if ( $iamadmin) {
				if ($musername ne 'Guest') { $template_email =~ s~title=\\"$img_txt{'69'}\\"~title=\\"$memailad\\"~; }
			    else { $template_email =~ s~title=\\"$img_txt{'69'}\\"~title=\\"$memail\\"~;}
		    }
 

« Last Edit: Jan 11th, 2013 at 10:12pm by Dandello »  

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