• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Znote AAC] Most powerful guilds (TFS 0.3/4 and 1.0)

as we are

Look who seek you put this in index.php:
1.jpg
and I've searched and the closest thing and only thing I find is this:
1.jpg 2.jpg

I'm using the SVN version 1.5 Znote and nothing comes on the start page. What can be the reason?
Can you help me please someone who understands ?.

Greetings and thanks for reading
 
as we are

Look who seek you put this in index.php:
View attachment 26682
and I've searched and the closest thing and only thing I find is this:
View attachment 26682 View attachment 26683

I'm using the SVN version 1.5 Znote and nothing comes on the start page. What can be the reason?
Can you help me please someone who understands ?.

Greetings and thanks for reading

edited

well in the end I could not put where would mistake, I just get this on the list of players:​
power.jpg

and this file powergamres.php

"<?php require_once 'engine/init.php'; include 'layout/overall/header.php'; $powergamers = $config['powergamers']; $limit = $powergamers['limit']; if ($config['powergamers_enabled'] === false) { echo 'Powergamers page has been disabled at config.php.'; include 'layout/overall/footer.php'; exit(); } ?> <?php $type = @$_GET['type']; function coloured_value($valuein) { $value2 = $valuein; while(strlen($value2) > 3) { $value .= '.'.substr($value2, -3, 3); $value2 = substr($value2, 0, strlen($value2)-3); } @$value = $value2.$value; if($valuein > 0) return '<b><font color="green">+'.$value.'</font></b>'; elseif($valuein < 0) return '<font color="red">'.$value.'</font>'; else return $value; } if(empty($type)) $players = mysql_select_multi('SELECT `p`.`name`, `p`.`level`, `p`.`vocation`, `p`.`experience`, `p`.`exphist1`, `p`.`exphist2`, `p`.`exphist3`, `p`.`exphist_lastexp`, `p_on`.`player_id` AS `online` FROM `players` p LEFT JOIN `players_online` p_on ON `p`.`id` = `p_on`.`player_id` WHERE `p`.`group_id` < 2 ORDER BY `p`.`experience`-`p`.`exphist_lastexp` DESC LIMIT ' . $limit); elseif($type == "sum") $players = mysql_select_multi('SELECT `p`.*, `p_on`.`player_id` AS online FROM `players` p LEFT JOIN `players_online` p_on ON `p`.`id` = `p_on`.`experience`-`p`.`exphist_lastexp` DESC LIMIT ' . $limit); elseif($type >= 1 && $type <= 7) $players = mysql_select_multi('SELECT `p`.*, `p_on`.`player_id` AS online FROM `players` p LEFT JOIN `players_online` p_on ON `p`.`id` = `p_on`.`player_id` WHERE `p`.`group_id` < 2 ORDER BY `p`.`exphist' . (int) $type . '` DESC LIMIT '.$limit); echo '<CENTER><H2>Ranking of powergamers</H2></CENTER> <BR> <table class="table table-striped"> <td><B>#</B></td> <td><B>Nombre</B></td>'; echo ($type == 'sum') ? '<TD><b><center>Exp. <br> Semanal</B></TD>' : '<TD>Exp<br> Semanal</TD>'; for($i = 3; $i >= 2; $i--) echo ($type == $i) ? '<TD><a href="powergamers.php?type='.$i.'">'.$i.'<br><b>Dias atras</b></a></B></TD>' : '<TD><center><a href="powergamers.php?type='.$i.'">'.$i.'<br> Dias atras</a></TD>'; echo ($type == 1) ? '<TD><b><a href="powergamers.php?type=1">1<br> Dia atras</a></B></TD>' : '<TD><a href="powergamers.php?type=1">1<br> Dia atras</a></TD>'; echo (empty($type)) ? '<TD><b><a href="powergamers.php"><br>Hoy</a></TD>' : '<TD><a href="powergamers.php"><br>Hoy</a></TD>'; echo '</TR>'; $number_of_rows = 1; if($players) foreach($players as $player) { echo '<td>'. $number_of_rows . '. </td>'; echo ($player['online']) ? '<td><a href="characterprofile.php?name=' . urlencode($player['name']) . '"><b><font color="green">' . htmlspecialchars($player['name']) . '</font></b></a>' : '<td><a href="characterprofile.php?name=' . urlencode($player['name']) . '"><b><font color="red">' . htmlspecialchars($player['name']) . '</font></b></a>'; echo '<br />'.$player['level'].' '.htmlspecialchars(vocation_id_to_name($player['vocation'])).'</td><td >'.coloured_value($player['exphist1'] + $player['exphist2'] + $player['exphist3'] + $player['experience'] - $player['exphist_lastexp']).'</td>'; echo '<td >'.coloured_value($player['exphist3']).'</td><td >'.coloured_value($player['exphist2']).'</td><td >'.coloured_value($player['exphist1']).'</td><td >'.coloured_value($player['experience']-$player['exphist_lastexp']).'</td></tr>'; $number_of_rows++; } echo '</table>'; ?> <?php include 'layout/overall/footer.php'; ?>"
 
edited

well in the end I could not put where would mistake, I just get this on the list of players:​

and this file powergamres.php

"<?php require_once 'engine/init.php'; include 'layout/overall/header.php'; $powergamers = $config['powergamers']; $limit = $powergamers['limit']; if ($config['powergamers_enabled'] === false) { echo 'Powergamers page has been disabled at config.php.'; include 'layout/overall/footer.php'; exit(); } ?> <?php $type = @$_GET['type']; function coloured_value($valuein) { $value2 = $valuein; while(strlen($value2) > 3) { $value .= '.'.substr($value2, -3, 3); $value2 = substr($value2, 0, strlen($value2)-3); } @$value = $value2.$value; if($valuein > 0) return '<b><font color="green">+'.$value.'</font></b>'; elseif($valuein < 0) return '<font color="red">'.$value.'</font>'; else return $value; } if(empty($type)) $players = mysql_select_multi('SELECT `p`.`name`, `p`.`level`, `p`.`vocation`, `p`.`experience`, `p`.`exphist1`, `p`.`exphist2`, `p`.`exphist3`, `p`.`exphist_lastexp`, `p_on`.`player_id` AS `online` FROM `players` p LEFT JOIN `players_online` p_on ON `p`.`id` = `p_on`.`player_id` WHERE `p`.`group_id` < 2 ORDER BY `p`.`experience`-`p`.`exphist_lastexp` DESC LIMIT ' . $limit); elseif($type == "sum") $players = mysql_select_multi('SELECT `p`.*, `p_on`.`player_id` AS online FROM `players` p LEFT JOIN `players_online` p_on ON `p`.`id` = `p_on`.`experience`-`p`.`exphist_lastexp` DESC LIMIT ' . $limit); elseif($type >= 1 && $type <= 7) $players = mysql_select_multi('SELECT `p`.*, `p_on`.`player_id` AS online FROM `players` p LEFT JOIN `players_online` p_on ON `p`.`id` = `p_on`.`player_id` WHERE `p`.`group_id` < 2 ORDER BY `p`.`exphist' . (int) $type . '` DESC LIMIT '.$limit); echo '<CENTER><H2>Ranking of powergamers</H2></CENTER> <BR> <table class="table table-striped"> <td><B>#</B></td> <td><B>Nombre</B></td>'; echo ($type == 'sum') ? '<TD><b><center>Exp. <br> Semanal</B></TD>' : '<TD>Exp<br> Semanal</TD>'; for($i = 3; $i >= 2; $i--) echo ($type == $i) ? '<TD><a href="powergamers.php?type='.$i.'">'.$i.'<br><b>Dias atras</b></a></B></TD>' : '<TD><center><a href="powergamers.php?type='.$i.'">'.$i.'<br> Dias atras</a></TD>'; echo ($type == 1) ? '<TD><b><a href="powergamers.php?type=1">1<br> Dia atras</a></B></TD>' : '<TD><a href="powergamers.php?type=1">1<br> Dia atras</a></TD>'; echo (empty($type)) ? '<TD><b><a href="powergamers.php"><br>Hoy</a></TD>' : '<TD><a href="powergamers.php"><br>Hoy</a></TD>'; echo '</TR>'; $number_of_rows = 1; if($players) foreach($players as $player) { echo '<td>'. $number_of_rows . '. </td>'; echo ($player['online']) ? '<td><a href="characterprofile.php?name=' . urlencode($player['name']) . '"><b><font color="green">' . htmlspecialchars($player['name']) . '</font></b></a>' : '<td><a href="characterprofile.php?name=' . urlencode($player['name']) . '"><b><font color="red">' . htmlspecialchars($player['name']) . '</font></b></a>'; echo '<br />'.$player['level'].' '.htmlspecialchars(vocation_id_to_name($player['vocation'])).'</td><td >'.coloured_value($player['exphist1'] + $player['exphist2'] + $player['exphist3'] + $player['experience'] - $player['exphist_lastexp']).'</td>'; echo '<td >'.coloured_value($player['exphist3']).'</td><td >'.coloured_value($player['exphist2']).'</td><td >'.coloured_value($player['exphist1']).'</td><td >'.coloured_value($player['experience']-$player['exphist_lastexp']).'</td></tr>'; $number_of_rows++; } echo '</table>'; ?> <?php include 'layout/overall/footer.php'; ?>"

