(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
05-16-24 01:35 PM
0 users currently in Programming.
Acmlm's Board - I3 Archive - Programming - how to fix the local mod problem on the index New poll | |
Add to favorites | Next newer thread | Next older thread
User Post
smwedit

Red Paragoomba


 





Since: 11-18-05

Last post: 6483 days
Last view: 6298 days
Posted on 11-18-05 08:18 PM Link | Quote
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.totalandcompletefailure.net/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);



(edited by smwedit on 11-18-05 07:21 PM)
(edited by smwedit on 12-03-05 04:55 PM)
Ice Man

Panser



 





Since: 11-18-05
From: Germany

Last post: 6395 days
Last view: 6332 days
Posted on 11-20-05 08:12 AM Link | Quote
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.
Chris

Spiny


 





Since: 11-17-05

Last post: 6406 days
Last view: 6406 days
Posted on 11-21-05 06:01 PM Link | Quote
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.
Add to favorites | Next newer thread | Next older thread
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.028 seconds; used 359.27 kB (max 424.83 kB)