Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > vB Chat
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Also banned usergroup in chat ? Details »»
Also banned usergroup in chat ?
Version: , by SatNews SatNews is offline
Developer Last Online: Aug 2005 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 04-08-2005 Last Update: Never Installs: 0
 
No support by the author.

Hi
I've installed VbChat on Vbulletin 3.07 and all seems to be ok : since the chat MUST be for internal use I've banned all usergroup except Mods/admin/supermod .

Now when a registered user try to acces Vbchat he receives the error messages but the name appears in the "User currently inside" in the forum page and also in the chat page.

Do I make some errors while installing ?

Thanks a lot

cu

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 04-08-2005, 01:26 PM
Zero Tolerance's Avatar
Zero Tolerance Zero Tolerance is offline
 
Join Date: Feb 2004
Location: England
Posts: 813
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm, the chat doesn't recocnize the banned users when viewing who's online inside the chat, similar to vBulletin, if a banner member visits your forum, it still shows them on the users online list.

- Zero Tolerance
Reply With Quote
  #3  
Old 04-08-2005, 01:38 PM
SatNews's Avatar
SatNews SatNews is offline
 
Join Date: Oct 2002
Location: Tatooine
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi
thanks for your answer : so when a user of a banned (not autorized is better) usergroup click on the VbChat FIRST its name is sent to the user online list and THEN he receives the error message that say that he isnt autorized ?

In my case (registered user are not autorized) if all try to access the chat I'll have a user online list of the chat as big as the one of the forum : would not be better to put the name in the list only after authentication procedure ?

Just another little thing : is it possible to have the vbchat windows automatically sized as the windows which contain it ?

cu
Reply With Quote
  #4  
Old 04-08-2005, 01:49 PM
Zero Tolerance's Avatar
Zero Tolerance Zero Tolerance is offline
 
Join Date: Feb 2004
Location: England
Posts: 813
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nah, the query simply finds registered users that are viewing 'vBChat.php', a code could be added to disclude banned users from showing up, by altering the query.

Open vBChat.php
Find:
Code:
		// Any Body Here?
		$datecut = TIMENOW - $vboptions['cookietimeout'];
Above Place:
Code:
			$Discard_Banned = "";
			if(is_array($UserIDCheck) && $Chat_Options['d_bannedusers'] != ""){
			$Discard_Banned = implode(",",$UserIDCheck);
			$Discard_Banned = "and user.userid not in({$Discard_Banned})";
			}

			if(is_array($UsergroupCheck) && $Chat_Options['d_bannedgroups'] != ""){

				if($Discard_Banned == ""){
				$Discard_Banned = "and user.usergroupid not in(".implode(",",$UsergroupCheck).")";
				} else {
				$Discard_Banned .= "
				and user.usergroupid not in(".implode(",",$UsergroupCheck).")
				";
				}
			}
Find:
Code:
user.username, user.vbchat_pref_status,
Replace With:
Code:
user.username, user.usergroupid, user.vbchat_pref_status,
Find:
Code:
				" . iif($vboptions['displayloggedin'] == 1, "ORDER BY username ASC") . "
Above Add:
Code:
				{$Discard_Banned}
Save & Upload vBChat.php


I ran the query to test it out, it worked, didn't test it out on the vBChat program though, but it should work, let me know the results

- Zero Tolerance
Reply With Quote
  #5  
Old 04-08-2005, 02:07 PM
SatNews's Avatar
SatNews SatNews is offline
 
Join Date: Oct 2002
Location: Tatooine
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi
I' ve modified the file as in your instruction but nothing is changed : any error but all is as before. A soon as the user receive the eror messages he's in the list (inside the chat and oin the forum)

Thanks

cu


****** ??? Script has changed .. wait for me to test
Reply With Quote
  #6  
Old 04-08-2005, 02:12 PM
Zero Tolerance's Avatar
Zero Tolerance Zero Tolerance is offline
 
Join Date: Feb 2004
Location: England
Posts: 813
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I updated the script (i put an edit notice in while i was doing it, maybe you didn't see it)

Undo the old edits i posted before and re-do those ones, the previous one only discarded banned members, it now includes banned usergroups

- Zero Tolerance
Reply With Quote
  #7  
Old 04-08-2005, 02:22 PM
SatNews's Avatar
SatNews SatNews is offline
 
Join Date: Oct 2002
Location: Tatooine
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here I am ..

With the last script the situation is as follow

1) User does not appears in online list inside the chat ..
2) User DOES appears in the online list in the page of the forum

Thanks a lot

cu
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:36 AM.


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.05468 seconds
  • Memory Usage 2,260KB
  • Queries Executed 20 (?)
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
  • (6)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)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_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