![]() | | ||||||||
| | #1 |
| Active Warrior Join Date: Jun 2009
Posts: 46
Thanks: 2
Thanked 2 Times in 2 Posts
|
I'm seeking a little bit of help with a Wordpress plugin called stat traq, and as with all Wordpress plugins, this is written in php. What I want to do is really quite simple - I just want to pull a bit of data from my web stats plugin, Stat Traq, and publish it on the home page of One Million Hit Wonder. The specific bit of data I want to publish on the home page is: Total number of unique visitors this week I'd also be keen to get somehow get a line graph happening, show the total number of unique visitors each month, commencing from the end of this week. Any assistance would be greatly appreciated. |
| | |
| | |
| | #2 |
| Active Warrior Join Date: Jun 2009
Posts: 46
Thanks: 2
Thanked 2 Times in 2 Posts
|
Is there anyone out there who would like to partake in this delightful PHP challenge? There could be a couple of bucks in it for you....
|
| | |
| | |
| | #3 |
| Active Warrior War Room Member Join Date: Dec 2008 Location: UK
Posts: 52
Thanks: 1
Thanked 9 Times in 6 Posts
|
I tried installing the stat traq plugin to see if I could work out how to do this for you. I found I had to edit the stattraq-install.php script for that to work. Then when I click on the link to install the tables I get a file not found error. |
| | |
| | |
| | #4 | |
| Active Warrior Join Date: Jun 2009
Posts: 46
Thanks: 2
Thanked 2 Times in 2 Posts
| Quote:
I had a friend working on this for me, but now that he's on holidays I'm a bit list. However, I've got a bit more info that I can share with you, if this helps... The code that is currently calling stats info on the homepage is: PHP Code: | |
| | ||
| | |
| | #5 |
| Web Developer, IT Support War Room Member Join Date: Dec 2008 Location: Birmingham, UK
Posts: 513
Thanks: 10
Thanked 77 Times in 65 Posts
|
Hi Jake, Per my email, this is certainly possible. I downloaded and took a look at the plugin; there are some functions for grabbing the stats for various weeks, months, years etc. Even if you need a slight modification to the script, it shouldn't take too much work. Thanks, Tim. |
| | |
| | |
| | #6 |
| Active Warrior War Room Member Join Date: Dec 2008 Location: UK
Posts: 52
Thanks: 1
Thanked 9 Times in 6 Posts
|
It seems like the getuVC is a function written by your friend, can you show me the code that he wrote for this function?
|
| | |
| | |
| | #7 | |
| Active Warrior Join Date: Jun 2009
Posts: 46
Thanks: 2
Thanked 2 Times in 2 Posts
| Quote:
Will the zip file help? | |
| | ||
| | |
| | #8 |
| HyperActive Warrior Join Date: Jan 2009
Posts: 196
Thanks: 7
Thanked 10 Times in 10 Posts
|
As far as graphs, google gives them out free. Developer's Guide - Google Chart API - Google Code What you may run into doing things that way is if the Google server is slow, your site may render slow because the browser is getting information from 2 different servers. The other way is to install the GD library on your server & develop the graphs from your server. That's all fine and dandy if you're on VPS or dedicated machine...not so much on a shared hosting setup... unless the server already has the GD library already installed for some reason. Anyway, If you don't get anywhere with the help that's already been offered, I've got time on Sunday. Just drop me a line & we'll work it out. |
|
“Never be afraid to try something new. Remember, amateurs built the ark. Professionals built the Titanic.” -Author Unknown Resident computer geek. If you need help, don't be afraid to PM here, or DM on Twitter. | |
| | |
| | #9 | |
| Active Warrior Join Date: Jun 2009
Posts: 46
Thanks: 2
Thanked 2 Times in 2 Posts
| Quote:
| |
| | ||
| | |
| | #10 |
| Active Warrior War Room Member Join Date: Dec 2008 Location: UK
Posts: 52
Thanks: 1
Thanked 9 Times in 6 Posts
|
I had a look at the plugin code and its not there. It would be useful to see the php code that you have on your home page.
|
| | |
| | |
| | #11 | |
| Active Warrior Join Date: Jun 2009
Posts: 46
Thanks: 2
Thanked 2 Times in 2 Posts
| Quote:
PHP Code: | |
| | ||
| | |
![]() |
|
| Tags |
| php, plugin, stat, traq, wordpress |
| Thread Tools | |
| |
![]() |