![]() |
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 |
All times are GMT. The time now is 04:07 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:
|