Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-16-2005, 12:34 AM
hurrican hurrican is offline
 
Join Date: Feb 2004
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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')."\");");
        }
.................
Reply With Quote
  #2  
Old 02-18-2005, 02:02 AM
hurrican hurrican is offline
 
Join Date: Feb 2004
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #3  
Old 02-18-2005, 03:34 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What Chat hack are you talking about?

Already tried asking in the thread for that hack?
Reply With Quote
  #4  
Old 02-18-2005, 02:04 PM
hurrican hurrican is offline
 
Join Date: Feb 2004
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #5  
Old 05-22-2005, 01:21 PM
hurrican hurrican is offline
 
Join Date: Feb 2004
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:26 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04166 seconds
  • Memory Usage 2,201KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete