Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Show Usergroup Description on Show Groups Details »»
Show Usergroup Description on Show Groups
Version: 2, by Link14716 Link14716 is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Version: 3.5.0 Beta 4 Rating:
Released: 07-14-2005 Last Update: 07-14-2005 Installs: 11
Uses Plugins Template Edits
 
No support by the author.

This plugin shows the description of the usergroup on showgroups.php.

Enjoy.

Show Your Support

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

Comments
  #2  
Old 07-15-2005, 01:56 AM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
$locationfieldselect array_merge($locationfieldselect, array(' usergroup.description,')); 
Not entirely sure but wouldn't this work?

Satan
Reply With Quote
  #3  
Old 07-15-2005, 02:58 AM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

$locationfieldselect isn't an array. I didn't notice it, though. I guess I can make a plugin without a query.

(Whoops...)
Reply With Quote
  #4  
Old 07-15-2005, 02:59 AM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Link14716
$locationfieldselect isn't an array. I didn't notice it, though. I guess I can make a plugin without a query.

(Whoops...)
Yeh I know it's not an array, but I was just being lazy and quoting something to give you the general idea

Satan
Reply With Quote
  #5  
Old 07-15-2005, 03:02 AM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 07-15-2005, 03:06 AM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Link14716
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.
Hrm yes I see that :ermm:

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
Reply With Quote
  #7  
Old 07-15-2005, 03:08 AM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 07-15-2005, 03:10 AM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Link14716
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.
Well I was just theorising

Glad to see my confusion brought a query-free plugin out of this

Satan
Reply With Quote
  #9  
Old 07-15-2005, 03:14 AM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 07-15-2005, 03:17 AM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Heh - You are going to hate me

Quote:
Database error in vBulletin 3.5.0 Beta 4:

Invalid SQL:

SELECT userfield.field2, usergroup.description, user.*,moderator.*
FROM moderator AS moderator
INNER JOIN user AS user USING(userid)
INNER JOIN userfield AS userfield USING(userid)
#ORDER BY user.username;

MySQL Error : Unknown table 'usergroup' in field list
Error Number : 1109
Date : Thursday, July 14th 2005 @ 11:17:06 PM
Script : http://forums.hellsatan.co.uk/showgroups.php
Referrer : http://forums.hellsatan.co.uk/index.php?
IP Address :
Username : hellsatan
Classname : vb_database


Satan
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 02:06 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.05886 seconds
  • Memory Usage 2,299KB
  • Queries Executed 23 (?)
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_php
  • (4)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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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