News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

FlashChat Integration

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

Previous topic - Next topic

Kindred

without looking at your code, I'm not really sure...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

sorosh1

thanks for your repley.

Witch file do you need, so i can post it in attachment (i am not that good with coding ect sorry :))

butchjax

No ideas on my questions?  I posted code and references to what is causing a problem...

en_shua

Quote from: butchjax on June 05, 2008, 07:32:19 PM
No ideas on my questions?  I posted code and references to what is causing a problem...
The only problem that I see with what you have done is that the "Users In Chat" test doesn't appear before the :.  Is that what you are talking about?

butchjax

That is part of it.  But also, there is a whole chunk of code that the directions say need to be included but I don't know where to put it, nor do I know exactly what it does.  The fact that the text doesn't show up tells me there is more going on because this has worked for so many other people.

en_shua

The code does basically two things.  One, it helps instruct you how to put the button on your menu.  The second is the little block that you're referring to in the screenshot.  The modification instructions won't be perfect for every user because themes have different code in them.  My theme doesn't have code anywhere like what was in the instructions, so I had to figure it out as well.  In the end, I decided that the button needed to just be a simple button and didn't need the extra things that are being accomplished in the instructions, so I disregarded that part.  But, I made sure the block in your screenshot worked.  From your screenshot, some part of the MOD doesn't look like it did quite right to me, else the text would be appearing.  In your ./Themes/default/languages/Modifications.english.php please check to make sure that you have the FlashChat integration entries.  If for some reason your modified theme has a language file, check it as well.  Also, could you verify that the mod is actually working in the default theme?

shegeeks

Quote from: Kindred on June 05, 2008, 04:03:02 PM
look at how the other buttons are handled in your theme...  (i.e. look at Calendar or Logout)

As for the boardindex...   you'll have to add an if (is_admin) { ...} in there...
(If you had this before, you must have done this before as well)

Thank you kindred, I have tried creating the button using the code from one of my other buttons, along with some instructions found on daniel15's forum (which appears to not be very active) and I have failed miserably - hence I am here asking for assistance creating the button for my theme.

Regarding the boardindex - no, we never edited that to make the whos online only available to admins, it was just set that way (out of the box I guess), so I have no clue how to get it back to that state-unless someone can explain how to do so.
the difference is in the hyphen
http://www.she-geeks.com [nofollow]

en_shua

Quote from: shegeeks on June 06, 2008, 03:53:48 PM
Regarding the boardindex - no, we never edited that to make the whos online only available to admins, it was just set that way (out of the box I guess), so I have no clue how to get it back to that state-unless someone can explain how to do so.
Is that a setting of the theme in the admin control panel?

sorosh1

Quote from: sorosh1 on June 05, 2008, 04:55:13 PM
Kindred   could you please help me with this one also?

thanks in advance.


Quote from: sorosh1 on June 03, 2008, 04:44:26 AM
Can someone help me?! I have installed the script and after that i installed the mod and everyting works good but i have the fallowing problem:

If i go to a other tab (menu option) like "my messages" then it gives me this message as a pop up:

QuoteInternal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache/1.3.41 Server at forum.mysite.com Port 80

How can i resolve this? I really need help with this one! :'(

Quote from: Kindred on June 05, 2008, 07:16:32 PM
without looking at your code, I'm not really sure...
Quote from: sorosh1 on June 05, 2008, 07:27:13 PM
thanks for your repley.

Witch file do you need, so i can post it in attachment (i am not that good with coding ect sorry :))


Anybody a idea witch file is needed?
Thank in advance.

shegeeks

Quote from: en_shua on June 06, 2008, 04:02:47 PM
Quote from: shegeeks on June 06, 2008, 03:53:48 PM
Regarding the boardindex - no, we never edited that to make the whos online only available to admins, it was just set that way (out of the box I guess), so I have no clue how to get it back to that state-unless someone can explain how to do so.
Is that a setting of the theme in the admin control panel?

No the admin panel only allows you to turn it on or off- not to modify it in any way.
the difference is in the hyphen
http://www.she-geeks.com [nofollow]

butchjax

Thanks en_shua.  I verified all of the other files that should have been modified by the installation and they were fine.  I copied over the files that were in the dafault theme directory in case they were needed and it didn't do anything.  So I'm left with thinking it's something small that is causing the text to not be displayed. 

Has anyone else had this problem?  I'll have to attach my files later otherwise and see if that is helpful. 

en_shua

Quote from: butchjax on June 07, 2008, 12:35:25 AM
Thanks en_shua.  I verified all of the other files that should have been modified by the installation and they were fine.  I copied over the files that were in the dafault theme directory in case they were needed and it didn't do anything.  So I'm left with thinking it's something small that is causing the text to not be displayed. 

Has anyone else had this problem?  I'll have to attach my files later otherwise and see if that is helpful. 
Well, since those aren't coming across for some reason, for now I'd probably go through the code on your theme and replace the variables with the actuals.

butchjax

That's what I ended up doing.  I figured out how to do it, and it works for now.  I'd really like to move that little snippet of code to the top, but it keeps producing an error so I'm just going to leave this for a later time.  Thanks for the help.

Halfhidden

#873
Hi I just installed you mod and it seems to be half working. I'm missing the button that should be on the forum main page. At the bottom of the page I have the correct stats showing who's in the chat, and I see the settings in the admin.server.settings.
What have I done wrong please?
Regards,
Steff
Oops just re read the install guide. I see that this works only with the default theme... I'm using post by Cript.
I've looked through the posts but cannot see a clear set of instructions to add a button like the one in default theme to my theme.
Can any one help please?

Halfhidden

#874
Not to worry.... I've worked it out.

I used this code to create a button for my theme:

// Show the [FlashChat] button
   if ($context['user']['is_logged'])
   echo'
            <td align="center" class="menubg' ,

$current_action == 'chat' ? '2' : '' , '">
               <a href="', $scripturl, '?action=chat"',

(!empty($GLOBALS['modSettings']['fc_newWindow']) ? '

target="_blank"' : ''), '>', $txt['fc_chat'],

(!empty($GLOBALS['modSettings']['fc_showUserCount']) &&

!empty($context['num_chat']) ? ' [<strong>' .

$context['num_chat'] . ' ' . ($context['num_chat'] == 1 ?

$txt['user'] : $txt['users']) . '</strong>]' : ''), '</a>
            </td>';

Thanks anyway.

Kindred

1- use code tags next time.
2- that is specific to your own theme...  everyone with a non-default theme will have to do something slightly different.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

neotan

#876
Quote from: Jaybird on March 05, 2008, 10:35:59 AM
Maybe I didn't ask my question right.  Let me start over.  I don't have the default theme on.  How do I go about getting the users to show up along with the chat button on the menu with the template (Black Rain v.2) that I'm using.  Could someone please tell me what I need to write in.  Thanks!

JayBird,

I am running Black Rain as well and I need the code for the Chat button in index.template.php

Hi all,

The theme is http://custom.simplemachines.org/themes/index.php?lemma=118

I have attached my index.template.php

Please assist .. thanks

I had this before ( need to reinstall due to virus injection)

I used :

    // FlashChat
   echo ' <li', $current_action == 'chat' ? ' id="active"' : '', '><a href="', $scripturl, '?action=chat" ><span>', $txt['fc_chat'] , '</span></a></li>';


- but it opens a blank page

neotan

Recap of FlashChat installation steps:

1. Ensure Flashchat is working fine:

- http://goshopjapan.com/forum/chat/flashchat.php  [ ok ]

2. Perform manual edits of the files ( as some files were not writable ; Package manager gave some errors during installation)

a) ./index.php  - OK

b) ./SSI.php - OK

c) ./Sources/ModSettings.php  - OK

d) ./Sources/Subs.php - OK

e) ./Themes/default/BoardIndex.template.php [ used custom theme) -  OK

f) ./Themes/default/index.template.php [used custom theme]


(ii) Used instead:


// FlashChat
   echo ' <li', $current_action == 'chat' ? ' id="active"' : '', '><a href="', $scripturl, '?action=chat" ><span>', $txt['fc_chat'] , '</span></a></li>';

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

- OK

h) ./Themes/default/languages/Help.english.php

- OK

i) ./chat/inc/flashChatTag.php  - OK

j) ./chat/inc/cmses/smfCMS2.php -OK


k)

Code
add_settings.php
This file should be able to execute standalone.

>>> copied to /forum . ensure it's 755 - OK

File Operations
Move the included file "Chat.php" to "./Sources". - OK
Move the included file "Chat.template.php" to "./Themes/default".

>> copied to both custom and default

Move the included file "dologout.php" to "the root directory".



Results : when I clicked on the Chat button , I don't see the flashchat room

- please advise





Acans

how do you install it so that your regestered forum members can log in
"The Book of Arantor, 17:3-5
  And I said unto him, thy database query shalt always be sent by the messenger of $smcFunc
  And $smcFunc shall protect you against injections and evil
  And so it came to pass that mysql_query was declared deprecated and even though he says he is not
  dead yet, the time was soon to come to pass when mysql_query shall be gone and no more

Halfhidden

Quote from: Basicallyimjesus on June 14, 2008, 08:25:57 PM
how do you install it so that your registered forum members can log in
When you install Flashchat you choose integrate with smf (choose the version you are using) and the registration and login's are handled by smf rather than FlashChat.
You'll need a button to fully integrate this with your smf forum and this is the thread to find it.
Hope this helps?

Advertisement: