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)

testpig 10-10-2005 07:26 AM

Quote:

Originally Posted by Paul M
Not really sure what you are saying here, but the instructions are correct.


This is the code cut straight from flashchat-vb-integration.txt (downloaded yesterday) It contradicts your earlier post in regards to having four brackets.

Just trying to provide feedback so apologies if its taken the wrong way.


Code:

Step 4.
in inc\classes\sendLoginInfo.php ;
Find ;
    $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;
    }
    }
Replace with ;
    $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->userid, ROLE_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;
      }
    }
    }


Cornolio 10-10-2005 07:33 AM

Quote:

Originally Posted by Paul M
Yes I did, I just didn't have time to start paging backwards to see what it related to.

The installation process is not something of mine, the only thing I can think of is if you have broken the CMS file somehow. The answer is the same as everyone else really (I'm going to add this to the main post I think) - if you want me to take a look then feel free to PM me your site address, an admin user and ftp access details, otherwise I cannot help you. The nature of 99% of problems means seeing the files etc is the only way to fix them.

Ok, i'll delete the chat folder and retry to install. if it won't work i'll PM you, thanks :)

Paul M 10-10-2005 09:54 AM

Quote:

Originally Posted by testpig
This is the code cut straight from flashchat-vb-integration.txt (downloaded yesterday) It contradicts your earlier post in regards to having four brackets.

I think you have mis-read what I actually said ;

Quote:

...... be very careful with this step as there is another close bracket below the code to be replaced - In other words, there should be four close brackets .....
Once you have edited the file there will be four brackets, like this ;

Code:

        // # Paul M # load permanant private rooms if Admin.
        if(ChatServer::userInRole($this->userid, ROLE_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;
[high]                        }
                }
        }
}[/high]

//Send user list to user

Quote:

Just trying to provide feedback so apologies if its taken the wrong way
It's not taken the wrong way, but nevertheless, IMO no action is needed.

testpig 10-10-2005 10:01 AM

No probs Paul.

I cut in the entire section from the previous post and the usernames and rooms are working fine. The only issue I'm battling with is the login / cookie problem.

It also has an interesting side effect in that the users in chat plugin is displaying the wrong usernames. I read a little in the applicable thread and they are interconnected but dont understand why users arent logging straight into chat when they have the "remember me" option ticked in the forum. Any thoughts?

Cheers,
Steve.

Paul M 10-10-2005 10:10 AM

Quote:

Originally Posted by testpig
It also has an interesting side effect in that the users in chat plugin is displaying the wrong usernames. I read a little in the applicable thread and they are interconnected but dont understand why users arent logging straight into chat when they have the "remember me" option ticked in the forum. Any thoughts?

Cheers,
Steve.

Not really, it's working fine for me so I would need access to your site so see what is happening.

testpig 10-10-2005 10:16 AM

Quote:

Originally Posted by Paul M
Not really, it's working fine for me so I would need access to your site so see what is happening.

Would you like a link, a trial login or access?

Paul M 10-10-2005 11:05 AM

Testpig - All mended for you. :)

testpig 10-10-2005 11:16 AM

Quote:

Originally Posted by Paul M
Testpig - All mended for you. :)

Thankyou lots Paul.

I'd like to list the problem here for other users, but basically I just had a bad day and screwed up a few area's. I'm quite amazed anyone could log in at all!

I guess the key is to go back over the modified area's and recheck!

Thanks again......

silurius 10-10-2005 06:58 PM

Thanks, Paul. Worked beautifully.

fringehead 10-11-2005 12:31 AM

Can someone give me a good navbar link for flashchat? When I log into my board, then click put flashchat in my browser it logs me in correctly. When I add a link to the navbar it makes me login with username and password... Can someone give me a good link to log in properly?

Thanks,

S


All times are GMT. The time now is 10:50 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.01627 seconds
  • Memory Usage 1,755KB
  • 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_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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