PDA

View Full Version : Help


Boofo
06-30-2002, 11:17 PM
Can anyone please help me with the following code? I'm getting an error and can't post any newreplies.

https://vborg.vbsupport.ru/showthread.php?s=&threadid=36205&perpage=15&highlight=secretly&display=&pagenumber=3

Admin
07-01-2002, 06:36 AM
I think...
$threadreviewbits = '';
while ($post=$DB_site->fetch_array($posts)) {
if ($postcounter++ < $maxposts) {
if ($postcounter%2 == 0) {
$backcolor = "#13486D";
$post[bgclass] = "alt1";
} else {
$backcolor = "#1C5780";
$post[bgclass] = "alt2";
}
$username=$post[username];
if ($ignore[$post[userid]]) {
$reviewmessage = $ignoreduser;
} else {
$reviewmessage = bbcodeparse($post[pagetext],$threadinfo[forumid],$post[allowsmilie]);
}
// Begin Account hide hack
if ($post[usergroupid]==8) {
if ($bbuserinfo['usergroupid']==6 || $bbuserinfo['usergroupid']==5 || $bbuserinfo['usergroupid']==7) {
eval("\$threadreviewbits .= \"".gettemplate("threadreviewbit")."\";");
} elseif ($bbuserinfo[userid]!=$post[userid]) {
eval("\$threadreviewbits .= \"".gettemplate("postbit_banned")."\";");
} else {
eval("\$threadreviewbits .= \"".gettemplate("threadreviewbit")."\";");
}
} else {
eval("\$threadreviewbits .= \"".gettemplate("threadreviewbit")."\";");
}
// End Account hide hack
} else {
break;
}
}

Boofo
07-01-2002, 07:30 AM
You thought right. :) It worked! Thank you very much, sir. Can I ask you one thing? Would you please tell me what you changed and why, so I can learn what to watch for the next time? :)

Admin
07-01-2002, 07:49 AM
I don't remember... :p I think there was a } else { missing or redundant.

Boofo
07-01-2002, 07:53 AM
Well, whichever one it was, it works now. :) I'll have to go over the code again and look at it a little more closely. Thanks again!

John
10-19-2002, 08:00 AM
Cheers Chen, fixed my problem as well :)

cgwillis
11-20-2002, 09:40 PM
Yeah, it was one missing } right before the end. That should probably be added to the final release of that hack, because the orginal text file has the } missing.