FlashChat Integration

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

Previous topic - Next topic

Kindred

You can run the mod through the mod-parser at sleepycode.com
Сл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."

RSprinkel

hi Kindred,

Thanks for the reply and the site.  One thing when I ran the mod through it told me what to look for and then add, well one section was NOT in my index.template.php file and that is:

if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';



With the above said, the rest was ok and it installed somewhat of a button as it started to but then placed the word Chat in Yellow.  So I am wondering without the code above in the actual index.template.php file I am wondering if thats why the button is not fully visible.

Any ideas or suggestions?  I am by far not a coder, LOL and sorry for my lack of knowledge.


RSprinkel

also to note and this is ongoing, when I click the Home button to escape the Chat Mode, I get a pop up saying "Internal Server Error"  I have done just about everything mentioned concerning this issue here and still cannot get it to go away.  I have the dologout.php file in the /forums/ directory and on line 2 I have require_once('chat/inc/common.php');

^DooM^

Quote from: Daniel15 on January 05, 2007, 04:28:47 AM
Hi everyone,
I've posted a mod that completely integrates FlashChat into SMF. You may download the mod at http://custom.simplemachines.org/mods/index.php?mod=611

Great mod Daniel15,

I can confirm this mod works perfectly with 1.1.4 and FlashChat v483, One thing you may want to add though which I had to tweak is setting this line in smfCMS2.php (Seeing as you alter that file anyway)

from
if($status == 0 || ($status > 3 && $status < 9 )) return ROLE_USER;
to
if($status == 0 || ($status > 3 && $status < 99 )) return ROLE_USER;

If you have more than 9 member groups anyone in a member groupid above 9 is banned.

Thanks again for this sweet mod.
Never argue with an idiot, they will simply bring you down to their level and then beat you with experience

Kindred

actually, this is something that should be modified on a user by user basis... since I have moderator groups and admin groups in group 10 and 12...
Сл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."

^DooM^

Fair enough but I think for the most part most users would not.
Never argue with an idiot, they will simply bring you down to their level and then beat you with experience

Kindred

I would say, in my experience, they do...

besides, most users belong to groups 4-9 in addition to any other groups, because groups 4-9 are post count-based.
Сл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."

RoboO

Actually I had a quick question about that line of code as well-

if($status == 0 || ($status > 3 && $status < 9 )) return ROLE_USER;

Is it possible to prevent people from accessing chat who do not have groups (ie. People who have just registered).  Since to my knowledge you can't specify a default group to put people in when they sign up, I just need a way to exclude those I haven't grouped yet and I think my best bet is with that piece of code.

Also how do I tell which groups are associated with those numbers?

^DooM^

Quote from: Kindred on October 09, 2007, 09:29:30 PM
I would say, in my experience, they do...

besides, most users belong to groups 4-9 in addition to any other groups, because groups 4-9 are post count-based.
Yes but they are not admins are they, Never mind I was just trying to help but you seem to know better oh mighty hero.
Never argue with an idiot, they will simply bring you down to their level and then beat you with experience

jossanaijr

Quote from: RoboO on October 09, 2007, 10:14:46 PMSince to my knowledge you can't specify a default group to put people in when they sign up, I just need a way to exclude those I haven't grouped yet and I think my best bet is with that piece of code.
Yes You can:
http://custom.simplemachines.org/mods/index.php?mod=819

Kindred

Doom, using your code, every user would be put into the user category, if they belonged to a custom group... even if you had defined that group as being a special access group.
The code, as written should assign anyone in the post-count based groups to the "user" role, which means that your primary complaint (users in other groups are banned) is untrue.

Robo... you can go into smf admin, member groups. Hover over each group and look at the url...   it groupID is the number associated with "status"
(i.e. 1 = admin, 2 = global moderator, 3= moderator, 4-8=post count based groups)
Сл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."

j9a9l

ok, i'm a bit of a noob when it comes to code so any help would be greatly appreciated.

I installed FlashChat into www.mydomain/smf 1.1/chat and and ran the install. Everything went through without any errors but I can only view FlashChat as a stand alone. It doesn't open up within the SMF forum...any ideas?? Thanks in advance

jossanaijr

Quote from: j9a9l on October 10, 2007, 10:59:08 PM
ok, i'm a bit of a noob when it comes to code so any help would be greatly appreciated.

I installed FlashChat into www.mydomain/smf 1.1/chat and and ran the install. Everything went through without any errors but I can only view FlashChat as a stand alone. It doesn't open up within the SMF forum...any ideas?? Thanks in advance
Just to check.  Are you using Default Theme?  If so a "CHAT" button should appear in menubar.

j9a9l

Quote from: jossanaijr on October 10, 2007, 11:06:15 PM
Quote from: j9a9l on October 10, 2007, 10:59:08 PM
ok, i'm a bit of a noob when it comes to code so any help would be greatly appreciated.

I installed FlashChat into www.mydomain/smf 1.1/chat and and ran the install. Everything went through without any errors but I can only view FlashChat as a stand alone. It doesn't open up within the SMF forum...any ideas?? Thanks in advance
Just to check.  Are you using Default Theme?  If so should be a "CHAT" button in menubar.

Yes, all Default & no button

jossanaijr

If http://yourdomain.../index.php?action=chat open your chat perhaps only the button is missing.

j9a9l

Quote from: jossanaijr on October 10, 2007, 11:10:58 PM
If http://yourdomain.../index.php?action=chat open your chat perhaps only the button is missing.

mydomain.com/_Disc/chat/index.php?action=chat  does open up the chat but it wont open up within the forum page so I can't switch back to the Forum unless I go back to the bookmark and also every time I leave the chat I always have to Log In again to enter

jamesk

Under Admin, features and options, do you have Display chat window inside forum checked, and open chat in new window unchecked?

Kindred

also.. you should not have spaces or periods in your site name/folder.......
Сл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."

j9a9l

Quote from: jamesk on October 10, 2007, 11:22:00 PM
Under Admin, features and options, do you have Display chat window inside forum checked, and open chat in new window unchecked?

I don't have any of those options

j9a9l

Quote from: Kindred on October 10, 2007, 11:23:56 PM
also.. you should not have spaces or periods in your site name/folder.......

I don't have any spaces or periods but I do have an underscore>>    mydomain.net/_Disc/chat/index.php?action=chat [nofollow]

Advertisement: