![]() |
Show Usergroup Description on Show Groups
This plugin shows the description of the usergroup on showgroups.php.
Enjoy. :) |
I noticed that the hook showgroups_start is initialised just before the query you modify in your Code Modification version...
Couldn't you do something like the following? PHP Code:
Satan |
$locationfieldselect isn't an array. I didn't notice it, though. I guess I can make a plugin without a query. :p
(Whoops...) |
Quote:
Satan |
Actually, I don't think I can. The same variable is used on a query that doesn't involve usergroups (moderators), so I end up with a MySQL error. I can probably find some way around it, though.
|
Quote:
Isn't there a way that you can clear the alteration to $locationfieldselect after you display the description? Like "unset($locationfieldselect);" Then you could reset it before it goes on to the moderators query? Just theorising :p Satan |
That would make it not select the location field silly. :p
I did something similar, setting what was $locationfieldselect to a temp variable and then changing it back when it gets to the usergroup loop. I just need to download the .xml file, attach it, and report my code mod version for deletion. :D |
Quote:
Glad to see my confusion brought a query-free plugin out of this :p Satan |
Thanks for spotting that variable, Satan. I was looking for one before I did the code mod, but I was looking for it at the end of the fields.
|
Heh - You are going to hate me:p
Quote:
Satan |
Ah I've figured out why;)
For some reason the plugin I downloaded had: Code:
<plugins> Code:
<plugins> Satan |
It looks like the xml file has some issues. It cut the devkey down, and since the differences are at the end, one of the plugins overwrote the other one. That hurts.
Delete the single plugin it added and I'll fix it. |
Redownload it and the plugin file should work.
|
Quote:
Satan |
Did you see my post on vBulletin.com about this? I deleted it when I figured out it needed to be done in the code.
Anyways, thanks. Will be installing this on my site once I go live with 3.5.0. |
Quote:
|
I'm quite surprised that this isn't a default feature, even if usergroup descriptions generally aren't used..
Installed, thanks Matt. :) |
This doesn't work for Moderators that are assigned to a forum (using $moderatorbits).
Is there any way to get around that? :) |
Why is it not showing anything? I've followed your directions to the 'T'. And I have descriptions on them set.
Added the code and everything: <if condition="$user['description']"><br /><span class="smallfont">$user[description]</span></if> I even replaced it with "TEST" and that text shows up, but it's as if $user[description] is a NULL value. |
All times are GMT. The time now is 06:17 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|