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".


All times are GMT. The time now is 01:14 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
  • Page Generation 0.01084 seconds
  • Memory Usage 1,730KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete