vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   FlashChat : Integration upgrades for vBulletin. (https://vborg.vbsupport.ru/showthread.php?t=74613)

derekivey 07-29-2005 03:09 PM

Works Great, Thanks Paul!

* derekivey clicks install.

derekivey 07-29-2005 07:29 PM

For some reason after adding your mod the bots don't come in. Any idea whats wrong?

Paul M 07-29-2005 08:51 PM

Quote:

Originally Posted by derekivey
For some reason after adding your mod the bots don't come in. Any idea whats wrong?

As I don't use bots, I could not be 100% sure - but at a guess I would say they won't have a valid usergroup (as they are not vb users) and therefore would not be allowed access by the default settings of this hack.

derekivey 07-29-2005 08:57 PM

Ok, Thanks.

Paul M 07-29-2005 09:19 PM

FYI, the default access is controlled by this line in the CMS file ;

PHP Code:

    // Set default access 
    
$userrole ROLE_NOBODY 

If you set that to ROLE_USER then they may be able to get in. The problem is that so will any other non banned usergroup (inc possibly guests, I can't test this atm). You *may* want to add lines for usergroups 1, 3 and 4 to the banned groups section (a few lines below the default).

derekivey 07-29-2005 10:56 PM

Ok, Thanks Paul. I'll try and get it to work.

derekivey 08-03-2005 07:10 PM

Ok, I took a look and I think it has something to do with this code in inc\classes\sendLoginInfo.php:

PHP Code:

            // # Paul M # Prevent non allowed members joining .                        
            
if(ChatServer::userInRole($this->useridROLE_NOBODY)) 
            {
                
$user ChatServer::getUser($this->userid);
                
$this->userid null;
                return 
$this->sendBack(new Message('lout'nullnull'banned'));
            } 

I just can't figure out whats wrong :(

Paul M 08-04-2005 07:39 AM

Did you change the default to ROLE_USER as per two posts ago ?

derekivey 08-04-2005 02:53 PM

Yes, and it still didn't work.

Paul M 08-04-2005 06:52 PM

Change it back to this then, so as not to break anything else.

Code:

        // Set default access
        $userrole = ROLE_NOBODY ;

Having never used bot's I haven't really looked at how they work. I would guess they are being assigned the role of NOBODY and so getting blocked. I'll try and look before I go on Holiday, otherwise it will be towards the end of August before I return.


All times are GMT. The time now is 07:30 PM.

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.01532 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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