itemstats v1.0 Yet another mouse-over mod, and more...
#17 Guest_bukk_*
Posted 24 August 2005 - 05:57 AM
Hilmar
#18
Posted 24 August 2005 - 10:09 AM
Version 1.1
- Added support for cURL
- Moved all configuration options into one file (itemstats/config.php).
- Fixed item HTML for some recipes.
- Item cache database table is now created by the code if it doesn't exist.
No change made to the EQdkp or phpBB installation instructions, so if you have 1.0 installed, you don't need to redo all that stuff. But since I moved all the config stuff to one file now, you'll have to redo some of the configuration thing. I also added a new style in the css file (itemcreatelink). If you made alot of changes to your css file, you might want to just copy/paste this new 3 line change into your css. Aside from that, just copy the new files over the old ones.
To Telamon and Zodiac, try this version. I'm hoping the cURL change will fix your problems.
#20 Guest_Takkero_*
Posted 24 August 2005 - 12:14 PM
i do ALL the thing write in Docs:
now i got this on homepage:
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of xml_set_object(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in c:\easyphp1-7\www\itemstats\includes\xmlhelper.php on line 33
if i put mouse on items all works but when i enter the link i got this:
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of xml_set_object(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in c:\easyphp1-7\www\itemstats\includes\xmlhelper.php on line 33
Fatal error: Call to undefined function: curl_init() in c:\easyphp1-7\www\itemstats\includes\urlreader.php on line 10
any ideas to solve?
#21
Posted 24 August 2005 - 12:59 PM
Takkero, on Aug 24 2005, 04:14 PM, said:
i do ALL the thing write in Docs:
now i got this on homepage:
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of xml_set_object(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in c:\easyphp1-7\www\itemstats\includes\xmlhelper.php on line 33
if i put mouse on items all works but when i enter the link i got this:
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of xml_set_object(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in c:\easyphp1-7\www\itemstats\includes\xmlhelper.php on line 33
Fatal error: Call to undefined function: curl_init() in c:\easyphp1-7\www\itemstats\includes\urlreader.php on line 10
any ideas to solve?
Two different problems there. One that I wasn't aware would happen, and another is just a dumb mistake on my part. I just put up v1.11. Try that one to see if it solves your problem.
Version 1.11
- Fixed a small error with the cURL code.
- Removed the reference in the xml_set_object call
#22 Guest_Zodiac_*
Posted 24 August 2005 - 01:53 PM
EDIT: well it didn't work - but that is because cURL isn't installed on my webhost and apperantly they are running PHP in Safe Mode maybe that is why the file-access commands doesn't work either :/
But really thx for your effort! I will change webhost just to use your script...
#23
Posted 24 August 2005 - 02:17 PM
Zodiac, on Aug 24 2005, 05:53 PM, said:
In the latest version, the code looks to see if cURL is available first. If that doesn't work, it tries to see if it can be be done with just fopen. If both of those are disabled, it just dies and spits out a message. I imagine you got this message?
I would definatly add any other methods of reading URL data to the code. I'm just limited by what I know right now. Those are the only two ways I've been able to find so far. If anyone knows an alternative, I would be interested.
But yea, if you really want to get it working and have access to change your host properties, then that sounds like an easy solution.
#24 Guest_Takkero_*
Posted 24 August 2005 - 02:34 PM
#25 Guest_Takkero_*
Posted 24 August 2005 - 03:45 PM
i make a Zip with inside ALL file MODIFIED FOR EQDKP!
u only need to configure:
/config.php
/itemstats/config.php
to connect eqdkp end itemstats to your SQL database..
i remember to create the table in your SQL... .for this read:
/itemstats/docs/config.txt
------------------------------------------------------
P.S. THIS MOD WORKS ON ME!
i please same the problem:
1) no info on mouseover till some1 click on item..
2) sometimes got more than 30 sec to find item and go timeout
------------------------------------------------------
DOWNLOAD IT AND UNZIP ALL THE CONTENT IN YOUR EQDKP ROOT DIRECTORY
ENJOY!
#26
Posted 24 August 2005 - 03:56 PM
Takkero, on Aug 24 2005, 07:45 PM, said:
Fatal error: Maximum execution time of 30 seconds exceeded in c:\easyphp1-7\www\itemstats\includes\urlreader.php on line 22
Fatal error: Maximum execution time of 30 seconds exceeded in c:\easyphp1-7\www\itemstats\itemstats.php on line 26
This error will happen if the request for the data from Allakhazam takes more than 30 seconds. You can increase the 30 second timeout inside the file 'urlreader.php'. The line looks like this.
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
Make the 30 higher if you want. If you put 0, it will wait forever.
#27 Guest_Takkero_*
Posted 24 August 2005 - 05:13 PM
in local..ALL OK...
online i got this when i click on a item link:
cURL isn't installed and 'allow_url_fopen' isn't set.
ok... what can i do now?
can i istall cURL online?
if No... how to set 'allow_url_fopen' ??
plssss helpp meee
#28
Posted 24 August 2005 - 05:51 PM
Takkero, on Aug 24 2005, 09:13 PM, said:
Those are both server configuration things. You can enable allow_url_fopen in the php.ini. I don't know the details. You probably need to contact your host provider.
#29 Guest_Takkero_*
Posted 25 August 2005 - 02:06 AM
#30 Guest_befuse_*
Posted 25 August 2005 - 04:54 AM
the package works well, the only problem i have is, that not all of us have the english wow version.
is there an easy way to modify the search to use the item-id instead of the name of the item?
if i look at my logs i can find e.g. item id 16713 for the shadowcraft-belt, so allakhazam can also find it when i use following url: http://wow.allakhaza...tml?witem=16713
if i open allakhazam.php there will be searched for the name of the items, so would it be easy to rewrite to use the item-id?
thx in adv.
befuse


Sign In
Register
Help

Back to top
MultiQuote
