vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Banning users from non-vb pages (https://vborg.vbsupport.ru/showthread.php?t=76392)

hurrican 02-16-2005 12:34 AM

Banning users from non-vb pages
 
Trying to accomplish where I can ban users by admin/user.php .. I have added "can access chat room" to that, which shows up, added that information to my database.. however, I am having trouble trying to get it expressed in the chat.php file.. My current chat file checks to see if the user can send pm's.. if yes, they can access chat, if no, they can't.. however, i want to make a 'canaccesschatroom' instead..

anyone tell me how I can modify this to make this work properly?

PHP Code:

<?php

$service 
"sigmachat"# Options are: "ice" or "sigmachat"

error_reporting(7);

$templatesused='chat,chatbit,chatredirect';

// ## Changes Directory so it can accesss vbulletin ##
chdir("/home/public_html/vb/");
// ## Grabs global.php  ##
require("./global.php");

$permissions=getpermissions($forumid);
if (!
$permissions[canusepm]) {
  
show_nopermission();
}

if (
$bbuserinfo['userid']!=0) {

        if ((!isset(
$setwidth) or $setwidth=="") or (!isset($setheight) or $setheight=="")) {
                eval(
"dooutput(\"".gettemplate('chatredirect')."\");");
        }
.................


hurrican 02-18-2005 02:02 AM

Basically, what I want to do since I must have not been clear, is create an option in the "USER" table so that I can choose Yes/No for "Can This User Access Chat Room" 1 = Yes 0 = No. The current way you see my php file is to check to see if the EU is in a usergroup that allows PM's to be used. I do not want to auth this off of the "Usergroup" this time, rather, look in user table to see if the specific user has access to the chat room. Anyone?

Marco van Herwaarden 02-18-2005 03:34 AM

What Chat hack are you talking about?

Already tried asking in the thread for that hack?

hurrican 02-18-2005 02:04 PM

Marco,
This is the vB2.x Sigmachat file. Trying to add permissions so that my moderators can ban using no_permission template if they change the "Can Access Chat Room" to 0/No. Have not asked in the original hack file since it's an addon to that hack?

hurrican 05-22-2005 12:21 PM

Any additional insight on this? I want to be able to choose under the "Options" tab to "Allow User to access Chat" YES/NO. I know how to do it by changing the users UserGroup, but I have many different usergroups and don't want to have to move the user from their respective groups..


All times are GMT. The time now is 02:05 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.01508 seconds
  • Memory Usage 1,720KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete