View Full Version : Flashchat
djema
01-04-2006, 05:50 AM
Sorry im slow :roll: , lol I was reading the forum about installing flash chat on my site. I pretty much get every step, but when it comes to the part of getting it installed. using intergation, phpfox is not listed.. do i have do do a seprate database for this?
hej,
yup thats right there isnt a int. on the flashchat software so the best thing to do is install the flashchat in the same database as the phpfox was installed.
then if you got back to the tut. on adding the flashchat and you reach to step
6, that is where you can integrate flashchat with phpfox.
hope this helped. :D
djema
01-05-2006, 05:28 AM
Thanks for that info, Ill try this tonight
djema
01-05-2006, 10:24 AM
ok i followed your steps and also followed the the flashchat install steps.
im getting this error when i click on my chat link on my site
(Parse error: parse error, unexpected T_SL, expecting ',' or ';' in /home/springf/public_html/chat/index.php on line 6)
also the link for chat is there but it says NOT FOUND right next to the chat link for what ever reasons..
Hopefully i installed flashchat correcty, Im sure i did becuase i can log in manually,
I made the index.php file for the chat and copyed in to the chat folder like it says.
Also i modifed the main_body.tpl so the show a chat link... but i get that error when i click on the link....
<?php
#####################################
include("../inc/config/connect.inc");
#####################################
echo html_top("");
ECHO <<<HTML
<body>
<div style="text-align:center;">
<iframe src="$VAR[0]/chat/flashchat/flashchat.php?username=$VAR[4]&lang=en" width="100%" height="500" scrolling="no" border="0" frameborder="0" style="border:none;"></iframe>
</div>
HTML;
echo html_bottom("");
exit;
?>
this is my main_body.tpl added mod
<td class="menu" onclick="javascript:window.location.href='{%HOME%}/chat/';" onmouseover="this.className='menu2';" onmouseout="this.className='menu';">
{%LANG_CHAT%} ({%HOME%}/chat/)
</td>
natio :: phpFox
01-05-2006, 01:29 PM
yeah everyone seems to be running into this when they copy and paste from the forum and then add it to their site.
If you can copy this code instead:
Content visible to registered users only.
Try this one out, and if it doesnt work i can email you the index.php to make sure it works. :)
djema
01-05-2006, 09:50 PM
ok ill try that, ill let you know
djema
01-05-2006, 11:16 PM
can you email it to staff@springfieldblock.com
djema
01-06-2006, 04:47 AM
Ok i got the chat installed, but how can i get it so that the chat open in a smaller window inside my website, right now its installed but it opens up a new window. in a different page, I think i messed up the install of flashchat because when the chat opens i need to enter my user name and password even when im log into the site....
http://apspaces.com has it perfect!!!! the way i want it
<td class="menu" onclick="javascript:window.location.href='{%HOME%}/chat/';" onmouseover="this.className='menu2';" onmouseout="this.className='menu';">
{%LANG_CHAT%} ({%HOME%}/chat/)
Another thing on my website mainpage it say NOT FOUND chat dont know why?
PS: when installing flashchat what will be the profile link for member profiles.. im having trouble on that one.
If you want to have the chat room open up in the same page as your site you can do this...
Content visible to registered users only.
The NOT FOUND comes up because the language is not defined in the phpfox lang file which is located in "/inc/language/english/main.php" You dont really need to call it {%LANG_CHAT%} if your site will just be in english. You can simply add...
Content visible to registered users only.
Now the login problem, im not to sure about this since flashchat has a new system out and their config file might be different. If you can open up the config.php in your flashchat folder you will find all the config settings for the flashchat.
The profile link for members is "/user/?P=". Im not to sure how this is entered in the flashchat install cause this seems like a new feature they have added.
djema
01-07-2006, 05:38 AM
Yes!! Awesome its working!!! the only thing im trying to figure out is the config for the profile so when you want to see a users profile you can click there names and see the profile....
'profile_path'=>'http://www.XXXXXXXXXXX.com/user/',
'profile_arg' =>'?P={something here}',
djema
01-07-2006, 06:54 AM
never mind i got it working perfect!!!! now all im missing is the whos on line
Prishan
02-07-2006, 05:37 AM
Hi djema,
I have gone through the entire topic and got more confused as to how should I integrate flashchat with the website. Is it possible for you to send the entire mod (or php files) so that I can install flashchat as well? IM and Chat is the one of the most popular demand from my members. (I don't know anything about programming, I can do good copy paste job though) :)
Thanks in advance for your help.
Content visible to registered users only.
djema
02-07-2006, 06:16 AM
Wasent much that i did, i followed the directions as said, the only this i had issues was getting the link to open in the same page.
create a php file name it index.php and add this to it
Content visible to registered users only.
and add this to you main_body.tpl to get the link to the chat
Content visible to registered users only.[/code]
Prishan
02-09-2006, 04:36 AM
Thanks djema, I got my flashchat working perfectly fine. I still am looking to add 'Profile' in the chat. Can you let me know how you got it to work?
Content visible to registered users only.
djema
02-09-2006, 07:23 AM
If i remember correctly i think what i did was i added this
http://yoursite.com/user/?P=
I installed my flashchat longtime ago, Im not 100% sure if thats what i did
Im think of prob getting rid of flashchat tho, its really a resource hogger, especial in mysql, its stores all them messages in there from the chat. and really sucking up space, im constantly removing messages from sql so the DB wont get so big.
Anyways try it out.
Purefan :: phpFox
02-09-2006, 03:25 PM
If u want me to write you a small script on deleting messages from the database tell me and in doing so please provide me the structure of itself -> Name of Table, some important fields, dont know if it has an ID field but if it has it'd b useful to know.
I'd write it so that you replace important fields and so it'd be kind of generic.
If the table has it then I oculd delete the older files but that's up to the table
example:
$DatabaseName = "X";
$username = "Y";
$password = "...";
$number_of_files_to_delete = 0;
Do Not post passwords or usernames here, I know its basic but someone might get a little confused
djema
02-10-2006, 12:39 AM
Thats will be great to be able to automatically delete the chat messages from flash chat, Im kinda lost as to what you need from me to write the script? let me know
Purefan :: phpFox
02-10-2006, 12:55 AM
ok, I understand all the messages are stored in a database so what I need you to do is tell me:
-The name of the table
-if each message has a unique ID then I need to know the name of the row (most likely ID but have to make sure)
-Also if there is a row for the date, so I can make sure I am deleting the older ones and if there is in what format is it
I think that'd be all :)
pneudralics
02-18-2006, 09:10 AM
Content visible to registered users only.
Okay..I'm kind of lost. What do you enter for the following fields above? I don't know what to enter for any of the above fields.
pneudralics
02-18-2006, 05:01 PM
Okay I finally got my above post to work. What my now is the link on my main page. This is what I'm using:
Content visible to registered users only.
Everytime I click on the link it just refreshes the page. I want users to be able to click on the link and the flashchat room pops up. Seems like they still have to login when they go to chat/index.php.
natio :: phpFox
02-18-2006, 05:29 PM
Content visible to registered users only.
The chat link you got up is fine. Now it depends how you installed the flashchat. If you installed it where users dont have to be members to chat then it will work. Dont forget to look over the /chat/index.php file you added that it has the url var with the username like so in the iframe:
Content visible to registered users only.
So if we look at that code:
Content visible to registered users only.
$VAR[4] is the username that is logged in. Note if you installed flashchat to only allow members to login then this wont work and you will have to make changes in the flashchat config file. I think the file is config.php in the flashchat folder, but im not to sure its been awhile since ive looked over the script.
pneudralics
02-18-2006, 05:56 PM
What codes should I be looking for in the chat's config.php file if I only want my members on phpfox to be able to chat?
I used the following code and it refreshes /chat/ brings me to my home page.
Content visible to registered users only.
This is how installed it:
Step 3.
How would you like to use FlashChat?
I picked: As a registered users-only chatroom. Users must register and create a profile before being allowed to chat (so-called "default CMS")
Step 4. DEFAULT CMS
You have chosen the "defaultCMS" option for using FlashChat. This means that some existing table in your database will be used to store user information. FlashChat comes with its own "users" table, but you may override this choice by using your own user table.
If you choose to use your own table, then you must also have your own profile viewing and user registration pages, since the fields may differ from those in FlashChat's user table.
I picked: I have an existing table which I want to use with FlashChat. Users must exist in this table before they can login. Also, I have my own registration and profile PHP files, which should be used instead of FlashChat's files.
Step 5: Integrating FlashChat with an existing user database
I enter in all the info id stuff that's listed in my previous post with the image.
Thanks for the help.
pneudralics
02-20-2006, 03:50 AM
Okay finally got my chatroom set up. A few more things I need help with...
Did anyone get that auto delete script to work?
I can't figure out how to put it on the same page with all the navigation tabs included. I like it how djema did it.
Anyone know how to bypass the login to the chat java after my member already is logged in through my site?
rnjonjo
02-21-2006, 06:23 PM
hi,
I have another chat software that I would like to install instead.
I like it coz it's pretty simple, doesn't take up space in the DB and it just works (at least the demo does)
however I don't know how I would go about it.
the demo chat software is located here: http://www.ttchat.co.uk/ttchat/
Also, when I integrate it, how do I create a link to the chat on my navigation bar?
sorry if these questions seem pretty basic to you, but I just got my software and I'm trying to learn the ABC's.
any help?
thanx guyz
pneudralics
02-21-2006, 07:09 PM
Content visible to registered users only.
Why not just use tufat's chat? I personally think it's better than this.
rnjonjo
02-21-2006, 07:54 PM
Content visible to registered users only.
because for TigerTom's Chat Room Software MySQL is not needed; it uses flat files. The membership database rotates; old users are dropped, so it's low maintenance. it's designed for low server resource usage, while being easy to maintain.
I also like to use the K.I.S.S principle...
any help on how I'd go about installing it?
rnjonjo
02-21-2006, 08:47 PM
Content visible to registered users only.
BTW, did you get the auto delete to work?
CTalbert
05-13-2006, 03:13 PM
Hi, where did you find the information about installing flashchat?
Thanks!
rubber duck
07-04-2006, 08:26 PM
Just found this:
Integration of flashchat with phpfox:
Added by Darren Gates on 03 Jul 06 for FlashChat version 4.5.7
http://www.tufat.com/resources2.htm
PHPFox Integration for FlashChat - UPDATE
This is an update to the phpFox integration file previously posted by RuAnSoft. Please drop this file into your /inc/cmses/ folder if you've experienced any login problems with the previous version of this integration.
vBulletin® v3.6.10, Copyright ©2000-2009, Jelsoft Enterprises Ltd.