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)

elricstorm 06-04-2007 01:40 AM

I was so brain satuated I forgot to include the table prefix for the modified sql statements. I'll fix that and look into the sorts.

elricstorm 06-04-2007 01:58 AM

Version 1.1.8 fixes the sql prefix and re-adds the sorting method for class type. Thanks for the early catch and thanks for the feedback folks.

So, now that we have the alternates system in, the next feature update is going to concentrate on class max limitations for events. So, I have not begun to design the feature and would like some feedback on this. If you had your chance to add 3 modifications to the calendar, what would those modifications be? List them in order from highest priority to lowest priority.

Feedback helps folks. :)

Some tweaks to the system that I plan to make:
  • Adding an alternate checkbox underneath the allow signups to allow for alternates on a per event basis. (I figure this will help for those guilds that dont' want to allow alternates on events)
  • An extra column noting whether or not the character is a main or an alternate.

Gooner 06-04-2007 05:09 AM

Thankyou, you are so fast :) i will report any bugs i find here,

elricstorm 06-04-2007 04:27 PM

So, my thinking is this:

I'm going to work on creating custom calendar fields that will be stored in the calendarcustomfield table. These will be something along the lines of:

Instance Name
Type of Event
Loot Rules
Maximum Participants
Druid Max
Hunter Max
Mage Max
etc.
  • When you create an event, the instance name would have a drop down that shows you all of the instances currently in Wow.
  • The type of event would state whether or not it's group or raid or other.
  • The loot rules would be a "fill in box" that you can put in what you want.
  • Maximum Participants would be a "fill in box" that you can put in ## number.
  • Druid Max, Hunter Max, etc. would be the class maximums that would be a fill in box that you could input ## number.

I have some of these fields already created on my calendar and I can actually add these fields to the addon and then program the code based on the inputs you use. It would be a bit more polished this way.

Any objections?

Gooner 06-04-2007 04:45 PM

sounds great, espcially the Instance name, That would be good.

elricstorm 06-05-2007 11:10 AM

I'm working on polishing up the URL parsing code so that if your browser timeouts when trying to connect to the armory, you don't overwrite your existing armorydata with empty data. This has been an uncommon occurrence but it has happened. While the issue is only temporary because as soon as you reconnect to the armory, the correct data is updated correctly, it's still an annoying thing to see happen. The data is stored in a vbulletin table but the replacement data being directed into that table is the problem. I will keep you posted.

elricstorm 06-05-2007 03:18 PM

Version 1.1.9 has been updated.

This version should fix the small issues present with timed out armory URL parsing and fix any empty data values from hitting the armorydata table which would overwrite existing "good" data.

As always, if you find any issues please report them to me asap.

Thanks,

Hyrel 06-05-2007 09:18 PM

I've installed and reinstalled everything several times now but when I create an event and check the sign up box I get a blank page. If I refresh the page I get a download for the calendar.php which contains this code:

Quote:

<br /><strong>Warning</strong>: file_get_contents() [<a href='function.file-get-contents'>function.file-get-contents</a>]: URL file-access is disabled in the server configuration in <strong>/calendar.php(1208) : eval()'d code</strong> on line <strong>194</strong><br /><br /><strong>Warning</strong>: file_get_contents(http://armory.worldofwarcraft.com/ch...&amp;n=Phetish) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: no suitable wrapper could be found in <strong>/calendar.php(1208) : eval()'d code</strong> on line <strong>194</strong><br /><br /><strong>Warning</strong>: file_get_contents() [<a href='function.file-get-contents'>function.file-get-contents</a>]: URL file-access is disabled in the server configuration in <strong>/calendar.php(1208) : eval()'d code</strong> on line <strong>194</strong><br /><br /><strong>Warning</strong>: file_get_contents(http://armory.worldofwarcraft.com/ch...ak&amp;n=Hyrel) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: no suitable wrapper could be found in <strong>/calendar.php(1208) : eval()'d code</strong> on line <strong>194</strong><br /><br /><strong>Warning</strong>: file_get_contents() [<a href='function.file-get-contents'>function.file-get-contents</a>]: URL file-access is disabled in the server configuration in <strong>/calendar.php(1208) : eval()'d code</strong> on line <strong>194</strong><br /><br /><strong>Warning</strong>: file_get_contents(http://armory.worldofwarcraft.com/ch...mp;n=Nymphidia) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: no suitable wrapper could be found in <strong>/calendar.php(1208) : eval()'d code</strong> on line <strong>194</strong><br />‹

Hyrel 06-05-2007 09:46 PM

ok this fixed the problem:

uninstall, open up the xml file, and edit it like so:
Find: $xml = file_get_contents($url);
replace with:
// $xml = file_get_contents($url);
// Nah, let's cURL it instead
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
$xml = curl_exec($ch);
curl_close($ch);
// cURL'd

elricstorm 06-05-2007 10:31 PM

The error you were having in your original thread is due to your hosting provider not having your php.ini settings set to allow_url_fopen.

You need to contact your hosting provider and have them set the allow_url_fopen option to on.

http://us.php.net/filesystem

I will not be changing this piece of code to support any curl functions. fopen is pretty straightforward and easy to code and not all hosts have curl installed in their libraries. Also, curl is more beneficial if you have to authenticate and we don't really need to authenticate to this data. But, in case others have an issue with being able to connect, your "workaround" is definitely a good note for others.

Thanks mate.


All times are GMT. The time now is 12:50 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.01311 seconds
  • Memory Usage 1,747KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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