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)

Tulsa 10-08-2005 11:34 PM

Quote:

Originally Posted by Paul M
I would say ;

1. You're not using cookies (i.e the remember me option)

2. You have removed the permission for guests to view profiles on your forum.

(if you are using cookies, you don't need to login to flashchat, it's automatic).


I am using the remember me option and I don't have to login to chat. I have removed permission for guests to see users profiles but if we are logged into the message base at the same time we are in chat, shouldn't it still function based on our login status on the message base?

ozmazdaclub 10-08-2005 11:36 PM

Hi,

I have flashchat installed and the intergration oinstalled also but users are reporting that every so often flash chat freezes and they all have to exit. anyone have any idea why this is possibly happening..

Thanks

turblue 10-08-2005 11:36 PM

Hi there...

I am testing the intergration on my home server.

1: I have modified the files as described, and checked.
2: All files have been uploaded, and checked.

I still get a blank screen after I select vb3.5 intergration. Obviously I have done something wrong. I have two questions.

When altering the section for permissions on the vbulletin35CMS.php file, can you please explain what exactly goes here.?? Is this correct.?? Is the syntax correct.??

// Set Allowed groups
if (in_array( 2 ,$groups)) $userrole = Registered Users;
if (in_array( 7 ,$groups)) $userrole = Paid Member;

//Set Staff groups
if (in_array( 5 ,$groups)) $userrole = Administrators;
if (in_array( 6 ,$groups)) $userrole = ROLE_ADMIN;

//Set Banned groups
if (in_array( 8 ,$groups)) $userrole = Banned Users;
if (in_array( 9 ,$groups)) $userrole = ROLE_NOBODY;

Also, can you possibly just give some quick reasons as to why I return a blank screen after selecting the vb3.5 intergration option.??

Many thanks..!!!
BTW, I installed the chat without intergration, and it works just great.!! Now I need to intergrate.

Paul M 10-09-2005 12:05 AM

Quote:

Originally Posted by Tulsa
I am using the remember me option and I don't have to login to chat. I have removed permission for guests to see users profiles but if we are logged into the message base at the same time we are in chat, shouldn't it still function based on our login status on the message base?

No idea then, as long as you logged into vB first, using 'remember me' then it works fine for me in both IE & Firefox.

Paul M 10-09-2005 12:12 AM

Quote:

Originally Posted by turblue
When altering the section for permissions on the vbulletin35CMS.php file, can you please explain what exactly goes here.?? Is this correct.?? Is the syntax correct.??

Basically you have broken it by making those changes. They should be left (put back) as ROLE_USER, ROLE_ADMIN or ROLE_NOBODY. They are flashchat roles - and those lines basically map vb usergroup ids to flashchat roles. i.e usergroups 2 & 7 get allocated ROLE_USER, groups 5 & 6 get ROLE_ADMIN etc.


Quote:

Originally Posted by turblue
Also, can you possibly just give some quick reasons as to why I return a blank screen after selecting the vb3.5 intergration option

Yep, see above, it's probably because you have broken the CMS file.

testpig 10-09-2005 04:52 AM

Quote:

Originally Posted by Paul M
Received them okay. You appear to have made the error mentioned in this post ;

https://vborg.vbsupport.ru/showthrea...ets#post739785

i.e. you have a bracket missing.

Hi Paul....firstly just wanted to say thanks for the great hack! Very much appreciated.

I downloaded it from the FlashChat site and thought I should let you know that version still only has 3 brackets in the integration text file.....so probably causing some unnecessary grief. I've resolved it thanks to this thread.

One small question which is possibly related to a post above. Every time I enter the chat from the VB3.5 forum I need to login to chat again. There is no prompt to 'remember me" at the chat login so possibly I have a problem with a cookie path, or a setting somewhere". Any idea where I should look?

Thanks again,
Steve.
www.hemi6pack.com

fringehead 10-09-2005 07:13 AM

thanks man, nice work!

S

turblue 10-09-2005 07:54 AM

All good now, thank you Paul...!!!!

Cornolio 10-09-2005 09:03 AM

Quote:

Originally Posted by Paul M
Have you uploaded the CMS file ?

sure

p3gator 10-09-2005 02:29 PM

First off, Paul, thanks for taking the time to make this modification, top notch, and appreciate the time you took to post and answer questions, very helpful for all of us!

Regarding the NAVBAR.... and this post:

Quote:

Originally Posted by EasyTarget
Code:

<a href="http:blah.com/flashchat.php" target="_blank">FlashChat</a>
I think that will open the program in a new window.

I personally find the chat used more when ppl can see at the top of the page how many ppl are chatting, so I did this for now:

Code:

                <td class="vbmenu_control"><a href="chat/flashchat.php" target="_blank">Chat ($totalchatters)</a></td>
Anyways, probably a better way to do that, but at 0030 here in Japan, my ability to think beyond something that simple is nill...

edit... sigh, but that $totalchatters call only works on the forumhome page... oh well, was worth a shot anyways.

Once again, thanks for the mod Paul, good stuff.

John

TimBrown 10-09-2005 02:47 PM

Nevermind what I said earlier Paul, i figured it out!

I have one question. This isn't really related to this hack but where can I find the Flashchat commands that my moderators/admins can use to ban people, etc or if that's not how you ban people, how do you do it?

Tulsa 10-09-2005 02:49 PM

type /? in chat for a list of the admin commands. /?all for a complete list.

Itworx4me 10-09-2005 03:17 PM

Unclear as to where to upload the chat folder. Do you upload it to the root or the forum directory???

Thanks,
Itworx4me

Paul M 10-09-2005 07:16 PM

Quote:

Originally Posted by testpig
I downloaded it from the FlashChat site and thought I should let you know that version still only has 3 brackets in the integration text file.....so probably causing some unnecessary grief. I've resolved it thanks to this thread.

Not really sure what you are saying here, but the instructions are correct.

Quote:

Originally Posted by testpig
One small question which is possibly related to a post above. Every time I enter the chat from the VB3.5 forum I need to login to chat again. There is no prompt to 'remember me" at the chat login so possibly I have a problem with a cookie path, or a setting somewhere". Any idea where I should look?

You need to be logged into the forum using the remember me option, flashchat relies on your cookie for auto login.

TruckMuddr 10-09-2005 09:43 PM

I'm havin some problems here.

I'm getting the no permission page when I try to get into the chat or the admin page, But if I remove the code from step 3 I can get into chat. so I know I have permission issues, just not sure whats wrong.

This is what I have in my vbulletin35CMS.php file:
PHP Code:

// Set Allowed groups 
if (in_array,$groups)) $userrole ROLE_USER
 
//Set Staff groups 
if (in_array,$groups)) $userrole ROLE_ADMIN
if (
in_array,$groups)) $userrole ROLE_ADMIN
if (
in_array,$groups)) $userrole ROLE_ADMIN
 
//Set Banned groups 
if (in_array,$groups)) $userrole ROLE_NOBODY
if (
in_array,$groups)) $userrole ROLE_NOBODY

I'm the #1 user and Super Admin, so I should have permission. Anyone have any clue?!?

Cornolio 10-09-2005 09:51 PM

paul, you didn't see my reply ( https://vborg.vbsupport.ru/showpost....&postcount=209 )

please...

Paul M 10-09-2005 10:14 PM

Quote:

Originally Posted by Itworx4me
Unclear as to where to upload the chat folder. Do you upload it to the root or the forum directory???

From post one ;
Quote:

The supplied CMS file assumes that you are installing Flashchat in your forum root folder - this is the same folder as your usercp.php file and includes folder.

Paul M 10-09-2005 10:19 PM

Quote:

Originally Posted by TruckMuddr
I'm havin some problems here.

I'm getting the no permission page when I try to get into the chat or the admin page, But if I remove the code from step 3 I can get into chat. so I know I have permission issues, just not sure whats wrong.

I'm the #1 user and Super Admin, so I should have permission. Anyone have any clue?!?

What usergroups are you a member of (primary & secondary).

Paul M 10-09-2005 10:25 PM

Quote:

Originally Posted by Cornolio
paul, you didn't see my reply ( https://vborg.vbsupport.ru/showpost....&postcount=209 )

please...

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.

testpig 10-10-2005 07:00 AM

Quote:

Originally Posted by Paul M
You need to be logged into the forum using the remember me option, flashchat relies on your cookie for auto login.

Ok....to clarify....I have linked a button on the navbar of my forum. I have remember me set in the VB 3.5 forum......I click the button and chat launches in a new window......and I get the login box (previously the user just entered straight into chat). Once I re-enter my username and password I proceed to chat with no probs.

So its recognising the cookie but doesnt carry it from the forum to the chat?

I have the forum cookie set to remember me and dont have to log into the forum when I get there.

Cheers,

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

rza733 10-11-2005 03:01 AM

Everything seems to work great i created a moderator name logged in and the chat works fine.. The Problem I have is when my users click on the link it gives them a login screen and when they try to login its sayin incorrect user name and password... Now im under the impression that if your logged into the forum that the user will log right into chat... Any ideas where i screwed up.. Ive checked my file edits and everything seems to be fine..

thanks

Paul M 10-11-2005 03:26 AM

If the users have not ticked 'remember me' when they logged into the forum then they will get asked to login as flashchat needs to read the cookie for auto login (Why the hell did they change the default to not ticked in 3.5 - very bloody annoying).

If they get the login screen and then the incorrect message then you could have entered the wrong licence code in the CMS file (I have seen several with the customer number, not the licence code).

Or, of course, you could have screwed up ........

Paul M 10-11-2005 03:28 AM

Quote:

Originally Posted by fringehead
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

Are you opening a new window with your navbar link ? - if so see part one of the post above.

Cornolio 10-11-2005 01:38 PM

(it works now! :))

any way to change smilies? / which file contains images?

Paul M 10-11-2005 05:11 PM

Quote:

Originally Posted by Cornolio
any way to change smilies? / which file contains images?

Erm ... there are no smilies or images in this hack ??

Cornolio 10-11-2005 06:30 PM

of course, i was talkin' about flashchat, not about this hack :o

auz1111 10-12-2005 03:35 AM

I am able to login fine without getting the login box, but for some of you who keep getting the box...


Is there anyway to add some code in the navbar template that will send the username and password to flashchat similar to:


Code:

<td class="vbmenu_control"><a href="http://myforum.com/chat/flashchat.php?username=$chat['username']&password=$chat['password']&lang=en">Chat</a></td>
would you have to create a query to get the password and username in the navbar template, and is this even possible?

Paul M 10-12-2005 08:06 AM

No it's not possible, nor necessary.

Almost certainly those who are having to login are not using cookies, they need to tick "remember me" when they login to the forum (due to a bloody annoying change to the default behavior of vb 3.5).

ryozzo 10-12-2005 08:29 AM

HI Paul the problem is fixed...i have correctly the tableprefix of flashchat fc_ in flashchat :-)

LeeWicKeD 10-12-2005 04:16 PM

Hi there,

i have some question about FlashChat, before i decide to buy it or not:

1. is the chat very slow for dial-up / modem users?
2. can i ban users/usergroups?
3. is there an admin panel or something like this for the chat?
4. can i use the smilies from the forum or do i have to add the smilies new for the chat?
5. other important things i have to know?

thx

Lee


All times are GMT. The time now is 08:08 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.01995 seconds
  • Memory Usage 1,866KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_php_printable
  • (24)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
  • (40)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