View Full Version : Integration with vBulletin - Flashchat Integration for vB 3.6
Paul M
07-10-2006, 10:00 PM
This modification is no longer available or supported.
Flashchat integration with vBulletin 3.6
Note:
Standard Flashchat includes a version of my vBulletin integration as part of the Tufat supplied files - including a working vBulletin 3.6 CMS file. However, the standard files do not include Direct Usergroup Integration or other extra's like the WOL Display & Flashchat on a vBulletin page. This Integration Mod adds those features
Standard vB 3.6 integration features
* Authorised members are automatically logged in.
* Automatic login works even if a member has not ticked "remember me".
* All non authorised members are locked out (this and the above are based on usergroup membership).
* If enabled, Flashchat updates the users session location (displayed in various vBulletin online location displays such as WOL).
* Real ip detection when a proxy server is used (only if the proxy server passes on the details).
* Permanant, Private Rooms are loaded by Admins and Moderators (allows for Staff Rooms).
Extra's added by this modification
* Direct login to a room.
* The WOL will correctly display Flashchat as the location (not 'Unknown Location')
* Flashchat can be displayed embedded inside a 'standard' vBulletin Page (i.e. not full screen).
* Direct Usergroup Integration - a section is added to each usergroup in the ACP Usergroup Manager to set the Flashchat permissions for that group.
* The plugin will try to automatically add a link to Flashchat in your Quick Links or Navbar - this feature can be disabled if you wish.
* The automatic link can have a prefix path defined - useful if you use something like CMPS.
More notes:
* This integration is for Flashchat versions 4.7.x and above.
* The automatic link feature may fail if you have customised templates.
* For Flashchat inside a vBulletin page you need to link to .../misc.php?do=flashchat
* This modification does not add any links to Flashchat Administration in the ACP.
* You can set all members to login direct to particular room via the ACP.
* You can also add a room parameter to the url - i.e. .../misc.php?do=flashchat&room=3
* 3.56 onwards has extra code to cope with VBs CSRF protection, which interferes with profile linking (vb 3.6.10+).
The 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. Installation will fail if you do not do this.
Support: Please check the instructions, and make sure you have uploaded any files to the correct location - the vast majority of problems reported are due to an error made in editing or uploading files. If you are still stuck and want me to take a look then feel free to PM me your site address, an admin user, and ftp access details, without these I cannot help you. I will look when I have time.
Finally, I am not Tufat.com (http://www.tufat.com) or Flashchat Support - if you have questions about Flashchat, their forums are here (http://www.tufat.com/forum/index.php).
To use the this upgraded integration simply download and unzip the file, then follow the instructions in the text file. Once installed, the Flashchat userlevel options for each usergroup will appear in the ACP usergroup edit screens - editing of the CMS file will no longer be required.
History:
v3.01 : First version for vb 3.6 (not released).
v3.02 : Various code changes, first public release.
v3.02A : Minor bug fixes to WOL Display.
v3.02B : Dependancies updated for 3.6.0 Gold.
v3.03 : Minor fix to Get User for membergroupids, some SQL changes.
v3.03A : Updated for Version Checking.
v3.04 : Security (anti-hacking) code added (as supplied by Darren).
v3.05 : Usergroup settings moved to top of CMS file.
v3.06 : Fixed error message when accessing chat admin area.
v3.07 : Default role changed.
v3.08 : Minor bug fix to Avatar detection, login code changes, tidy up.
v3.50 : Beta release with direct usergroup integration.
v3.51 : First full release with direct usergroup integration.
v3.52 : No Access and Banned split into separate permissions.
v3.53 : Minor changes - includes disabling the utf8 functions if the F/C config option is false.
v3.53A : Internal updates, not released.
v3.53B : Internal updates, not released.
v3.53C : Add ability for member to do direct to a room (other than the Flashchat default).
v3.53D : Defaults on first install updated.
v3.54 : Option for link path prefix added.
v3.55 : Minor changes to install code only.
v3.56 : Code added to allow profile views when CSRF protection is active.
v3.57 : CSRF Code changed.
RMS-Chef
07-11-2006, 09:57 PM
Thanks.
One of the few I will need before considering a v3.6 upgrade.
PixelFx
07-12-2006, 06:08 AM
thank you :D
Snake
07-12-2006, 01:19 PM
Excellent! :D
loonytune15
07-12-2006, 02:22 PM
just what i was looking for.
Snake
07-12-2006, 04:59 PM
Yay you are just awesome! :D
mackers8923
07-12-2006, 10:06 PM
Installed and working fine on RC1.
yesfans
07-12-2006, 11:41 PM
is there a WHO IS IN CHAT for this and 3.6??
Paul M
07-12-2006, 11:52 PM
The 3.5 version of who is in the chat will work until a 3.6 version is released.
yesfans
07-12-2006, 11:54 PM
k, thanks!
reteep
07-13-2006, 07:49 AM
Cool!
Neal-UK
07-13-2006, 11:11 AM
Any chance of adding the mod for the "What's going on area"?
Superb, always used this and your others.
ndahiya
07-15-2006, 07:08 PM
Looks like a small bug...
in the WOL section, the chat path is shown as http://site/forums/chat/flashchat.php and the url actually links to http://site/forumschat/flashchat.php
the other prob is that the chat is actually installed in forums/FlashChat, not forums/chat
Also, in the vbulletin options, saw an options for "Flashchat height" but no other flashchat option ? wonder what this is about.
Paul M
07-16-2006, 03:11 AM
in the WOL section, the chat path is shown as http://site/forums/chat/flashchat.php and the url actually links to http://site/forumschat/flashchat.php
Thanks - that was a bug (missing '/') - but in fact the whole path was wrong as it should now link to /misc.php?do=flashchat. Fixed in 3.02A.
the other prob is that the chat is actually installed in forums/FlashChat, not forums/chatThen you have a very old installation, 'chat' has been the default for a year or more. You will probably find that you now get a 404 not found error - edit the phrase "flashchat_path" or rename your chat folder (note: if you have the 'who is chatting mod' it will use the path defined it that mods settings).
Also, in the vbulletin options, saw an options for "Flashchat height" but no other flashchat option ? wonder what this is about.The height of the frame.
ndahiya
07-16-2006, 04:01 AM
Then you have a very old installation, 'chat' has been the default for a year or more. You will probably find that you now get a 404 not found error - edit the phrase "flashchat_path" or rename your chat folder (note: if you have the 'who is chatting mod' it will use the path defined it that mods settings).
i have just continued to use the /FlashChat path. did not know where the variable was stored for WOL though. Thanks.
The height of the frame.
oh now i see... i still use flashchat in a separate window (using the direct path)...
noticed one prob using the inline version... when i close flashchat, it is opening a nested page (vbulletin wrapper around the whole forum page)...
Paul M
07-16-2006, 09:26 AM
noticed one prob using the inline version... when i close flashchat, it is opening a nested page (vbulletin wrapper around the whole forum page)...You have set flashchat to redirect back to your forum on close (in it's config.php).
hawgjaw
07-16-2006, 10:08 PM
With flashchat installed on 3.5.4 to be upgraded to RC1 will there be any difficulty incorporating Flashchat on vB Page or will this be stand alone, for the time being.
Also with my current version of flash chat 4.5.7 to integrated just make the adjustments as stated in your how to Paul M or is a fresh install required.
FYI flashchat 4.6.1beta has incorporated your vbulletin36CMS file although have not attempted the upgrade there.
Molhem
07-19-2006, 11:33 PM
i want ex plz
amnesia623
07-20-2006, 07:09 AM
sure - you can have my ex - you want the payments too? ;)
Paul M
07-20-2006, 08:56 AM
With flashchat installed on 3.5.4 to be upgraded to RC1 will there be any difficulty incorporating Flashchat on vB Page or will this be stand alone, for the time being.
Also with my current version of flash chat 4.5.7 to integrated just make the adjustments as stated in your how to Paul M or is a fresh install required.
FYI flashchat 4.6.1beta has incorporated your vbulletin36CMS file although have not attempted the upgrade there.
You don't need to re-install flashchat if it's already installed - Also it looks like both 4.5.7 and 4.6.1 now include the 3.6 option on install, so I will update the instructions later. I don't understand your first question.
utw-Mephisto
07-23-2006, 11:50 PM
version 4.5.7 has now build in support for vb 3.6 .. Just installed myself ...
utw-Mephisto
07-23-2006, 11:51 PM
(..) it looks like both 4.5.7 and 4.6.1 now include the 3.6 option on install (..)
It has indeed .. just downloaded 4.5.7 and installed on vb 3.6 RC2 ... g8z is fast ... well ... sometimes .. sometimes it seems he is vanished ..
Wildthinks
07-24-2006, 11:59 AM
Hi,
last friday was my board hacked and database and alle files (includes all files under htdocs) are deleted.
First look at the hacking:
Removed by staff
I think it's a good idea to remove sharefile.php or the chat.
I removed the chat!
Wt
Christine
07-25-2006, 12:49 AM
Wildthinks,
You need to PM that to Paul and then either remove the code or change it to 'code' or 'php' tags so that it isn't visible.
Digital2
07-27-2006, 06:49 PM
To prevent new members from using the chat I created a new primary usergroup based off of the Registered Users group. I called this group "Senior Members". Senior members is group id#15. To be promoted to group 15 you must have 100 posts. On the vBulletin side the promotion works fine. I then set the CMS file as follows:
'users' => array( 15 ) , // vBulletin usergroups allowed standard access to chat.
'mods' => array( 5,7 ) , // vBulletin usergroups allowed access as chat moderators.
'admin' => array( 6 ) , // vBulletin usergroups allowed access as chat administrators.
'banned' => array( 1,8,3,14,2 ) , // vBulletin usergroups banned from accessing the chat.
'customer' => array( 0 ) , // vBulletin usergroups allowed access as customers (Live support mode only).
Okay since group ID#2 is registered users, they should no longer have access to the chat until they are promoted to Group 15...But they do. Any idea why all of this isn't working right together?
Digital2
07-27-2006, 09:01 PM
Hi,
last friday was my board hacked and database and alle files (includes all files under htdocs) are deleted.
First look at the hacking:
Removed by staff
I think it's a good idea to remove sharefile.php or the chat.
I removed the chat!
Wt
Was it determined whether a hole in flashchat integration was responsible this exploit or not? Until I hear otherwise, I will have to disable this product.
Paul M
07-28-2006, 02:11 PM
There is no hole in flashchat integration, that exploit was a hole in older versions of flashchat itself.
Digital2
07-28-2006, 11:38 PM
aah ok thanks for letting me know. I'll reinstall the application then. I still have issues with the usergroups though.
P.Jackson
07-29-2006, 09:14 AM
is flashchat a full addon irc? or can it connect to normal irc chans like quakenet?
Paul M
07-29-2006, 11:20 AM
is flashchat a full addon irc? or can it connect to normal irc chans like quakenet?No, it is not an IRC client.
Digital2
07-29-2006, 12:39 PM
Paul, any idea why my banned usergroups were able to just go right into my chatroom? I installed the 3.6.0 update from 3.5.4 and that was when that started. I admit that I didn't do much else though. I might be better to install the latest versions of the flashchat software too.
Paul M
07-29-2006, 01:10 PM
Did you edit the CMS file for your usergroups ?
Digital2
07-29-2006, 09:24 PM
Yes I did. I am doing a clean install now of the beta version of flashchat. I will then install the 3.6.0 product and edit the CMS usergroups and see where I stand. I had a mixture of 3.5.4 and 3.6.0 things on there before so I decided to start over from scratch.
utw-Mephisto
07-30-2006, 10:23 PM
Looks great also with vba
Demo (http://www.ut2007world.com/flashchat.html)
Digital2
07-31-2006, 12:40 AM
Here we go, Paul. I reinstalled everything, set the permissions for users with 100 posts to be promoted to group id#15 and gave that group access to the chat. It worked like a charm. But then members of group id#2 began grumbling because they couldn't chat anymore so I re-added group id@2 to the allowed list alongside 15. Now, group 2 *still* can't access the chat. This makes no sense at all. All I did was restored the default configuration... I even deleted group 15 altogether and just have id#2 there now. Now no one but admins and mods can get in. :(
Digital2
07-31-2006, 12:46 AM
Did you edit the CMS file for your usergroups ?
The answer to this one is yes.
Right now it is set as such and no member of group ID#2 (registered users) can chat. It makes no sense at all...
'users' => array( 2 ) , // Usergroups allowed standard access to chat.
'mods' => array( 5,7 ) , // Usergroups allowed access as chat moderators.
'admin' => array( 6 ) , // Usergroups allowed access as chat administrators.
'banned' => array( 2,1,8 ) , // Usergroups banned from accessing the chat.
'customer' => array( 0 ) , // Usergroups allowed access as customers (Live support mode only).
Ok I'm an idiot..2 was also in the banned group. It's fixed now...
Digital2
07-31-2006, 01:02 AM
Now I am total beside myself... It *still* isn't allowing usergroup #2...
'users' => array( 2 ) , // Usergroups allowed standard access to chat.
'mods' => array( 5,7 ) , // Usergroups allowed access as chat moderators.
'admin' => array( 6 ) , // Usergroups allowed access as chat administrators.
'banned' => array( 1,8 ) , // Usergroups banned from accessing the chat.
'customer' => array( 0 ) , // Usergroups allowed access as customers (Live support mode only).
This time it has no excuse. The macromedia settings manager won't load for me so I have no idea if this is an issue with the old flash cookies. I need to find an application that I can install to delete these cookies myself. Depending on the Adobe site is annoying.
Update: Deleted flash cookies and regular cookies. No luck still. Am I going to have to reinstall the entire thing to fix this?
Paul M
07-31-2006, 09:50 AM
From the first post :)
If you are still stuck and want me to take a look then feel free to PM me your site address, an admin user, and ftp access details, without these I cannot help you.
Digital2
07-31-2006, 12:47 PM
I'm not sure what you can do Paul. This is not the fault of your mod. I re-uploaded all of the original flashchat files in a clean directory and ran the installer again and the problem vanished. I did not uninstall your mod during all of this. Just reinstalled the original files.
If I try undoing any custom permisssions a total wipe and reinstall is required to correct the issue. If this happens again I will PM you my login and ftp info and let you have a peek. In fact, I will anyhow if you want to try to find the issue. I am confident that it can be duplicated.
butty
08-07-2006, 04:14 AM
hi there. im running flashchat 2.60 for vbulletin 3.5
im going to upgrade to 3.6.0 soon but wonderd what i do to upgrade this plugin. is it jus a case of upping the plugin and overwriting the other one? had a look round for upgrade instructions but cant find none
cheers!
proxus
08-07-2006, 04:40 AM
Looks great also with vba
Demo (http://www.ut2007world.com/flashchat.html)
Thats almost exactly what i'm trying to achieve. Any chance of posting the module code for that centre block? I've got everything else how i want it in vba except the center. Thanks
cherylferraro
08-07-2006, 05:21 AM
Thats almost exactly what i'm trying to achieve. Any chance of posting the module code for that centre block? I've got everything else how i want it in vba except the center. Thanks
I use this method and it works very well:
http://www.vbadvanced.com/forum/showthread.php?t=15880&highlight=flashchat+template
proxus
08-07-2006, 06:15 AM
I use this method and it works very well:
http://www.vbadvanced.com/forum/showthread.php?t=15880&highlight=flashchat+template
Damn, fast response. Thanks. Works great !
cavyspirit
08-11-2006, 08:29 AM
I'm still not sure I have this config'd right.
When I logout, it goes back to the flashchat login screen and I can't 'X' out of it! I have to click on the forum home page to get out.
Also, I'm still confused on how to set the admin user. I only seem to be able to get to from calling up /admin, not from just logging in as an admin.
Paul M
08-11-2006, 09:02 AM
When I logout, it goes back to the flashchat login screen and I can't 'X' out of it! I have to click on the forum home page to get out.That's correct.
Also, I'm still confused on how to set the admin user. I only seem to be able to get to from calling up /admin, not from just logging in as an admin.Sorry, I don't understand what you mean by "able to get to from calling up /admin".
cavyspirit
08-11-2006, 03:17 PM
Sorry, I was up late last night.
I meant that the FlashChat documentation implies that if you are an administrator, which seems to be set somewhere in the config, that when you logon to FlashChat you will get access to the FlashChat admin area.
cavyspirit
08-11-2006, 03:21 PM
That's correct.
Hmmmm. That seems pretty weird. So, I have to explain to members that that's the way it's supposed to work. So, basically, once they open a flashchat session, using the upper-right hand corner "X" to exit out of the application doesn't work. They have to reselect the forum on the top left of the screen. Do I have that right?
cavyspirit
08-11-2006, 03:25 PM
* Permanant, Private Rooms are loaded by Admins and Moderators (allows for Staff Rooms).
How do I do this? Are there any configuration setting in the vB admin CP? I can't find any. I just want to make sure I'm not missing something.
cavyspirit
08-11-2006, 03:32 PM
Figured out the staff rooms.
cavyspirit
08-13-2006, 07:43 PM
btw, I figured out how to have the logout process take you straight back to the home page of the forum. In the config file, I made these changes:
'showLogoutWindow' => false, // if false, then use only the ....src=logout.php method, but do not use the popup method at all
and
//Logout behavior
'logout' => array(
'close' => true, // if true, then FlashChat window is closed upon logout
'redirect' => true, // redirectURL must be a valid URL
'url' => 'http://www.yoursite.com/forum', // 'redirect' must be set to true for this to work
'window' => '_parent', // the window to open into. possible values: _blank, _self, _parent, or a named window
),
Paul M
08-13-2006, 07:46 PM
Yes, but if you are using this mod as it was intended (i.e. not fullscreen flashchat, but flashchat within a vb page) then that will give you a page within a page.
cavyspirit
08-13-2006, 07:50 PM
That is exactly how I am using it, as if you were and are in vB. That's why you need the _parent option. That's what did the trick. It automatically shuts down the login window and takes you to the forum home page. It works for me.
Paul M
08-13-2006, 08:08 PM
I see, in that case, a nice little trick. Thanks.
For anyone wondering, this is a setting in the Flashchat config file, not vbulletin, and therefore not something I can add, you will need to manually edit the file.
cavyspirit
08-13-2006, 08:16 PM
No problem. Thank YOU!
Now I'm struggling figuring out to get my custom themes to work. Not so easy. It's very, very fussy. And factor in the flash cookie equivalents.
And my 1024x768 graphics seemed to get chopped off rather than resized in the vB smaller area.
Can't figure out why my one custom graphic doesn't work initially unless you click in the hot background area like below the room list. And that is AFTER you click "Press Space bar or enter to activate control."
cavyspirit
08-14-2006, 12:27 AM
Lessons learned the hard way:
Definitely install the ACTIVATE FLASH script on this page: http://www.tufat.com/resources2.htm
It works perfectly with 4.5.7 AND vB integration. This WILL remove the annoying Press Space Bar or Enter to Activate message in IE.
Secondly, on creating your own themes, in config do NOT put your version of:
require_once(INC_DIR . 'themes/mytheme.php');
at the top of the others. Put it at the bottom. Mine and yours is not to wonder why.
Also, if you do like I did and pick a theme to copy and change, be sure this setting is true
'showBackgroundImagesOnLogin' => true,
in the php file of your theme.
Now it's on to try to figure out the whacky world of bots!
cavyspirit
08-14-2006, 04:05 AM
I would really prefer to have my WOL at the top of my forum. I went to take a look at it and realized you must have set it with a hook or something because it's not in the FORUMHOME template.
How can I move it?
Thanks.
Simms
08-14-2006, 03:10 PM
Looking for some clarification on something...
Is the Who's in Chat included in this package or not? (Or am I confusing "WOL Display" with something else?)
I was thinking that it was included here, but couldn't get it to show up. So I installed the 3.5.5 version of it, and now I see the display, as well as all the options in the vB Admin options. So technically, it's working...except the box appears twice, and I'm not sure why.
On a related note, is it possible to have a direct link to the pop-up login version? Anybody know what URL string I'd use for that? I've dug through the code and can't figure it out.
Paul M
08-14-2006, 03:18 PM
Who's in the Chat is not part of this - it's a seperate modification (there is a 3.6 version).
Simms
08-14-2006, 03:21 PM
Yeah, just noticed that. :) (It was farther down the list of search results, and I didn't bother looking past the 3.5.5 one.)
cavyspirit
08-14-2006, 07:09 PM
Sorry, my mistake. And actually the 3.5 extension to the WIC worked great for me. So, I have everything I need!! I'm soooo happy!
Reeftanksonline
08-15-2006, 09:08 PM
How do I change the intergraded page hight so that the chat window is shorter so it fits better to the look of my site? http://www.photochimper.com/forum/misc.php?do=flashchat
Paul M
08-15-2006, 10:06 PM
vBulletin Options > General Settings > FlashChat Height
BETIServices
08-15-2006, 10:55 PM
btw, I figured out how to have the logout process take you straight back to the home page of the forum. In the config file, I made these changes:
'showLogoutWindow' => false, // if false, then use only the ....src=logout.php method, but do not use the popup method at all
and
//Logout behavior
'logout' => array(
'close' => true, // if true, then FlashChat window is closed upon logout
'redirect' => true, // redirectURL must be a valid URL
'url' => 'http://www.yoursite.com/forum', // 'redirect' must be set to true for this to work
'window' => '_parent', // the window to open into. possible values: _blank, _self, _parent, or a named window
),
Wow, Really a life saver.... Thanks you!
Perfect!
It worked and I love it, thanks for the info.
Reeftanksonline
08-16-2006, 08:31 AM
vBulletin Options > General Settings > FlashChat Height
thank you!
jw00dy
08-17-2006, 02:36 AM
Thank you!
*installed*
dt-pain
08-17-2006, 11:36 PM
i have no vbchat in my admin...What am i looking for? Thanks
mdvaldosta
08-21-2006, 09:49 PM
The flashchat link didn't show up in my quicklinks. What should I do?
Paul M
08-21-2006, 10:16 PM
i have no vbchat in my admin...What am i looking for? ThanksThis isn't vbchat, it does not add anything to the ACP.
The flashchat link didn't show up in my quicklinks. What should I do?Add yourself a link manually.
Jaxel
08-26-2006, 05:07 PM
config.php AVATAR settings dont work in VB36
//Avatar settings
'avatars' => array(
'mod_only' => 'smi_admin,smi_moderator',
// for standard users (& customers, if using support mode)
'user' => array(
'male' => array(
'mainchat' => array(
'default_value' => 'smi_male', // a smilie code
'default_state' => false, // true = checked/on by default
'allow_override' => false, // if false, cannot be changed (combo box is disabled)
),
'room' => array(
'default_value' => 'smi_male', // a smilie code
'default_state' => true, // true = checked/on by default
'allow_override' => false, // if false, cannot be changed (combo box is disabled)
),
),
'female' => array(
'mainchat' => array(
'default_value' => 'smi_female', // a smilie code
'default_state' => false, // true = checked/on by default
'allow_override' => false, // if false, cannot be changed (combo box is disabled)
),
'room' => array(
'default_value' => 'smi_female', // a smilie code
'default_state' => true, // true = checked/on by default
'allow_override' => false, // if false, cannot be changed (combo box is disabled)
),
),
),
// for administrators
'admin' => array(
'male' => array(
'mainchat' => array(
'default_value' => 'smi_admin', // a smilie code
'default_state' => true, // true = checked/on by default
'allow_override' => false, // if false, cannot be changed (combo box is disabled)
),
'room' => array(
'default_value' => 'smi_admin', // a smilie code
'default_state' => true, // true = checked/on by default
'allow_override' => false, // if false, cannot be changed (combo box is disabled)
),
),
'female' => array(
'mainchat' => array(
'default_value' => 'smi_admin', // a smilie code
'default_state' => true, // true = checked/on by default
'allow_override' => false, // if false, cannot be changed (combo box is disabled)
),
'room' => array(
'default_value' => 'smi_admin', // a smilie code
'default_state' => true, // true = checked/on by default
'allow_override' => false, // if false, cannot be changed (combo box is disabled)
),
),
),
// for moderators
'moderator' => array(
'male' => array(
'mainchat' => array(
'default_value' => 'smi_moderator', // a smilie code
'default_state' => true, // true = checked/on by default
'allow_override' => false, // if false, cannot be changed (combo box is disabled)
),
'room' => array(
'default_value' => 'smi_moderator', // a smilie code
'default_state' => true, // true = checked/on by default
'allow_override' => false, // if false, cannot be changed (combo box is disabled)
),
),
'female' => array(
'mainchat' => array(
'default_value' => 'smi_moderator', // a smilie code
'default_state' => true, // true = checked/on by default
'allow_override' => false, // if false, cannot be changed (combo box is disabled)
),
'room' => array(
'default_value' => 'smi_moderator', // a smilie code
'default_state' => true, // true = checked/on by default
'allow_override' => false, // if false, cannot be changed (combo box is disabled)
),
),
),
),
According to these settings... all users should be forced to specific avatars and be unable to change them. Including admins. As an admin, it works, I am forced to a specific avatar and unable to change it. However, normal users still have the ability to change their avatars. Its just not working; I had these settings up for a few days now and users are still able to change their chat avatars.
NeitherSparky
08-27-2006, 03:55 AM
I've installed this and will assume its working unless I find it isn't, lol. Thanks!
Dilldogs
08-27-2006, 04:21 AM
Where can I get flashchat from? I have never used it.
NeitherSparky
08-27-2006, 05:11 AM
Where can I get flashchat from? I have never used it.
http://tufat.com/s_flash_chat_chatroom.htm (http://tufat.com/s_flash_chat_chatroom.htm)
I've only just installed it and am still playing with it.
Adramelech
08-30-2006, 09:18 AM
Installed.. works.. Thanks!
PS. When I get home from work I will then add the Who's in Chat.. can't wait.. :)
Basit
08-31-2006, 05:32 PM
I installed it and installed it over a dozen times but for some reasons it is not working with me (the integration part with VB 3.6 only).
I installed it on http://www.hallagulla.com/vb3/chat folder.
Installed the add-on as well but it doesn't login to chat for some reason. I sent a PM to you @ Paul with details and hope to get it resolved as I gave up. :(
Regards,
Jaxel
08-31-2006, 07:37 PM
No one has answered my question about avatar settings yet...
Paul M
08-31-2006, 10:23 PM
No one has answered my question about avatar settings yet...That's because it's a question about flashchat functionality, not this mod.
As it says in the first post ;
Finally, I am not Tufat.com (http://www.tufat.com) nor anything to do with the Flashchat (http://www.tufat.com/s_flash_chat_chatroom.htm) product - if you have questions about Flashchat in general, their forums are here (http://www.tufat.com/forum/index.php).
Jaxel
09-01-2006, 03:23 PM
Hmm... I asked this previously on the Tufat forums and they had no answer for me... So I assumed it had something to do with the way the CMS file integrates users into the 'user' category.
PamelaE
09-02-2006, 08:29 AM
I would hold out on using this and it should raised on this thread that there is a massive security hole with this version. I am using the latest version which resulted in a hack on my forums. VB.com have it as an annoucement now.
I would wait until the next version with a fix is announced.
Paul M
09-02-2006, 08:45 AM
Excuse me ? - you might want to word that a little better - There are no holes in this modification, the recent hole in Flashchat itself is due to a CMS file for another system, and the offending file can simply be deleted (http://www.vbulletin.com/forum/showpost.php?p=1202960).
PamelaE
09-02-2006, 11:34 PM
Ok apologies. Im only going by the discussion on Tufat where they claim not to know whats causing the hole and looking for access logs to fix it.
TranceCan
09-03-2006, 06:24 PM
What is the proper procedure for upgrading from 3.03 to 3.04?
Smitty
09-03-2006, 07:49 PM
Ok apologies. Im only going by the discussion on Tufat where they claim not to know whats causing the hole and looking for access logs to fix it.
They've acknowledged it and the cause is known as a specific file that 99.9% of the users don't need and can delete.
Paul M
09-03-2006, 08:05 PM
What is the proper procedure for upgrading from 3.03 to 3.04?Import the product and replace the CMS file.
tobybird
09-03-2006, 08:24 PM
A breeze to install. Thanks so much!
jw00dy
09-03-2006, 11:18 PM
For those that haven't checked, they have released 4.6.2 to fix the problem.
Their are some changes he made to the vbulletin360.php file to note at the very top.
Is their anything we should do with the one we obtained from here? Or should we just use his?
Paul M
09-04-2006, 12:38 AM
Technically you don't need to do anything, he mass updated the CMS files even though only one was affected, I have however added the little snippet of code to all the vb CMS file releases so that it will be included in any future updates (hence why this was updated to 3.04 today).
MaLTRaiN
09-04-2006, 12:51 AM
You all should read this:
http://www.vbulletin.com/forum/showthread.php?t=198902
Very serious problem with flashchat...
Mark.B
09-04-2006, 02:11 AM
You all should read this:
http://www.vbulletin.com/forum/showthread.php?t=198902
Very serious problem with flashchat...
Yes, that's what the last few posts are talking about.
An updated version of Flashchat has been released which cures this.
trilOByte
09-04-2006, 11:25 AM
Excuse me ? - you might want to word that a little better - There are no holes in this modification, the recent hole in Flashchat itself is due to a CMS file for another system, and the offending file can simply be deleted (http://www.vbulletin.com/forum/showpost.php?p=1202960).
Sorry, but that's a bit like saying "the operation was a complete success, unfortunately the patient died".
I get regular script updates from tufat, I just checked my emails and the last was on 20 August. I have read that there was a securityfocus exploit was published for this on June 16. I had no notification of this issue. I know that it's "not the fault of this mod" directly, but if I hadnt of had it installed, I wouldnt of spent 4 hours last night going through my site trying to repair the damage done by somne little idiot who exploited this.
I think I'll wait a good while before re-installing flashchat.
soletrader
09-04-2006, 12:28 PM
I installed flash chat, edited the php files and uploaded the product. But I get no changes. Is there an option in the admincp?
Or is this automatic? What am I missing here?
Paul M
09-04-2006, 01:49 PM
Sorry, but that's a bit like saying "the operation was a complete success, unfortunately the patient died".Um .... :confused:
I have read that there was a securityfocus exploit was published for this on June 16. I had no notification of this issue. The supposed exploit posted on June 16th refers to a file that doesn't exist in the Tufat version of Flashchat, afaik, it actually belonged to another chat product, also called flashchat (it's not a unique name). :cool:
I know that it's "not the fault of this mod" directly, but if I hadnt of had it installed, I wouldnt of spent 4 hours last night going through my site trying to repair the damage done by somne little idiot who exploited this.It's not the fault of this mod at all, please get that fact very clear. It was the fault of Flashchat itself, installing this made no difference. I'm sorry you spent 4 hours cleaning up your damage, but I don't really appreciate you trying to take out your frustration on me, or my integration mod(s). :alien:
I think I'll wait a good while before re-installing flashchat.That's your choice, and makes no difference to me :)
I do wonder if you will uninstall vbulletin next time a security hole is found in it ;)
trilOByte
09-04-2006, 06:56 PM
It's not the fault of this mod at all, please get that fact very clear. It was the fault of Flashchat itself, installing this made no difference. I'm sorry you spent 4 hours cleaning up your damage, but I don't really appreciate you trying to take out your frustration on me, or my integration mod(s). :alien:
I'm not looking for someone to blame.
..and yes, if vBulletin was so insecure that something like this happened, i would indeed review my choice of forum software. That has never happened though, partly due to the extremely vigilant and speedy security alerts which drop into my mailbox from time to time.
BTW, just FYI - the hackers came again tonight, it would seem that they have left something on the server, some shell script or something, which still gives them access even after flashchat has been completely removed. My host is trying to figure out what/where.
Smitty
09-04-2006, 07:17 PM
this mod was used as the way in.
It was NOT the integration mod. It was a Flashchat CMS for aedating which, if you understood what a CMS is, was not necessary for vBulletin integration. Had you understood the Flashchat install, and how Flashchat worked, you would not have left the CMSs for all the other programs there to begin with. If you read the install notes with Flashchat (and here I think), it was specific that only the vBulleting CMS was needed. I deleted the other CMSes after the install as 'foreign' files not needed for Flashchat to run and, of course, I didn't get hacked.
If you don't understand what files you're installing, you should get someone who does to install the program you want installed for you.
trilOByte
09-04-2006, 09:36 PM
It was NOT the integration mod. It was a Flashchat CMS for aedating which, if you understood what a CMS is, was not necessary for vBulletin integration. Had you understood the Flashchat install, and how Flashchat worked, you would not have left the CMSs for all the other programs there to begin with. If you read the install notes with Flashchat (and here I think), it was specific that only the vBulleting CMS was needed. I deleted the other CMSes after the install as 'foreign' files not needed for Flashchat to run and, of course, I didn't get hacked.
If you don't understand what files you're installing, you should get someone who does to install the program you want installed for you.
Oh, yeah sorry, that's right it's my fault. Silly me. :rolleyes:
Paul M
09-05-2006, 01:59 AM
@trilOByte, I have edited the inaccuracy from your previous post, despite it being made clear that this mod in no way contributed, your post inferred it was.
@everyone, I'm not prepared to allow this to flare up into a series of personal arguments, everyone please move on, any further off topic/argumentative posts are liable to be removed. Thanks.
trilOByte
09-05-2006, 09:23 AM
@trilOByte, I have edited the inaccuracy from your previous post, despite it being made clear that this mod in no way contributed, your post inferred it was..
Paul, I think you misunderstand me. Your mod has been excellent for my site, it has worked well and I can see no flaws in it. I do totally understand that your mod and tufats script are two different things.
That's not my point.
From my point of view, they come as a package. Like many others, I installed tufats script because of your excellent mod but your mod does need tufat's script to work. I'm not blaming anyone and I'm not looking for someone to moan at. But the fact remains that the package on offer here (your totally blameless mod + tufats flawed script), had or has a stinking great security hole in it.
Now I'm not sure if simply removing one file from the CMS's is going to plug the hole - I hope it does. But having spent the last 2 days running round chasing hackers off my server, I'm not inclined to place too much faith in that.
I hope the newer package from tufat is secure. If it proves to be in time, I will probably put you excellent mod back on my site, but for now, it (tufats script) consitutes too much of a risk. There are mixed messages on the forums. I've read in one thread that the kiddies were logged running a search for other files in the tufat installation. I dont know why, or if they are vulnerable, but the possibility that they might be, seems to exist.
trilOByte
09-05-2006, 09:32 AM
Let me put it another way.
Can you guarantee that tufat's script is now secure?
If not, is it prudent to endorse it's use?
Smitty
09-05-2006, 09:59 AM
if simply removing one file from the CMS's is going to plug the hole
There are a couple of aedating files to remove to be sure, not just one file:
aedating4CMS.php
aedatingCMS2.php
aedatingCMS.php
And you may as well remove all the other cms files (they are unnecesary) except the vBulletin cms for your vBulletin version.
The hole was plugged in 4.6.2.
trilOByte
09-05-2006, 10:45 AM
There are a couple of aedating files to remove to be sure, not just one file:
aedating4CMS.php
aedatingCMS2.php
aedatingCMS.php
And you may as well remove all the other cms files (they are unnecesary) except the vBulletin cms for your vBulletin version.
The hole was plugged in 4.6.2.
Look here...
http://www.zone-h.org/component/option,com_attacks/Itemid,45/filter_defacer,CyberLord/page,2
Smitty
09-05-2006, 10:59 AM
And here: http://forum.tufat.com/showthread.php?t=24428
MThornback
09-05-2006, 01:31 PM
Paul,
Can you think of a reason why flashchat wouldn't let me log in to any area (admin or chat) itself after I log out and try to log back in? I logged out yesterday, and now all I get is a white screen on the flashchat on misc.php and trying to use the flashchat file in the /chat/ folder.
Paul M
09-05-2006, 02:40 PM
Can you guarantee that tufat's script is now secure?Of course I can't, anymore than I could guarantee any product is secure (inc vbulletin).
If not, is it prudent to endorse it's use?See above. providing this (or any) mod is not endosing anything, just providing extra for those who chose to use something.
Paul M
09-05-2006, 02:42 PM
Paul,
Can you think of a reason why flashchat wouldn't let me log in to any area (admin or chat) itself after I log out and try to log back in? I logged out yesterday, and now all I get is a white screen on the flashchat on misc.php and trying to use the flashchat file in the /chat/ folder.
That usually means an error is occuring. By default flashchat supresses the displaying of php error messages (not very helpful, I disable that).
soletrader
09-05-2006, 09:03 PM
No matter what I do I can not get flashchat to run inside my vbulletin. Can anyone please help? Thank you
Paul M
09-05-2006, 09:59 PM
No matter what I do I can not get flashchat to run inside my vbulletin. Can anyone please help? Thank youFrom the main post ;
Support: Please check any file edits carefully, and make sure you have uploaded any edited files to the correct location - the vast majority of problems reported are due to an error made in editing or uploading a file. If you are still stuck and want me to take a look then feel free to PM me your site address, an admin user, and ftp access details, without these I cannot help you. I will look when I have time.
Zombie-F
09-06-2006, 12:17 AM
I've managed to change the "Flashchat on a vb page" link back to the "old" flashchat link in the Who's Chatting box, but I can't seem to find where to make the change to change it in the "Quick Links" in the navbar. My users don't seem to like it displayed in the vBulletin window, so I'd just like to eliminate all links to that. Where can I find where to change this link? I've searched my templates and my phrases to no avail.
Thank you for the great hack.
Paul M
09-06-2006, 12:26 AM
It's code within the plugins (1 & 3).
popowich
09-06-2006, 03:25 PM
v3.04 : Security (anti-hacking) code added (as supplied by Darren).
Hello,
Was an e-mail sent to all members who clicked "installed" when this version was released?
Is that even possible for a project owner to do?
I am not bashing anyone involved with this specific project,
but I am becoming increasingly annoyed with the lack of notifications for product updates generally speaking at vbulletin.org.
I'm an open source person. I'm fine with the way free software and systems work.
Proper notifications as new versions and/or patches are made available, especially security releases, would be great.
-Raymond
Paul M
09-06-2006, 07:13 PM
Notifications are only sent by me if it's necessary to upgrade, in this case it isn't.
popowich
09-06-2006, 07:16 PM
Notifications are only sent by me if it's necessary to upgrade, in this case it isn't.
OK, understood, thank you for the reply.
-Raymond
andreamarucci
09-07-2006, 12:52 PM
Where can I see a demo of the FC VB integration?
MThornback
09-07-2006, 12:55 PM
That usually means an error is occuring. By default flashchat supresses the displaying of php error messages (not very helpful, I disable that).
Save me some time and tell me which file to look in? :cross-eyed:
Paul M
09-07-2006, 06:11 PM
The top of common.php
Metal-R-US
09-08-2006, 10:26 AM
I find the the url showing up in WOL rather ugly looking so I edited the online_location_unknown hook to make it just say FlashChat. Perhaps an idea for a next update?
adwade
09-09-2006, 04:10 AM
And here: http://forum.tufat.com/showthread.php?t=24428
In the thread referenced above, it mentions this file located in: /public_html/chat/getxml.php being a security risk. They go on to say "This is the 2nd file found from FlashChat to contain vulnerabilities.".
Yet I've not seen any discussion of it here, like the (un-needed) files in the CMS directory I just got rid of. So it is needed for Flashchat functionality, or can it be removed?
adwade
09-09-2006, 04:43 AM
at http://forum.tufat.com/showthread.php?t=24428&page=10
Another point to note, the hole in the aedating scripts could only be exploited if you had register_globals set to "on" in PHP - this is a security problem in itself, and anyone who can should turn that option off in their php.ini
For those of us not in the know about such things, where is the php.ini file you referred to?
Paul M
09-09-2006, 05:06 AM
In the thread referenced above, it mentions this file located in: /public_html/chat/getxml.php being a security risk. They go on to say "This is the 2nd file found from FlashChat to contain vulnerabilities.".
Yet I've not seen any discussion of it here, like the (un-needed) files in the CMS directory I just got rid of. So it is needed for Flashchat functionality, or can it be removed?
There are no known vulnerabilities in getxml.php, if you delete it, Flashchat will cease to function.
Paul M
09-09-2006, 05:09 AM
For those of us not in the know about such things, where is the php.ini file you referred to?It's a system file, if you don't know where/what it is then you're probably best leaving it alone and getting help from someone who does, otherwise you may break your php.
BETIServices
09-09-2006, 05:11 AM
is been 3 days that my forum was hacked and now I started from scratch after 3 weeks of setting up the site, I will advise to get the flash chat a boot out as my self will not use it again. I had to paid a security company to secure the servers and network and a backup system on the way...
what a wayto learn ...
Paul M
09-09-2006, 07:52 AM
Sorry but this is not the place to comment on Flashchat, they have their own forums for that.
tobybird
09-09-2006, 11:19 AM
Paul, any issues with your mod and the latest release of FlashChat? Just wanted to check here first before I upgraded. Thanks!
eta: ah nevermind. there's a security fix in the new version. I'll post if there are any issues...
mikeinjersey
09-09-2006, 03:49 PM
Im confused. do we have to install FlashChat completely seperate from this mod? If so where do we download the correct, latest version of flashchat?
because in your readme file it says
Install Flashchat, tick the option to integrate with a CMS
Maybe you should put in your readme file how we can obtain flashchat or find out if its installed already.
tobybird
09-09-2006, 05:09 PM
Just an fyi... everything is working fine with 4.7.0
Im confused. do we have to install FlashChat completely seperate from this mod? If so where do we download the correct, latest version of flashchat?
because in your readme file it says
Maybe you should put in your readme file how we can obtain flashchat or find out if its installed already.
Take a look at the instructions above: :)
Finally, I am not Tufat.com (http://www.tufat.com) nor anything to do with the Flashchat ('http://www.tufat.com/s_flash_chat_chatroom.htm") product - if you have questions about Flashchat in general, their forums are here (http://www.tufat.com/forum/index.php)
Paul M
09-09-2006, 05:17 PM
There's a 4.7.0 ?
/me Goes off to look .......
trilOByte
09-10-2006, 01:10 PM
There's a 4.7.0 ?
* Paul M Goes off to look .......
Apparently so...
An important security update has been made to FlashChat. Please download and install FlashChat 4.7.0 as soon as possible to avoid known security exploits.
mikeinjersey
09-11-2006, 12:02 PM
Could someone please post a link to the latest version of FlashChat before I lose my mind? Thanks.
adwade
09-11-2006, 12:33 PM
Here ya are, v4.7 at: http://www.tufat.com/script2.htm
NeitherSparky
09-11-2006, 08:13 PM
This is unrelated to this mod, I just wanted to post this problem I've been having so people will know it's NOT the mod, okay? :)
I installed the newest version of Flashchat yesterday morning and started experiencing problems seeing people who had logged into the chat before me (I could only see people and their posts if they logged in *after* I did). After a lot of poking around I found that the problem was with Firefox, not the chat, and not this mod. Flashchat tech support has suggested reinstalling Firefox and Flash, which I am going to try because I prefer Firefox and want to be able to use it with my board and with the chat.
I just wanted to report that in case anyone thought it was the mod. I thought someone had hacked the chat and done something specifically to my admin account to cause that, good to know that wasn't the case. And Paul doesn't need more people blaming his mods for weirdness on their boards, lol. :D
~Sparky
edit: Oh and, I did check out the most recent update to this mod, and the new thing that redirects people exiting the chat back to the forum, is cool, thanks!
tobybird
09-11-2006, 08:17 PM
This is unrelated to this mod, I just wanted to post this problem I've been having so people will know it's NOT the mod, okay? :)
I installed the newest version of Flashchat yesterday morning and started experiencing problems seeing people who had logged into the chat before me (I could only see people and their posts if they logged in *after* I did). After a lot of poking around I found that the problem was with Firefox, not the chat, and not this mod. Flashchat tech support has suggested reinstalling Firefox and Flash, which I am going to try because I prefer Firefox and want to be able to use it with my board and with the chat.
I just wanted to report that in case anyone thought it was the mod. I thought someone had hacked the chat and done something specifically to my admin account to cause that, good to know that wasn't the case. And Paul doesn't need more people blaming his mods for weirdness on their boards, lol. :D
~Sparky
Just wanted to let you know that I'm and the majority of my users are using FF. We are running this mod, FlashChat 4.7.0 and the who's chatting hack without any of those issues. :)
NeitherSparky
09-11-2006, 08:38 PM
Just wanted to let you know that I'm and the majority of my users are using FF. We are running this mod, FlashChat 4.7.0 and the who's chatting hack without any of those issues. :)
Yeah I dunno it was really weird. I just now reinstalled Firefox and Flash like I said I was about to, and NOW everything's fine. -_- So I dunno, I was just special there for a little while I guess. ;)
Paul M
09-11-2006, 10:44 PM
edit: Oh and, I did check out the most recent update to this mod, and the new thing that redirects people exiting the chat back to the forum, is cool, thanks!That's actually been part of all flashchat 4.x.x releases, and something I've always used. Someone mentioned it the other week and I realised that perhaps most people were not aware of it, so I decided to add it to the instructions when I next updated them. :)
SCRIPT3R
09-11-2006, 11:46 PM
i'm in the process of a fresh vB install, including the 4.7 FC - is this hack current to coincide with the recent release of FC?
Masiello
09-12-2006, 01:32 AM
It showing the flashchat inside forum, but in a new window, what to do for not open a new window and open the chat in the same where user clicks on the chat link?
I've replaced that
'redirect' => false, // redirectURL must be a valid URL
'url' => 'http://www.tufat.com/chat.php', // 'redirect' must be set to true for this to work
'window' => '_blank', // the window to open into. possible values: _blank, _self, _parent, or a named window
with that
'redirect' => true,
'url' => '/forums/index.php?', // make sure this points to your forum home page //
'window' => '_parent',
and tried too _self by replacing _parent
Paul M
09-12-2006, 02:56 AM
i'm in the process of a fresh vB install, including the 4.7 FC - is this hack current to coincide with the recent release of FC?Not exactly sure what you mean by that, but I'm running 4.7.0 on my site(s).
It showing the flashchat inside forum, but in a new window, what to do for not open a new window and open the chat in the same where user clicks on the chat link?
I've replaced that
and tried too _self by replacing _parentThat code has nothing to do with it opening in a new window, you need to change back what you altered. How it opens depends on the link you created for it.
Masiello
09-12-2006, 06:48 AM
Thanks for your fast reply,
The link that I have create is:
<td class="vbmenu_control"><a href="misc.php?do=flashchat"
target="flashchat">Chat</a></td>
Have to change the target?
EDIT,
yes, just modify the target with _parent and works in the same window.
Masiello
09-12-2006, 06:56 AM
Is there anyway to resize chat screen as in the same window with vbulletin header and footer?
NeitherSparky
09-12-2006, 08:02 PM
Is there anyway to resize chat screen as in the same window with vbulletin header and footer?
If I understand what you are asking...Go into your admin panel, vBulletin Options, General Settings, scroll all the way to the bottom and you'll see "FlashChat Height". The default is 600, I *much* prefer 500.
Masiello
09-13-2006, 04:38 AM
NeitherSparky, Yes you have understanding fine, Thank you :)
GREAT PRODUCT! Thanks for sharing
|oR|Greg
09-14-2006, 12:28 PM
Maybe I've overlooked this, but I have a small problem.
When a person who isn't logged into my forums goes to chat, it prompts them to log in, they can enter there username and pass and log right into chat, however this doesn't log them into the forums, so they only show up in chat.
How do I make it so that if you're not logged into the forums, you either don't get a flashchat login screen, or if you DO login to flashchat, it logs you into the forums?
Paul M
09-14-2006, 05:01 PM
You have not integrated Flashchat properly with vbulletin. You need to make sure the vbulletin36CMS is specified as your CMS system in Flashchat's config file.
|oR|Greg
09-14-2006, 07:14 PM
You have not integrated Flashchat properly with vbulletin. You need to make sure the vbulletin36CMS is specified as your CMS system in Flashchat's config file.
This is in my config file.
//your CMS system
'CMSsystem' => 'vbulletin36CMS',// defaultCMS - default CMS, blank - stateless CMS
SCRIPT3R
09-15-2006, 12:37 AM
when was this verified for 3.6.1?
Paul M
09-15-2006, 02:05 AM
Today.
Paul M
09-15-2006, 02:09 AM
This is in my config file.
//your CMS system
'CMSsystem' => 'vbulletin36CMS',// defaultCMS - default CMS, blank - stateless CMS
Sorry, I misread your post slightly - if they are not logged into the forum, but go direct to flashchat, then what you will describe will happen. There is nothing you can do about that as auto-login requires them to have a valid vb sessionid, they won't get that until they login to vb. Flashchat cannot create vb session ids.
SCRIPT3R
09-15-2006, 02:20 AM
thnx Paul... any suggestions for my navbar code? the number of active users should appear within the parenthesis (which works fine), as it should if you're at forumhome, but doesn't (nothing) appears except for (), when your at any forumdisplay.
<if condition="$show['member']">
<td class="vbmenu_control"><a href="chat/flashchat.php$session[sessionurl_q]">Flashchat</a> ($totalchatters)</td>
</if>
Paul M
09-15-2006, 07:05 AM
Wrong thread for that question really ;)
That total comes from the Who is Chatting code - by design it only runs on forumhome.
sahinsivar
09-15-2006, 02:40 PM
türkçe yardım edecek yokmu arkadaşlar kuramıyorum lütfen
Paul M
09-15-2006, 04:18 PM
Sorry, English only on this forum please.
Chadi
09-16-2006, 05:46 PM
It's code within the plugins (1 & 3).
Can you please explain what to change in each one? I'm not a coder by trade :)
Also what would be the exact link/code as well as I wish to add it on the forumhome too,
applied to a chat icon I have. Thanks Paul
dethfire
09-16-2006, 08:41 PM
any way to set what days flashchat is open? say only on sundays?
Paul M
09-16-2006, 09:09 PM
any way to set what days flashchat is open? say only on sundays?No, there isn't
Can you please explain what to change in each one? I'm not a coder by trade :)I don't see that post on the last two pages, what was the question ?
Also what would be the exact link/code as well as I wish to add it on the forumhome too, applied to a chat icon I have. Thanks PaulNot sure what you mean ? - to open flashchat with this mod you call misc.php?do=flashchat
Alfa1
09-17-2006, 11:24 AM
Is there any chance on expanding this with an alert when a budy is in the chat? So members would receive a pop up, when a buddy is in the chat.
Paul M
09-17-2006, 01:49 PM
Sorry, there is not really any chance of that.
maroceve
09-18-2006, 03:06 PM
Warning: main(/home/maroceve/public_html/chat/inc/cmses/../../../includes/config.php) [function.main]: failed to open stream: No such file or directory in /home/maroceve/public_html/chat/inc/cmses/vbulletin36CMS.php on line 206
Fatal error: main() [function.require]: Failed opening required '/home/maroceve/public_html/chat/inc/cmses/../../../includes/config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/maroceve/public_html/chat/inc/cmses/vbulletin36CMS.php on line 206.
Tried to fix the path, hmmm ...
Paul M
09-18-2006, 03:08 PM
As it says ;
The 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. Installation will fail if you do not do this.
charlesk
09-19-2006, 03:41 PM
First, thank you very much for this product, it is extremely useful.
I was able to get it all working fine except that I cannot get into the admin control panel. Each time I try, I get this:
Error 02 - vbulletin config file not loaded, check you have the correct path.
Any thoughts? Thank you. :)
c
Gripemaster
09-19-2006, 04:19 PM
Installed, thanks to Paul. You da man! :)
Paul M
09-19-2006, 06:51 PM
First, thank you very much for this product, it is extremely useful.
I was able to get it all working fine except that I cannot get into the admin control panel. Each time I try, I get this:
Any thoughts? Thank you. :)
c
Hmm, that's a bug.
Fixed - replace the 3.05 vbulletin36CMS.php with the 3.06 version, and re-import the product.
delnouro
09-19-2006, 07:33 PM
Is it possible to let guests acces the chat?
I already tried to change their group Id to the "normal users group", but flaschat is still asking for a password. Thats normal, cause the normal users need to login with a password.
So the question is: Can i let registered users login with password and the guests not.
Paul M
09-19-2006, 09:40 PM
If you have integrated it properly, forum users should not have to login, it's automatic. Integration does not allow guest access.
charlesk
09-20-2006, 06:05 PM
Thanks, Paul.
I've tried a couple of times now to update the product.. it still says it is version 3.05, and the file dates look old inside the ZIP....?
c
Paul M
09-20-2006, 07:25 PM
Try clearing your local browser cache and then download it again, the zip file is correct, I just downloaded it and checked.
charlesk
09-20-2006, 09:38 PM
Thanks, all set now. (Never had Firefox do that to me before so I never suspected...) --c
Spikeman
09-20-2006, 10:41 PM
Excellent Paul, thanks, integrated like a dream :)
charlesk
09-21-2006, 02:09 PM
Paul, my users now report that the "who's in chat" product is now not showing who is in chat... it used to work. Any ideas?
Appreciate your help. Thanks.
smoknz28
09-25-2006, 04:42 AM
When in the Flashchat....users cannot use the dropdown menus in the navbar. The Flashchat blocks out the dropdown menus from displaying.
vB 3.6.1
Mark
Paul M
09-25-2006, 07:56 AM
Yep, the frame blocks the menus. I'm afraid my knowledge of html does to stretch to knowning how to stop that, if anyone does, feel free to enlighten me.
delds
09-25-2006, 02:19 PM
I am searching for the instructions on how to put the flashchat link into the navbar, I had it in their before that would only appear to logged in users, but during the last vbulletin upgrade I had to revert the navbar.
SCRIPT3R
09-25-2006, 03:29 PM
I am searching for the instructions on how to put the flashchat link into the navbar, I had it in their before that would only appear to logged in users, but during the last vbulletin upgrade I had to revert the navbar.
<if condition="$show['member']">
<td class="vbmenu_control"><a href="misc.php?do=flashchat">$vbphrase[flashchat]: $totalchatters</a></td>
</if>
just remove the RED text if you don't want the number of active chatters to appear in your navbar.
SCRIPT3R
09-25-2006, 03:40 PM
Yep, the frame blocks the menus. I'm afraid my knowledge of html does to stretch to knowning how to stop that, if anyone does, feel free to enlighten me.
re: http://www.creations.nl/visual.html (check out the source code)
i'm thinking you would have to change the order of the DIV layer, so as to keep the navbar atop the flashchat.
here's another good links...
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15523
add this to your flash code:
<param name="wmode" value="transparent">
imported_Saleel
09-25-2006, 04:18 PM
I was wondering, with FlashChat, is it possible to have three chat rooms? The default chat room (the main room) is limited so that only you can see what you type, and the other two rooms are password protected?
SCRIPT3R
09-25-2006, 04:47 PM
I was wondering, with FlashChat, is it possible to have three chat rooms? The default chat room (the main room) is limited so that only you can see what you type, and the other two rooms are password protected?
yes... all configurable via the FC Admin.
voteforbird
09-25-2006, 05:33 PM
Even after configuring the usergroups, everyone but the admins are getting denied. Any idea why?
SCRIPT3R
09-25-2006, 06:23 PM
Even after configuring the usergroups, everyone but the admins are getting denied. Any idea why?
post up your CMS file so we can take a looksee.
voteforbird
09-25-2006, 07:14 PM
2 is Registered Users. 25 is Premium Members. Admins work.<?php
if ( !defined( 'INC_DIR' ) ) {
die( 'hacking attempt' );
}
/*
Version 3.02
By Paul M - this CMS file is For vBulletin 3.6.x and Flashchat 4.5.x (or above).
Recent changes ;
3.01 - First Version, based on vb 3.5 CMS file (v2.60).
3.02 - Changes to User and Role Caching to fix minor irritations.
*/
class vBulletinCMS
{
// Initialise CMS
function vBulletinCMS()
{
$this->loginStmt = new Statement("SELECT userid AS id, password, salt FROM {$GLOBALS['vbulletin']['prefix']}user WHERE username=?");
$this->getUserStmt = new Statement("SELECT userid AS id, username AS login, usergroupid, membergroupids FROM {$GLOBALS['vbulletin']['prefix']}user WHERE userid=?");
$this->getUsersStmt = new Statement("SELECT userid AS id, username AS login, usergroupid FROM {$GLOBALS['vbulletin']['prefix']}user");
$this->getUserForSession = new Statement("SELECT * FROM {$GLOBALS['vbulletin']['prefix']}session WHERE sessionhash=? ORDER BY lastactivity DESC");
$this->updateLastactivityForUser = new Statement("UPDATE {$GLOBALS['vbulletin']['prefix']}user SET lastactivity=? WHERE userid=?");
$this->updateSessionForUser = new Statement("UPDATE {$GLOBALS['vbulletin']['prefix']}session SET lastactivity=?, location='$_SERVER[REQUEST_URI]' WHERE userid=?");
$this->getAvatar = new Statement("SELECT * FROM {$GLOBALS['vbulletin']['prefix']}customavatar WHERE userid = ? AND visible = 1");
$this->getPicture = new Statement("SELECT * FROM {$GLOBALS['vbulletin']['prefix']}customprofilepic WHERE userid = ? AND visible = 1");
$this->session = $_COOKIE[$GLOBALS['vbulletin']['cookie'] . 'sessionhash'];
if($_SESSION['fc_users_cache']['sessionhashid'] != $this->session)
{
$rs = $this->getUserForSession->process($this->session);
if($rec = $rs->next())
{
$this->userid = intval($rec['userid']);
$_SESSION['fc_users_cache']['sessionuserid'] = $this->userid;
$_SESSION['fc_users_cache']['sessionhashid'] = $this->session;
}
}
else
{
$this->userid = $_SESSION['fc_users_cache']['sessionuserid'];
}
if($_POST['t'] AND $GLOBALS['vbulletin']['spkupdate'] AND intval($this->userid) > 0)
{
$ru = $this->updateSessionForUser->process(time(),$this->userid);
$ru = $this->updateLastactivityForUser->process(time(),$this->userid);
}
}
// Auto Login
function isLoggedIn()
{
if($this->userid > 0 AND $GLOBALS['vbulletin']['logupdate'])
{
$ru = $this->updateSessionForUser->process(time(),$this->userid);
$ru = $this->updateLastactivityForUser->process(time(),$this->userid);
}
unset ($_SESSION['fc_users_cache'][$this->userid]);
unset ($_SESSION['fc_roles_cache'][$this->userid]);
return $this->userid;
}
// Manual Login
function login($login, $password)
{
$rv = NULL;
if ($login == '_int_') return $this->userid;
$login = utf8_to_entities($login);
$rs = $this->loginStmt->process(utf8_decode($login));
$rec = $rs->next();
if($rs)
{
$password = utf8_to_entities($password);
if(($rec['password'] == md5(md5(utf8_decode($password)) . $rec['salt']))) $rv = $rec['id'];
}
if($rv > 0 AND $GLOBALS['vbulletin']['logupdate'])
{
$ru = $this->updateSessionForUser->process(time(),$rv);
$ru = $this->updateLastactivityForUser->process(time(),$rv);
}
unset ($_SESSION['fc_users_cache'][$this->userid]);
unset ($_SESSION['fc_roles_cache'][$this->userid]);
return $rv;
}
// Logout
function logout()
{
$_SESSION['fc_users_cache']['sessionhashid'] = '#';
if($this->userid > 0 AND $GLOBALS['vbulletin']['logupdate'])
{
$ru = $this->updateSessionForUser->process(time(),$this->userid);
$ru = $this->updateLastactivityForUser->process(time(),$this->userid);
}
return NULL;
}
// Assign chat role
function getRoles($usergroupid)
{
$groups = explode(',',$usergroupid);
$userrole = ROLE_NOBODY ; // Set default access
foreach ($GLOBALS['vbulletin']['users'] as $group) if (in_array($group,$groups)) $userrole = ROLE_USER;
if ($GLOBALS['fc_config']['liveSupportMode'])
{
foreach ($GLOBALS['vbulletin']['customer'] as $group) if (in_array($group,$groups)) $userrole = ROLE_CUSTOMER;
}
foreach ($GLOBALS['vbulletin']['mods'] as $group) if (in_array($group,$groups)) $userrole = ROLE_MODERATOR;
foreach ($GLOBALS['vbulletin']['admin'] as $group) if (in_array($group,$groups)) $userrole = ROLE_ADMIN;
foreach ($GLOBALS['vbulletin']['banned'] as $group) if (in_array($group,$groups)) $userrole = ROLE_NOBODY;
return $userrole;
}
// Get user details
function getUser($userid)
{
if(($rs = $this->getUserStmt->process($userid)) && ($rec = $rs->next()))
{
$rec['usergroupid'] .= ",".$rec['membergroupids'] ;
$rec['roles'] = $this->getRoles($rec['usergroupid']);
$tagencoded = entities_to_utf8($rec['login']);
if(strlen($rec['login']) > strlen($tagencoded)) $rec['login'] = $tagencoded;
else $rec['login'] = utf8_encode($rec['login']);
$_SESSION['fc_users_cache'][$userid] = $rec;
$_SESSION['fc_roles_cache'][$userid] = $rec['roles'];
return $rec;
}
return null;
}
// Return all existing users
function getUsers()
{
return $this->getUsersStmt->process();
}
// Returns URL of user profile page for such user id or null if user not found
function getUserProfile($userid)
{
return ($this->userid == $userid) ? "../profile.php?do=editprofile" : "../member.php?u=$userid";
}
// Check if user is in a specific role
function userInRole($userid, $role)
{
if(!intval($userid))
{
return false;
}
$user = $this->getUser($userid) ;
if($role == $user['roles']) return true;
return false;
}
// Get male or female
function getGender($user)
{
return NULL;
}
// Get current profile picture or avatar
// This function is only supported if you use the database storage method in vbulletin
function getPhoto($userid)
{
if($_SESSION['fc_users_cache'][$userid]['pid'] == $userid)
{
return $_SESSION['fc_users_cache'][$userid]['fpath'];
}
if($GLOBALS['vbulletin']['useavatar'])
{
$rs = $this->getAvatar->process($userid);
}
else
{
$rs = $this->getPicture->process($userid);
}
if(($rec = $rs->next()) == null) return '';
$fparts = explode('.', $rec['filename']);
$fname = strtolower('$'.substr('000000'.$userid,-6).'$'.$rec['dateline'].'.'.$fparts[count($fparts)-1]);
$fpath = './images/cust_img/'.$fname;
if(!file_exists($fpath))
{
$fp = fopen($fpath, 'wb');
fwrite($fp, $rec['filedata']);
fflush($fp);
fclose($fp);
}
$_SESSION['fc_users_cache'][$userid]['pid'] = $userid;
$_SESSION['fc_users_cache'][$userid]['fpath'] = $fpath;
return $fpath;
}
}
// Get vb config.php
$vbpath = realpath(dirname(__FILE__));
require_once $vbpath . '/../../../includes/config.php';
// Clear moderator message
foreach($GLOBALS['fc_config']['languages'] as $k => $v)
{
$GLOBALS['fc_config']['languages'][$k]['dialog']['login']['moderator'] = '';
}
// Get settings from vbulletin config settings
$GLOBALS['fc_config']['db'] = array(
'base' => $config['Database']['dbname'],
'user' => $config['MasterServer']['username'],
'pass' => $config['MasterServer']['password'],
'pref' => $GLOBALS['fc_config']['db']['pref'],
'host' => $config['MasterServer']['servername'],
);
// Add tcp port if specified
if($config['MasterServer']['port'])
{
$GLOBALS['fc_config']['db']['host'] .= ':'.$config['MasterServer']['port'];
}
// vbulletin specific settings
$GLOBALS['vbulletin'] = array(
'cookie' => $config['Misc']['cookieprefix'],
'prefix' => $config['Database']['tableprefix'],
'spkupdate' => true, // Update vBulletin when user speaks.
'logupdate' => true, // Update vBulletin when user logs in/out.
'useavatar' => true, // True = use custom avatar for flashchat photo feature, False = use custom profile picture.
'users' => array( 2,25 ) , // Usergroups allowed standard access to chat.
'mods' => array( 5,7 ) , // Usergroups allowed access as chat moderators.
'admin' => array( 6 ) , // Usergroups allowed access as chat administrators.
'banned' => array( 1,14 ) , // Usergroups banned from accessing the chat.
'customer' => array( 0 ) , // Usergroups allowed access as customers (Live support mode only).
);
// Initiate class
$GLOBALS['fc_config']['cms'] = new vBulletinCMS();
?>
Paul M
09-25-2006, 08:40 PM
What is group 14 ?
Are you sure you have uploaded this to /chat/inc/cmses ?
voteforbird
09-25-2006, 11:20 PM
Wow. I feel really dumb. Somehow it wasn't uploaded. I'm not a novice at this, so I should have known better. Thanks for the reminder…
Paul M
09-26-2006, 01:31 AM
You're not the first (by a long way), hence why I ask. :)
Gripemaster
09-26-2006, 01:38 AM
Hey Paul,
I just noticed this is an "updated" mod... but I'm not sure if it's been updated since you logged into my board and fixed my installation of another flashchat mod....because we were discussing where I went wrong in chat after you fixed it. How do I find out which version I have of this mod?
Paul M
09-26-2006, 01:48 AM
Look in the ACP (Product Manager).
Gripemaster
09-26-2006, 01:51 AM
LOL...DUH! Sorry, it's been a long weekend. Pardon the flatulence in my brain. Says I have version 3.05 of Flashchat Integration.
Paul M
09-26-2006, 01:55 AM
I would suggest upgrading to 3.06 when you can, there is a small bug in 3.05 when trying to access the flashchat admin area.
Gripemaster
09-26-2006, 02:07 AM
*Updated*
Thank you sir. Seems to be working fine and sez I got version 3.06. :)
charlesk
09-26-2006, 03:29 PM
Paul, my users now report that the "who's in chat" product is now not showing who is in chat... it used to work. Any ideas?
Appreciate your help. Thanks.
Hi Paul, just wondering if you have any ideas on this? Thanks. :)
Paul M
09-26-2006, 06:53 PM
Not really, I have nothing to go on - there can be many reasons why something does not work. I assume you mean my mod, in which case you need to post in the correct thread, and also take note of the support notes in the main post of this thread.
..... If you are still stuck and want me to take a look then feel free to PM me your site address, an admin user, and ftp access details, without these I cannot help you. I will look when I have time.
charlesk
09-26-2006, 10:29 PM
Okay.. I had only asked here because after I found that issue with the admin login not working and you posted 3.06, when I updated to 3.06, that's when the other hack stopped working.
teedizz
09-28-2006, 06:30 AM
NM, I got it to work. Thanks alot for this hack ;)
pokerie
09-28-2006, 02:45 PM
Hi there,
I'm trying to get flashchat to fit with the site www.poker.ie
I've setup a testpage at: http://www.poker.ie/community/forums/chat/poker_ie_chat2.php
As you can see the chatbox isn't showing up. I've followed the instructions on http://www.tufat.com/docs/flashchat/sample.html
Any ideas on why it isn't showing?
Paul M
09-28-2006, 02:53 PM
Sorry, no idea - your question should be posted on the Tufat forum as it is a Flashchat question, unrelated to this modification.
Doglet
09-30-2006, 04:01 AM
I just got FlashChat running with vBulletin 3.6.1 last night, but I am unsure how to prevent certain user groups from using it. I know from reading that this part is the bit that does it.
// vbulletin specific settings
$GLOBALS['vbulletin'] = array(
'cookie' => $config['Misc']['cookieprefix'],
'prefix' => $config['Database']['tableprefix'],
'spkupdate' => true, // Update vBulletin when user speaks.
'logupdate' => true, // Update vBulletin when user logs in/out.
'useavatar' => true, // True = use custom avatar for flashchat photo feature, False = use custom profile picture.
'users' => explode(',',$users) , // Usergroups allowed standard access to chat.
'mods' => explode(',',$moderators) , // Usergroups allowed access as chat moderators.
'admin' => explode(',',$administrators) , // Usergroups allowed access as chat administrators.
'banned' => explode(',',$banned) , // Usergroups banned from accessing the chat.
'customer' => explode(',',$customers) , // Usergroups allowed access as customers.
);I noted that others have usergroup numbers where mine has things like (',',$customers). How do I alter this file so that it bans certain groups, and allows others and recognises the groups I have.
Also, if I do that and just reupload this vBulletin3CMS.php, will it just work or do I need to do a reinstall?
NeitherSparky
09-30-2006, 04:12 AM
I just got FlashChat running with vBulletin 3.6.1 last night, but I am unsure how to prevent certain user groups from using it.
I am not sure if this is what you're asking, but:
// Usergroup Definitions
$users = '#,#,#' ;
$moderators = '#,#' ;
$administrators = '#' ;
$banned = '#,#,#,#' ;
// Live support mode only
$customers = '0' ;
(I stuck # signs in there to show you where the numbers go)
It's up near the top. In older versions of the mod it was at the bottom and so it says in the readme file:
If necessary, edit the vbulletin section at the bottom of the this file to change the usergroup access & options as required.
It still said that in the readme of the latest version which I dl'ed recently so I guess that needs to be changed. I was *very* confused until I found the code I was looking for, moved to the top. :)
Maksa
09-30-2006, 04:54 AM
i m really confused. don't know anything before using this should i have to buy Flashchat from http://www.tufat.com ???
buying it from tufat is required?
Doglet
09-30-2006, 05:43 AM
Thanks, yes I found them at the top of the cms file. All is well.
One more thing.
When FlashChat 4.7.2 installed, it put a FlashChat link in the QuickLinks dropdown in the nav bar. I have searched the navbar template and cant find any mention of the word flash or chat. I want a separate link on the navbar between FAQ and the Members List - where the Site Rules are on this forum. What is the code I need to add into the navbar to get to Flashchat from there?
[EDIT] It's OK, I've worked this one out myself. Sorry.
Doglet
09-30-2006, 06:32 AM
What I do want to know though is that I read somewhere a hack to the ForumsHome template that allows you to show who's in chat. I have just spent half an hour looking and can't relocate the information. It mentioned the code to add as well as where to insert it. Anyone know?
GD_Mehmed Emre
09-30-2006, 07:47 AM
I didn't understand how i can install this. Can you help me please? :(
Paul M
09-30-2006, 08:27 AM
It's up near the top. In older versions of the mod it was at the bottom and so it says in the readme file:
It still said that in the readme of the latest version which I dl'ed recently so I guess that needs to be changed. I was *very* confused until I found the code I was looking for, moved to the top. :)Oops, yes you're right, the readme needs to be changed. A new version of the CMS is due shortly so I'll fix the readme when I do that.
Paul M
09-30-2006, 08:29 AM
What I do want to know though is that I read somewhere a hack to the ForumsHome template that allows you to show who's in chat. I have just spent half an hour looking and can't relocate the information. It mentioned the code to add as well as where to insert it. Anyone know?Who is chatting is a seperate mod ;
https://vborg.vbsupport.ru/showthread.php?t=121884
Gripemaster
09-30-2006, 01:49 PM
Paul, I can't keep up with you. LOL!
Is this update just another simple import/overwrite of the XML like when I recently went from 3.0.5 to 3.0.6?
Thanks...love your mods. ;)
Paul M
09-30-2006, 04:26 PM
Yes, (and replace your CMS file) but you don't need to upgrade unless you feel like it, it's just a minor internal code change.
Gripemaster
09-30-2006, 04:36 PM
Thank you sir! :)
Neal-UK
09-30-2006, 07:44 PM
For some reason I don't get an e-mail when you update this hack. Only notice by chance.
NeutralizeR
10-01-2006, 04:26 AM
There was always an error message displaying at the top right corner of the private message windows, saying "Image load error" in red.
I guess i finally fixed it by commenting out these lines in vbulletin36CMS.php:
//$this->getAvatar = new Statement("SELECT * FROM {$prefix}customavatar WHERE userid = ? AND visible = 1");
//$this->getPicture = new Statement("SELECT * FROM {$prefix}customprofilepic WHERE userid = ? AND visible = 1");
// Get current profile picture or avatar
// This function is only supported if you use the database storage method in vbulletin
// function getPhoto($userid)
//{
//if($_SESSION['fc_users_cache'][$userid]['pid'] == $userid)
//{
//return $_SESSION['fc_users_cache'][$userid]['fpath'];
//}
//if($GLOBALS['vbulletin']['useavatar'])
//{
// $rs = $this->getAvatar->process($userid);
//}
//else
//{
// $rs = $this->getPicture->process($userid);
//}
//if(($rec = $rs->next()) == null) return '';
//$fparts = explode('.', $rec['filename']);
//$fname = strtolower('$'.substr('000000'.$userid,-6).'$'.$rec['dateline'].'.'.$fparts[count($fparts)-1]);
//$fpath = './images/cust_img/'.$fname;
//if(!file_exists($fpath))
//{
// $fp = fopen($fpath, 'wb');
// fwrite($fp, $rec['filedata']);
// fflush($fp);
// fclose($fp);
//}
//$_SESSION['fc_users_cache'][$userid]['pid'] = $userid;
//$_SESSION['fc_users_cache'][$userid]['fpath'] = $fpath;
//return $fpath;
//}
//'useavatar' => true, // True = use custom avatar for flashchat photo feature, False = use custom profile picture.
It says:
This function is only supported if you use the database storage method in vbulletin
I use filesystem.
'useavatar' => true, // True = use custom avatar for flashchat photo feature, False = use custom profile picture.
There must be an option to completely disable both avatars and profile pictures.
Another question...
I've seen this part in your integration mod:
// Get male or female
function getGender($user)
{
return NULL;
}
I've gender customfields defined at my vb. How can i use it for the code above?
Thanks
RedTurtle
10-01-2006, 04:38 AM
Hi Paul!
I've integrated FC with 3.6 and it works fine but the only problem I'm having is that it requires me as an admin to always have to login to the chat when i'm already logged into vB.
Here's my CMS file (which I double checked that I have uploaded to chat/inc/cmses )
<?php
if ( !defined( 'INC_DIR' ) ) {
die( 'hacking attempt' );
}
/*
Version 3.02
By Paul M - this CMS file is For vBulletin 3.6.x and Flashchat 4.5.x (or above).
Recent changes ;
3.01 - First Version, based on vb 3.5 CMS file (v2.60).
3.02 - Changes to User and Role Caching to fix minor irritations.
*/
class vBulletinCMS
{
// Initialise CMS
function vBulletinCMS()
{
$this->loginStmt = new Statement("SELECT userid AS id, password, salt FROM {$GLOBALS['vbulletin']['prefix']}user WHERE username=?");
$this->getUserStmt = new Statement("SELECT userid AS id, username AS login, usergroupid, membergroupids FROM {$GLOBALS['vbulletin']['prefix']}user WHERE userid=?");
$this->getUsersStmt = new Statement("SELECT userid AS id, username AS login, usergroupid FROM {$GLOBALS['vbulletin']['prefix']}user");
$this->getUserForSession = new Statement("SELECT * FROM {$GLOBALS['vbulletin']['prefix']}session WHERE sessionhash=? ORDER BY lastactivity DESC");
$this->updateLastactivityForUser = new Statement("UPDATE {$GLOBALS['vbulletin']['prefix']}user SET lastactivity=? WHERE userid=?");
$this->updateSessionForUser = new Statement("UPDATE {$GLOBALS['vbulletin']['prefix']}session SET lastactivity=?, location='$_SERVER[REQUEST_URI]' WHERE userid=?");
$this->getAvatar = new Statement("SELECT * FROM {$GLOBALS['vbulletin']['prefix']}customavatar WHERE userid = ? AND visible = 1");
$this->getPicture = new Statement("SELECT * FROM {$GLOBALS['vbulletin']['prefix']}customprofilepic WHERE userid = ? AND visible = 1");
$this->session = $_COOKIE[$GLOBALS['vbulletin']['cookie'] . 'sessionhash'];
if($_SESSION['fc_users_cache']['sessionhashid'] != $this->session)
{
$rs = $this->getUserForSession->process($this->session);
if($rec = $rs->next())
{
$this->userid = intval($rec['userid']);
$_SESSION['fc_users_cache']['sessionuserid'] = $this->userid;
$_SESSION['fc_users_cache']['sessionhashid'] = $this->session;
}
}
else
{
$this->userid = $_SESSION['fc_users_cache']['sessionuserid'];
}
if($_POST['t'] AND $GLOBALS['vbulletin']['spkupdate'] AND intval($this->userid) > 0)
{
$ru = $this->updateSessionForUser->process(time(),$this->userid);
$ru = $this->updateLastactivityForUser->process(time(),$this->userid);
}
}
// Auto Login
function isLoggedIn()
{
if($this->userid > 0 AND $GLOBALS['vbulletin']['logupdate'])
{
$ru = $this->updateSessionForUser->process(time(),$this->userid);
$ru = $this->updateLastactivityForUser->process(time(),$this->userid);
}
unset ($_SESSION['fc_users_cache'][$this->userid]);
unset ($_SESSION['fc_roles_cache'][$this->userid]);
return $this->userid;
}
// Manual Login
function login($login, $password)
{
$rv = NULL;
if ($login == '_int_') return $this->userid;
$login = utf8_to_entities($login);
$rs = $this->loginStmt->process(utf8_decode($login));
$rec = $rs->next();
if($rs)
{
$password = utf8_to_entities($password);
if(($rec['password'] == md5(md5(utf8_decode($password)) . $rec['salt']))) $rv = $rec['id'];
}
if($rv > 0 AND $GLOBALS['vbulletin']['logupdate'])
{
$ru = $this->updateSessionForUser->process(time(),$rv);
$ru = $this->updateLastactivityForUser->process(time(),$rv);
}
unset ($_SESSION['fc_users_cache'][$this->userid]);
unset ($_SESSION['fc_roles_cache'][$this->userid]);
return $rv;
}
// Logout
function logout()
{
$_SESSION['fc_users_cache']['sessionhashid'] = '#';
if($this->userid > 0 AND $GLOBALS['vbulletin']['logupdate'])
{
$ru = $this->updateSessionForUser->process(time(),$this->userid);
$ru = $this->updateLastactivityForUser->process(time(),$this->userid);
}
return NULL;
}
// Assign chat role
function getRoles($usergroupid)
{
$groups = explode(',',$usergroupid);
$userrole = ROLE_NOBODY ; // Set default access
foreach ($GLOBALS['vbulletin']['users'] as $group) if (in_array($group,$groups)) $userrole = ROLE_USER;
if ($GLOBALS['fc_config']['liveSupportMode'])
{
foreach ($GLOBALS['vbulletin']['customer'] as $group) if (in_array($group,$groups)) $userrole = ROLE_CUSTOMER;
}
foreach ($GLOBALS['vbulletin']['mods'] as $group) if (in_array($group,$groups)) $userrole = ROLE_MODERATOR;
foreach ($GLOBALS['vbulletin']['admin'] as $group) if (in_array($group,$groups)) $userrole = ROLE_ADMIN;
foreach ($GLOBALS['vbulletin']['banned'] as $group) if (in_array($group,$groups)) $userrole = ROLE_NOBODY;
return $userrole;
}
// Get user details
function getUser($userid)
{
if(($rs = $this->getUserStmt->process($userid)) && ($rec = $rs->next()))
{
$rec['usergroupid'] .= ",".$rec['membergroupids'] ;
$rec['roles'] = $this->getRoles($rec['usergroupid']);
$tagencoded = entities_to_utf8($rec['login']);
if(strlen($rec['login']) > strlen($tagencoded)) $rec['login'] = $tagencoded;
else $rec['login'] = utf8_encode($rec['login']);
$_SESSION['fc_users_cache'][$userid] = $rec;
$_SESSION['fc_roles_cache'][$userid] = $rec['roles'];
return $rec;
}
return null;
}
// Return all existing users
function getUsers()
{
return $this->getUsersStmt->process();
}
// Returns URL of user profile page for such user id or null if user not found
function getUserProfile($userid)
{
return ($this->userid == $userid) ? "../profile.php?do=editprofile" : "../member.php?u=$userid";
}
// Check if user is in a specific role
function userInRole($userid, $role)
{
if(!intval($userid))
{
return false;
}
$user = $this->getUser($userid) ;
if($role == $user['roles']) return true;
return false;
}
// Get male or female
function getGender($user)
{
return NULL;
}
// Get current profile picture or avatar
// This function is only supported if you use the database storage method in vbulletin
function getPhoto($userid)
{
if($_SESSION['fc_users_cache'][$userid]['pid'] == $userid)
{
return $_SESSION['fc_users_cache'][$userid]['fpath'];
}
if($GLOBALS['vbulletin']['useavatar'])
{
$rs = $this->getAvatar->process($userid);
}
else
{
$rs = $this->getPicture->process($userid);
}
if(($rec = $rs->next()) == null) return '';
$fparts = explode('.', $rec['filename']);
$fname = strtolower('$'.substr('000000'.$userid,-6).'$'.$rec['dateline'].'.'.$fparts[count($fparts)-1]);
$fpath = './images/cust_img/'.$fname;
if(!file_exists($fpath))
{
$fp = fopen($fpath, 'wb');
fwrite($fp, $rec['filedata']);
fflush($fp);
fclose($fp);
}
$_SESSION['fc_users_cache'][$userid]['pid'] = $userid;
$_SESSION['fc_users_cache'][$userid]['fpath'] = $fpath;
return $fpath;
}
}
// Get vb config.php
$vbpath = realpath(dirname(__FILE__));
require_once $vbpath . '/../../../includes/config.php';
// Clear moderator message
foreach($GLOBALS['fc_config']['languages'] as $k => $v)
{
$GLOBALS['fc_config']['languages'][$k]['dialog']['login']['moderator'] = '';
}
// Get settings from vbulletin config settings
$GLOBALS['fc_config']['db'] = array(
'base' => $config['Database']['dbname'],
'user' => $config['MasterServer']['username'],
'pass' => $config['MasterServer']['password'],
'pref' => $GLOBALS['fc_config']['db']['pref'],
'host' => $config['MasterServer']['servername'],
);
// Add tcp port if specified
if($config['MasterServer']['port'])
{
$GLOBALS['fc_config']['db']['host'] .= ':'.$config['MasterServer']['port'];
}
// vbulletin specific settings
$GLOBALS['vbulletin'] = array(
'cookie' => $config['Misc']['cookieprefix'],
'prefix' => $config['Database']['tableprefix'],
'spkupdate' => true, // Update vBulletin when user speaks.
'logupdate' => true, // Update vBulletin when user logs in/out.
'useavatar' => true, // True = use custom avatar for flashchat photo feature, False = use custom profile picture.
'users' => array( 2 ) , // Usergroups allowed standard access to chat.
'mods' => array( 5,7 ) , // Usergroups allowed access as chat moderators.
'admin' => array( 6 ) , // Usergroups allowed access as chat administrators.
'banned' => array( 1,3,8 ) , // Usergroups banned from accessing the chat.
'customer' => array( 0 ) , // Usergroups allowed access as customers (Live support mode only).
);
// Initiate class
$GLOBALS['fc_config']['cms'] = new vBulletinCMS();
?>
NeitherSparky
10-01-2006, 04:51 AM
There was always an error message displaying at the top right corner of the private message windows, saying "Image load error" in red.
NeutralizeR, I have also gotten that error and my users have gotten it too (though it's not every time). I do use the database system though. Is there something I should be altering in the CMS? I couldn't really follow what you were saying in your post, I don't understand php. :)
~Sparky
NeutralizeR
10-01-2006, 05:13 AM
Hi Paul!
I've integrated FC with 3.6 and it works fine but the only problem I'm having is that it requires me as an admin to always have to login to the chat when i'm already logged into vB.
Here's my CMS file (which I double checked that I have uploaded to chat/inc/cmses )
<?php
if ( !defined( 'INC_DIR' ) ) {
die( 'hacking attempt' );
}
/*
Version 3.02
By Paul M - this CMS file is For vBulletin 3.6.x and Flashchat 4.5.x (or above).
Recent changes ;
3.01 - First Version, based on vb 3.5 CMS file (v2.60).
3.02 - Changes to User and Role Caching to fix minor irritations.
*/
class vBulletinCMS
{
// Initialise CMS
function vBulletinCMS()
{
$this->loginStmt = new Statement("SELECT userid AS id, password, salt FROM {$GLOBALS['vbulletin']['prefix']}user WHERE username=?");
$this->getUserStmt = new Statement("SELECT userid AS id, username AS login, usergroupid, membergroupids FROM {$GLOBALS['vbulletin']['prefix']}user WHERE userid=?");
$this->getUsersStmt = new Statement("SELECT userid AS id, username AS login, usergroupid FROM {$GLOBALS['vbulletin']['prefix']}user");
$this->getUserForSession = new Statement("SELECT * FROM {$GLOBALS['vbulletin']['prefix']}session WHERE sessionhash=? ORDER BY lastactivity DESC");
$this->updateLastactivityForUser = new Statement("UPDATE {$GLOBALS['vbulletin']['prefix']}user SET lastactivity=? WHERE userid=?");
$this->updateSessionForUser = new Statement("UPDATE {$GLOBALS['vbulletin']['prefix']}session SET lastactivity=?, location='$_SERVER[REQUEST_URI]' WHERE userid=?");
$this->getAvatar = new Statement("SELECT * FROM {$GLOBALS['vbulletin']['prefix']}customavatar WHERE userid = ? AND visible = 1");
$this->getPicture = new Statement("SELECT * FROM {$GLOBALS['vbulletin']['prefix']}customprofilepic WHERE userid = ? AND visible = 1");
$this->session = $_COOKIE[$GLOBALS['vbulletin']['cookie'] . 'sessionhash'];
if($_SESSION['fc_users_cache']['sessionhashid'] != $this->session)
{
$rs = $this->getUserForSession->process($this->session);
if($rec = $rs->next())
{
$this->userid = intval($rec['userid']);
$_SESSION['fc_users_cache']['sessionuserid'] = $this->userid;
$_SESSION['fc_users_cache']['sessionhashid'] = $this->session;
}
}
else
{
$this->userid = $_SESSION['fc_users_cache']['sessionuserid'];
}
if($_POST['t'] AND $GLOBALS['vbulletin']['spkupdate'] AND intval($this->userid) > 0)
{
$ru = $this->updateSessionForUser->process(time(),$this->userid);
$ru = $this->updateLastactivityForUser->process(time(),$this->userid);
}
}
// Auto Login
function isLoggedIn()
{
if($this->userid > 0 AND $GLOBALS['vbulletin']['logupdate'])
{
$ru = $this->updateSessionForUser->process(time(),$this->userid);
$ru = $this->updateLastactivityForUser->process(time(),$this->userid);
}
unset ($_SESSION['fc_users_cache'][$this->userid]);
unset ($_SESSION['fc_roles_cache'][$this->userid]);
return $this->userid;
}
// Manual Login
function login($login, $password)
{
$rv = NULL;
if ($login == '_int_') return $this->userid;
$login = utf8_to_entities($login);
$rs = $this->loginStmt->process(utf8_decode($login));
$rec = $rs->next();
if($rs)
{
$password = utf8_to_entities($password);
if(($rec['password'] == md5(md5(utf8_decode($password)) . $rec['salt']))) $rv = $rec['id'];
}
if($rv > 0 AND $GLOBALS['vbulletin']['logupdate'])
{
$ru = $this->updateSessionForUser->process(time(),$rv);
$ru = $this->updateLastactivityForUser->process(time(),$rv);
}
unset ($_SESSION['fc_users_cache'][$this->userid]);
unset ($_SESSION['fc_roles_cache'][$this->userid]);
return $rv;
}
// Logout
function logout()
{
$_SESSION['fc_users_cache']['sessionhashid'] = '#';
if($this->userid > 0 AND $GLOBALS['vbulletin']['logupdate'])
{
$ru = $this->updateSessionForUser->process(time(),$this->userid);
$ru = $this->updateLastactivityForUser->process(time(),$this->userid);
}
return NULL;
}
// Assign chat role
function getRoles($usergroupid)
{
$groups = explode(',',$usergroupid);
$userrole = ROLE_NOBODY ; // Set default access
foreach ($GLOBALS['vbulletin']['users'] as $group) if (in_array($group,$groups)) $userrole = ROLE_USER;
if ($GLOBALS['fc_config']['liveSupportMode'])
{
foreach ($GLOBALS['vbulletin']['customer'] as $group) if (in_array($group,$groups)) $userrole = ROLE_CUSTOMER;
}
foreach ($GLOBALS['vbulletin']['mods'] as $group) if (in_array($group,$groups)) $userrole = ROLE_MODERATOR;
foreach ($GLOBALS['vbulletin']['admin'] as $group) if (in_array($group,$groups)) $userrole = ROLE_ADMIN;
foreach ($GLOBALS['vbulletin']['banned'] as $group) if (in_array($group,$groups)) $userrole = ROLE_NOBODY;
return $userrole;
}
// Get user details
function getUser($userid)
{
if(($rs = $this->getUserStmt->process($userid)) && ($rec = $rs->next()))
{
$rec['usergroupid'] .= ",".$rec['membergroupids'] ;
$rec['roles'] = $this->getRoles($rec['usergroupid']);
$tagencoded = entities_to_utf8($rec['login']);
if(strlen($rec['login']) > strlen($tagencoded)) $rec['login'] = $tagencoded;
else $rec['login'] = utf8_encode($rec['login']);
$_SESSION['fc_users_cache'][$userid] = $rec;
$_SESSION['fc_roles_cache'][$userid] = $rec['roles'];
return $rec;
}
return null;
}
// Return all existing users
function getUsers()
{
return $this->getUsersStmt->process();
}
// Returns URL of user profile page for such user id or null if user not found
function getUserProfile($userid)
{
return ($this->userid == $userid) ? "../profile.php?do=editprofile" : "../member.php?u=$userid";
}
// Check if user is in a specific role
function userInRole($userid, $role)
{
if(!intval($userid))
{
return false;
}
$user = $this->getUser($userid) ;
if($role == $user['roles']) return true;
return false;
}
// Get male or female
function getGender($user)
{
return NULL;
}
// Get current profile picture or avatar
// This function is only supported if you use the database storage method in vbulletin
function getPhoto($userid)
{
if($_SESSION['fc_users_cache'][$userid]['pid'] == $userid)
{
return $_SESSION['fc_users_cache'][$userid]['fpath'];
}
if($GLOBALS['vbulletin']['useavatar'])
{
$rs = $this->getAvatar->process($userid);
}
else
{
$rs = $this->getPicture->process($userid);
}
if(($rec = $rs->next()) == null) return '';
$fparts = explode('.', $rec['filename']);
$fname = strtolower('$'.substr('000000'.$userid,-6).'$'.$rec['dateline'].'.'.$fparts[count($fparts)-1]);
$fpath = './images/cust_img/'.$fname;
if(!file_exists($fpath))
{
$fp = fopen($fpath, 'wb');
fwrite($fp, $rec['filedata']);
fflush($fp);
fclose($fp);
}
$_SESSION['fc_users_cache'][$userid]['pid'] = $userid;
$_SESSION['fc_users_cache'][$userid]['fpath'] = $fpath;
return $fpath;
}
}
// Get vb config.php
$vbpath = realpath(dirname(__FILE__));
require_once $vbpath . '/../../../includes/config.php';
// Clear moderator message
foreach($GLOBALS['fc_config']['languages'] as $k => $v)
{
$GLOBALS['fc_config']['languages'][$k]['dialog']['login']['moderator'] = '';
}
// Get settings from vbulletin config settings
$GLOBALS['fc_config']['db'] = array(
'base' => $config['Database']['dbname'],
'user' => $config['MasterServer']['username'],
'pass' => $config['MasterServer']['password'],
'pref' => $GLOBALS['fc_config']['db']['pref'],
'host' => $config['MasterServer']['servername'],
);
// Add tcp port if specified
if($config['MasterServer']['port'])
{
$GLOBALS['fc_config']['db']['host'] .= ':'.$config['MasterServer']['port'];
}
// vbulletin specific settings
$GLOBALS['vbulletin'] = array(
'cookie' => $config['Misc']['cookieprefix'],
'prefix' => $config['Database']['tableprefix'],
'spkupdate' => true, // Update vBulletin when user speaks.
'logupdate' => true, // Update vBulletin when user logs in/out.
'useavatar' => true, // True = use custom avatar for flashchat photo feature, False = use custom profile picture.
'users' => array( 2 ) , // Usergroups allowed standard access to chat.
'mods' => array( 5,7 ) , // Usergroups allowed access as chat moderators.
'admin' => array( 6 ) , // Usergroups allowed access as chat administrators.
'banned' => array( 1,3,8 ) , // Usergroups banned from accessing the chat.
'customer' => array( 0 ) , // Usergroups allowed access as customers (Live support mode only).
);
// Initiate class
$GLOBALS['fc_config']['cms'] = new vBulletinCMS();
?>
Just upgrade to the latest version:
v3.06 - Fixed error message when accessing chat admin area.
v3.07 - Default role changed.
NeutralizeR, I have also gotten that error and my users have gotten it too (though it's not every time). I do use the database system though. Is there something I should be altering in the CMS? I couldn't really follow what you were saying in your post, I don't understand php. :)
~Sparky
Here is my CMS:
<?php
/*
$Author: pem $
$Revision: 1.8 $
$Date: 2006/09/27 09:30:01 $
Version 3.07
By Paul M - this CMS file is For vBulletin 3.6 and Flashchat 4.7.0 or above.
Recent changes ;
3.03 - Minor fix to Get User for membergroupids, some SQL changes.
3.04 - Security (anti-hacking) code added (as supplied by Darren).
3.05 - Multiple updates, user settings moved to top.
3.06 - Fixed bug in vbpath when in admin area.
3.07 - Default role changed.
*/
// Usergroup Definitions
$users = '2,9' ;
$moderators = '5,7' ;
$administrators = '6' ;
$banned = '1,3,4,8' ;
// Live support mode only
$customers = '0' ;
// Path to vbulletin root folder - with trailing '/'
$vbpath = ''; // Leave blank unless you wish to override the default.
class vBulletinCMS
{
// Initialise CMS
function vBulletinCMS()
{
$prefix = $GLOBALS['vbulletin']['prefix'];
$this->loginStmt = new Statement("SELECT *, userid AS id FROM {$prefix}user WHERE username=?");
$this->getUserStmt = new Statement("SELECT *, userid AS id, username AS login FROM {$prefix}user WHERE userid=?");
$this->getUsersStmt = new Statement("SELECT *, userid AS id, username AS login FROM {$prefix}user");
$this->getUserForSession = new Statement("SELECT * FROM {$prefix}session WHERE sessionhash=? ORDER BY lastactivity DESC");
$this->updateLastactivityForUser = new Statement("UPDATE {$prefix}user SET lastactivity=? WHERE userid=?");
$this->updateSessionForUser = new Statement("UPDATE {$prefix}session SET lastactivity=?, location='$_SERVER[REQUEST_URI]' WHERE userid=?");
//$this->getAvatar = new Statement("SELECT * FROM {$prefix}customavatar WHERE userid = ? AND visible = 1");
//$this->getPicture = new Statement("SELECT * FROM {$prefix}customprofilepic WHERE userid = ? AND visible = 1");
$this->session = $_COOKIE[$GLOBALS['vbulletin']['cookie'] . 'sessionhash'];
if($_SESSION['fc_users_cache']['sessionhashid'] != $this->session)
{
$rs = $this->getUserForSession->process($this->session);
if($rec = $rs->next())
{
$this->userid = intval($rec['userid']);
$_SESSION['fc_users_cache']['sessionuserid'] = $this->userid;
$_SESSION['fc_users_cache']['sessionhashid'] = $this->session;
}
}
else
{
$this->userid = $_SESSION['fc_users_cache']['sessionuserid'];
}
if($_POST['t'] AND $GLOBALS['vbulletin']['spkupdate'] AND intval($this->userid) > 0)
{
$ru = $this->updateSessionForUser->process(time(),$this->userid);
$ru = $this->updateLastactivityForUser->process(time(),$this->userid);
}
}
// Auto Login
function isLoggedIn()
{
if($this->userid > 0 AND $GLOBALS['vbulletin']['logupdate'])
{
$ru = $this->updateSessionForUser->process(time(),$this->userid);
$ru = $this->updateLastactivityForUser->process(time(),$this->userid);
}
unset ($_SESSION['fc_users_cache'][$this->userid]);
unset ($_SESSION['fc_roles_cache'][$this->userid]);
return $this->userid;
}
// Manual Login
function login($login, $password)
{
$rv = NULL;
if ($login == '_int_') return $this->userid;
$login = utf8_to_entities($login);
$rs = $this->loginStmt->process(utf8_decode($login));
$rec = $rs->next();
if($rs)
{
$password = utf8_to_entities($password);
if(($rec['password'] == md5(md5(utf8_decode($password)) . $rec['salt']))) $rv = $rec['id'];
}
if($rv > 0 AND $GLOBALS['vbulletin']['logupdate'])
{
$ru = $this->updateSessionForUser->process(time(),$rv);
$ru = $this->updateLastactivityForUser->process(time(),$rv);
}
unset ($_SESSION['fc_users_cache'][$this->userid]);
unset ($_SESSION['fc_roles_cache'][$this->userid]);
return $rv;
}
// Logout
function logout()
{
$_SESSION['fc_users_cache']['sessionhashid'] = '#';
if($this->userid > 0 AND $GLOBALS['vbulletin']['logupdate'])
{
$ru = $this->updateSessionForUser->process(time(),$this->userid);
$ru = $this->updateLastactivityForUser->process(time(),$this->userid);
}
return NULL;
}
// Assign chat role
function getRoles($usergroupid)
{
$groups = explode(',',$usergroupid);
$userrole = ROLE_ANY ; // Default //
foreach ($GLOBALS['vbulletin']['users'] as $group) if (in_array($group,$groups)) $userrole = ROLE_USER;
if ($GLOBALS['fc_config']['liveSupportMode'])
{
foreach ($GLOBALS['vbulletin']['customer'] as $group) if (in_array($group,$groups)) $userrole = ROLE_CUSTOMER;
}
foreach ($GLOBALS['vbulletin']['mods'] as $group) if (in_array($group,$groups)) $userrole = ROLE_MODERATOR;
foreach ($GLOBALS['vbulletin']['admin'] as $group) if (in_array($group,$groups)) $userrole = ROLE_ADMIN;
foreach ($GLOBALS['vbulletin']['banned'] as $group) if (in_array($group,$groups)) $userrole = ROLE_NOBODY;
return $userrole;
}
// Get user details
function getUser($userid)
{
if(($rs = $this->getUserStmt->process($userid)) && ($rec = $rs->next()))
{
if(intval($rec['membergroupids'])) $rec['usergroupid'] .= ",".$rec['membergroupids'] ;
$rec['roles'] = $this->getRoles($rec['usergroupid']);
$tagencoded = entities_to_utf8($rec['login']);
if(strlen($rec['login']) > strlen($tagencoded)) $rec['login'] = $tagencoded;
else $rec['login'] = utf8_encode($rec['login']);
$_SESSION['fc_users_cache'][$userid] = $rec;
$_SESSION['fc_roles_cache'][$userid] = $rec['roles'];
return $rec;
}
return null;
}
// Return all existing users
function getUsers()
{
return $this->getUsersStmt->process();
}
// Returns URL of user profile page for such user id or null if user not found
function getUserProfile($userid)
{
return ($this->userid == $userid) ? "../profile.php?do=editprofile" : "../member.php?u=$userid";
}
// Check if user is in a specific role
function userInRole($userid, $role)
{
if(!intval($userid))
{
return false;
}
$user = $this->getUser($userid) ;
if($role == $user['roles']) return true;
return false;
}
// Get male or female
function getGender($user)
{
return NULL;
}
// Get current profile picture or avatar
// This function is only supported if you use the database storage method in vbulletin
// function getPhoto($userid)
//{
//if($_SESSION['fc_users_cache'][$userid]['pid'] == $userid)
//{
//return $_SESSION['fc_users_cache'][$userid]['fpath'];
//}
//if($GLOBALS['vbulletin']['useavatar'])
//{
// $rs = $this->getAvatar->process($userid);
//}
//else
//{
// $rs = $this->getPicture->process($userid);
//}
//if(($rec = $rs->next()) == null) return '';
//$fparts = explode('.', $rec['filename']);
//$fname = strtolower('$'.substr('000000'.$userid,-6).'$'.$rec['dateline'].'.'.$fparts[count($fparts)-1]);
//$fpath = './images/cust_img/'.$fname;
//if(!file_exists($fpath))
//{
// $fp = fopen($fpath, 'wb');
// fwrite($fp, $rec['filedata']);
// fflush($fp);
// fclose($fp);
//}
//$_SESSION['fc_users_cache'][$userid]['pid'] = $userid;
//$_SESSION['fc_users_cache'][$userid]['fpath'] = $fpath;
//return $fpath;
//}
}
// Security check
if (!defined('INC_DIR'))
{
exit('Error 01 - Please consult you system administrator.');
}
// Find vbroot
$vbroot = realpath(dirname(__FILE__)).'/../../../';
if ($vbpath)
{
$vbroot = $vbpath;
}
// Get vb config
if (!include_once($vbroot.'includes/config.php'))
{
exit('Error 02 - vbulletin config file not loaded, check you have the correct path.');
}
// Clear moderator message
foreach($GLOBALS['fc_config']['languages'] as $k => $v)
{
$GLOBALS['fc_config']['languages'][$k]['dialog']['login']['moderator'] = '';
}
// Get settings from vbulletin config settings
$GLOBALS['fc_config']['db'] = array(
'base' => $config['Database']['dbname'],
'user' => $config['MasterServer']['username'],
'pass' => $config['MasterServer']['password'],
'pref' => $GLOBALS['fc_config']['db']['pref'],
'host' => $config['MasterServer']['servername'],
);
// Add tcp port if specified
if($config['MasterServer']['port'])
{
$GLOBALS['fc_config']['db']['host'] .= ':'.$config['MasterServer']['port'];
}
// vbulletin specific settings
$GLOBALS['vbulletin'] = array(
'cookie' => $config['Misc']['cookieprefix'],
'prefix' => $config['Database']['tableprefix'],
'spkupdate' => true, // Update vBulletin when user speaks.
'logupdate' => true, // Update vBulletin when user logs in/out.
//'useavatar' => true, // True = use custom avatar for flashchat photo feature, False = use custom profile picture.
'users' => explode(',',$users) , // Usergroups allowed standard access to chat.
'mods' => explode(',',$moderators) , // Usergroups allowed access as chat moderators.
'admin' => explode(',',$administrators) , // Usergroups allowed access as chat administrators.
'banned' => explode(',',$banned) , // Usergroups banned from accessing the chat.
'customer' => explode(',',$customers) , // Usergroups allowed access as customers.
);
// Initiate class
$GLOBALS['fc_config']['cms'] = new vBulletinCMS();
?>
Just set your Usergroup Definitions at the beginning.
I'm waiting Paul's answer like you.
Paul M
10-01-2006, 09:37 AM
For some reason I don't get an e-mail when you update this hack. Only notice by chance.Update messages are not sent out unless it's a requirement (or desirable) to update, or new functionality is added - none of these is the case in any of the recent updates.
Paul M
10-01-2006, 10:04 AM
There was always an error message displaying at the top right corner of the private message windows, saying "Image load error" in red.
You must have used the database in the past - basically it's finding avatars stored in the database and trying to use them. If you don't use the database for avatar storage then empty the customavatars table and the problem should go away.
I've seen this part in your integration mod:
// Get male or female
function getGender($user)
{
return NULL;
}
I've gender customfields defined at my vb. How can i use it for the code above?
You can't unless you write some custom code to query the vb database for the relevant field and then convert the result into Male or Female.
RedTurtle
10-01-2006, 11:59 AM
Just upgrade to the latest version:
v3.06 - Fixed error message when accessing chat admin area.
v3.07 - Default role changed.
Hi, I just upgraded my CMS file to v3.07 but I'm still having the problem where the admin (me) and moderators are required to login to FlashChat when they're already logged into vB. I cleared my cache on my browser and still get the same problem.
One thing of interest is that a regular user does not have this problem on her computer however if I login to vB with her username and password and then go to the chatroom, it doesn't auto-log me in. It requires the user/pass.
Any ideas? I would really appreciate all your help. Thank you very much.
NeutralizeR
10-01-2006, 03:47 PM
You must have used the database in the past - basically it's finding avatars stored in the database and trying to use them. If you don't use the database for avatar storage then empty the customavatars table and the problem should go away.
I've empied them as i don't want to edit CMS file each time i upgrade my flashchat vb integration. Any chance to get customavatars-customprofilepics working for filesystem?
Edit: Guess what? All customavatars & customprofilepics've been deleted.... :( cpanel daily backups are enabled, how can i restore them?
You can't unless you write some custom code to query the vb database for the relevant field and then convert the result into Male or Female.
You'll never code it for me, will you :P
Thanks for the reply.
Paul M
10-01-2006, 03:59 PM
Edit: Guess what? All customavatars & customprofilepics've been deleted.... :(
Then despite what you said, you obviously weren't using the filesystem, you were using the database.
cpanel daily backups are enabled, how can i restore them?
You'll have to ask your host that, or start a thread asking, I don't use cpanel.
NeutralizeR
10-01-2006, 04:11 PM
Then despite what you said, you obviously weren't using the filesystem, you were using the database.
You'll have to ask your host that, or start a thread asking, I don't use cpanel.
I'm using the filesystem but those tables should still have some data to attach them to user tables.
Storage Type Attachments are currently being stored in the filesystem at /home/msxorg/public_html/forum/uploads
I can't restore a fullbackup of yesterday since i'll lose 300+ members and many threads & posts.
I just need to restore 2 tables. If you know how to do it (not via cpanel) i'll be appreciated.
Edit: Found this thread:
http://www.vbulletin.com/forum/showthread.php?t=56247&highlight=restore+single+table
and submitted a ticket to my server management team...
Paul M
10-01-2006, 04:38 PM
I'm using the filesystem but those tables should still have some data to attach them to user tables.Nope, you are not using the filesystem for avatars and pictures, if you were then those tables can happily be emptied without any problem. You are using the database to store them.
Attachments are currently being stored in the filesystem at /home/msxorg/public_html/forum/uploadsThis refers to attachments only, not avatars or profile pictures - for those look in the ACP under Avatars > User Picture Storage Type.
NeutralizeR
10-01-2006, 05:23 PM
Nope, you are not using the filesystem for avatars and pictures, if you were then those tables can happily be emptied without any problem. You are using the database to store them.
This refers to attachments only, not avatars or profile pictures - for those look in the ACP under Avatars > User Picture Storage Type.
I've checked and it says:
Avatars are currently being served from the filesystem at ./customavatars
Profile pictures are currently being served from the filesystem at ./customprofilepics
Signature pictures are currently being served from the filesystem at ./signaturepics
sam anders
10-01-2006, 06:12 PM
any idea how i can admin this plugin?
installed but i dont want access to all my members when i access the admin on the chat software it say do it via the cms program but i seen no options in my vb admin
NeutralizeR
10-01-2006, 06:35 PM
I've restored those tables and it's ok now...
PixelFx
10-01-2006, 06:43 PM
I'm running php 5.1.6, and getting a blank page the first time I go to run the install.php for flash chat, I've checked all my links and settings so not sure what I'm missing.
Anything you can do to point me in the right direction would be great.
Paul M
10-01-2006, 06:48 PM
I've checked and it says:
My apologies, you are absolutely right. I just spent a bit of time looking at this and it seems it still uses the tables to store certain information about the files, so clearing them was a bad idea. :dead: Glad you got them restored. :)
The CMS file sees those entries and assumes the database is in use - the check needs to be more exact.
teedizz
10-01-2006, 08:55 PM
hey Paul, how can i make it to when someone clicks to go into chat, it opens up a new window instead of opening up in the current window?
Paul M
10-01-2006, 08:59 PM
add target="_blank" to the link.
Paul M
10-01-2006, 09:00 PM
I'm running php 5.1.6, and getting a blank page the first time I go to run the install.php for flash chat, I've checked all my links and settings so not sure what I'm missing.
Anything you can do to point me in the right direction would be great.Is the chat in your forum root ?
teedizz
10-02-2006, 04:19 AM
add target="_blank" to the link.
im sorry paul..can you explain a little bit more please.
Paul M
10-02-2006, 01:17 PM
In the code for your link you will have something like <a href="some url"> you need to add a target to it, like this <a href="some url" target="_blank">
RedTurtle
10-02-2006, 05:45 PM
Hi, I just upgraded my CMS file to v3.07 but I'm still having the problem where the admin (me) and moderators are required to login to FlashChat when they're already logged into vB. I cleared my cache on my browser and still get the same problem.
One thing of interest is that a regular user does not have this problem on her computer however if I login to vB with her username and password and then go to the chatroom, it doesn't auto-log me in. It requires the user/pass.
Any ideas? I would really appreciate all your help. Thank you very much.
So I asked some more users and apparently everyone has to put in their login and password even though they are already logged into vB. Their vB login/pass works and they're allowed into the chat but I'm trying to get it so that if they're logged into vB it doesn't ask for them to re-authenticate.
What am I doing wrong? Your help would be greatly appreciated!
Paul M
10-02-2006, 06:18 PM
Sounds like you haven't specified the vbulletin CMS file in Flashchats config.php file.
You should see a section like this ;
//your CMS system
'CMSsystem' => 'vbulletin36CMS',// default - default CMS, blank - stateless CMS
Make sure it specifies the correct system (as above)
RedTurtle
10-02-2006, 06:20 PM
Yup, I have that set too. It really makes no sense to me. Can I PM you with my login details?
Paul M
10-02-2006, 06:57 PM
Yes.
RedTurtle
10-02-2006, 07:11 PM
PM sent. THANK YOU!
teedizz
10-02-2006, 07:17 PM
In the code for your link you will have something like <a href="some url"> you need to add a target to it, like this <a href="some url" target="_blank">
ohh I see, would that be in the config.php? but i do understand what your saying, just dont know what file to look under to add it.
sam anders
10-02-2006, 08:10 PM
any idea how i can admin this plugin?
installed but i dont want access to all my members when i access the admin on the chat software it say do it via the cms program but i seen no options in my vb admin
ok i have checked all the settings and can not find how to admin this mod, i have read up on flashchats site and still none the wiser maybe its me being thick but how can i admin this plugin?
every time i click on /chat/admin/index.php all the options do not work the following message is shown:
This option is not available when FlashChat is integrated with a custom CMS (content management system).
Please use the user administration tools which come with your system to add, edit, or remove users.
now i have checked my vb admin page and cant see any links to admin the flashchat can any one point me in the right direction please
smoknz28
10-02-2006, 08:19 PM
Has anyone figured out how to fix the drop-down menus in the navbar to function correctly while using this mod?
When in the Flashchat....users cannot use the dropdown menus in the navbar. The Flashchat blocks out the dropdown menus from displaying.
vB 3.6.1
Thanks gang,
Mark
Paul M
10-02-2006, 09:14 PM
ohh I see, would that be in the config.php? but i do understand what your saying, just dont know what file to look under to add it.Did you create a link yourself, or are you using the link it auto creates in Quick Links ?
now i have checked my vb admin page and cant see any links to admin the flashchat can any one point me in the right direction pleaseWhat are you actually trying to do ?
Has anyone figured out how to fix the drop-down menus in the navbar to function correctly while using this mod?Nope, no one has an answer for that yet.
smoknz28
10-02-2006, 09:17 PM
Nope, no one has an answer for that yet.
Thanks Paul....nice mod.... :D
I'll just sit back and check in from time to time and see if anyone comes up with a fix.
Thanks again,
Mark
teedizz
10-02-2006, 09:21 PM
Did you create a link yourself, or are you using the link it auto creates in Quick Links ?
Thanks paul...I figured it out bro ;) ...its appreciated
NeutralizeR
10-02-2006, 10:02 PM
Thanks Paul....nice mod.... :D
I'll just sit back and check in from time to time and see if anyone comes up with a fix.
Thanks again,
Mark
Actually it's possible to show DHTML menus over flashchat but this time you can't send messages by pressing the enter button. Still testing alternative solutions...
sam anders
10-03-2006, 06:54 AM
well i want to be able to change the room names and can i set up that only some members can go to some rooms? i.e a mod only chat room, and then a room just for members?
SCRIPT3R
10-03-2006, 03:25 PM
well i want to be able to change the room names and can i set up that only some members can go to some rooms? i.e a mod only chat room, and then a room just for members?
you could password protect those rooms and only give out the password to your staff.
Paul M
10-03-2006, 03:32 PM
Staff rooms are already possible - in the flashchat rooms area you create a room that is Permanant and Private - that room is then visible only to moderators and administrators.
dieselpowered
10-07-2006, 07:39 PM
Are there settings for this within the ADMINCP?
I see that you mention some functionality if enabled, however, not sure where you enable it??
For example you mentioned that it will display users in the chat if enabled...where do I enable that or do I have to install that hack?
Am I completely clueless?
Paul M
10-07-2006, 08:04 PM
The only ACP setting this has is for the height of the frame - this is in general settings. The WOL display when a person is in Flashchat is automatic - don't confuse this with the seperate hack that displays who is in that chat on forumhome.
dieselpowered
10-07-2006, 09:16 PM
Oh ok, ya I was confusing it...
So what about the setup of the permanent private rooms...is that done within flashchat?
Thanks Paul, always nice to install your hacks due to the fact that if there is any questions you always respond and assist. Thanks again!
Paul M
10-07-2006, 09:38 PM
So what about the setup of the permanent private rooms...is that done within flashchat?Yes.
Greek Wizard
10-09-2006, 08:27 AM
I really need some minor help before I pull my hair out.
Your hacks above has added a link under the Quick Links in the navbar for FlashChat (right under buddies list) See image..
https://vborg.vbsupport.ru/attachment.php?attachmentid=54419&d=1160386579
I have been searching for about 3 hours trying to find this code, with no luck. Maybe I am missing something simple, maybe I am stupid, but I am ready to give up.
The navbar was still in it's original state (not red) at the time, BUT yet the link is there in the Quick Links navbar. I have since added code to the navbar pasted below.
<script type="text/javascript">
<!--
function log_out()
{
ht = document.getElementsByTagName("html");
ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grays cale=1)";
if (confirm('$vbphrase[sure_you_want_to_log_out]'))
{
return true;
}
else
{
ht[0].style.filter = "";
return false;
}
}
//-->
</script>
<br />
<!-- breadcrumb, login, pm info -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%">
<if condition="is_array($navbits)">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="bottom">
<td><a href="#" onclick="history.back(1); return false;"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
<td> </td>
<td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
</tr>
<tr>
<td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><if condition="$_SERVER['REQUEST_METHOD'] == 'POST'"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="" border="0" /><else /><a href="$scriptpath"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink.gif" alt="$vbphrase[reload_this_page]" border="0" /></a></if> <strong>$navbits[lastelement]</strong></td>
</tr>
</table>
<else />
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
</if>
</td>
<if condition="$show['member']">
<td class="alt2" valign="top" nowrap="nowrap">
<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
<if condition="$show['pmwarning']"><br /><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></if>
</div>
</td>
<else />
<td class="alt2" nowrap="nowrap" style="padding:0px">
<!-- login form -->
<form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
<script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont"><label for="navbar_username">$vbphrase[username]</label></td>
<td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
<td class="smallfont" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
</tr>
<tr>
<td class="smallfont"><label for="navbar_password">$vbphrase[password]</label></td>
<td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" /></td>
<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
</tr>
</table>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<!-- / login form -->
</td>
</if>
</tr>
</table>
<!-- / breadcrumb, login, pm info -->
<!-- nav buttons bar -->
<div align="center">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
<tr align="center">
<if condition="$show['member']">
<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
</if>
<if condition="$show['registerbutton']">
<td class="vbmenu_control"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
</if>
<td class="vbmenu_control"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
<td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
<if condition="$show['popups']">
<if condition="$show['searchbuttons']">
<if condition="$show['member']">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
<td id="navbar_search" class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search"); </script></if></td>
</if>
<if condition="$show['member']">
<td id="usercptools" class="vbmenu_control"><a href="$show[nojs_link]#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
</if>
<else />
<if condition="$show['searchbuttons']">
<td class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
<if condition="$show['member']">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
</if>
<td class="vbmenu_control"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
<if condition="$show['member']">
<td class="vbmenu_control"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&focus=1','buddylist','statusbar=no,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td>
</if>
</if>
<if condition="$show['member']">
<td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">$vbphrase[log_out]</a></td>
</if>
</tr>
</table>
</div>
<!-- / nav buttons bar -->
<br />
<if condition="$show['forumdesc']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%"><strong>$foruminfo[title]</strong> <span class="smallfont">$foruminfo[description]</span></td>
</tr>
</table>
<br />
</if>
<if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->
<if condition="$show['searchbuttons']">
<!-- header quick search form -->
<div class="vbmenu_popup" id="navbar_search_menu" style="display:none">
<form action="search.php?do=process" method="post">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[search_forums]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<input type="hidden" name="do" value="process" />
<input type="hidden" name="quicksearch" value="1" />
<input type="hidden" name="childforums" value="1" />
<input type="hidden" name="exactname" value="1" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<div><input type="text" class="bginput" name="query" size="25" tabindex="1001" /><input type="submit" class="button" value="$vbphrase[go]" tabindex="1004" /></div>
</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<label for="rb_nb_sp0"><input type="radio" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />$vbphrase[show_threads]</label>
<label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />$vbphrase[show_posts]</label>
</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
</tr>
</table>
</form>
</div>
<!-- / header quick search form -->
</if>
<if condition="$show['member']">
<!-- user cp tools menu -->
<div class="vbmenu_popup" id="usercptools_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead">$vbphrase[quick_links]</td></tr>
<if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[todays_posts]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td></tr>
<tr><td class="vbmenu_option"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&focus=1','buddylist','statusbar=no,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td></tr>
<tr><td class="thead"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_control_panel]</a></td></tr>
<if condition="$show['siglink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr></if>
<!--<if condition="$show['avatarlink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td></tr></if>-->
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a></td></tr>
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>
<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
<if condition="$show['pmmainlink']"><tr><td class="vbmenu_option"><a href="private.php$session[sessionurl_q]" rel="nofollow">$vbphrase[private_messages]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="subscription.php$session[sessionurl_q]" rel="nofollow">$vbphrase[subscribed_threads]</a></td></tr>
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr>
<tr><td class="vbmenu_option"><a href="psistats.php$session[sessionurl_q]">$vbphrase[psistats_link]</a></td></tr>
<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php$session[sessionurl_q]">$vbphrase[whos_online]</a></td></tr></if>
</table>
</div>
<!-- / user cp tools menu -->
</if>
<!-- / NAVBAR POPUP MENUS -->
<!-- PAGENAV POPUP -->
<div class="vbmenu_popup" id="pagenav_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead" nowrap="nowrap">$vbphrase[go_to_page]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
<input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
<input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]" />
</form>
</td>
</tr>
</table>
</div>
<!-- / PAGENAV POPUP -->
</if>
I am simply trying to change it so that it opens in a new window. i know the code to add, but can not find the misc.php?do=flashchat anywhere.
I have changed the other two links (Who is in Chat and Who is online), but this one has avoided me.
Please, can anyone help a guy out?
Paul M
10-09-2006, 11:46 AM
You won't find it in the template, it's added 'on the fly' by the plugin.
Greek Wizard
10-09-2006, 08:12 PM
You won't find it in the template, it's added 'on the fly' by the plugin.
So how can i change it?
I tried editing the xml before improting it to add the _blank code, but it gives errors on the forum home page.
Paul M
10-09-2006, 08:45 PM
What did you edit ?
adwade
10-10-2006, 08:01 AM
Ok, I purchased, downloaded, and installed FlashChat v4.73 according to the Integrating FlashChat documentation that came with it. All went smoothly and it worked just fine.(i.e. Step 1 of FlashChat-vb-integration.txt file)
Then, I came here and downloaded this MOD and followed it's FlashChat-vb-integration.txt file...
Performed Step 2, by editing & uploading the vbulletin36CMS.php file.
Performed Step 3, setting 'url' => '/forums/index.php?'
(Note: My board is installed in a 'forums' directory)
Performed Step 4 edit as denoted in the text file.
Performed Step 5, selecting Allow Overwrite = Y
Now, whenever I try to go into CHAT I see a new msg in RED that reads:
"To login as an administrator, moderator or spy, please use the passwords found in FlashChat's configuration file, with any username." on the Welcome to FlashChat v 4.7.3 login page.
Before, when I would click on the 'Start FlashChat using built-in login' button I went right in. Now, it no longer works. Instead, I go to a 'Please login to the chat' screen.
I read thru the config.php file under the 'Roles config' section and tried logging in using the adminstrator password denoted there, but still to no avail. I can't get logged into CHAT no matter what I try right now.
Lastly, I'm using Miko's ARIA Skins (from vbstyles) and my QuickLinks button on the navbar has changed. Before, it functioned as a drop down. Now, it reloads the entire page and moves the SEARCH function one place over to the left, adds mark forums read & open buddy list buttons and the Quick Links button itself disappears...but no CHAT button shows up anywhere.
Anyway, does this MOD force the admins/moderators to login with a new/different password, and does it have to be that way?
Any feedback on what's gone wrong would be appreciated. Thanxx.
Paul M
10-10-2006, 08:37 AM
Check what CMS system you have specified in Flashchats config.php, sounds to me like it isn't vbulletin36CMS.
adwade
10-10-2006, 09:19 AM
I didn't know you had to specify one. :confused: Anyway, did so just now and that managed to get me logged in...to something.
Before, I got a blue flashchat screen when I went in. Now I get a mostly all black screen for about 3 seconds, and then in turns white. Not like any Chat I've ever seen.
When I use my browser's back button and then check the who's logged in feature, it says I am logged in...but again all of FlashChat's normal look is not there at all.
adwade
10-10-2006, 09:51 AM
I think a big part of the problem is, I misunderstood your instructions in the Flashchat-vb-integration.txt file. For instance, where you said:
Step 3. (optional)
Edit ../chat/inc/config.php
I edited the copy that came with FlashChat on my local HD and then FTP'd it up to my site. In doing so, I'm guessing I've overwritten the 'good' file that was left there by the FlashChat install process.:tired: So now, no tellin' what all I'm missing besides the vbulletin36CMS file specification you denoted.:confused:
Is my best bet to just remove FlashChat altogether and reinstall it again? Then, when I get to your part of the integration I'll know this time to copy down what I have from the server, edit it, and then put the files back in place.
Paul M
10-10-2006, 04:45 PM
Re-run the install, it won't harm anything, it will detect you already have the tables installed.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.