News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

FlashChat Integration

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

Previous topic - Next topic

Smoky "Rider" Blue

**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

limo2005

I get the following error when clicking on chat

Unable to load the 'chat_forum' template.
I dont see any of this in the image below and just wondered if I could manually add this to code. Could this be causing error?

Chatroom works fine!


I dunno!

Tyrsson

Quote from: limo2005 on May 10, 2009, 07:29:32 AM
I get the following error when clicking on chat

Unable to load the 'chat_forum' template.
I dont see any of this in the image below and just wondered if I could manually add this to code. Could this be causing error?

Chatroom works fine!



Which version of SMF are you using? Which version of the mod are you using? What other mods are you using? Please post a link to your forum and a test login.
PM at your own risk, some I answer, if they are interesting, some I ignore.

limo2005

It's all working now!  I uninstalled the mod and then installed again, then manually corrected any errors I got!

I then looked at chat.php and noticed a reference to chat_forum which I changed to chat.  Seemed to do the trick but I still dont have the Admin options I used to have displayed in the image above.

If I use a parser, I,m sure i can check the source/managesettings.php and add the code so that these options become available. 

SMF 2.0RC1


I dunno!

Tyrsson

There should not have been errors except that would be caused by code changes from other mods that were installed before this one. No, its not as easy as using a parser. The admin settings are not in the 2.0 version of the mods as the code is not final. When 2.0 goes final I will add the code for that. Which version of the mod are you using? Most likely the 1.0 version as the 2.0 version does not come with the chat template. Which would explain the problems you are having.
PM at your own risk, some I answer, if they are interesting, some I ignore.

noelchiew

Quote from: donjoe on April 13, 2009, 02:35:59 PM
Nope, but since I wanted to integrate exactly these versions myself, here's how I did it:
It works! Finally been trying to find a way to do this for quite a while now. One more thing to make it perfect, I have the Member Color Link mod. Can you advise how can I retain the colours on the names listed under Users in Chat?

darth_dionysus

I didn't see this anywhere, so if it has already been posted please forgive.

I installed FlashChat 4.7.12 and then I put the integration Module in 2.0 RC1-1.  Now I see "?>" (without quotes) in the upper left corner of my browser screen on the SMF Forum.  It doesn't make anything dysfunctional, as far as I have seen, but it's there.

Did I do something wrong?  I set up FlashChat with integration and everything went OK, then I installed the integration mod, and then this appeared.

noelchiew

Look at the file that you edited, right at the bottom. The ending code should be just ?> so you might have that twice as anything you enter after the ?> would appear on the upper left of the page.

darth_dionysus

Quote from: noelchiew on June 01, 2009, 10:45:02 AM
Look at the file that you edited, right at the bottom. The ending code should be just ?> so you might have that twice as anything you enter after the ?> would appear on the upper left of the page.

I didn't edit anything.  I downloaded the mod, uploaded it to my forum and applied it after I installed the FlashChat.  Then it gave me the "?>" after I went to the Chat the first time, and then it just stayed there.  Also, it told every user except me that they had been banned.  I finally just gave up and uninstalled the mod and reinstalled the FlashChat as a stand-alone entity.

noelchiew

Look at your index.template.php, the installation could have somehow added the extra ?> at the end. You can check if it is so and remove the duplication ?> and you should not see it anymore. About the members getting banned issue it has been covered before. Try this...

Find this code in {your_forum_folder}\chat\inc\cmses\smfCMS2.phpif($status == 0 || ($status > 3 && $status < 9 )) return ROLE_USER;
... and change it to:if($status == 0 || ($status > 3)) return ROLE_USER;

darth_dionysus

#1130
Quote from: noelchiew on June 01, 2009, 02:00:48 PM
Look at your index.template.php, the installation could have somehow added the extra ?> at the end. You can check if it is so and remove the duplication ?> and you should not see it anymore. About the members getting banned issue it has been covered before. Try this...

Find this code in {your_forum_folder}\chat\inc\cmses\smfCMS2.phpif($status == 0 || ($status > 3 && $status < 9 )) return ROLE_USER;
... and change it to:if($status == 0 || ($status > 3)) return ROLE_USER;

I reinstalled the mod and checked all of the PHP files it modified, and none of them had the extra "?>" in them.  It went away after I uninstalled the mod again, and I think I'll just leave it uninstalled.  The chat works fine as a stand-alone entity.  It still picks up the account info from the SMF 2.0 RC1-1, it's just that I have to add a redirect link to the Chat on the Forum page.  The only thing I can't do is see from the Forum how many are in the Chat.

Thanks for the assistance.

Tyrsson

Its in the modifications english file. Just make sure that ?> is the last line of the file.
PM at your own risk, some I answer, if they are interesting, some I ignore.

tyty1234

Will there be a released version of this mod for 2.0 RC1-1? Or will I have to do it manually?
My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

Tyrsson

As far as I can think of you should be able to use the version emulate and install it on the new version without any problems. Just make sure to backup first.
PM at your own risk, some I answer, if they are interesting, some I ignore.

tyty1234

Ok, I've ran into a few problems with the mod.

I tried to replace the new files (the updates) in the inc/cmses folder, and then it gives me a reloadSettings() redeclared error, then I try using my old backup and tells me I'm banned. If I use the chat by itself, it logs me in, but then the chat room doesn't start. And then now my admin center shows this.

Quote
Forum version: SMF 2.0 RC1-1
Current SMF version: SMF 1.1.9

However, I think that's dealing with the SMF server, but I think I tried almost eveything, but nothing worked so far.

I am using 4.7.2 by the way.
My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

gingerwench

 :D Just incase anyone else is wondering (like I was earlier tonight)... SMF 1.1.9 and FCv4712 with FlashChatSMF_1-0a do all work together! Any issues I had initially were permission related, and due to the package installer not working for me. After manually editing the files, and uploading the pages in the package to the right places... it all fell together nicely.

Thank you for all the helpful information I found here along the way! :)

kevin.tupper

#1136
Quote from: Tyrsson on June 05, 2009, 06:28:57 PM
Its in the modifications english file. Just make sure that ?> is the last line of the file.

I looked at the file and the "?>" was on the same line as the end of the file.

/Themes/default/languages/Modifications.english.php

The last line looked like this:

Quote$txt['whoall_chat'] = 'In the <a href="' . $boardurl . '?action=chat">Chatroom</a>';?>

I modified it to look like this:

Quote$txt['whoall_chat'] = 'In the <a href="' . $boardurl . '?action=chat">Chatroom</a>';
?>

Yet it does nothing.  I still have a ?> on the first line on any page in the forum or chat.


Also, some of my users are reporting they can no longer read discussion posts now that the chat mod is installed.  Is that because of the extraneous ?> error?


Any ideas?

tia,


- Kevin

Tyrsson

Quote from: tyty1234 on June 09, 2009, 05:44:45 AM
Ok, I've ran into a few problems with the mod.

I tried to replace the new files (the updates) in the inc/cmses folder, and then it gives me a reloadSettings() redeclared error, then I try using my old backup and tells me I'm banned. If I use the chat by itself, it logs me in, but then the chat room doesn't start. And then now my admin center shows this.

Quote
Forum version: SMF 2.0 RC1-1
Current SMF version: SMF 1.1.9

However, I think that's dealing with the SMF server, but I think I tried almost eveything, but nothing worked so far.

I am using 4.7.2 by the way.
Which version of the mod are you using? If you can provide some more background info it would help as I really have no idea what process you have went through. It makes me sorta thing that you may be using the mod version for the 1.x when you should be using the 2.0 mod version.
PM at your own risk, some I answer, if they are interesting, some I ignore.

Tyrsson

Quote from: kevin.tupper on June 12, 2009, 02:30:57 PM
Quote from: Tyrsson on June 05, 2009, 06:28:57 PM
Its in the modifications english file. Just make sure that ?> is the last line of the file.

I looked at the file and the "?>" was on the same line as the end of the file.

/Themes/default/languages/Modifications.english.php

The last line looked like this:

Quote$txt['whoall_chat'] = 'In the <a href="' . $boardurl . '?action=chat">Chatroom</a>';?>

I modified it to look like this:

Quote$txt['whoall_chat'] = 'In the <a href="' . $boardurl . '?action=chat">Chatroom</a>';
?>

Yet it does nothing.  I still have a ?> on the first line on any page in the forum or chat.


Also, some of my users are reporting they can no longer read discussion posts now that the chat mod is installed.  Is that because of the extraneous ?> error?


Any ideas?

tia,


- Kevin

What editor did you use to make that change to the file? If it was a default program like standard notepad that is most likely the problem at this point. It can screw the file encoding and cause that even if the code in the file is right.
PM at your own risk, some I answer, if they are interesting, some I ignore.

Joe N

Hi. You know the googlebot package. What does that do?  :(
Microsoft: "We Need to Imagine Life Without Walls."
I Say: "If There are No Walls Who needs Windows."



My Mods (6) All My Mods Updated To SMF 2.0 RC2 and SMF 1.1.10!


Advertisement: