vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Secretly ban a user (https://vborg.vbsupport.ru/showthread.php?t=36205)

lordofgun 05-14-2002 02:42 PM

erwin, it has been fixed in the original attachment?

Erwin 05-14-2002 10:37 PM

I don't think so.

TheDutch 05-20-2002 10:55 PM

I would like the banned user and moderators to see his own post and the normal users to just dont see the post. That way people arent able to alert the banned user....when he perhaps has friends on the board.........

Can you arrange this??

TheDutch

Martin64 06-13-2002 11:01 PM

Quote:

Originally posted by TheDutch
I would like the banned user and moderators to see his own post and the normal users to just dont see the post. That way people arent able to alert the banned user....when he perhaps has friends on the board.........

Can you arrange this??

TheDutch

Exactly what I was thinking, TheDutch. What I did was to make a completely empty template (postbit_banned) and that solved the first problem. Now the banned user would see his own original post, admins & mods would see the original post with the "this user has been banned" note and the regular users wouldn't see any post at all by the banned user.

The new problem was that the banned user is still able to start a new thread. If he/she does start a new thread, the thread would be empty and have no content and all (except title), and would seem odd for most people (except the banned user who wouldn't notice ;))

Is there a way to hide new threads as well? Great hack so far though. :)

Edit: Of course it would be possible to remove the permission to post new threads for the banned user, but then again, wouldn't that be a little suspicious? :D

Frank 06-21-2002 12:26 PM

Updated hack to include all changes so far in this thread, please see first post in thread for full info :)

Martin64 06-21-2002 01:29 PM

...which still doesn't solve the problem with the banned user being able to post a new thread? I just don't think it makes sense that other users can see the posts that the banned user have made (not the content, but that he/she has posted).

Frank 06-21-2002 01:35 PM

Quote:

Originally posted by Martin64
...which still doesn't solve the problem with the banned user being able to post a new thread?
Nope, I guess that's the next thing to work on.
Quote:

I just don't think it makes sense that other users can see the posts that the banned user have made (not the content, but that he/she has posted).
They can't, they don't see anything because we now have a blank template.

Martin64 06-21-2002 01:48 PM

Right yes, I see you noticed my suggestion above. :P

Now go work on hiding new threads posted by the secretly banned users as well! ;)

Nice job, Frank. :)

Dyntheos 06-24-2002 02:43 AM

First newreply.php is not in the admin directory as stated in the .txt file Iam assuming you mean the newreply.php in the root?

second when I try this and make the additions to the newreply.php I see

Code:

$posts=$DB_site->query("
        SELECT IF(post.userid=0,post.username,user.username) AS username,
        post.pagetext,post.allowsmilie,post.userid,usergroupid FROM post
        LEFT JOIN user ON user.userid=post.userid
        WHERE ".iif($bbuserinfo[usergroupid]==5 or $bbuserinfo[usergroupid]==6 or $bbuserinfo[usergroupid]==7,"","post.visible=1 AND ")."post.threadid='$threadid'
        ORDER BY dateline DESC");

instead of this

Code:

$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");

which is in the .txt file and what i should find in the newreply.php

is this due to the hidden reply hack being added for admins/mods on my forum, and if so, how can this be intergrated into this new hack?

I tried adding the usergroupid to the second line as stated in the instruction but that only threw up errors when someone went to make a reply.

Hoping this hack will be able to get up and running as it's use would fix several repeat offenders of the "I've been banned so i'll change my host mask and re register" type person.

Lissa 06-25-2002 05:55 PM

I have the same problem as Dyntheos. I went ahead and installed it anyway, and I get this error when trying to reply to ANY thread:

Parse error: parse error, unexpected T_ELSE in /home/.lysanne/lissy/lissaexplains.com/forum/newreply.php on line 474


Any ideas? This seems like an awesome hack and I'd love to be able to use it.

I'm running v 2.2.6 :)


All times are GMT. The time now is 06:13 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
  • Page Generation 0.01118 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete