(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
06-12-24 10:39 PM
0 users currently in Programming.
Acmlm's Board - I3 Archive - Programming - how to fix the local mod problem on the index
  
User name:
Password:
Reply:
 
Options: - -
Quik-Attach:
Preview for more options

Max size 1.00 MB, types: png, gif, jpg, txt, zip, rar, tar, gz, 7z, ace, mp3, ogg, mid, ips, bz2, lzh, psd

UserPost
Chris
Posts: 59/577
I'm not sure if it existed in 1.A3, but I know that it did in 1.A2... It's very helpful that you've posted the correct coding to rid that bug; heh.
Ice Man
Posts: 40/348
You sure that it exists in 1.A2 and 1.A3? I only got the problem with 1.92. Well, if that should happen to some people, I'd say nice work.
smwedit
Posts: 1/62
I have noticed that this bug exists in 1.A.2 and 1.A.3, this will add something that will take the place of the other one (but you don't have to delete the other code, it still works). to see how well it works, look at my index, it shows all my mods, and I use this. (http://edit.ed.funpic.org/forums/index.php)

in index.php, find if($cat=='' or $cat==$category[id])

add under it:


$md=0;
$lmodlst="";

$localmodq=mysql_query("SELECT * FROM forummods WHERE forum=$forum[id]");
while($forummod=mysql_fetch_array($localmodq)){
$lmoduser=mysql_fetch_array(mysql_query("SELECT * FROM users WHERE id=$forummod[user]"));
$lmodnc=getnamecolor($lmoduser[sex],$lmoduser[powerlevel]);
if($md) $lmodlst.=", ";
$lmodlst.="<a href=profile.php?id=$lmoduser[id]><font $lmodnc>$lmoduser[name]</font></a>";
$md=1;
}
if($lmodlst) $modlist="(Moderated by: $lmodlst)";

Edit: I found out that this creates a bug in index.php sorting of categories, to fix that, change:
if($cat=='' or $cat==$category[id])
to:
if($cat=='' or $cat==$category[id]){

and add:
}
before:
$forum=mysql_fetch_array($forums);
Acmlm's Board - I3 Archive - Programming - how to fix the local mod problem on the index


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.010 seconds; used 348.55 kB (max 381.99 kB)