MyBB Community Forums

Full Version: Memberlist sorting
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I didn't see what I'm trying to do with the memberlist (after searching the forums) so I thought I'd ask.

I'm trying to have the memberlist sorted by different chains of commands
Ex:
Administrator
Moderator
Registered
etc...

but in my case, it would be:
Administrator
Captain
Member
Recruit
Registered

I'm hoping this would be possible as this would make it for an easier management system for my clan members!

=) Lex, where are you?

-Shemo
Made this a couple months ago; try & test. [ http://thingiej.be/SortOnUsergroup.txt ]
'Demo': http://thingiej.be/mybb/memberlist.php
Lex, how did you put red crosses to the empty cells ?
link is asking me to login, but my username "Shemo" hasn't been activated from you yet. =(

I did however get to peak at it very briefly before I had to go out earlier. I like the red "X" appears in spots that have no info. How am I able to make this happen on my forums memberlist?!!?!?

Also, is it possible to take off the different 'classes' that I don't use?
ex: Super Moderator and Moderator
Your lastvisit 24-12-2007 =P your account is activated like a month ago Wink
But i'm modifing my memberlist a lil' bit; guests && registered group can't see it right now Wink
And for the code of sorting on usergroup, i'm gonna rewrite a part gonna use the cache instead of using that query for fetching the groups. (will be after Christmas)
what about my question?
leealex Wrote:what about my question?

that's just a simple if-else statement
Ex.
	if($users['website'] != '' || $users['website'] != "http://")
	{
		eval("\$usersite = \"".$templates->get("postbit_www")."\";");
	}
	else
	{
		$usersite = "<img src=\"./images/unknown.gif\" /> "; 
	}

IMG: [Image: unknown.gif]
I put this

Quote: if($users['email'] != '' || $users['email'] != "")
{
eval("\$useremail = \"".$templates->get("postbit_email")."\";");
}
else
{
$usersite = "<img src=\"./images/unknown.gif\" /> ";
}

into memberlist.php

nothing happened Smile
yeah, Lex..where are we putting that if statement and before/after which code?
Open memberlist.php

Find
	if($users['website'] == '' || $users['website'] == "http://")
	{
		$usersite = '';
	}
	else
	{
		eval("\$usersite = \"".$templates->get("postbit_www")."\";");
	}

Change into
	if($users['website'] == '' || $users['website'] == "http://")
	{
		$usersite = "<img src=\"./images/unknown.gif\" /> "; 
	}
	else
	{
		eval("\$usersite = \"".$templates->get("postbit_www")."\";");
	}

The rest is simular, i aint gonna put everything here.
Pages: 1 2