Jump to content

FluxCP Addson: Server Online Users Highest Peak


JayPee

Recommended Posts


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  633
  • Reputation:   78
  • Joined:  11/14/11
  • Last Seen:  

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

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  149
  • Reputation:   12
  • Joined:  02/17/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

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.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  149
  • Reputation:   12
  • Joined:  02/17/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

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 by Mysterious
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  633
  • Reputation:   78
  • Joined:  11/14/11
  • Last Seen:  

what values stored in your cp_highest_peak?

Edit:

Here is my screensot

post-322-0-01536500-1332065154_thumb.png

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  149
  • Reputation:   12
  • Joined:  02/17/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  633
  • Reputation:   78
  • Joined:  11/14/11
  • Last Seen:  

is your fluxcp online, i mean can be visited?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

<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


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  149
  • Reputation:   12
  • Joined:  02/17/12
  • Last Seen:  

<?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 by sizenine
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  633
  • Reputation:   78
  • Joined:  11/14/11
  • Last Seen:  

I really cannot reproduce the error. By the way what fluxcp are you using?

Link to comment
Share on other sites

  • 3 months later...

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  6
  • Reputation:   0
  • Joined:  04/05/12
  • Last Seen:  

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

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  62
  • Reputation:   0
  • Joined:  07/13/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  62
  • Reputation:   0
  • Joined:  07/13/12
  • Last Seen:  

bump anyone?

Link to comment
Share on other sites

  • 11 months later...

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  40
  • Reputation:   3
  • Joined:  10/24/12
  • Last Seen:  

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

  • 4 months later...

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  111
  • Reputation:   2
  • Joined:  05/09/13
  • Last Seen:  

i got no server highest peak found to,,

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  111
  • Reputation:   2
  • Joined:  05/09/13
  • Last Seen:  

bump

Link to comment
Share on other sites

  • 6 months later...

  • Group:  Members
  • Topic Count:  127
  • Topics Per Day:  0.03
  • Content Count:  1445
  • Reputation:   163
  • Joined:  08/17/13
  • Last Seen:  

me too, same problem x_X

Link to comment
Share on other sites

×
×
  • Create New...