PLEASE haha use code tags insted of spoiler tags... If you read your code you will notice why.
 
lopez65, post: 2123275, member: 157521"]
edited

well in the end I could not put where would mistake, I just get this on the list of players:​

and this file powergamres.php

PHP:
"<?php require_once 'engine/init.php'; include 'layout/overall/header.php'; $powergamers = $config['powergamers']; $limit = $powergamers['limit']; if ($config['powergamers_enabled'] === false) { echo 'Powergamers page has been disabled at config.php.'; include 'layout/overall/footer.php'; exit(); } ?> <?php $type = @$_GET['type']; function coloured_value($valuein) { $value2 = $valuein; while(strlen($value2) > 3) { $value .= '.'.substr($value2, -3, 3); $value2 = substr($value2, 0, strlen($value2)-3); } @$value = $value2.$value; if($valuein > 0) return '<b><font color="green">+'.$value.'</font></b>'; elseif($valuein < 0) return '<font color="red">'.$value.'</font>'; else return $value; } if(empty($type)) $players = mysql_select_multi('SELECT `p`.`name`, `p`.`level`, `p`.`vocation`, `p`.`experience`, `p`.`exphist1`, `p`.`exphist2`, `p`.`exphist3`, `p`.`exphist_lastexp`, `p_on`.`player_id` AS `online` FROM `players` p LEFT JOIN `players_online` p_on ON `p`.`id` = `p_on`.`player_id` WHERE `p`.`group_id` < 2 ORDER BY `p`.`experience`-`p`.`exphist_lastexp` DESC LIMIT ' . $limit); elseif($type == "sum") $players = mysql_select_multi('SELECT `p`.*, `p_on`.`player_id` AS online FROM `players` p LEFT JOIN `players_online` p_on ON `p`.`id` = `p_on`.`experience`-`p`.`exphist_lastexp` DESC LIMIT ' . $limit); elseif($type >= 1 && $type <= 7) $players = mysql_select_multi('SELECT `p`.*, `p_on`.`player_id` AS online FROM `players` p LEFT JOIN `players_online` p_on ON `p`.`id` = `p_on`.`player_id` WHERE `p`.`group_id` < 2 ORDER BY `p`.`exphist' . (int) $type . '` DESC LIMIT '.$limit); echo '<CENTER><H2>Ranking of powergamers</H2></CENTER> <BR> <table class="table table-striped"> <td><B>#</B></td> <td><B>Nombre</B></td>'; echo ($type == 'sum') ? '<TD><b><center>Exp. <br> Semanal</B></TD>' : '<TD>Exp<br> Semanal</TD>'; for($i = 3; $i >= 2; $i--) echo ($type == $i) ? '<TD><a href="powergamers.php?type='.$i.'">'.$i.'<br><b>Dias atras</b></a></B></TD>' : '<TD><center><a href="powergamers.php?type='.$i.'">'.$i.'<br> Dias atras</a></TD>'; echo ($type == 1) ? '<TD><b><a href="powergamers.php?type=1">1<br> Dia atras</a></B></TD>' : '<TD><a href="powergamers.php?type=1">1<br> Dia atras</a></TD>'; echo (empty($type)) ? '<TD><b><a href="powergamers.php"><br>Hoy</a></TD>' : '<TD><a href="powergamers.php"><br>Hoy</a></TD>'; echo '</TR>'; $number_of_rows = 1; if($players) foreach($players as $player) { echo '<td>'. $number_of_rows . '. </td>'; echo ($player['online']) ? '<td><a href="characterprofile.php?name=' . urlencode($player['name']) . '"><b><font color="green">' . htmlspecialchars($player['name']) . '</font></b></a>' : '<td><a href="characterprofile.php?name=' . urlencode($player['name']) . '"><b><font color="red">' . htmlspecialchars($player['name']) . '</font></b></a>'; echo '<br />'.$player['level'].' '.htmlspecialchars(vocation_id_to_name($player['vocation'])).'</td><td >'.coloured_value($player['exphist1'] + $player['exphist2'] + $player['exphist3'] + $player['experience'] - $player['exphist_lastexp']).'</td>'; echo '<td >'.coloured_value($player['exphist3']).'</td><td >'.coloured_value($player['exphist2']).'</td><td >'.coloured_value($player['exphist1']).'</td><td >'.coloured_value($player['experience']-$player['exphist_lastexp']).'</td></tr>'; $number_of_rows++; } echo '</table>'; ?> <?php include 'layout/overall/footer.php'; ?>"
edit to put code
 
