Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-02-2006, 07:50 PM
TheHitman TheHitman is offline
 
Join Date: Sep 2003
Location: United States
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Clan Roster - Display only certain usergroups on a list of forum members

Essentially, I want to display all members of a clan on a page integrated with a vBulletin forum. It should list them based off either 1) their usergroups in the forums (admin, commander, and clan member, skipping anyone else in the DB), or 2) a custom profile field that flags them as a clan member.

I'm trying to do this integrated with vBaCMPS.

Can anyone here point me in the right direction, explain how to do it, etc? Any help would be most appreciated. (I've already searched these forums but either I've missed the hack or it doesn't exist.)
Reply With Quote
  #2  
Old 09-04-2006, 02:41 PM
TheHitman TheHitman is offline
 
Join Date: Sep 2003
Location: United States
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I hate to bump, but I'd really like to know how to do this... any help would be most appreciated.
Reply With Quote
  #3  
Old 09-04-2006, 02:46 PM
Oap JTRipper Oap JTRipper is offline
 
Join Date: Oct 2004
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

have a look at our site lemme know if this is any good

www.oapsquad.com/forums

roster
Reply With Quote
  #4  
Old 09-04-2006, 02:53 PM
TheHitman TheHitman is offline
 
Join Date: Sep 2003
Location: United States
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow... I think so, does it automatically pull the info from the user DB? I've got people that will need to update member lists and can't do PHP/HTML, so something where they select 'Clan member' as someone's usergroup and have them show up on the roster is the only real solution.
Reply With Quote
  #5  
Old 09-04-2006, 03:02 PM
Oap JTRipper Oap JTRipper is offline
 
Join Date: Oct 2004
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yep it pulls from the database, it also pulls custom fields from either profile or admin edited profile
Reply With Quote
  #6  
Old 09-04-2006, 03:08 PM
TheHitman TheHitman is offline
 
Join Date: Sep 2003
Location: United States
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Damn, that's slick, and exactly what I've been looking for. Would it be too much trouble to ask how you did it?
Reply With Quote
  #7  
Old 09-04-2006, 03:38 PM
Oap JTRipper Oap JTRipper is offline
 
Join Date: Oct 2004
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

its basically the showgroups.php renamed
then I created some usergroups BF2 Squad Leader,BF2 Team etc make sure they are set to display on showgroups (I also turned off all the admin & mod groups so they wouldnt show)
Then gave the users who are in the BF2 Team the new usergroup as an additional user group

Try it & see what you get
Reply With Quote
  #8  
Old 09-04-2006, 04:29 PM
TheHitman TheHitman is offline
 
Join Date: Sep 2003
Location: United States
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yup, that certainly got the desired effect! Thanks bud.

I'm still unable to get any extra info put in there, as I've tried $user[whatever] in place of the $user[onlinestatus] and that doesn't want to work.
Reply With Quote
  #9  
Old 09-04-2006, 08:33 PM
Oap JTRipper Oap JTRipper is offline
 
Join Date: Oct 2004
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

now it gets interesting

make a new profile field
take note of what field it is

in showgroups find
Code:
// Scans too many rows. Usergroup Rows * User Rows
$users = $db->query_read_slave("
	SELECT $locationfieldselect user.*, usergroup.usergroupid, usergroup.title, user.options
& after add
Code:
, userfield.fieldX
replacing X with the number of the field

in the showgroups_usergroup template
replace with this

Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
	<td class="tcat" colspan="4">$user[title]</td>
</tr>
<tr>
	<td class="thead">$vbphrase[user_name]</td><td class="thead">Whatever </td>
	
$usergroupbits
</table>
<br />
in the showgroups_usergroupbit template
replace with
Code:
<tr>
	
	<td class="$bgclass">
		<a href="member.php?$session[sessionurl]u=$user[userid]">$user[musername]</a>
		<if condition="$show['location']"><div class="smallfont" title="$vbphrase[location_perm]">$user[location]</div></if>
	</td>
	<if condition="$showforums">
		<td class="$bgclass"><div class="smallfont">$user[forumbits]</div></td>
	</if>
	<td class="$bgclass" nowrap="nowrap">
		
		$user[fieldX]</td>
	</td>
</tr>
replacing X with the number of the field
Reply With Quote
  #10  
Old 09-04-2006, 10:10 PM
TheHitman TheHitman is offline
 
Join Date: Sep 2003
Location: United States
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That did it, I got it all in there now. I really appreciate the assitance, man.
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 11: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.04177 seconds
  • Memory Usage 2,245KB
  • Queries Executed 11 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)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
  • (10)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