View Single Post
  #3  
Old 11-29-2014, 04:10 AM
KGodel's Avatar
KGodel KGodel is offline
 
Join Date: May 2011
Location: Indiana
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So, our community is like an umbrella clans for divisions that operate in specific games. As such, it is important for us to maintain a roster. Divisions also have certain stages. So, the system works like this.

First, we have a system via the ACP where we can add games to the roster. The games possible are based off of a profile field we've added, so for instance:

field5 contains the list of all supported games. The possible games you can add to the roster grabs from this field to generate it's list.

You then add a short-code for the game (basically what will go after the url, so ?game=shortcode), the title of your in-game name field (Battle.net ID, Steam, Summoner Name, etc), you list what profile field contains that information, and a status for the game. Below is a screenshot.



The rest is hard coded. The main roster page is a page of all leadership roles. This would be a setting of "usergroup ids" to determine which groups are leaders, as well as what order they should be in, and the heading.

I believe the roster is accessible for all visitors, http://www.zealotgaming.com/forum/pages.php?pageid=15

There is also a sort-order of usergroups on how they display of individual games. For example, admins are community-wide leaders, so we list the leaders of the individual games first on those rosters. Again, this setting could be altered. There is also a list of usergroups who do NOT appear on the roster, such as an inactive usergroup or banned or whatever. Also an easy setting I think to add.

So what I think I basically need to save are the following settings:

Main Leadership Roster
-List of Leader Usergroups in order you want them to appear. (Heading will be the usergroup name)

Games List (Or whatever you want to call it)
-Profile field that contains the list of possible games/groups
-List of different "statuses" or categories for each group
-The sorting order of groups you want to use.
-List of usergroups you do not want shown on the roster.

A lot of these are lists, some of which could be checkboxes or simply have a sort ID number like they do in various other mods.

I hope I explained it well. Hopefully it makes sense based on the screenshot and the link.

NOTE: I do have the cron log in my code.

PHP Code:
            $log = array($newgroup'*'$newranktitle);
            
// the "1" indicates to use the second line of the phrase specified for this task
            
log_cron_action(serialize($log), $nextitem1); 
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01262 seconds
  • Memory Usage 1,778KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete