![]() |
When a new user tried to do a newreply, I got this error:
Parse error: parse error, unexpected T_ELSE in /home/boofo/public_html/forum/newreply.php on line 591 Here is a section of code it refers to. Can anyone plese help me? Code:
$threadreviewbits = ''; Line 590 // End Account hide hack Line 591 } else { |
I'm getting the exact same errror.
|
The answer is here. Enjoy! :)
https://vborg.vbsupport.ru/showthrea...821#post267821 Quote:
|
Quote:
OK, that fixed the problem. Did anyone have any luck on figuring out how to hide the persons thread topics on the topic listing pages? Unfortunately this is a sure fire way for other people to notice that the user has been banned because they all replay to the blank thread with "Why can't I see the post?" |
Probably a bit complex to solve...though only a line or three once u figure it out...I'll give u a hint...
you need to find where the select statement happens to get the list of threads (probably in functions.php or forumdisplay.php)...and make sure that in the join to the threadstarter...their usergroupid is included in the query...and if the usergroup id belongs to that user...exclude that thread... Problem is...it will still show up in searches...and view new posts and today's posts etc... But to fix that u just go with the same concept...except in search.php instead... Hope this helps... |
Ok, now I'm totally confused. ;)
Can you show us what to do to fix it? Maybe use the permissions check? :) Quote:
|
I'm just making it so users at this level can't start threads or send PM's.
|
I have unbanned a user but the words [account removed for abuse] Admins and Mods can view the post but nobody else does: still show up in there posts?
How can this be changed so that once I unbann osmeone this text does not show anymore. Thanks, Brian |
Update Counters, I suppose ;)
|
Tried to make this work on version 2.8 but i found
Find: eval("\$retval = \"".gettemplate("postbit")."\";"); Replace with: // Begin Account hide hack if ($post[usergroupid]==8) { if ($bbuserinfo['usergroupid']==6 || $bbuserinfo['usergroupid']==5 || $bbuserinfo['usergroupid']==7) { $post[message]="<normalfont><b>[account removed for abuse]</b></normalfont> <smallfont><i>Admins and Mods can view the post but nobody else does:</i><br> <br></smallfont>".$post[message]; eval("\$retval = \"".gettemplate("postbit")."\";"); } else if ($bbuserinfo[userid]!=$post[userid]) { eval("\$retval = \"".gettemplate("postbit_banned")."\";"); } else { eval("\$retval = \"".gettemplate("postbit")."\";"); } } else { eval("\$retval = \"".gettemplate("postbit")."\";"); } // End Account hide hack but on the Modifications to ./admin/newreply.php: ######################################### Find: $posts=$DB_site->query(" SELECT IF(post.userid=0,post.username,user.username) AS username, post.pagetext,post.allowsmilie,post.userid FROM post LEFT JOIN user ON user.userid=post.userid WHERE post.visible=1 AND post.threadid='$threadid' ORDER BY dateline DESC"); Replace with: // Begin Account hide hack $posts=$DB_site->query(" SELECT IF(post.userid=0,post.username,user.username) AS username, post.pagetext,post.allowsmilie,post.userid,usergro upid FROM post LEFT JOIN user ON user.userid=post.userid WHERE post.visible=1 AND post.threadid='$threadid' ORDER BY dateline DESC"); // End Account hide hack I am not sure if i have to remove all of: Modifications to ./admin/newreply.php: ######################################### Find: $posts=$DB_site->query(" SELECT IF(post.userid=0,post.username,user.username) AS username, post.pagetext,post.allowsmilie,post.userid FROM post LEFT JOIN user ON user.userid=post.userid WHERE post.visible=1 AND post.threadid='$threadid' ORDER BY dateline DESC"); Replace with: // Begin Account hide hack $posts=$DB_site->query(" SELECT IF(post.userid=0,post.username,user.username) AS username, post.pagetext,post.allowsmilie,post.userid,usergro upid FROM post LEFT JOIN user ON user.userid=post.userid WHERE post.visible=1 AND post.threadid='$threadid' ORDER BY dateline DESC"); // End Account hide hack |
All times are GMT. The time now is 09:58 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|