Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Custom User Status by Usergroup [Final] Details »»
Custom User Status by Usergroup [Final]
Version: 1.00, by Jen Jen is offline
Developer Last Online: Jun 2018 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 07-15-2002 Last Update: Never Installs: 20
 
No support by the author.

I could not find a way to add an additional user status field based on usergroup other than setting a override, which got rid of the normal usertitle based on post count and I didn't want that. This is my solution.

This hack adds an additional field to the usergroup table and allows you to display that custom group status field in addition to the normal usertitle that is defined either custom for the user or normally by number of posts without overriding the usertitle variable.

The end result gives you something like this (depending on how you edit your postbit template) for the output:

Jen
Tyro Hacker
[Custom Group Status Here]
[Users Avatar]
[Users other details]

The custom group status is set within the cp from the user group modify function for each group you want to add this additional status field to.

Questions, Problems, etc.. ask here as I am unable to provide support via email. This hack has been tested on vB 2.2.6.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 09-04-2002, 04:26 PM
Elly Elly is offline
 
Join Date: Mar 2002
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Jen ^_^
Reply With Quote
  #23  
Old 09-14-2002, 08:25 AM
Allstar DC Allstar DC is offline
 
Join Date: Apr 2002
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any updates yet?
Reply With Quote
  #24  
Old 09-14-2002, 09:09 AM
Jen's Avatar
Jen Jen is offline
 
Join Date: Apr 2002
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My apologies, I've been very busy the past week or so and haven't had time to look into these two issues.

I will work on them over the weekend and have a fix on the image issue and verify if there are conflicts with the other hack.
Reply With Quote
  #25  
Old 09-15-2002, 04:33 AM
Jen's Avatar
Jen Jen is offline
 
Join Date: Apr 2002
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tested the hack for using an image as the group custom status and had no problems using the standard HTML IMG tag to reference the image to be used.
PHP Code:
<IMG SRC="http://www.yourhost.com/yourimage.gif"
The standard HTML tag did work without problem. If it is not working for you please post some more information on exactly what behavior you are getting as well as what code you are using to display your image etc.
Reply With Quote
  #26  
Old 09-15-2002, 04:38 AM
Allstar DC Allstar DC is offline
 
Join Date: Apr 2002
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i got the image working now, but for some reason i now get an error when tying to add or modify a usergroup.

i received the following error when trying to add a new usergroup"

Code:
mysql error: Column count doesn't match value count at row 1

mysql error number: 1136
Reply With Quote
  #27  
Old 09-15-2002, 04:44 AM
Jen's Avatar
Jen Jen is offline
 
Join Date: Apr 2002
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Found the conflict with the Stars hack.

The database changes for Stars in admin/usergroup.php also occur with this hack and it's likely something was left out or changed improperly which is causing the conflict. I'll post an update to the sql for users who have Stars shortly.
Reply With Quote
  #28  
Old 09-22-2002, 07:18 PM
Elly Elly is offline
 
Join Date: Mar 2002
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you very much Jen ^_^
Reply With Quote
  #29  
Old 09-27-2002, 06:37 AM
Allstar DC Allstar DC is offline
 
Join Date: Apr 2002
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry for not replying, but i was on a short vacation

my errors are fixed, it had nothing to do with this hack, my database just got screwed up a lil.

about the stars, i have them installed too, but don't have anyprobs with it
Reply With Quote
  #30  
Old 11-12-2002, 11:41 PM
JeffyJoe JeffyJoe is offline
 
Join Date: Oct 2002
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Jen
Found the conflict with the Stars hack.

The database changes for Stars in admin/usergroup.php also occur with this hack and it's likely something was left out or changed improperly which is causing the conflict. I'll post an update to the sql for users who have Stars shortly.
Jen, Have you updated the sql yet?
I had stars on mine and cannot get mine to work... I think the stars is the problem...
Reply With Quote
  #31  
Old 11-18-2002, 06:36 PM
JeffyJoe JeffyJoe is offline
 
Join Date: Oct 2002
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What does this mean?
Quote:
Database error in vBulletin 2.2.8:

Invalid SQL:
SELECT
post.*,usergroup.groupcustomstatus,post.username AS postusername,post.ipaddress AS ip,user.*,userfield.*,icon.title as icontitle,icon.iconpath,
attachment.attachmentid,attachment.filename,attach ment.visible AS attachmentvisible,attachment.counter
,avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar,customavatar.dateline AS avatardateline
FROM post
LEFT JOIN icon ON icon.iconid=post.iconid
LEFT JOIN user ON user.userid=post.userid
LEFT JOIN userfield ON userfield.userid=user.userid
LEFT JOIN avatar ON avatar.avatarid=user.avatarid
LEFT JOIN customavatar ON customavatar.userid=user.userid
LEFT JOIN usergroup ON usergroup.usergroupid=user.usergroupid
LEFT JOIN attachment ON attachment.attachmentid=post.attachmentid
WHERE post.postid IN (0,2163,2198,2199,2202,2205,2396)
ORDER BY dateline

mysql error: Unknown column 'usergroup.groupcustomstatus' in 'field list'

mysql error number: 1054

Date: Monday 18th of November 2002 03:32:34 PM
Script: http://www.mysite.com/chat/chat/show...=&threadid=392
Referer: http://www.mysite.com/chat/forumdisp...p?s=&forumid=5

Specifically what does "mysql error: Unknown column 'usergroup.groupcustomstatus' in 'field list' " mean

(I have been screwing with this for a few weeks now and can't figure it out... considering hiring someone to fix this
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:29 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05899 seconds
  • Memory Usage 2,310KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete