MyBB Central
Usergroup legend improvements - Printable Version

+- MyBB Central (http://www.mybbcentral.com)
+-- Forum: Mybb 1.6x Series Topics (http://www.mybbcentral.com/forum-34.html)
+--- Forum: Mybb 1.6x Official Central Plugins and Hacks (http://www.mybbcentral.com/forum-35.html)
+---- Forum: Requests and Suggestions (http://www.mybbcentral.com/forum-28.html)
+---- Thread: Usergroup legend improvements (/thread-1393.html)



Usergroup legend improvements - judel - Jun 29, 2008

Seems to work fine, but I have a few suggestions that I liked from the version I use on my 1.2 board:

Being able to alphabetize the groups,
Having the text smaller by using smalltext,
making the groups clickable so that each group will take you to a page of members in that group.

The first two are the most important if the clickable aspect is too much trouble.


RE: Usergroup legend improvements - LeX- - Jun 29, 2008

Alphabetize can be done easily i think =P
Smaller text shouldnt be a problem too Wink
And making them clickable and show each member of that group; was also a plugin from CraKteR if i'm not mistaken?


RE: Usergroup legend improvements - judel - Jun 29, 2008

Yes, I'm pretty sure the clickable aspect was a default of Crakter's original plugin. The other two things were added after the fact for those of us that requested it. Tongue


RE: Usergroup legend improvements - LeX- - Jun 29, 2008

Ok; will look for it tomorrow after work =P
Gonna sleep now Wink


RE: Usergroup legend improvements - LeX- - Jun 30, 2008

judel Wrote:Yes, I'm pretty sure the clickable aspect was a default of Crakter's original plugin. The other two things were added after the fact for those of us that requested it. Tongue

Well 'Default'; they were clickable if you installed another plugin ( Show Groups In Users Profile) =P
Now its build into one plugin =P
It can be turned off (being clickable); its in the settings =P
Smalltext is included; Alphabetize too; but if you use the 'Cache' for selecting the groups you need to do a file change =P That's the easiest way. Just a query change in the class_datacache file and rebuild the usergroup cache =P If you want to test it; its in the package in the other thread; how to update; just uninstall the old one; reupload the new files and install again =P


RE: Usergroup legend improvements - judel - Jun 30, 2008

Weird, I thought that other plugin was totally separate.
I'll be sure to try the new version as soon as I can. Thanks!


RE: Usergroup legend improvements - labrocca - Jun 30, 2008

I want something like this for one of my sites. If you can wait a couple days I will build this for 1.2x.


RE: Usergroup legend improvements - judel - Jun 30, 2008

Ok, everything looks great, but there is one little glitch. See screen shot for more detail, but the columns in the table are a bit off. Tongue

[attachment=688]

Something else I just noticed. If there is more than one page and you click on another page, it takes you to a blank page. Must be something wrong with the url. It adds /misc.php?action=showgroup&gid=2&page=2 to the forum url. Is that right? Shouldn't it be /groups.php?gid=2&page=2?


RE: Usergroup legend improvements - LeX- - Jul 01, 2008

Gonna check the tablerow in the templates.

Edit:

About the multipage; you're right =P I first did it with the misc_start hook ... but that didn't work very well =P

Find (groups.php)
PHP Code:
        $multipage multipage($num$mybb->settings['membersperpage'], $page"misc.php?action=showgroup&gid=".$mybb->input['gid']); 

Change into
PHP Code:
        $multipage multipage($num$mybb->settings['membersperpage'], $page"groups.php?gid=".$mybb->input['gid']); 

Edit2:

Change your groups_page template into this
Code:
<html>
<head><title>{$mybb->settings['bbname']} - Usergroup Page</title>{$headerinclude}</head>
<body>
{$header}
{$multipage}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr><td class="thead" colspan="5"><strong>Users Of {$group['title']} :</strong></td></tr>
<tr>
<td class="tcat" width="15%"><span class="smalltext"><strong>{$lang->avatar}</strong></span></td>
<td class="tcat"><span class="smalltext"><strong>{$lang->username}</strong></span></td>
<td class="tcat" width="15%" align="center"><span class="smalltext"><strong>{$lang->joined}</strong></span></td>
<td class="tcat" width="15%" align="center"><span class="smalltext"><strong>{$lang->lastvisit}</strong></span></td>
<td class="tcat" width="10%" align="center"><span class="smalltext"><strong>{$lang->posts}</strong></span></td>
</tr>
{$usersrow}
</table>
<br /><div style="font-size: 10px; text-align: center">Groups Page created by <a href="http://mcdcpp.net/">CraKteR</a></div>
<br />
{$footer}
</body>
</html>