Ruego a cualquier mod que borre el post anterior a este.

Aqui esta re-editado con su codigo.

power.jpg


PHP:
<?php
require_once 'engine/init.php';
include 'layout/overall/header.php';
$powergamers = $config['powergamers'];
$limit = $powergamers['limit'];
if ($config['powergamers_enabled'] === false) {
echo 'Powergamers page has been disabled at config.php.';
include 'layout/overall/footer.php';
exit();
}
?>
<?php
$type = @$_GET['type'];
function coloured_value($valuein)
{
$value2 = $valuein;
while(strlen($value2) > 3)
{
$value .= '.'.substr($value2, -3, 3);
$value2 = substr($value2, 0, strlen($value2)-3);
}
@$value = $value2.$value;
if($valuein > 0)
return '<b><font color="green">+'.$value.'</font></b>';
elseif($valuein < 0)
return '<font color="red">'.$value.'</font>';
else
return $value;
}
if(empty($type))
$players = mysql_select_multi('SELECT `p`.`name`, `p`.`level`, `p`.`vocation`, `p`.`experience`, `p`.`exphist1`, `p`.`exphist2`, `p`.`exphist3`, `p`.`exphist_lastexp`, `p_on`.`player_id` AS `online` FROM `players` p LEFT JOIN `players_online` p_on ON `p`.`id` = `p_on`.`player_id` WHERE `p`.`group_id` < 2 ORDER BY `p`.`experience`-`p`.`exphist_lastexp` DESC LIMIT ' . $limit);
elseif($type == "sum")
$players = mysql_select_multi('SELECT `p`.*, `p_on`.`player_id` AS online FROM `players` p LEFT JOIN `players_online` p_on ON `p`.`id` = `p_on`.`experience`-`p`.`exphist_lastexp` DESC LIMIT ' . $limit);
elseif($type >= 1 && $type <= 7)
$players = mysql_select_multi('SELECT `p`.*, `p_on`.`player_id` AS online FROM `players` p LEFT JOIN `players_online` p_on ON `p`.`id` = `p_on`.`player_id` WHERE `p`.`group_id` < 2 ORDER BY `p`.`exphist' . (int) $type . '` DESC LIMIT '.$limit);
echo '<CENTER><H2>Ranking of powergamers</H2></CENTER>
<BR>
<table class="table table-striped">
<td><B>#</B></td>
<td><B>Nombre</B></td>';
echo ($type == 'sum') ? '<TD><b><center>Exp. <br> Semanal</B></TD>' : '<TD>Exp<br> Semanal</TD>';
for($i = 3; $i >= 2; $i--)
echo ($type == $i) ? '<TD><a href="powergamers.php?type='.$i.'">'.$i.'<br><b>Dias atras</b></a></B></TD>' : '<TD><center><a href="powergamers.php?type='.$i.'">'.$i.'<br> Dias atras</a></TD>';
echo ($type == 1) ? '<TD><b><a href="powergamers.php?type=1">1<br> Dia atras</a></B></TD>' : '<TD><a href="powergamers.php?type=1">1<br> Dia atras</a></TD>';
echo (empty($type)) ? '<TD><b><a href="powergamers.php"><br>Hoy</a></TD>' : '<TD><a href="powergamers.php"><br>Hoy</a></TD>';
echo '</TR>';
$number_of_rows = 1;
if($players)
foreach($players as $player)
{
echo '<td>'. $number_of_rows . '. </td>';
echo ($player['online']) ? '<td><a href="characterprofile.php?name=' . urlencode($player['name']) . '"><b><font color="green">' . htmlspecialchars($player['name']) . '</font></b></a>' : '<td><a href="characterprofile.php?name=' . urlencode($player['name']) . '"><b><font color="red">' . htmlspecialchars($player['name']) . '</font></b></a>';
echo '<br />'.$player['level'].' '.htmlspecialchars(vocation_id_to_name($player['vocation'])).'</td><td >'.coloured_value($player['exphist1'] + $player['exphist2'] + $player['exphist3'] + $player['experience'] - $player['exphist_lastexp']).'</td>';
echo '<td >'.coloured_value($player['exphist3']).'</td><td >'.coloured_value($player['exphist2']).'</td><td >'.coloured_value($player['exphist1']).'</td><td >'.coloured_value($player['experience']-$player['exphist_lastexp']).'</td></tr>';
$number_of_rows++;
}
echo '</table>';
?>
<?php
include 'layout/overall/footer.php';
?>
 
I would like to apologize for not having realized before my big mistake of confusing [Znote AAC] Most powerful guilds (TFS 0.3 / 4 and 1.0) with powergamers, I ask them to remove the three post mine in this area and also remove them from my messages in general. I just hope you understand what I have done with bad intention, it's just that he was blinded by the powergamers subject and I did not realize until now.

Greetings and thanks for your kindness and endurance.
 
Is this fro Znote 1.5 From github..
since i dont find
Code:
foreach ($news as $n) {
 
can someone do that also took the information from the column guildwar_kills? thanks!
 
Warning: Invalid argument supplied for foreach() inC:\xampp\htdocs\index.php on line 79

I think anyone will see this but, let's try. Thanks.
 
There is no: foreach ($news as $n) {
in znote 1.5

What he said ^
I still put in int he index.php file but it doesn't appear on default Znote layout. Any info on how to? I can only see guilds, not most powerful guilds.

upload
 
Back
Top