FlashChat Integration

Started by Tyrsson, January 05, 2007, 03:44:53 AM

Previous topic - Next topic

Mick.

Quote from: RoarinRow on February 25, 2007, 05:28:30 PM
Quote from: BlueDevil on February 25, 2007, 09:01:55 AM
Quote from: RoarinRow on February 24, 2007, 09:03:21 PM
Looks like there's some known issue with Googlebot and Spiders.  See 2nd page of this thread - here.  There's also a fix to the boardindex.template.php file.  Looks like you'll need to make manual updates.

For these two errors, did you install the chat software in your forum root directory?  maybe that's why it can't find the file?

9. Execute Modification ./chat/inc/flashChatTag.php File not found
10. Execute Modification ./chat/inc/cmses/smfCMS2.php File not found

Ro

I can work with the googlebot & spiders fine but i havent done so because i cant figure out why 9-10 are still missing(not found).

I tried moving folders here and there but no luck.

I thought my forum root is (publichtml) folder in "Fantastico" is in it?

Maybe those files did not come over when you were FTP'ing the FlashChat software files.  Try to upload those again to the /chat/inc path.

Ill try that.

Brain916

When I try and upload the package to my server (through the admin panel on my forum) I get this error message:

The package you tried to upload either is not a valid package or has become corrupted.

Cadence

Quote from: Brain916 on March 04, 2007, 10:30:50 AM
When I try and upload the package to my server (through the admin panel on my forum) I get this error message:

The package you tried to upload either is not a valid package or has become corrupted.

I get the same thing.  I don't think it works with 1.1.2.  Did you also update to that SMF version recently?  Perhaps, that is the problem.

k.trout

Quote from: Cadence on March 04, 2007, 05:11:07 PM
Quote from: Brain916 on March 04, 2007, 10:30:50 AM
When I try and upload the package to my server (through the admin panel on my forum) I get this error message:

The package you tried to upload either is not a valid package or has become corrupted.

I get the same thing.  I don't think it works with 1.1.2.  Did you also update to that SMF version recently?  Perhaps, that is the problem.

Same problem.  I would love to integrate flashchat with SMF.  What's up?

Tan

Dont think it ready for 1.1.2 yet. It will work if you load flash chat on to 1.1.1 then update to 1.1.2 afterwards. Thats what i did and it works great.



Daniel15

#205
Sorry guys, I haven't had time to test the mod with SMF 1.1.2... I'll do that right now :)

EDIT: FlashChat website is down at the moment, so I can't download a copy of the latest FlashChat version. As soon as it's up again, I'll test the mod :)

EDIT 2: I just tested it, and it works fine for me. What PHP version do you guys have (can be checked in  the "Support and Credits" section of the admin panel)?
Can you try CHMODding your Packages directory to 0777? Then, create a temp directory inside it, and CHMOD that to 0777 also.
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

crash56

I just installed this on our forum (SMF 1.1.2 without Googlebot/Spiders) and it went in without a hiccup.  I'm still futzing with the themes to get the Users Online to show up (we've got some 1.0.x themes still in use), but no problems so far. 

Very nice!!!  Thank you.  :D

k.trout

Daniel - thanks for all of your work in creating and supporting the flashchat program.  Very much appreciated.

I saw your suggestion to chmod the packages dir to 777 and add a "temp" dir with 777 in another thread on this forum and had tried it and still got the error message when trying to download the package that it is either corrupt or not compatible with this version.

I have flashchat running in my forum base directory.  It is running as a public chat.  When installed it  required me to chmod quite a few files and directories.  It then seemed to skip the install screen for choosing your BB and went directly to the form that handles info about DB, db user, password etc.  None of the fields were filled in so I went ahead and filled them in and the program installed just fine.    I chose a public forum due to having seen something on your site saying that if the data was not automatically filled in that it was likely having trouble installing.  So I went ahead and made it a public chat for fear that if I had chosen to integrate that I would have been left with a dead chat.  The people on my forum like it a great deal and I would like to be able to integrate it with the forum so that only registered users could access and they could also keep track of who was in the chat at any given time. 

Is it mandatory that this mod be downloaded with the package section of the admin.  I downloaded the mod onto my pc and I assume it is the same files that are in the "package."  Should I go ahead and try and run it?  Are there directions for a manual install?

Many thanks.

K  

Daniel15

Quote from: crash56 on March 12, 2007, 11:58:08 AM
I just installed this on our forum (SMF 1.1.2 without Googlebot/Spiders) and it went in without a hiccup.  I'm still futzing with the themes to get the Users Online to show up (we've got some 1.0.x themes still in use), but no problems so far. 

Very nice!!!  Thank you.  :D
I haven't looked at 1.0 themes for ages, but SMF 1.0 did things quite differently (SMF 1.1's design is a lot better :))

Quoteif I had chosen to integrate that I would have been left with a dead chat
This mod requires you to integrate the chat.
Basically, by integrating the chat, it will share your forum's member list. This mod takes advantage of that to show who's online on your board index :)

QuoteIs it mandatory that this mod be downloaded with the package section of the admin.
Usually, this is what is done, although it's possible to install it manually (see below)

Quotedownloaded the mod onto my pc and I assume it is the same files that are in the "package."  Should I go ahead and try and run it?  Are there directions for a manual install?
Yes, it's the same files :)
If you want to install it manually, then upload the package to http://server.daniel15.com/smf/package.php. It will tell you exactly what you need to do (you need to upload Chat.php to Sources, Chat.template.php to Themes/default, and edit some of SMF's files). If you need any assistance, feel free to ask ;)

By the way, I'm not a developer of FlashChat, I just make this integration mod for SMF ;)
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

k.trout

Thanks for your help with this Daniel15

QuoteThis mod requires you to integrate the chat.

So does this mean that I need to re-install?  You mention later in your post that the chat.php file needs to be placed in the sources directory.  I have my smf in a directory called forums and installed the chat program in that directory.  Does it need to be in forums/sources?  This might explain my trouble in installing.

QuoteIf you want to install it manually, then upload the package to http://server.daniel15.com/smf/package.php [nofollow]. It will tell you exactly what you need to do (you need to upload Chat.php to Sources, Chat.template.php to Themes/default, and edit some of SMF's files). If you need any assistance, feel free to ask

Thanks for this.  I had a quick look and became quickly intimidated.  :o  I'm pretty much a noob at this sort of thing and a couple of add or replace I can handle but when it is a bit more my poor bio-computer gets overwhelmed.  I may work on getting the package to load properly and find out what might be holding that up.  If I can't figure that one out I will bite the bullet and do it by hand. 




Daniel15

QuoteSo does this mean that I need to re-install?  You mention later in your post that the chat.php file needs to be placed in the sources directory.  I have my smf in a directory called forums and installed the chat program in that directory.  Does it need to be in forums/sources?  This might explain my trouble in installing.
You'll need to install FlashChat into a folder called "chat" inside your forum's directory.

So, if your forum is in a folder called "forum", you'll end up with:

forum (main forum folder)
|-- chat (all the FlashChat files)
|-- Sources
 |    |-- Chat.php (file included with this mod)
|-- Themes
      |-- default
           |-- Chat.template.php (included with this mod)
(I'm hoping that this makes sense to you? Basically, you'll have all the FlashChat files in forum/chat, and the files from my mod in forum/Sources/Chat.php and forum/Themes/default/Chat.template.php)
QuoteThanks for this.  I had a quick look and became quickly intimidated.    I'm pretty much a noob at this sort of thing
Don't worry, it's not that hard :)
Make sure you have a backup copy of all the files you edit. Then, if something goes wrong, you can upload the backed up file. Note that if you follow the instructions carefully, you'll be fine :D
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

k.trout

Aha!  Some progress.

I searched on the board and found a thread that solves the "package you are trying to download or install is either corrupt or not compatible with this version of SMF. "  Very simple solution on this thread.

http://www.simplemachines.org/community/index.php?topic=141810.0

Basically they say:

QuoteDelete the "Simple Machines Third-party Mod Site"

Add a new one with this address: http://custom.simplemachines.org/mods

I did this and was able to download the package just fine.  Now we will see what happens.

Smith Online

#212
I was a noob at this sort of thing and did not have a clue how to install after reading loads of post regarding installing mods and permissions and integrating various programs etc i have finally found a way that works for installing mods. :D

My flash chat version = v479
My smf version = 1.1.2

This is how i successfully installed the flash chat mod with no problem or errors: -
if you are a noob to this sort of thing dont worry follow the intructions below at you will be up and running in no time this will take approx 30 mins and you will have flash chat installed and working on your smf forum.

Below are instructions for installing flash chat manually as i tried everything to install via package manager but with no luck i just got error after error and after reading a few posts i found everyone else had problems using the package manager. The errors that accur using package manager are because of permission problems accessing files also your server being in safe mode and many other factors but if you install manually following the instructions below then this should work for anyone.


HOW TO INSTALL THE FLASH CHAT MOD MANUALLY

First of all you need to install you flash chat program into a folder called chat on your server

Then run this in your web browser: -
www.yoursite.com/chat/install.php

Then you will see this: -


Then tick the box at the top the says "click here if you wish to integrate flash chat..................etc"

Then follow all instructions given on the following pages the next page you will see will be the database information which should already be filled in with the same information as the database used by your smf forum.

Once you have fineshed all that flash chat is now running and the following address: -
www.yoursite.com/chat/flashchat.php
Check and see that it is running ok the username and passwords to login should be the same as the ones used to login to your smf forum.

Now that your flash chat is up and running all you need to do is integrate it into your forum follow the instructions below:-

Firstly copy the files below into the folders shown which are folders within your forum:-
(these files are located in the flash chat mod)

Chat.php will be copied to $sourcedir
Chat.template.php will be copied to $themedir

Now copy all the following files form your smf forum to your computer for editing: -

file $boarddir/index.php
file $boarddir/SSI.php
file $sourcedir/BoardIndex.php
file $themedir/BoardIndex.template.php                 the default theme for the moment
file $languagedir/Modifications.english.php
file $themedir/index.template.php                         the default theme for the moment
file $boarddir/chat/inc/flashChatTag.php
file $boarddir/chat/inc/cmses/smfCMS2.php


Now you have all the above files on your computer copy all the files into a folder on your desktop called backup
do the edit the files you have in you backup folder as these files are incase something goes wrong.

Now you can follow the instructions below to edit all the files you have just downloaded from your server were your forum files are located (not the files you just placed in the backup folder): -

To edit the files simply open the files in notepad you will then see all the code contained in the file you are simply adding/modifieing the code in each file. I quick way to find the code needed is to click on edit then click on find and type in what you want to find.

Editing the files

Open this page http://server.daniel15.com/smf/package.php this click on the browse button and find the FlashChatSMF_0-1_Beta.zip file on your computer (which is the flash chat mod) then click on open select smf version 1.1.2 then leave all the boxes as defualt then click on send file.

you will then be shown a page which will show you what code needs editing / replacing / adding into each file

edit / replace / add all the code in the correct files carefully

Once you have do all the above put the files back on your server in to the correct folders.

Now load up your forum and select the default theme if nessesary you will see a chat button at the top click on that and flash chat will load within your smf forum  :D


NOW ONLY IF YOU ARE USING A DIFFERENT THEME FORM THE ORIGINAL YOU NEED TO CHANGE TWO FILES IN THE THEME YOU WISH TO USE:-

To do this simply copy the following two files from your server to your pc (remeber to keep backups as before)

[theme name]/BoardIndex.template.php
[theme name]/index.template.php

Then edit the two files in the same way as before with the following code: -

In File BoardIndex.template.php

find:

echo '
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];


Replace with:

echo '
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'], ', ', $context['num_chat'], ' ', $context['num_chat'] == 1 ? $txt['user'] : $txt['users'], ' ', $txt['fc_in_chat'];



Also, find:

if (!empty($context['users_online']))
echo '
', $txt[140], ':<br />', implode(', ', $context['list_users_online']);


Add after:

// --- Begin FlashChat integration ---
// If there's users in the chat
if (!empty($context['users_chat']))
echo '
<br />
', $txt['fc_users_online'], ':<br />', implode(', ', $context['list_users_chat']);
// --- End FlashChat integration ---



In the index.template.php you simply need to add the chat button below is the code i used in the dilbermc theme
if you use a differnt theme ask the theme maker how to add a button in that theme.

find:   
// Show the [help] button.
echo'
<td align="center" class="menubg' , $current_action == 'help' ? '2' : '' , '">
<a href="', $scripturl, '?action=help">' , $txt[119] , '</a>
</td>';


Add after:
Quote// Show the [CHAT] button.
   if ($context['user']['is_logged'])
   echo'
            <td align="center" class="menubg' , $current_action == 'CHAT' ? '2' : '' , '">
               <a href="', $scripturl, '?action=chat">' , $txt['fc_chat'] , '</a>
            </td>';


HOPE THIS HELPS EVERYONE :D

THANKS DANIEL15 KEEP UP THE GREAT WORK


k.trout

Thanks Smith-Online for such a thorough explanation.

I am almost there.  I was able to run the package and it installed fine.  I realized at that point that my original installation of the chat program had to be re-installed since it had never been "integrated" with the smf board. I deleted the original chat installation and re-installed this time checking the box to integrate it.  (I realized that I likely had checked it originally but that after I changed the permissions of the files and reloaded the form the I didn't notice that the checkbox became automatically unchecked.)  It ran just fine this time.  At this point the chat is running and allows logins only from registered users on the board.  The default theme shows the users in the chat and there is a chat button on the top of the board.  My only problem at this point is that the button now does not load the chat program it gets the following error:

QuoteFatal error: Cannot redeclare reloadsettings() (previously declared in /home/webhi/public_html/forums/Sources/Load.php:140) in /home/webhi/public_html/forums/Sources/Load.php on line 138

I am assuming this error is due to the present installation of the mod not matching the new installation of the chat program.  Is there an easy fix for this one?

Many thanks.  This is great!

ckgb

Hi,

Every time I move from chat to a different part of my forum (i.e. Memberlist) I have the forum itself open up as a popup.

Any ideas on how to fix this?

Thank you

Burtie

Hi All,

I am using SMF version 1.0.10 and would like to be able to show chat users online. Is it possible?

Many Thanks

Daniel15

Smith-Online, thanks for that! :D

QuoteMy only problem at this point is that the button now does not load the chat program it gets the following error:
What's in your Load.php file? Please paste lines 135-145 here (use an editor that shows line numbers, such as Notepad++).

Quote from: ckgb on March 16, 2007, 09:39:25 PM
Hi,

Every time I move from chat to a different part of my forum (i.e. Memberlist) I have the forum itself open up as a popup.

Any ideas on how to fix this?

Thank you
The popup is meant to log you out, but I haven't fixed it completely yet. Take a look at Simplemachines Cowboy's post at http://www.simplemachines.org/community/index.php?topic=139769.msg942401#msg942401 to see how to fix it.

Quote from: Burtie on March 17, 2007, 12:04:01 PM
Hi All,

I am using SMF version 1.0.10 and would like to be able to show chat users online. Is it possible?

Many Thanks
SMF 1.0 works quite differently to SMF 1.1. I haven't looked at SMF 1.0's code in ages, so I'm not sure whether it's possible or not.
Daniel15, former Customisation team member, resigned due to lack of time. I still love everyone here :D.
Go to smfshop.com for SMFshop support, do NOT email or PM me!

k.trout

Thanks for your help with this Daniel15.

I am assuming you mean the Load.php file in forum/Sources  Yes?  If so, here is what my text editor said lines 135-145 were

*/

// Load the $modSettings array.
function reloadSettings()
{
   global $modSettings, $db_prefix, $boarddir, $func, $txt, $db_character_set;
   global $mysql_set_mode, $context;

   // This makes it possible to have SMF automatically change the sql_mode and autocommit if needed.
   if (isset($mysql_set_mode) && $mysql_set_mode === true)
      db_query("SET sql_mode='', AUTOCOMMIT=1", false, false);

Draco_Wolf

I have download the flashchat into the forum but I can't see any chat button but I can see the chat button when I put default theme. How to add button to lightning-dx theme ?  Please Help Me !
Thank You

Mick.

I cant go any forward with this:

9. Execute Modification ./chat/inc/flashChatTag.php File not found
10. Execute Modification ./chat/inc/cmses/smfCMS2.php File not found

I have redloaded the mod over and over and i dont know what else to do.

Advertisement: