Forgive grave-digging here for a minute, but I have a unique problem. This thing is preventing a character from showing up in the HOF, and it shouldn't.
This character is a test character of mine, and has ONLY the Translation Tool enabled in Superuser Flags...nothing else.
Translation tool IS NOT one of the Flags that should disable one from appearing in the HOF...and this character DOES show up in most HOF's...but NOT in Vanquishers...and I want this character to show up there...as I consider it my main player-character.
I have looked thru the code over and over and I cannot see WHERE it is eliminating superusers from the HOF. I may have an older version, I am not sure...BUT...ok, just checked, I have version 5.02 I see no problem with this except that I want THIS character to show in the HOF.
If someone has a SU Flag that IS STARRED...then, yeah, I want that character blocked from HOF.
It seems this thing is blocking anyone with any SU Flag. And it should not.
I am attaching copy of the code from signetsale.php the one I have...from op"hof" and see if someone can point me to where this is happening.
I am not even sure, at this point if non-SU players are being listed, because nobody else has completed the Series on my site.
Meanwhile, i am downloading the later version to see if there is any difference in the coding concerning the HOF.
if ($op == "hof") {
page_header("Hall of Fame");
$pp = get_module_setting("frpp","signetd5");
$pageoffset = (int)$page;
if ($pageoffset > 0) $pageoffset--;
$pageoffset *= $pp;
$limit = "LIMIT $pageoffset,$pp";
$sql = "SELECT COUNT(*) AS c FROM " . db_prefix("module_userprefs") . " WHERE modulename = 'signetd5' AND setting = 'frhofnum' AND value > 0";
$result = db_query($sql);
$row = db_fetch_assoc($result);
$total = $row['c'];
$count = db_num_rows($result);
if (($pageoffset + $pp) < $total){
$cond = $pageoffset + $pp;
}else{
$cond = $total;
}
$rank = translate_inline("Rank");
$name = translate_inline("Name");
$none = translate_inline("Mierscri is Undefeated!");
output("`b`c`@Vanquishers of the Dark Lord Mierscri`c`b`n`n");
rawoutput("<table border='0' cellpadding='2' cellspacing='1' align='center' bgcolor='#999999'>");
rawoutput("<tr class='trhead'><td>$rank</td><td>$name</td></tr>");
if (get_module_setting("dksincewin")==-1){
$sql = "SELECT ".db_prefix("module_userprefs").".value, ".db_prefix("accounts").".name FROM " . db_prefix("module_userprefs") . "," . db_prefix("accounts") . " WHERE acctid = userid AND modulename = 'signetd5' AND setting = 'frhofnum' AND value > 0 ORDER BY (value+0) DESC $limit";
$result = db_query($sql);
if (db_num_rows($result)==0){
output_notl("<tr class='trlight'><td colspan='3' align='center'>`&$none`0</td></tr>",true);
}else{
for($i = $pageoffset; $i < $cond && $count; $i++) {
$row = db_fetch_assoc($result);
if ($row['name']==$session['user']['name']){
rawoutput("<tr class='trhilight'><td>");
}else{
rawoutput("<tr class='".($i%2?"trdark":"trlight")."'><td>");
}
$j=$i+1;
output_notl("$j.");
rawoutput("</td><td>");
output_notl("`&%s`0",$row['name']);
rawoutput("</td></tr>");
}
}
}else{
$names=translate_inline(array("`)DarkSlayer","`&Vanquisher","`@Grand Vanquisher","`#Supreme Vanquisher","`1Nemesis","`6Bane of Evil","`3Air Mage","`QEarth Mage","`!Water Mage","`\$Fire Mage","`%Power Mage","`^Signet Mage","`^Signet Mage","`^Signet Mage","`^Signet Mage","`^Signet Mage","`^Signet Mage","`^Signet Mage","`^Signet Mage","`^Signet Mage","`^Signet Mage","`^Signet Mage","`^Signet Mage","`^Signet Mage","`^Signet Mage","`^Signet Mage","`^Signet Mage"));
$sql = "SELECT ".db_prefix("module_userprefs").".value, ".db_prefix("accounts").".name FROM " . db_prefix("module_userprefs") . "," . db_prefix("accounts") . " WHERE acctid = userid AND modulename = 'signetsale' AND setting = 'completednum' AND value > 0 ORDER BY (value+0) DESC $limit";
$result = db_query($sql);
if (db_num_rows($result)==0){
output_notl("<tr class='trlight'><td colspan='3' align='center'>`&$none`0</td></tr>",true);
}else{
for($i = $pageoffset; $i < $cond && $count; $i++) {
$row = db_fetch_assoc($result);
if ($row['name']==$session['user']['name']){
rawoutput("<tr class='trhilight'><td>");
}else{
rawoutput("<tr class='".($i%2?"trdark":"trlight")."'><td>");
}
$j=$i+1;
output_notl("$j.");
rawoutput("</td><td>");
output_notl("`&%s`0",$row['name']);
rawoutput("</td><td>");
output_notl("`@%s`0",$names[$row['value']]);
rawoutput("</td></tr>");
}
}
}
rawoutput("</table>");
if ($total>$pp){
addnav("Pages");
for ($p=0;$p<$total;$p+=$pp){
addnav(array("Page %s (%s-%s)", ($p/$pp+1), ($p+1), min($p+$pp,$total)), "runmodule.php?module=signetsale&op=hof&page=".($p/$pp+1));
}
}
addnav("Other");
addnav("Back to HoF", "hof.php");
if (is_module_active("mapmaker")){
if(get_module_setting("mapmaker")==1) blocknav("runmodule.php?module=mapmaker");
}
if (is_module_active("cartographer")){
if(get_module_setting("mapmaker")==1) blocknav("runmodule.php?module=cartographer");
}
villagenav();
}