Register | Login | |||||
Main
| Memberlist
| Active users
| Calendar
| Chat
| Online users Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album |
| |
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: 6617 days Last view: 6432 days |
| ||
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.="< $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: 6530 days Last view: 6466 days |
| ||
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: 6540 days Last view: 6540 days |
| ||
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 | | |