View Single Post
  #167  
Old 04-15-2009, 10:16 AM
tcahuzak tcahuzak is offline
 
Join Date: Aug 2006
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tested: vBulletin v3.8.2 + vBadvanced v3.1.0

Installing the product:
  • Download recruit.zip from the attachment provided below. Copy the contents of the upload folder to your forum root, taking care not to overwrite directories, but to copy files into them.
  • Import mmoRecruit.xml from the Product Manager Interface.
  • Open the Game Recruitment menu in your AdminCP, select your game, and submit the form.
  • Once the game is selected, choose the last option (Populate Initial Game Data) to create and populate the initial game database.
  • Set the usergroups allowed to view and update your Update vBA CMPS Module (you'll create this in a minute.)
Create the Display vBa CMPS Module:
  • Add a new module from your vBa CMPS menu, select PHP file as the module type.
  • Name your module (Recruitment, Recuitment Needs, etc.) This is the module title that your users will see, so be picky!
  • If you want to link your module name to another page (such as a recruitment post), input your hyperlink under Module Wrapper Template Options - Module Link.
  • Select init_recruit.php as the file to include.
  • Leave Initialize BB Code Parser, Initialize Forum Permissions, Initialize Moderator Cache, Initialize Ignored Users and Clean File Output to NO.
  • Choose Use Module Wrapper Template: Yes (this is important, you will break the page without it!)
  • Make sure all usergroups are selected and save the form.
  • Add your module to your destination vBa CMPS page.

You should now see the display box on your destination page, with each class set to the default value of 1. If you do not, go back and check the instructions to make sure you haven't missed any steps.

Create the Update vBa CMPS Module:
  • Add a new module from your vBa CMPS menu, select PHP file as the module type.
  • Name your module (Recruitment Update, Update Recruitment, etc.)
  • Select update_recruitment.php as the file to include.
  • Leave Initialize BB Code Parser, Initialize Forum Permissions, Initialize Moderator Cache, Initialize Ignored Users and Clean File Output to NO.
  • Choose Use Module Wrapper Template: Yes (this is important, you will break the page without it!)
  • Set Collapse by default to your preference.
  • Make sure you only select usergroups (Example: Guild Leader, Officers and Classleaders) who are allowed to see and update the module and save the form.
  • Add your module to your destination vBa CMPS page.

Add AJAX Support to the updater form (OPTIONAL):
  • Inside the header template (or headerinclude, depending on where your <head> </head> tags exist in your default style) put:
Code:
<script type="text/javascript" src="http://www.mydomain.com/forum/clientscript/mmoRecruit.js"></script>
The AJAX has been tested on Firefox and IE7, if the requestor code fails the form will just submit normally.

To Uninstall:
  • Remove both modules from the page they are displayed on inside vBa CMPS.
  • Delete all uploaded files. (To remove just the Game Recruitment link from your AdminCP, delete cpnav_recruit.xml from includes/xml.)
  • Run the following SQL query (may need to add a prefix to each table):
Code:
DROP TABLE recruitment;
DROP TABLE game_rec_settings;
Troubleshooting:

If the product import fails you can still do it by hand.
The templates are in forum_templates directory, the name of the file is the template name that needs to be used.

Creating the SQL Tables by hand.
Code:
CREATE TABLE game_rec_settings(
	game VARCHAR( 120 ) NOT NULL,
	enabled INT(2) NOT NULL,
	groups VARCHAR( 12 ) NOT NULL			
)ENGINE = MYISAM;
You may need to add the table prefix.
Code:
INSERT INTO game_rec_settings(game,enabled,groups)VALUES('','1','6,7,5');
Again you may need to include the table prefix

Changelog
  • Configuration of permissions "block" (admincp --> Game Recruitment --> Settings) has been removed! It's now controlled by vBadvanced "Module Permissions".
  • Death Knight class is fully implemented! When you "Populate Inital Game Data (Import Data)" the correct table will be created for the class: Death Knight.
  • Templates fixed for Death Knight.

Faq
  • Why did you removed the permissions "block" (admincp --> Game Recruitment --> Settings) to specify wich usergroups can view and update the recruitment feature?
  • Well I received lot of complains of the Guild Master, Officers and Class Leaders they can't see the update module (feature) on the mainpage.
    Sometimes it appear and sometimes its totally disappeared.
    I think it's an issue of incompatibility of vBulletin v3.8.2 + vBadvanced v3.1.0 (I installed at the moment of writing)
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01097 seconds
  • Memory Usage 1,792KB
  • 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
  • (4)bbcode_code
  • (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