JayPee Posted March 16, 2012 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
sizenine Posted March 18, 2012 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.
Mystery Posted March 18, 2012 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
sizenine Posted March 18, 2012 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.
Mystery Posted March 18, 2012 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
JayPee Posted March 18, 2012 Author Posted March 18, 2012 what values stored in your cp_highest_peak? Edit: Here is my screensot
sizenine Posted March 18, 2012 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(); ?
JayPee Posted March 18, 2012 Author Posted March 18, 2012 is your fluxcp online, i mean can be visited?
Mystery Posted March 19, 2012 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.
sizenine Posted March 19, 2012 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
JayPee Posted March 19, 2012 Author Posted March 19, 2012 I really cannot reproduce the error. By the way what fluxcp are you using?
Raiii Posted July 4, 2012 Posted July 4, 2012 not working for me, Server Highest Peak No Server Highest Peak Found no value is stored on mysql,dunno why
Ron Posted July 15, 2012 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.
Elias Posted July 2, 2013 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
Recommended Posts