JayPee Posted March 16, 2012 Group: Members Topic Count: 47 Topics Per Day: 0.01 Content Count: 633 Reputation: 78 Joined: 11/14/11 Last Seen: September 20, 2017 Share Posted March 16, 2012 File Name: FluxCP Addson: Server Online Users Highest Peak File Submitter: JayPee File Submitted: 17 Mar 2012 File Category: Web Resources This allow you to view the Server Online Users Highest Peak in your Server. The addons uses a script which records and determines the Server Online Users Highest Peak. Note: If the FluxCP Installation doesnt kindly import the cp_highest_peak table in your database manually. The .sql file can be found at the schemas folder. Click here to download this file 1 Link to comment Share on other sites More sharing options...
sizenine Posted March 18, 2012 Group: Members Topic Count: 37 Topics Per Day: 0.01 Content Count: 149 Reputation: 13 Joined: 02/17/12 Last Seen: January 25, 2018 Share Posted March 18, 2012 First off, thank you for the patch JayPee! However, after applying the patch, my page keeps saying "No Server Highest Peak Found". I checked the sql db though and there is a value stored... it's just not showing on the php. Link to comment Share on other sites More sharing options...
Mystery Posted March 18, 2012 Group: Members Topic Count: 94 Topics Per Day: 0.02 Content Count: 2192 Reputation: 253 Joined: 11/11/11 Last Seen: June 24, 2020 Share Posted March 18, 2012 First off, thank you for the patch JayPee! However, after applying the patch, my page keeps saying "No Server Highest Peak Found". I checked the sql db though and there is a value stored... it's just not showing on the php. Okay, good, I thought it was just me ><! I had the same issue and the problem was on line 40 or so of the actual php script. 1 Link to comment Share on other sites More sharing options...
sizenine Posted March 18, 2012 Group: Members Topic Count: 37 Topics Per Day: 0.01 Content Count: 149 Reputation: 13 Joined: 02/17/12 Last Seen: January 25, 2018 Share Posted March 18, 2012 First off, thank you for the patch JayPee! However, after applying the patch, my page keeps saying "No Server Highest Peak Found". I checked the sql db though and there is a value stored... it's just not showing on the php. Okay, good, I thought it was just me ><! I had the same issue and the problem was on line 40 or so of the actual php script. line 40 of which script? i dont see a php file with up to 40 lines. Link to comment Share on other sites More sharing options...
Mystery Posted March 18, 2012 Group: Members Topic Count: 94 Topics Per Day: 0.02 Content Count: 2192 Reputation: 253 Joined: 11/11/11 Last Seen: June 24, 2020 Share Posted March 18, 2012 (edited) Whoops, I meant in the index.php where the actual script is in the module. Something with the error on @hp something. Should be like, the last third line. Edited March 18, 2012 by Mysterious Link to comment Share on other sites More sharing options...
JayPee Posted March 18, 2012 Group: Members Topic Count: 47 Topics Per Day: 0.01 Content Count: 633 Reputation: 78 Joined: 11/14/11 Last Seen: September 20, 2017 Author Share Posted March 18, 2012 what values stored in your cp_highest_peak? Edit: Here is my screensot Link to comment Share on other sites More sharing options...
sizenine Posted March 18, 2012 Group: Members Topic Count: 37 Topics Per Day: 0.01 Content Count: 149 Reputation: 13 Joined: 02/17/12 Last Seen: January 25, 2018 Share Posted March 18, 2012 1 18 2012-03-17 Whoops, I meant in the index.php where the actual script is in the module. Something with the error on @hp something. Should be like, the last third line. //Highest Peak Table $hp = Flux::config('FluxTables.HighestPeak'); $sql = "SELECT num_users,peak_date FROM {$server->loginDatabase}.$hp LIMIT 1"; $sth = $server->connection->getStatement($sql); $sth->execute(); $hp = $sth->fetchAll(); ? Link to comment Share on other sites More sharing options...
JayPee Posted March 18, 2012 Group: Members Topic Count: 47 Topics Per Day: 0.01 Content Count: 633 Reputation: 78 Joined: 11/14/11 Last Seen: September 20, 2017 Author Share Posted March 18, 2012 is your fluxcp online, i mean can be visited? Link to comment Share on other sites More sharing options...
Mystery Posted March 19, 2012 Group: Members Topic Count: 94 Topics Per Day: 0.02 Content Count: 2192 Reputation: 253 Joined: 11/11/11 Last Seen: June 24, 2020 Share Posted March 19, 2012 <h2>Server Highest Peak</h2> <?php if($hp): ?> <table class="horizontal-table" width="100%"> <?php foreach($hp as $peak): ?> <t <th style="width:30%;">Server Highest Peak:</th> <td><?php echo $peak->num_users; ?></td> </t <t <th style="width:30%;">Date:</th> <td><?php echo $peak->peak_date; ?></td> </t <?php endforeach;?> </table> <?php endif; ?> <?php if(!$hp): ?> <i>No Server Highest Peak Found</i> <?php endif; ?> <?php if(!$hp): ?> <--- Is the error o_O. Link to comment Share on other sites More sharing options...
sizenine Posted March 19, 2012 Group: Members Topic Count: 37 Topics Per Day: 0.01 Content Count: 149 Reputation: 13 Joined: 02/17/12 Last Seen: January 25, 2018 Share Posted March 19, 2012 (edited) <?php if(!$hp): ?> <--- Is the error o_O. How is that the error? Nothing is wrong with that. ____________ Anyway I found out what was wrong. The addon.php code is supposed to be added to application.php. Maybe you should name it as application.php instead of addon.php Edited March 19, 2012 by sizenine Link to comment Share on other sites More sharing options...
JayPee Posted March 19, 2012 Group: Members Topic Count: 47 Topics Per Day: 0.01 Content Count: 633 Reputation: 78 Joined: 11/14/11 Last Seen: September 20, 2017 Author Share Posted March 19, 2012 I really cannot reproduce the error. By the way what fluxcp are you using? Link to comment Share on other sites More sharing options...
Raiii Posted July 4, 2012 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 6 Reputation: 0 Joined: 04/05/12 Last Seen: October 10, 2024 Share Posted July 4, 2012 not working for me, Server Highest Peak No Server Highest Peak Found no value is stored on mysql,dunno why Link to comment Share on other sites More sharing options...
Ron Posted July 15, 2012 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 62 Reputation: 0 Joined: 07/13/12 Last Seen: August 26, 2013 Share Posted July 15, 2012 I trieed placing this on the left columns / right column and it kept showing "Highest Peak: " (With no number) and or No highest peak found, when I put in a variable. Link to comment Share on other sites More sharing options...
Ron Posted July 16, 2012 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 62 Reputation: 0 Joined: 07/13/12 Last Seen: August 26, 2013 Share Posted July 16, 2012 bump anyone? Link to comment Share on other sites More sharing options...
Elias Posted July 2, 2013 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 40 Reputation: 3 Joined: 10/24/12 Last Seen: January 29, 2014 Share Posted July 2, 2013 WebRep Calificación general Este sitio no tiene calificación (no hay votos suficientes) Anyone fixed this? http://cyclonero.com/?module=highest_peak Link to comment Share on other sites More sharing options...
BFPkiller Posted November 2, 2013 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 111 Reputation: 2 Joined: 05/09/13 Last Seen: May 12, 2021 Share Posted November 2, 2013 i got no server highest peak found to,, Link to comment Share on other sites More sharing options...
BFPkiller Posted November 10, 2013 Group: Members Topic Count: 19 Topics Per Day: 0.00 Content Count: 111 Reputation: 2 Joined: 05/09/13 Last Seen: May 12, 2021 Share Posted November 10, 2013 bump Link to comment Share on other sites More sharing options...
Kido Posted May 13, 2014 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Share Posted May 13, 2014 me too, same problem x_X Link to comment Share on other sites More sharing options...
Recommended Posts