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

Reply
 
Thread Tools
Vanguard Guild Roster Integration Hack Details »»
Vanguard Guild Roster Integration Hack
Version: 1.0.2, by Gandiel Gandiel is offline
Developer Last Online: Sep 2009 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.4 Rating:
Released: 03-13-2007 Last Update: 03-14-2007 Installs: 13
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

Vanguard - Saga of Heroes
Guild Roster Integration Hack


WHAT IS THIS?

This plugin integrates your guild's data obtained from vgplayers.station.sony.com with vBulletin

FEATURES:
  • Automatically updates your guild's data once per hour. No more manually downloading the XML or CSV files.
  • Allows you to specify the text for the headers of guild roster display
  • Allows you to turn off certain columns is you so desire
  • Ability to sort on most data... i.e. Name, Class, Level, Crafting Level, etc.

INSTALLATION:

Easy! Takes only a few minutes:
  1. Edit line 27 of vgroster_import.php to include your guild's ID on vgplayers.station.sony.com
  2. The line should look like this:
    Code:
    $file ="http://vgplayers.station.sony.com/includes/guilds/guildsRosterCSV.vm?guildId=123456789";
  3. Upload vgroster.php to the root of your forums. Upload vgroster_import.php to /includes/cron/
  4. Import the xml into products. (AdminCP -> Plugin System -> Manage Products -> Add/Import Product)
  5. Edit the options. (AdminCP -> vBulletin Options -> Vanguard Roster Settings)
    • Enter in the information specific to your guild... and the text you'd like displayed for the headers.
    • Also gives you the ability to turn off certain columns if you'd like.
  6. Run the Scheduled Task once to populate the database with your guilds information. The task will run once per hour afterwards.
    (AdminCP -> Scheduled Task Manager -> Vanguard Roster Update -> Run Now)
  7. View your roster at http://www.yourwebsite.org/yourforums/vgroster.php
You're done!



NOTE TO USER:
I am VERY new to vBulletin and .php coding. This is my first hack. I'll do my best to support it the best I can. I know if Sigil changes their format of the .csv file, we'll all need to do a little more work on it. Hope you enjoy this!

Please be gentle with your comments.

UPDATES:
Version 1.0.2: Initial Release (March 14, 2007)



MAKE SURE YOU CLICK INSTALL
You will get an email when a new version is released.



This hack is created for your use free of charge. No payment is requested. However, if you would like to donate money for the work I put in to this hack, a donation would show your appreciation.

Supporters / CoAuthors

Show Your Support

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

Comments
  #32  
Old 12-18-2007, 11:09 PM
Xaices's Avatar
Xaices Xaices is offline
 
Join Date: May 2006
Location: West Coast USA
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Gandiel,

Need some help please. I get this when I run a scheduled task.

Quote:
Database error in vBulletin 3.6.8:
Invalid SQL:
INSERT INTO vbvgroster_roster VALUES ('','','');
MySQL Error : Column count doesn't match value count at row 1
Error Number : 1136
Date : Tuesday, December 18th 2007 @ 07:55:53 PM
Script : http://www.blackwatchguild.com/forum...cron&cronid=19
Referrer : http://www.blackwatchguild.com/forums/admincp/index.php
IP Address :
Username :
Classname : vB_Database
Thanks for you help in this matter.
Reply With Quote
  #33  
Old 12-19-2007, 11:53 PM
Xaices's Avatar
Xaices Xaices is offline
 
Join Date: May 2006
Location: West Coast USA
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok Gandiel is no longer supporting this. Can any one assist?

Quote:
That error is due to a problem with the MySQL coding/syntax. The vbvgroster_roster has a total of 12 values in each row. That SQL query is only trying to write to 3 of them. Unless you define what specific columns you are filling in, you must have the exact number of columns that the table has in the VALUES portion of the query. This will need to be fixed in the script, and I would suggest contacting the developer of the script, or browsing support forums for the product.
I can't code so any assistance on this would be most appreciated.
Reply With Quote
  #34  
Old 12-20-2007, 11:52 AM
Gandiel Gandiel is offline
 
Join Date: Jan 2007
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Xaices and anyone else,

Seeing Xaices last post with that quote in it gave me some insight to the problem. I've provided a fix (for now) to the problem. You'll need to UNINSTALL the product first, then REINSTALL the new product-vgroster.xml file attached to this post and overwrite the vgroster_import.php in includes/cron/

The reason I say this is a temporary fix is because there's a problem with Vanguard's CSV output. They only want to display 11 headings:

Code:
name, id, prefixTitle,advtClass,advtLevel,craftingClass,craftingLevel,diplomacyClass,diplomacyLevel,dateJoined,guildRank
But in reality they're outputting 12 fields:

Code:
Xaices,81604385483,Founder,Dread Knight (20),50,Crafter (1050),1,Diplomat,4,,2007-12-10,Initiate
Notice the double commas between "4" and "2007-12-10"


If Vanguard ever fixes that, the cron job will break again.

I stopped supporting this months ago. I haven't even played Vanguard since April 2007. I just had some spare time this morning to take a deeper look into the problem.

GL to you all.


Gandiel
Reply With Quote
  #35  
Old 12-20-2007, 05:15 PM
Xaices's Avatar
Xaices Xaices is offline
 
Join Date: May 2006
Location: West Coast USA
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you Gandiel!
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 07:20 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.04107 seconds
  • Memory Usage 2,257KB
  • Queries Executed 20 (?)
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
  • (3)bbcode_code
  • (3)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
  • (2)pagenav_pagelink
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)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