2 spiceygas2 Oct 05, 2010 03:37

Great job :)
Finally got v2.0 running with support for b2evo 4.0.0 alpha. My computer died last week, which slowed down the development a little. Fortunately, no files were lost.
The first post is updated with links to both versions. I hope that [url=http://forums.b2evolution.net/viewtopic.php?t=21228&postdays=0&postorder=asc&&start=8]people who were suffering from it being broken in the new version[/url] get some value.
I've fixed up some issues and released new versions of the plugin. The fixes:
1. Previously, there were some problems identifying Opera and it's version.
2. Identify Camino browser.
3. Identify Windows 98.
The format of the data file hasn't changed, so you shouldn't lose any past data by upgrading (though, as always, you should backup your data when upgrading any software).
b2evo 3.x: [url=http://cookingwithdoyle.com/index.php/plugins/export-stats-v1-1]v1.1[/url]
b2evo 4.x: [url=http://cookingwithdoyle.com/index.php/plugins/export-stats-v2-1]v2.1[/url]
My 2 kopeks if you don't mind :)
This is a better way to get a filename.
//$fileName = getcwd() . $this->get_plugin_url() . $f;
$fileName = dirname(__FILE__).'/'.$f;
b2evo uses ezSQL class, you can find examples here
http://jvmultimedia.com/docs/ezsql/ez_sql_help.htm
sam2kb wrote:
My 2 kopeks if you don't mind :)
This is a better way to get a filename.
//$fileName = getcwd() . $this->get_plugin_url() . $f; $fileName = dirname(__FILE__).'/'.$f;
b2evo uses ezSQL class, you can find examples here
http://jvmultimedia.com/docs/ezsql/ez_sql_help.htm
Hmmm... Yeah, that'd be better. I'll probably wait until the next version to update it (unless someone reports it causing a functional problem).
unless someone reports it causing a functional problem
The plugin doesn't work on my windows server unless I change file path.
I'd guess it's a Windows issue, because I've tested on a couple Linux boxes and it works a-ok.
If your proposal also works on Linux boxes then it's an easy fix. I'll test it tomorrow.
I just fixed the line of code and updated the .zip files for both v1.1 and v2.1. If you reinstall then it should work.
Thanks for pointing out a mistake so promptly.
Oladio! Thanks for this wonderful job!
However, I'm running b2evo 4.0.3 and unable to install this plugin when I copy the stats_plugin folder into plugins -> when I press install new plugin at the plugin tab in global settings it doesn't show the plug in the list.
How can I make it work?
Thanks a lot
Rene82 wrote:
Oladio! Thanks for this wonderful job!
However, I'm running b2evo 4.0.3 and unable to install this plugin when I copy the stats_plugin folder into plugins -> when I press install new plugin at the plugin tab in global settings it doesn't show the plug in the list.How can I make it work?
Thanks a lot
I haven't tested it on v4.0.3 yet. I'm out of town right now, but when I get back home I'll upgrade my test server and figure out what's wrong. v4 of b2evo had a few technical changes, so it's probably something small that I've got to fix up.
Watch this thread and I'll answer in a couple days (unless someone else beats me to it :D).
it doesn't show the plug in the list.
This sounds like you extracted the archive into another folder. Make sure you have the following structure
[b2evolution root directory]/plugins/stats_plugin/[some files here]
So, with b2evo v4.0.3, the plugin can be installed, so your error is likely a problem with extracting the files to the correct place on the web server (As suggested by sam2kb).
However, it appears to not extract the data correctly. (The data makes it into the plugin's table but nothing gets extracted)
I'll have to take a look at what's going wrong and get it solved.
hmmmm.... great plugin... just I hava a problem:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 19922944 bytes) in /someplace/somefile/public_html/plugins/stats_plugin/geoiploc.php on line 843
any ideas what the bug is and how to fix it??
thnx (:
Achillis wrote:
hmmmm.... great plugin... just I hava a problem:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 19922944 bytes) in /someplace/somefile/public_html/plugins/stats_plugin/geoiploc.php on line 843
any ideas what the bug is and how to fix it??
thnx (:
Yep. You need more memory allocated to php. There's a command you put in your apache setup (or php.ini) to do that. I can't remember the command off the top of my hear, though.
For anyone interested, I'm almost done with porting the plugin to run in v4.0.0. I've got my code update to make a new DB table, log the hit correctly, and trim the new DB table appropriately.
The only piece left is to rewrite the code for extracting the data. I'm hoping to have time to finish within the next week.