Raised This Month: $ Target: $400
 0% 

[TF2] Item Logger (With Web Panel)


Post New Thread Reply   
 
Thread Tools Display Modes
rack_gothroach
Junior Member
Join Date: Oct 2010
Old 10-22-2010 , 09:04   Re: [TF2] Item Logger (With Web Panel)
Reply With Quote #51

Quote:
Originally Posted by FF|Skyrider View Post
Is there a difference between the day and year? They are both minus.
The '-1 day' means 'one day ago'. Setting it to '-1 year' returns all records from the past year.
rack_gothroach is offline
Skyrider
AMX Mod X Beta Tester
Join Date: May 2005
Location: Netherlands
Old 10-22-2010 , 11:51   Re: [TF2] Item Logger (With Web Panel)
Reply With Quote #52

Well, at least I was close regarding the changes .
__________________
Skyrider is offline
Send a message via AIM to Skyrider Send a message via MSN to Skyrider Send a message via Yahoo to Skyrider
ltgenkd
AlliedModders Donor
Join Date: Sep 2008
Old 10-22-2010 , 18:42   Re: [TF2] Item Logger (With Web Panel)
Reply With Quote #53

@ rack_gothroach,

I am only getting the time on items. No Date.

Link

Any ideas?

Last edited by ltgenkd; 05-30-2012 at 20:48. Reason: added new link
ltgenkd is offline
Aoxmodeus
Junior Member
Join Date: Apr 2010
Location: Irvine, CA
Old 10-22-2010 , 20:02   Re: [TF2] Item Logger (With Web Panel)
Reply With Quote #54

ltgenkd:

The date function in PHP has a ton of strings you can pass to it.

$CorrectedTime = date('g:i:s A \o\n l\, M d\, Y', $row['time']);

That is the date string I'm using for my site:

http://aoxbox.ciscofreak.com/drops/

And here is the site I looked at to learn about the date function!

http://php.net/manual/en/function.date.php

Have fun!!

-Aox
Aoxmodeus is offline
MjrNuT
SourceMod Donor
Join Date: Feb 2008
Location: Under the Beaming CA Sun
Old 10-23-2010 , 04:41   Re: [TF2] Item Logger (With Web Panel)
Reply With Quote #55

Quote:
Originally Posted by rack_gothroach View Post
Attached is a very slightly modified version of the web interface.




Changes:
  • avatars_cron.php should save avatars in the correct directory now.
  • avatars_cron.php won't delete the other PHP scripts now.
  • index.php can now handle multiple timeframes for data displayed.
  • index.php can now handle multiple time zones for data displayed.
  • Added time zone and duration configuration variables.
  • Removed user configurable variables from index.php, avatars_cron.php, and update.php. They now all read configuration from config.php.
As for Cron, here are a few examples:
Code:
//Every minute (not recommended with the default avatars_cron.php)
*/1 * * * * cd /var/domains/tf2items.0xf.org/ && php ./avatars_cron.php
 
//Every hour
* */1 * * * cd /var/domains/tf2items.0xf.org/ && php ./avatars_cron.php
 
//Every day
* * */1 * * cd /var/domains/tf2items.0xf.org/ && php ./avatars_cron.php
 
//Every 5 minutes
*/5 * * * * cd /var/domains/tf2items.0xf.org/ && php ./avatars_cron.php
These work on Debian, but your distro may have a slightly different syntax.
To edit your crontab, type `crontab -e`.


Enjoy! Please let me know if there are any problems.
Hello there.

I used your version.

The site is hosted remote from the gameservers. I've entered in my proper details to the database.cfg, created and entered the database info. to the config.php, and ran update.php w/o a problem.

I don't think its clear to me (after deleting update.php) what index.php now is reporting: Table nameofdatabase.log does not exist.

Pointers possible?

edit: helps to have same pw of the database in the respective files..... nvm
__________________
Flames and Ash Gaming
Addon: SM v1.4.0-dev MM 1.8.5-dev
Plugins: Advertisements, Webshortcuts, spray tracer, SBans, RTD, gScramble Balance, misc

Last edited by MjrNuT; 10-23-2010 at 04:56.
MjrNuT is offline
Skyrider
AMX Mod X Beta Tester
Join Date: May 2005
Location: Netherlands
Old 10-23-2010 , 20:48   Re: [TF2] Item Logger (With Web Panel)
Reply With Quote #56

Possible that the avatars can be grabbed from their profiles instead? having over 1500 images in my avatar folder is way too much.
__________________
Skyrider is offline
Send a message via AIM to Skyrider Send a message via MSN to Skyrider Send a message via Yahoo to Skyrider
rack_gothroach
Junior Member
Join Date: Oct 2010
Old 10-24-2010 , 00:39   Re: [TF2] Item Logger (With Web Panel)
Reply With Quote #57

Quote:
Originally Posted by FF|Skyrider View Post
Possible that the avatars can be grabbed from their profiles instead? having over 1500 images in my avatar folder is way too much.
Definitely possible. I'd wait for the author to update it though, as it requires several aspects of the code to be re-though out. Fortunately, it would no longer require the avatar cron job in that case also.
rack_gothroach is offline
bytethegroove
Member
Join Date: Feb 2009
Old 10-24-2010 , 20:01   Re: [TF2] Item Logger (With Web Panel)
Reply With Quote #58

I keep getting this warning everytime I run the cron...
anyone have any ideas

Code:
[24-Oct-2010 18:54:25] PHP Warning:  file_get_contents() [<a href='function.file-get-contents'>function.file-get-contents</a>]: Filename cannot be empty in /home/bytetheg/public_html/drops/update.php on line 28
thanks
byte
bytethegroove is offline
Skyrider
AMX Mod X Beta Tester
Join Date: May 2005
Location: Netherlands
Old 10-24-2010 , 21:56   Re: [TF2] Item Logger (With Web Panel)
Reply With Quote #59

1998 images in my avatar folder now XD.. It's increasing by the day.
__________________
Skyrider is offline
Send a message via AIM to Skyrider Send a message via MSN to Skyrider Send a message via Yahoo to Skyrider
Geit
Senior Member
Join Date: Oct 2009
Location: Home
Old 10-24-2010 , 21:57   Re: [TF2] Item Logger (With Web Panel)
Reply With Quote #60

Quote:
Originally Posted by FF|Skyrider View Post
1998 images in my avatar folder now XD.. It's increasing by the day.
Don't worry, I will fix it soon, just waiting on a reply on a PM.
Geit is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode