vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - Vanguard Guild Roster Integration Hack (https://vborg.vbsupport.ru/showthread.php?t=142066)

Kavious 03-29-2007 12:58 PM

Yeah I can get it to it tried it a few times, and also tried reloading the entire product a couple of times to make sure it was not something I did.

Gandiel 03-29-2007 01:01 PM

Did you put in your guildID at the end of this line in vgroster_import.php?

$file ="http://vgplayers.station.sony.com/includes/guilds/guildsRosterCSV.vm?guildId=123456789";

Replacing 123456789 with your guild's ID?

Kavious 03-29-2007 01:06 PM

yes I did

Gandiel 03-29-2007 03:50 PM

Kavious,

Email me your $file ="http://vgplayers.station.sony.com/includes/guilds/guildsRosterCSV.vm?guildId=123456789"; line so I can test it, please.

Gandiel

Kavious 03-29-2007 05:08 PM

Sent it via PM since it wont give me your email.

TrIn@dOr 03-29-2007 05:45 PM

Quote:

Originally Posted by Gandiel (Post 1208893)
This might be more difficult than what you think. Each gaming site (Everquest, World of Warcraft, Vanguard, etc... ) has their own format to their CSV/XML files. This hack wouldn't be too terribly difficult to recode to use those others... just the hack itself can't be generic enough to allow any game's feed.

At least I don't think so......

This is the kind of roster that we use, http://aaotracker.com/clanprofile.php?clanid=1295

http://img113.imageshack.us/img113/7...ot00059pi8.jpg

What do u think?

Gandiel 03-29-2007 06:12 PM

I have no idea how somebody could interface to that. It looks like the game America's Army has it's own memberslist (like you show above).

I didn't see anywhere on their site the "raw" feed that you could use for your own purposes.

Gandiel 03-30-2007 12:50 PM

Kavious,

I've been doing some research on your problem...

What version of PHP do you have? Do you know if safe mode is on?

http://us.php.net/fopen -- This is the function that opens the VGPlayers CSV file.
Quote:

If PHP has decided that filename specifies a registered protocol, and that protocol is registered as a network URL, PHP will check to make sure that allow_url_fopen is enabled. If it is switched off, PHP will emit a warning and the fopen call will fail.

And here is the allow_url_fopen:
Quote:

allow_url_fopen boolean

This option enables the URL-aware fopen wrappers that enable accessing URL object like files. Default wrappers are provided for the access of remote files using the ftp or http protocol, some extensions like zlib may register additional wrappers.

Note: This setting can only be set in php.ini due to security reasons.

Note: This option was introduced immediately after the release of version 4.0.3. For versions up to and including 4.0.3 you can only disable this feature at compile time by using the configuration switch --disable-url-fopen-wrapper.

So it looks like you may be unable to run the scheduled task because safe mode for PHP is turned on.



Something you can try....
  1. Download the CSV from VGPlayers manually. From your guild's page on VGPlayers, right-click the CSV List link and choose Save-As. The file will be something like "guildsRosterCSV.vm"
  2. Rename that file to "guildsRosterCSV.csv" and upload it to your webserver.
  3. Change line #27 in "vgroster_import.php" to the location of where you uploaded the CSV file in Step 2. Don't use a URL... use something similar to this:
    Code:

    $file = "/forum_root/vgroster/guildsRosterCSV.csv";
  4. Try the Scheduled Task and see if it works locally rather than trying to grab the CSV from a URL.

TrIn@dOr 03-30-2007 01:01 PM

Quote:

Originally Posted by Gandiel (Post 1215479)
I have no idea how somebody could interface to that. It looks like the game America's Army has it's own memberslist (like you show above).

I didn't see anywhere on their site the "raw" feed that you could use for your own purposes.

But is imposible to parse that?

Gandiel 03-30-2007 01:21 PM

Trin,

Yes. You'd need a raw feed.

(unless someone else has any ideas...)

Maybe try posting in the "Modifications not Available" forum. https://vborg.vbsupport.ru/forumdisplay.php?f=112


Gandiel


All times are GMT. The time now is 01:03 AM.

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.01131 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete