EVGA

How-to: Dynamic Sig using GPU Tracker V2, EOC stats, EOC Graph

Page: < 12345.. > >> Showing page 2 of 7
Author
unhappyelf
iCX Member
  • Total Posts : 321
  • Reward points : 0
  • Joined: 2008/09/24 19:55:01
  • Location: Houston, Tx
  • Status: offline
  • Ribbons : 1
Re:How-to: Live Folding Signature 2011/01/21 12:21:19 (permalink)
Timezones are a pain. Thanks for helping clifford_cooley.
 
Sleinous, I'm glad you got it working how you wanted you seem to be getting the hang of things in PHP. There are some really cool things you can do with it. The Signature looks great btw.
 
If anyone else want to do it don't be afraid to ask.


#31
clifford_cooley
iCX Member
  • Total Posts : 463
  • Reward points : 0
  • Joined: 2010/11/03 18:40:27
  • Location: Arkansas, USA
  • Status: offline
  • Ribbons : 0
Re:How-to: Live Folding Signature 2011/01/21 12:27:55 (permalink)
No problem unhappyelf, anytime :)
 
Looks good Sleinous
 
Is that all your clients?
post edited by clifford_cooley - 2011/01/21 12:29:40
#32
Sleinous
EVGA Forum Moderator
  • Total Posts : 7663
  • Reward points : 0
  • Joined: 2010/06/12 12:22:01
  • Location: France
  • Status: offline
  • Ribbons : 32
Re:How-to: Live Folding Signature 2011/01/21 14:17:00 (permalink)
Thanks again both of you :) Just a couple of queries. Atm it shows that the clients are running as that was the last status.xml sent before i exited and shutdown. Im guessing theres no way at all of telling it to switch to stopped if no new status.xml appears within next 3mins?

Also ive added a new status: "Running & Gaming" that is calculated based on TPF for each client. It has a threshold to compare it to. Problem is however that the regular "Running" still appears on top, as both 'if' statements are technically true. How do i combine the too as a if then else? So that only 1 or the other shows?

Thanks again :D I also have a query regarding your logbox but one thing at a time :p

Edit: Yup thats all of them. Im nearly at 250k points this month and then ive decided im going to help a newcomer by the name of tom_dwc reach 100k in 9 days.

I am also providing free hosting of your live stats if you so wish :)
post edited by Sleinous - 2011/01/21 14:23:24

My Affiliate Code: GL1IAAFWJF
#33
unhappyelf
iCX Member
  • Total Posts : 321
  • Reward points : 0
  • Joined: 2008/09/24 19:55:01
  • Location: Houston, Tx
  • Status: offline
  • Ribbons : 1
Re:How-to: Live Folding Signature 2011/01/21 14:25:48 (permalink)
Sleinous

Thanks again both of you :) Just a couple of queries. Atm it shows that the clients are running as that was the last status.xml sent before i exited and shutdown. Im guessing theres no way at all of telling it to switch to stopped if no new status.xml appears within next 3mins?

Also ive added a new status: "Running & Gaming" that is calculated based on TPF for each client. It has a threshold to compare it to. Problem is however that the regular "Running" still appears on top, as both 'if' statements are technically true. How do i combine the too as a if then else? So that only 1 or the other shows?

Thanks again :D I also have a query regarding your logbox but one thing at a time :p

Edit: Yup thats all of them. Im nearly at 250k points this month and then ive decided im going to help a newcomer by the name of tom_dwc reach 100k in 9 days.

 
I have thought about how to do the stop message. The best way I have found is to keep the tracker up for 3 min after you stop the clients. 
 
Can you post me up your code for the Running & gaming section?


#34
Sleinous
EVGA Forum Moderator
  • Total Posts : 7663
  • Reward points : 0
  • Joined: 2010/06/12 12:22:01
  • Location: France
  • Status: offline
  • Ribbons : 32
Re:How-to: Live Folding Signature 2011/01/21 14:34:13 (permalink)
On iPhone atm but I think this should work:

sleinous.dyndns.info/folding/foldingsig.zip

My Affiliate Code: GL1IAAFWJF
#35
unhappyelf
iCX Member
  • Total Posts : 321
  • Reward points : 0
  • Joined: 2008/09/24 19:55:01
  • Location: Houston, Tx
  • Status: offline
  • Ribbons : 1
Re:How-to: Live Folding Signature 2011/01/21 17:07:46 (permalink)
Try this
 
 if($results['clients']['client'][$k]['tpf'] >= "00:04:10"){ImageString($im, 35, 172, 21, "Running & Gaming", $red);} if($results['clients']['client'][$k]['status'] == "Running" && $results['clients']['client'][$k]['tpf'] < "00:04:10"){ImageString($im, 35, 209, 21, "Running", $green);} 
 
 
 
post edited by unhappyelf - 2011/01/21 17:42:13


#36
Bowenac
CLASSIFIED ULTRA Member
  • Total Posts : 5669
  • Reward points : 0
  • Joined: 2007/10/25 23:40:18
  • Location: Puget Sound WA State
  • Status: offline
  • Ribbons : 17
Re:How-to: Live Folding Signature 2011/01/21 19:02:30 (permalink)
Anyone know how to do this using IIS? I have tried using xampp apache, but every time I open my Folding.png file the actual "PHP" file it returns.
 
"The image "file:///C:xampp/htdocs/FoldingSig/Folding.png" cannot be displayed, because it contains errors."
#37
unhappyelf
iCX Member
  • Total Posts : 321
  • Reward points : 0
  • Joined: 2008/09/24 19:55:01
  • Location: Houston, Tx
  • Status: offline
  • Ribbons : 1
Re:How-to: Live Folding Signature 2011/01/21 19:12:13 (permalink)
Hey if you name is Folding.php does it work?


#38
Bowenac
CLASSIFIED ULTRA Member
  • Total Posts : 5669
  • Reward points : 0
  • Joined: 2007/10/25 23:40:18
  • Location: Puget Sound WA State
  • Status: offline
  • Ribbons : 17
Re:How-to: Live Folding Signature 2011/01/21 19:13:09 (permalink)
unhappyelf

Hey if you name is Folding.php does it work?

No I tried that to but when I open the file in firefox or IE it trys to save the file or open with IE or firefox, then asks the same thing.
#39
unhappyelf
iCX Member
  • Total Posts : 321
  • Reward points : 0
  • Joined: 2008/09/24 19:55:01
  • Location: Houston, Tx
  • Status: offline
  • Ribbons : 1
Re:How-to: Live Folding Signature 2011/01/21 19:16:20 (permalink)
Bowenac

unhappyelf

Hey if you name is Folding.php does it work?

No I tried that to but when I open the file in firefox or IE it trys to save the file or open with IE or firefox, then asks the same thing.

 
Thats defiantly a problem with the apache/php configuration on your server. Does it open other php files correctly?


#40
Bowenac
CLASSIFIED ULTRA Member
  • Total Posts : 5669
  • Reward points : 0
  • Joined: 2007/10/25 23:40:18
  • Location: Puget Sound WA State
  • Status: offline
  • Ribbons : 17
Re:How-to: Live Folding Signature 2011/01/21 19:39:52 (permalink)
unhappyelf

Bowenac

unhappyelf

Hey if you name is Folding.php does it work?

No I tried that to but when I open the file in firefox or IE it trys to save the file or open with IE or firefox, then asks the same thing.


Thats defiantly a problem with the apache/php configuration on your server. Does it open other php files correctly?

 
Ok I got it working on server with IIS, It was the path, it just needs this for the path...
 
 $results = simpleXMLToArray(simplexml_load_file("Status.xml"));
 
But this is using .php, now need to figure out how to parse php as png in IIS.
 
http://www.adamcbowen.com/Images/FoldingSig/Folding.php
 
 
#41
Bowenac
CLASSIFIED ULTRA Member
  • Total Posts : 5669
  • Reward points : 0
  • Joined: 2007/10/25 23:40:18
  • Location: Puget Sound WA State
  • Status: offline
  • Ribbons : 17
Re:How-to: Live Folding Signature 2011/01/21 21:43:19 (permalink)
Ok so I got this working using IIS, so if anyone uses IIS this is how you do it...
 
For the path you just have to point it to the actual file...
Example...
 $results = simpleXMLToArray(simplexml_load_file("Status.xml"));
 
Then you need to add a Handler Mapping as a module mapping. Like this.
 
In IIS in the Actions pane, click Add Module Mapping.... In the Add Module Mapping dialog box, specify the configuration settings as follows:
  • Request path: *.php
  • Module: FastCgiModule
  • Executable: "C:\[Path to your PHP installation]\php-cgi.exe"
  • Name: PNG as PHP
     
    And thats all thats needed for IIS.
     
    Note: you need to have php installed as well but when you enable IIS in Win7, Server 2003, 2008, ETC... you can then download the MS Web Platform Installer that has a auto installer for PHP and it will install it in IIS and configure it auto matically. You can get the Web Platform Installer Here
    http://www.microsoft.com/web/downloads/platform.aspx
     
    Hope this helps anyone using IIS. If you need help send me a PM. Or if you would like me to host one for you just send me a pm and I will give you my ftp site to upload your files.
  • #42
    clifford_cooley
    iCX Member
    • Total Posts : 463
    • Reward points : 0
    • Joined: 2010/11/03 18:40:27
    • Location: Arkansas, USA
    • Status: offline
    • Ribbons : 0
    Re:How-to: Live Folding Signature 2011/01/21 21:52:55 (permalink)
    Hi Bowenac
    Another nice live signature. :D
     
    I might attempt my own eventually.
    post edited by clifford_cooley - 2011/01/21 21:55:14
    #43
    unhappyelf
    iCX Member
    • Total Posts : 321
    • Reward points : 0
    • Joined: 2008/09/24 19:55:01
    • Location: Houston, Tx
    • Status: offline
    • Ribbons : 1
    Re:How-to: Live Folding Signature 2011/01/21 22:17:10 (permalink)
    Thanks Bowenac for posting those instructions. I will update the first post for everyone
     
    I would also be willing to host anyone's signature for them since it takes very little bandwidth.

    Edit: I will also be making more generic banners for people to use in the next couple days. I might even take some requests, but I'm not a expert at Gimp so don't expect to much.
    post edited by unhappyelf - 2011/01/21 22:28:58


    #44
    clifford_cooley
    iCX Member
    • Total Posts : 463
    • Reward points : 0
    • Joined: 2010/11/03 18:40:27
    • Location: Arkansas, USA
    • Status: offline
    • Ribbons : 0
    Re:How-to: Live Folding Signature 2011/01/22 00:43:35 (permalink)
    Are you guys hosting from your personal PC's?
     
    I'm trying to configure dyndns free for this live signature and maybe a few other idea. At the moment I am lost. I seem to be stuck with the "loopback connection error". I don't even know if I need special software to start a web server.
    #45
    Bowenac
    CLASSIFIED ULTRA Member
    • Total Posts : 5669
    • Reward points : 0
    • Joined: 2007/10/25 23:40:18
    • Location: Puget Sound WA State
    • Status: offline
    • Ribbons : 17
    Re:How-to: Live Folding Signature 2011/01/22 00:45:14 (permalink)
    clifford_cooley

    Are you guys hosting from your personal PC's?

    I'm trying to configure dyndns free for this live signature and maybe a few other idea. At the moment I am lost. I seem to be stuck with the "loopback connection error". I don't even know if I need special software to start a web server.

    I am using my actual server but you can host it on your personal PC as well. Using IIS, if you want some help with IIS, and dyn.dns then send me a pm and I can do a remote session with you real quick.
    #46
    Sleinous
    EVGA Forum Moderator
    • Total Posts : 7663
    • Reward points : 0
    • Joined: 2010/06/12 12:22:01
    • Location: France
    • Status: offline
    • Ribbons : 32
    Re:How-to: Live Folding Signature 2011/01/22 00:52:41 (permalink)
    Im hosting on my server. Ill pm u a set of login credentials and a link to upload the xml file to from jedi tracker.

    My Affiliate Code: GL1IAAFWJF
    #47
    clifford_cooley
    iCX Member
    • Total Posts : 463
    • Reward points : 0
    • Joined: 2010/11/03 18:40:27
    • Location: Arkansas, USA
    • Status: offline
    • Ribbons : 0
    Re:How-to: Live Folding Signature 2011/01/22 00:54:08 (permalink)
    PM sent. :)
    #48
    Sleinous
    EVGA Forum Moderator
    • Total Posts : 7663
    • Reward points : 0
    • Joined: 2010/06/12 12:22:01
    • Location: France
    • Status: offline
    • Ribbons : 32
    Re:How-to: Live Folding Signature 2011/01/22 00:55:41 (permalink)
    unhappyelf

    Try this

     if($results['clients']['client'][$k]['tpf'] >= "00:04:10"){ImageString($im, 35, 172, 21, "Running & Gaming", $red);} if($results['clients']['client'][$k]['status'] == "Running" && $results['clients']['client'][$k]['tpf'] < "00:04:10"){ImageString($im, 35, 209, 21, "Running", $green);} 
     






    Hey, thanks for this :D Also would it be possible to make an if statement for 2 seperate points, 921 and 481, coz tpf on 921 is higher so im getting running & gaming as well as runnin again lol

    My Affiliate Code: GL1IAAFWJF
    #49
    unhappyelf
    iCX Member
    • Total Posts : 321
    • Reward points : 0
    • Joined: 2008/09/24 19:55:01
    • Location: Houston, Tx
    • Status: offline
    • Ribbons : 1
    Re:How-to: Live Folding Signature 2011/01/22 00:56:48 (permalink)
    clifford_cooley

    Are you guys hosting from your personal PC's?

    I'm trying to configure dyndns free for this live signature and maybe a few other idea. At the moment I am lost. I seem to be stuck with the "loopback connection error". I don't even know if I need special software to start a web server.

     
    I'm hosting mine on my Ubuntu server with LAMP. So if you use IIS I'm sure Bowenac can help. If you use Apache then I can help.


    #50
    unhappyelf
    iCX Member
    • Total Posts : 321
    • Reward points : 0
    • Joined: 2008/09/24 19:55:01
    • Location: Houston, Tx
    • Status: offline
    • Ribbons : 1
    Re:How-to: Live Folding Signature 2011/01/22 00:58:15 (permalink)
    Sleinous
    Hey, thanks for this :D Also would it be possible to make an if statement for 2 seperate points, 921 and 481, coz tpf on 921 is higher so im getting running & gaming as well as runnin again lol
     
     
    Can you please explain this further?
     
    Edit: Sorry for the double post


    #51
    Sleinous
    EVGA Forum Moderator
    • Total Posts : 7663
    • Reward points : 0
    • Joined: 2010/06/12 12:22:01
    • Location: France
    • Status: offline
    • Ribbons : 32
    Re:How-to: Live Folding Signature 2011/01/22 01:25:51 (permalink)
    Also Bowenac, GIMP is used to open those images on page 1, forgot to say that in my reply to your pm :)
     
    Im setting up an EVGA folder for everyone's seperate folder.
     
    PM'd you Clifford. Also reason my server is .dyndns.info is because my ISP uses dynamic IPs so mye xternal IP constantly changes. My Synology DiskStation has a feature that sends out the new ip to dyndns automatically so this is the only way i can host :P Works a treat though! 
     
    post edited by Sleinous - 2011/01/22 02:00:41

    My Affiliate Code: GL1IAAFWJF
    #52
    Sleinous
    EVGA Forum Moderator
    • Total Posts : 7663
    • Reward points : 0
    • Joined: 2010/06/12 12:22:01
    • Location: France
    • Status: offline
    • Ribbons : 32
    Re:How-to: Live Folding Signature 2011/01/22 02:04:47 (permalink)
    unhappyelf

    Sleinous
    Hey, thanks for this :D Also would it be possible to make an if statement for 2 seperate points, 921 and 481, coz tpf on 921 is higher so im getting running & gaming as well as runnin again lol
     

    Can you please explain this further?

    Edit: Sorry for the double post

    yeah sorry, what I meant was, when my SMP finds a 921 pointer to do, TPF rises way above the 4minute threshold you see, so what happens is it starts to say im gaming and running but im not, its just that its not working on a 481 pointer which has a lower tpf. So im wondering if theres a way of telling it IF points = 921, TPF = 10min, ELSE points = 481, TPF = 4min or something?

    My Affiliate Code: GL1IAAFWJF
    #53
    unhappyelf
    iCX Member
    • Total Posts : 321
    • Reward points : 0
    • Joined: 2008/09/24 19:55:01
    • Location: Houston, Tx
    • Status: offline
    • Ribbons : 1
    Re:How-to: Live Folding Signature 2011/01/22 09:26:24 (permalink)
     if($results['clients']['client'][$k]['status'] == "Running"{ if($results['clients']['client'][$k]['tpf'] >= "00:04:10" && $results['clients']['client'][$k]['points'] == "481"){ ImageString($im, 35, 172, 21, "Running & Gaming", $red); } if($results['clients']['client'][$k]['tpf'] >= "00:10:00" && $results['clients']['client'][$k]['points'] == "921"){ ImageString($im, 35, 172, 21, "Running & Gaming", $red);} } else{ ImageString($im, 35, 209, 21, "Running", $green); } } 

     
    I don't know why its showing one line in the code because I have several lines. However, I think this will do what are asking.


    #54
    Sleinous
    EVGA Forum Moderator
    • Total Posts : 7663
    • Reward points : 0
    • Joined: 2010/06/12 12:22:01
    • Location: France
    • Status: offline
    • Ribbons : 32
    Re:How-to: Live Folding Signature 2011/01/22 09:55:22 (permalink)
    Thanks a load! :D Just adding this in now in teh place of what I added earlier :D
     
    EDIT: I split up teh lines into 2 lines, (I think it was just two to split up).
     
    Nothing is showing though :P Think I may have messed something up haha.
     
    Here is the layout:
     

     
    link: sleinous.dyndns.info/foldingtom/foldingsig.rar
    post edited by Sleinous - 2011/01/22 10:12:37

    My Affiliate Code: GL1IAAFWJF
    #55
    unhappyelf
    iCX Member
    • Total Posts : 321
    • Reward points : 0
    • Joined: 2008/09/24 19:55:01
    • Location: Houston, Tx
    • Status: offline
    • Ribbons : 1
    Re:How-to: Live Folding Signature 2011/01/22 15:10:20 (permalink)
    Got it working, I will pm you the link


    #56
    clifford_cooley
    iCX Member
    • Total Posts : 463
    • Reward points : 0
    • Joined: 2010/11/03 18:40:27
    • Location: Arkansas, USA
    • Status: offline
    • Ribbons : 0
    Re:How-to: Live Folding Signature 2011/01/22 17:03:48 (permalink)
    Guys I'm having trouble combining string values.

     $NameStatus= $Name + " " + $NameStatus; $NameStatus= $Name & " " & $NameStatus;

    Neither of these are working.
    I'm new to PHP, is there a command needed to combine strings?
    #57
    unhappyelf
    iCX Member
    • Total Posts : 321
    • Reward points : 0
    • Joined: 2008/09/24 19:55:01
    • Location: Houston, Tx
    • Status: offline
    • Ribbons : 1
    Re:How-to: Live Folding Signature 2011/01/22 17:18:59 (permalink)
    clifford_cooley

    Guys I'm having trouble combining string values.

     $NameStatus= $Name + " " + $NameStatus; $NameStatus= $Name & " " & $NameStatus; 

    Neither of these are working.
    I'm new to PHP, is there a command needed to combine strings?

     
    I think its
    $NameStatus= $Name." ".$NameStatus;

     


    #58
    unhappyelf
    iCX Member
    • Total Posts : 321
    • Reward points : 0
    • Joined: 2008/09/24 19:55:01
    • Location: Houston, Tx
    • Status: offline
    • Ribbons : 1
    Re:How-to: Live Folding Signature 2011/01/22 17:24:56 (permalink)
    Her are some more banners for all of you to use.
     

    http://kbates666.gotdns.com/banners/ModRigs.png
    Link to .xcf
    http://kbates666.gotdns.com/banners/ModRigs.xcf
     

    http://kbates666.gotdns.com/banners/gtx570.png
    Link to .xcf
    http://kbates666.gotdns.com/banners/gtx570.xcf
     

    http://kbates666.gotdns.com/banners/gtx580.png
    Link to .xcf
    http://kbates666.gotdns.com/banners/gtx580.xcf
     
    If you ask really nicely then I might make one for you to your specifications.
     


    #59
    clifford_cooley
    iCX Member
    • Total Posts : 463
    • Reward points : 0
    • Joined: 2010/11/03 18:40:27
    • Location: Arkansas, USA
    • Status: offline
    • Ribbons : 0
    Re:How-to: Live Folding Signature 2011/01/22 17:33:26 (permalink)
    unhappyelfI think its 
    $NameStatus= $Name." ".$NameStatus;


    Ahhh - Thanks :)
    That worked 

    #60
    Page: < 12345.. > >> Showing page 2 of 7
    Jump to:
  • Back to Mobile