MyBB Community Forums

Full Version: Group Legend
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I for some reason am not using a plugin for this, I have just edited the Board Statistics template and added in a section.

Currently I have:

[Admins] [Moderators] [cGamer Member] [VIP Member+]
[Banned] [Guests] [Awaiting Activation] [Registered] [Member+] [VIP Member]

But they do not link to anything..

What is in the link to custom groups. I want to be able to click for example [VIP Member] and it will bring up a list of people in that group.. like the Forum Team link.

Rob.

Hmm im not sure but this will link all to showteam.php:


<a href="http://yoursite.com/showteam.php">[Admins] [Moderators] [cGamer Member] [VIP Member+]
[Banned] [Guests] [Awaiting Activation] [Registered] [Member+] [VIP Member]</a>
Nah each group needs to be linked to its members page, I know the link will have some sort of mention of gid.. just not sure what the full link is.
I would rather do it manually, I know there is a URL i can use similar to:

index.php?action=viewgroups&gid=GROUPID_HERE

I just cant remember what it is, and cant find a thread through searching.
Yea i cant remember the link either , sry.

If i think of it i'll let you know.

Only thing is , use the plugin , then edit that template and add the groups how you want them. Then create your groups and use the linking part of the plugin to access/view your custom groups.

That works , ive just tried it.

==========================================================

Ok , install the plugin ive shown you above, activate it. Goto templates >> Global Templates >> viewgroups_index

That template should havethe following:
Quote:<tr>
<td class="tcat"><strong>{$lang->viewgroups_groups}</strong></td>
</tr>
<tr>
<td class="trow1"><span class="smalltext">{$usergroups}</span></td>
</tr>

Replace the red part with all your custom groups.

Like this:
Quote:<tr>
<td class="tcat"><strong>{$lang->viewgroups_groups}</strong></td>
</tr>
<tr>
<td class="trow1"><span class="smalltext"><a href="http://www.yoursite.com/index.php?action=viewgroups&gid=4">[ADMIN]</a> - <a href="http://www.yoursite.com/index.php?action=viewgroups&gid=6">[MOD]</a> - <a href="http://www.yoursite.com/index.php?action=viewgroups&gid=2">[Registered]</a> etc........</span></td>
</tr>


Now create all your custom groups in "Users & Groups" in the admin panel.
(2010-08-21, 11:57 AM)Janota Wrote: [ -> ]Yea i cant remember the link either , sry.

If i think of it i'll let you know.

Only thing is , use the plugin , then edit that template and add the groups how you want them. Then create your groups and use the linking part of the plugin to access/view your custom groups.

That works , ive just tried it.

==========================================================

Ok , install the plugin ive shown you above, activate it. Goto templates >> Global Templates >> viewgroups_index

That template should havethe following:
Quote:<tr>
<td class="tcat"><strong>{$lang->viewgroups_groups}</strong></td>
</tr>
<tr>
<td class="trow1"><span class="smalltext">{$usergroups}</span></td>
</tr>

Replace the red part with all your custom groups.

Like this:
Quote:<tr>
<td class="tcat"><strong>{$lang->viewgroups_groups}</strong></td>
</tr>
<tr>
<td class="trow1"><span class="smalltext"><a href="http://www.yoursite.com/index.php?action=viewgroups&gid=4">[ADMIN]</a> - <a href="http://www.yoursite.com/index.php?action=viewgroups&gid=6">[MOD]</a> - <a href="http://www.yoursite.com/index.php?action=viewgroups&gid=2">[Registered]</a> etc........</span></td>
</tr>


Now create all your custom groups in "Users & Groups" in the admin panel.

Im now running in to the reason why I do not like using plugins for this, because I also have to go through editing them for the small stupid things, like the creator putting thead class in the <tr> tag and not <td> like every other normal theme, so im getting hundreds of errors now. The table does not get the styles rounded corners..
But the template is not big , edit the classes , you dont need to use any of that template. Use your own template. The only part of the plugin you are using is , that you can get a link to the specific groups.
(2010-08-21, 12:43 PM)Janota Wrote: [ -> ]But the template is not big , edit the classes , you dont need to use any of that template. Use your own template. The only part of the plugin you are using is , that you can get a link to the specific groups.

But you still have to edit the plugin file, which I have done and It just returns a load of errors.
(2010-08-21, 12:44 PM)Rob1991 Wrote: [ -> ]
(2010-08-21, 12:43 PM)Janota Wrote: [ -> ]But the template is not big , edit the classes , you dont need to use any of that template. Use your own template. The only part of the plugin you are using is , that you can get a link to the specific groups.

But you still have to edit the plugin file, which I have done and It just returns a load of errors.

Did you actually edit the plugin file? The .php file?

If you did , you dont need to do that.

Look above again , edit the template. Ive tested this on my test forum and its working 100% , no errors.

Also what errors are you getting?


Pages: 1 2