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)
-   -   Add-On Releases - World of Warcraft Event Calendar (https://vborg.vbsupport.ru/showthread.php?t=145287)

Hyrel 06-07-2007 03:30 AM

My theory is that the armory is timing out. I'm going to continue to mess with that and see what happens. In the meantime here's the screenshots.

Hyrel 06-07-2007 03:31 AM

yep same thing as Shane

Masked Crusader 06-07-2007 04:16 AM

Yup your screens are the same as mine.

elricstorm 06-07-2007 10:34 AM

Use version 1.2.0 from the previous_versions zip I included. cURL returns an empty array. I confirmed that with some extensive testing. I see nothing wrong with the cURL code but the armory does not like it. Version 1.2.0 does work but there aren't any time out features included with it. However it includes the empty data checking feature. So, if the armory is slow, the event checking will be slow too but I'll find a way around it.

The reason why all of your class/level/race information is coming up blank is because the cURL returns:

Array() in version 1.2.1

In 1.2.0 it returns

Array
(
data..
data..
data..
)

I've included a zip for testing which shows the difference between the normal file_get_contents and also CURL. If you access these directly on your site you will see what I'm talking about.

elricstorm 06-07-2007 11:14 AM

Good news!

This works 100%.

PHP Code:

    function parse_wowarmory($url
    { 
        
ini_set('user_agent''Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)'); 
    
$ch curl_init();
    
$timeout 30;
        
$xml file_get_contents($url);
    
curl_setopt($chCURLOPT_URL$xml); 
    
curl_setopt ($chCURLOPT_RETURNTRANSFER1);
    
curl_setopt ($chCURLOPT_CONNECTTIMEOUT$timeout);
        require_once(
DIR '/includes/class_xml.php'); 
        
$xmlobj = new vB_XML_Parser($xml); 
        return 
$xmlobj->parse(); 
    
curl_exec($ch);
    
curl_close($ch);
    } 

I'm doing some tests and will report back in a bit.

Masked Crusader 06-07-2007 02:56 PM

Elricstorm,

I appreciate you staying on top of this bud. I thought I was going to be waiting a month for a response :). I am used to it with other mod designers around here.

Anyways, I am looking forward to a new release.

Gooner 06-07-2007 03:59 PM

Quote:

Originally Posted by shanejeffery86 (Post 1263313)
Elricstorm,

I appreciate you staying on top of this bud. I thought I was going to be waiting a month for a response :). I am used to it with other mod designers around here.

Anyways, I am looking forward to a new release.

Elric is Win.

(A New Idea)

I just thought of an idea when i find out sometimes my events page wont load because of armory being down, What if every character gets checked and stored into the database, So then the calander only needs to access the armory once for the first update, And manual updates of character info can be made through the guild members pressing an update button, I think this will solve the problem of not being able to pull then information from the armory when the wow site is down.

Click event -> Check Armory -> pull info from armory into DB or file.

then maybe after that it could go...

Click event -> check armory -> no reply from armory so check DB or file.

or in another instance..

Click event -> check armory ->Different data found to that in DB -> overwrite old data with new data found, If armory dont load then load last best data from DB.
Something like that??

Masked Crusader 06-07-2007 04:18 PM

Quote:

Originally Posted by Gooner (Post 1263347)
Elric is Win.

(A New Idea)

I just thought of an idea when i find out sometimes my events page wont load because of armory being down, What if every character gets checked and stored into the database, So then the calander only needs to access the armory once for the first update, And manual updates of character info can be made through the guild members pressing an update button, I think this will solve the problem of not being able to pull then information from the armory when the wow site is down.

Click event -> Check Armory -> pull info from armory into DB or file.

then maybe after that it could go...

Click event -> check armory -> no reply from armory so check DB or file.

or in another instance..

Click event -> check armory ->Different data found to that in DB -> overwrite old data with new data found, If armory dont load then load last best data from DB.
Something like that??

FANTASTIC IDEA! I am going to elaborate on it though.

Put an update button right next to the character name field on the right hand side in the User CP ---> Edit Profile.

That should be easy enough imo.

Maybe I am wrong though :)

elricstorm 06-07-2007 05:43 PM

thanks to Blacksnake I may have a better piece of code for the new version to be released tonight. We'll see how this new bit of code works first. I'll have it updated this evening.

Gooner 06-07-2007 06:00 PM

sweet, this maybe the virsion i update to, ill be updating every other virsion, because your so fast, otherwise ill be updating every day :P


All times are GMT. The time now is 03:26 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.01710 seconds
  • Memory Usage 1,751KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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