The Arcive of vBulletin Modifications Site. |
|
Show Usergroup Description on Show Groups Details »»
|
|||||||||||||||||||||||||
This plugin shows the description of the usergroup on showgroups.php.
Enjoy. ![]() Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
||||
|
||||
|
$locationfieldselect isn't an array. I didn't notice it, though. I guess I can make a plugin without a query.
![]() (Whoops...) |
|
#4
|
||||
|
||||
|
Quote:
![]() Satan |
|
#5
|
||||
|
||||
|
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.
|
|
#6
|
||||
|
||||
|
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 ![]() Satan |
|
#7
|
||||
|
||||
|
That would make it not select the location field silly.
![]() 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.
|
|
#8
|
||||
|
||||
|
Quote:
![]() Glad to see my confusion brought a query-free plugin out of this ![]() Satan |
|
#9
|
||||
|
||||
|
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.
|
|
#10
|
||||
|
||||
|
Heh - You are going to hate me
![]() Quote:
![]() Satan |
![]() |
|
|