vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Integration with vBulletin - Flashchat Integration for vB 3.5 (https://vborg.vbsupport.ru/showthread.php?t=91278)

Paul M 07-24-2005 02:50 PM

Loki12, having looked at your file, you have made an error with step 4. The wrong piece of code has been replaced. I'm not really sure why, I've triple checked the instructions and they are correct. The code between //Send room list to user and //Send user list to user should look like this ;

PHP Code:

            //Send room list to user
            
$rooms = array(); 
            if(
ChatServer::userInRole($this->useridROLE_CUSTOMER)) {
                
$this->roomid $this->doCreateRoom("Support Room for {$user['login']}"true);

                
$stmt = new Statement("SELECT * FROM {$GLOBALS['fc_config']['db']['pref']}rooms WHERE id=?");
                if((
$rs $stmt->process()) && ($rec $rs->next($this->roomid))) {
                    
$this->sendBack(new Message('adr'null$rec['id'], $rec['name']));
                    
$rooms[$rec['id']] = 0;
                }
            } else {
                
$stmt = new Statement("SELECT * FROM {$GLOBALS['fc_config']['db']['pref']}rooms WHERE ispublic IS NOT NULL AND ispermanent IS NOT NULL ORDER BY ispermanent");
                if(
$rs $stmt->process()) {
                    while(
$rec $rs->next()) {
                        
$this->sendBack(new Message('adr'null$rec['id'], $rec['name']));
                        
$rooms[$rec['id']] = 0;
                    }
                }

                
$stmt = new Statement("SELECT * FROM {$GLOBALS['fc_config']['db']['pref']}rooms WHERE ispublic IS NOT NULL AND ispermanent IS NULL ORDER BY created");
                if(
$rs $stmt->process()) {
                    while(
$rec $rs->next()) {
                        
$this->sendBack(new Message('adr'null$rec['id'], $rec['name']));
                        
$rooms[$rec['id']] = 0;
                    }
                }
                
// # Paul M # load permanant private rooms if Admin.
                
if(ChatServer::userInRole($this->useridROLE_ADMIN)) {
                    
$stmt = new Statement("SELECT * FROM {$GLOBALS['fc_config']['db']['pref']}rooms WHERE ispublic IS NULL AND ispermanent IS NOT NULL ORDER BY created");
                    if(
$rs $stmt->process()) {
                        while(
$rec $rs->next()) {
                            
$this->sendBack(new Message('adr'null$rec['id'], $rec['name']));
                            
$rooms[$rec['id']] = 0;
                        }
                    }
                }
            }

    
//Send user list to user 

Anyone with room errors should check this carefully.

b6gm6n 07-24-2005 05:17 PM

Thanx, that sorted it...

-b6

b6gm6n 07-24-2005 05:32 PM

Plz ignore, problem solved.

-b6

Loki12 07-24-2005 06:19 PM

Quote:

Originally Posted by Paul M
Loki12, having looked at your file, you have made an error with step 4. The wrong piece of code has been replaced. I'm not really sure why, I've triple checked the instructions and they are correct. The code between //Send room list to user and //Send user list to user should look like this ;

Anyone with room errors should check this carefully.


Paul... if you were any nearer, I'd kiss you. :nervous:

Thanks! It solved my problem! Thanks a lot... my users are very happy and grateful.

Michael2 07-27-2005 08:50 PM

I had trouble getting past step 2 and then realized I hadn't uploaded chat into the forum directory. Thought I'd mention it just in case.

Installed and seems to work great. Thanks! :)

ATN 07-28-2005 12:38 AM

Hi

I've just downloaded your mod and am trying to install flashchat. I cant get passed step two of the actuall flashchat install... When i select VB3.5beta and then click next it just shows a blank page, i've checked paths and all seem correct...

echo $vbpath; exit; >>> /home/virtual/site1/fst/var/www/html/chat/inc/cmses

so i set the path to full as >> /home/virtual/site1/fst/var/www/html/forum/includes/config.php

which is the correct full path to my config file...

Any ideas about this?

Cheers

Paul M 07-28-2005 01:02 AM

Actually - looking at those paths I can see why it failed - you are not installing the chat in the forum folder, but a level up in the [root] html folder. Flashchat/vb integration assumes the former. The best bet is to edit nothing and install it in the forum folder.

If you really want it a level up then edit the CMS file (line 8) to this;

PHP Code:

require_once $vbpath '/../../forum/includes/config.php'


ATN 07-28-2005 02:26 AM

Thanks, it would only work if i moved it in ot the forum dir..

anyhow its all great, so thanks a lot!

Paul M 07-28-2005 02:46 AM

Okay. I have added a note about where this needs to be installed to the first post. :)

ATN 07-28-2005 02:53 AM

me again, sorry... if i log in as admin it shows a little 'A' next to my name which is cool, and i have options to kick etc... but if i log in as a Mod it does not give me these option, i've looked and cat see where to correct this, as i would like mods to be able to kick... i bet its right in front of me aye??

thanks!


All times are GMT. The time now is 03:40 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.02601 seconds
  • Memory Usage 1,770KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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