Register | Login | |||||
Main
| Memberlist
| Active users
| Calendar
| Chat
| Online users Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album |
| |
0 users currently in Programming. |
User | Post |
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.="< $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); |