vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Profile Enhancements - Cel Display Usergroups on Member Profile or in Postbit (https://vborg.vbsupport.ru/showthread.php?t=309645)

cellarius 03-17-2014 11:00 PM

Cel Display Usergroups on Member Profile or in Postbit
 
1 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 03-18-2014 05:28 PM

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

Elixar 03-18-2014 05:38 PM

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

cellarius 03-18-2014 05:46 PM

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 03-18-2014 05:48 PM

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.

Code:

Database error in vBulletin 4.2.2:

Invalid SQL:
SELECT membergroupids FROM user;

MySQL Error  : Table 'forumsfo_vb1.user' doesn't exist
Error Number  : 1146
Request Date  : Tuesday, March 18th 2014 @ 06:49:07 PM
Error Date    : Tuesday, March 18th 2014 @ 06:49:07 PM
Script        : http://*/member.php?1-Elixir
Referrer      : http://*/forum.php
IP Address    : 96.225.133.161
Username      : Elixir
Classname    : vB_Database
MySQL Version : 5.5.36-cll


cellarius 03-18-2014 06:06 PM

Please redownload and upload the file once again.

Elixar 03-18-2014 06:11 PM

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

cellarius 03-18-2014 06:22 PM

Exactly the same error?

Elixar 03-18-2014 06:23 PM

Yes. :)

cellarius 03-18-2014 06:26 PM

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 03-18-2014 06:37 PM

Code:

Database error in vBulletin 4.2.2:

Invalid SQL:
SELECT membergroupids FROM user;

MySQL Error  : Table 'forumsfo_vb1.user' doesn't exist
Error Number  : 1146
Request Date  : Tuesday, March 18th 2014 @ 07:37:21 PM
Error Date    : Tuesday, March 18th 2014 @ 07:37:21 PM
Script        : http://`/member.php?1-Elixir
Referrer      : http://`/forum.php
IP Address    : 96.225.133.161
Username      : Elixir
Classname    : vB_Database
MySQL Version : 5.5.36-cll


cellarius 03-18-2014 06:48 PM

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 03-18-2014 07:01 PM

There we go, works. :)

cellarius 03-18-2014 07:07 PM

Great!

Elixar 03-18-2014 07:14 PM

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

cellarius 03-18-2014 07:30 PM

And another try ;)

Elixar 03-18-2014 08:27 PM

I am no longer getting the white screen, but it won't disappear from the post bit.

cellarius 03-18-2014 08:40 PM

Hm, I really think I need to get some sleep...

Wanne give it a last try for today?

Elixar 03-18-2014 08:43 PM

It just transported me to Greece. :D

Haha in all seriousness, everything works. :)

cellarius 03-18-2014 08:46 PM

Quote:

Originally Posted by Elixar (Post 2488155)
It just transported me to Greece. :D

Haha in all seriousness, everything works. :)

I'd like Greece, though :D

ozzy47 03-18-2014 08:46 PM

Quote:

Originally Posted by Elixar (Post 2488155)
It just transported me to Greece. :D

Haha in all seriousness, everything works. :)

Now that wade me laugh. :)

Elixar 08-28-2014 10:04 PM

Is it possible to limit who can view the usergroup list on profiles and such? I'm mainly looking to only allow Staff access to view them.

Elixar 09-30-2014 02:49 AM

Bump. :)

ozzy47 01-01-2015 03:21 PM

Ummm, is that not what the setting, Enter a comma seperated list of userids. Default: Administrators (6), Supermoderators (5), Moderators (7) is for?

Elixar 01-01-2015 03:26 PM

What I mean is I don't want all usergroups to see which usergroups a member is in. Only certain Staff usergroups.

ozzy47 01-01-2015 03:29 PM

Right, so if you enter 5,6,7 in that setting, only Administrators, Supermoderators and Moderators should be able to see the display of usergroups a member is in.

Elixar 01-01-2015 03:33 PM

Um....I'm dumb .

I read that wrong the whole time. So sorry to ozzy and cellarius. :(

I thought that meant for them to be displayed on the profile.

ozzy47 01-01-2015 03:35 PM

LOL, it's cool. Yeah that setting is for allowing of groups viewing of the info, not which groups it shows up on. :)

Elixar 01-01-2015 03:38 PM

Ooooo okay, I promise I didn't drink last night. :D

Okay only a little shot glass. :D

ozzy47 01-01-2015 03:46 PM

Well to be fair, the setting is not very descriptive, it don't even have a title, or tell you what setting numbers in there does. Only way I knew was to look at the code and see what the setting actually did. :)

It happens to all coders at some point, when you push out a mod quickly, the phrase may have been created, but cel forgot to tag it for his mod, and it is actually tagged for vBulletin.

Elixar 04-07-2015 09:35 PM

Okay I just noticed this. In order for certain user groups to display on the profile, you have to give them the ability to see groups on profiles too for some reason.

Elixar 01-08-2016 09:21 PM

Any way to fix this?

Elixar 01-31-2016 05:08 PM

Any idea?


All times are GMT. The time now is 08:06 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01296 seconds
  • Memory Usage 1,774KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (33)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete