vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=309645

Cel Display Usergroups on Member Profile or in Postbit
by cellarius
18 Mar 2014 13:55

4 Attachment(s)
What does it do?
This addon lets you display a list of all usergroups in a member profile side block and/or in postbit. Visibility of the information can be limited by usergroup, so you can show it only to your admins and moderators.

How does it work?
Without additional queries on postbit and just one small query on the member profile page, i.e. practically without overhead. The necessary information is being pulled from the cache wherever possible.

How to install?
- Upload the contents of the UPLOAD folder to your forum root.
- Install the addon xml file.
- Check the settings AdminCP->Settings->Options.

Something special?
- For the member profile, you can choose where in the sidebar the usergroups are to be displayed.
- The ouput is templated (postbit_cel_ugdisplay and memberinfo and memberinfo_block_cel_ugdisplay), so you can adapt it to your liking (within limits)
- Each usergroup is wrapped in <span>-Tags with a unique css-class, so you can style it using the additional.css (cel_ugdisplay_ug6, where the bold number is the usergroup id)

cellarius 18 Mar 2014 17:28

Fixed a minor bug and reuploaded package. Please redownload and reupload cel/ugdisplay/code.php, no need to reinstall the .xml-file.

Elixar 18 Mar 2014 17:38

I just updated the file, and I just got a DB error.

cellarius 18 Mar 2014 17:46

Quote:

Originally Posted by Elixar (Post 2488087)
I just updated the file, and I just got a DB error.

Please always post the full error text, and best do so inside code tags.

Elixar 18 Mar 2014 17:48

I just replaced it with the old file since at first I thought the whole board broke, it's just the profile. Let me see.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


cellarius 18 Mar 2014 18:06

Please redownload and upload the file once again.

Elixar 18 Mar 2014 18:11

Alright I did that, still giving me the error. Sorry about all this. :(

cellarius 18 Mar 2014 18:22

Exactly the same error?

Elixar 18 Mar 2014 18:23

Yes. :)

cellarius 18 Mar 2014 18:26

Maybe something went wrong with down/upload. Could you redo the procedure, and if the error persists, post it again? I'm really at a loss there - after all your user table needs to exist and your table prefix indeed is "forumsfo_vb1".

Elixar 18 Mar 2014 18:37


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


cellarius 18 Mar 2014 18:48

OK. I think I caught the nasty little bugger. Sorry for all the bother, but could you do the procedure one last time (hopefully)?

Elixar 18 Mar 2014 19:01

There we go, works. :)

cellarius 18 Mar 2014 19:07

Great!

Elixar 18 Mar 2014 19:14

I took the groups off the postbit, and now I'm getting white screens on the threads.


All times are GMT. The time now is 08:33.

Powered by vBulletin® Version 3.8.12
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.