News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

FlashChat Integration with 1.1.1 Final, 1.1RC3 & 1.1RC2 Default Theme

Started by Simplemachines Cowboy, January 18, 2006, 10:54:47 PM

Previous topic - Next topic

lesmond

Hi, got this working fine Thanks, But (there has to be one  :o) I have it working in my helios theme but it only shows up with the text black, how do I make it white?


as you can see from this img

Thanks Les


Free Forum Image Hosting


The only person who got all his work done by Friday was Robinson Crusoe

Xerxes

At least you got your working. I've been trying for a week now and I'm getting all kinds of errors  :'(
I'm still determined to fiigure it out though. My first problem was the database connection. Flashchat installed into my database as smf_fc_connections. So the database path YOURDATABASE_fc_connections did not work. I got that figured out after a couple of times. Then I get everything installed and I get an error on the index.template.php page on line 656. something about a T string. Blah blah blah. I'm new to php so it takes a while for mew to figure stuff out. If I get real stuck I'll post some code here.

Back to the grind.

Simplemachines Cowboy

lesmond,
In /smf/Themes/default/boardindex.template.php, change this color:
<td class="titlebg" colspan="2"><font color="#000000">FlashChat Users</font></td>
From font color #000000 to #FFFFFF

You can also change FlashChat Users to Your board name chat users or whatever here.
My SMF forum: The Open Range

lesmond

Thanks Cowboy, That changed the title, but I would like the text below in white, I have circled the bit I mean



Free Forum Image Hosting


The only person who got all his work done by Friday was Robinson Crusoe

Simplemachines Cowboy

lesmond,
In chat/info_embedded.php, find:

#roomList a { color: black; text-decoration: none; } #roomList a:hover { text-decoration: underline; }


Change "black" to whatever color you would like.
This will change the ROOM list only.
My SMF forum: The Open Range

crazee1

I have performed the steps and I have a chat link at the top like I should, but when I click on it I get the following error:

Fatal error: smf_main(): Failed opening required '/home/teamente/public_html/smf/Sources/Chat.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/teamente/public_html/smf/index.php on line 348


I have created the chat.php and placed it in the sources directory as the instructions state.  Any ideas?

lesmond

Quote from: Simplemachines Cowboy on April 09, 2006, 11:07:46 PM
lesmond,
In chat/info_embedded.php, find:

#roomList a { color: black; text-decoration: none; } #roomList a:hover { text-decoration: underline; }


Change "black" to whatever color you would like.
This will change the ROOM list only.

Thank you that done the job  :)


Free Forum Image Hosting


The only person who got all his work done by Friday was Robinson Crusoe

SekondeR

i have only one room in my chat place.
so i want to make users in chat list  as horizontal not vertical..

like this -> user1, user2 , user3

not like this :D
user1,
user2,
user3

could someone help me?

Xerxes

#68
Alright, it took a week plus but I got it working. If a n00b like me can do it anyone can. The instructions were fine and worked perfectly. I had a problem with a cut and paste that kept commenting an echo. DUH! Looks and work great now. Thanks for the directions/tutorial.

Xerxes

Now that I managed to get this to work, I have 2 questions.

1) Why am I getting this error in some places
Notice: Use of undefined constant chat1 - assumed 'chat1' in mydomainpath/forum/Sources/Load.php(1609) : eval()'d code on line 80

I changed chat_1 to chat1 in all the code because I see no reason for the underscore. Also, mydomainpath is the correct path.

2) At the bottom of the forum where it shows who is in the chat it has the room name and then you can see who is in the room. If I have more than 6 people in the room, the table does not expand downward to allow me to see all the users.

Thanks for any Input.

dkaye315

 ??? After following the instructions to the "T", I'm getting this error:

Parse error: parse error, expecting `','' or `';'' in .../Themes/escapes/index.template.php on line 761

752:
753: function template_flash_chat()
754: {
755: $chatrequest = db_query("
756:             SELECT COUNT(*) AS numb
757:             FROM  smf_fc_connections
758:             WHERE userid IS NOT NULL", __FILE__, __LINE__);
759:         list ($chatcount) = mysql_fetch_row($chatrequest);   
760:         mysql_free_result($chatrequest);
761: if ( @$_GET['action'] != "chat" )
762: {
763: if ( $chatcount == "1" )
764: {
765: $singularplural1 = " is ";


The template being used is identical to the default, just a color variation of it.  It appears all other modifications are okay.  Not being a PHP-pro, I'm not sure where I've erred, and am in need of some help.

Many thanks!
hxxp:"http://dkaye.com/ecafe [nonactive]
"Life's journey is not to arrive safely at the grave in a well-preserved body, but rather to skid in sideways totally worn out shouting - Holy **batman** - what a ride! (unknown)
~Kaye

Shawn Sorrell

dkaye315,
Not sure but I think you are missing a bracket when you did the edits.  Look close again at the replace given in instructions. I think maybe you need } on line 752 but not sure could be later down the bracket is missing. This is just from looking at the instructions.  I have not actually installed this yet.  Just reading to see what it takes. :)
Shawn

Simplemachines Cowboy


647 if ( @$_GET['action'] != "chat" ) {
648 if ( $chatcount == "1" ) {


Look where the brackets are in the example shown above, compared to your lines 761-764.
I suggest you go back and recopy the whole block from the example and paste it in.
My SMF forum: The Open Range

sopas24

I have done all this but wen somebody try to login, apear te mensage, you`ve been banned.

philuk

Will this work for smf 1.0.7? all this RC stuff version confuses me.

Simplemachines Cowboy

phil,
This is for 1.1 rc2 and above. Much has changed in the jump from 1.0 to 1.1.
There is another post which has usable instructions for the 1.0 series, altho it's a bit out of date for even 1.0.7.
My SMF forum: The Open Range

Simplemachines Cowboy

sopas,
If you mean when you try to log into FlashChat, you get banned, you need to search on the flashchat forum for that fix.
It has something to do with the usergroups in smf. I think there was a post a couple pages up from this that talks about it also.
My SMF forum: The Open Range

sopas24

Cowboy, sorry my english í am portugues, could you put here tehe link for that post, ta.nk´s

sopas24

Another thing i can put the buton chat in apollo, justa apear the place like a "x".

digit

Quote from: Simplemachines Cowboy on April 24, 2006, 04:55:23 PM
sopas,
If you mean when you try to log into FlashChat, you get banned, you need to search on the flashchat forum for that fix.
It has something to do with the usergroups in smf. I think there was a post a couple pages up from this that talks about it also.

YES.  This is a problem.

I just upgraded to the latest version 4.5.7.

Quite a few members are reporting being banned.

It DOES have to do with groups in SMF.

I believe you can just increase the number of groups in sfmCMS2.php

here....



function getRoles($status, $additionalGroups) {

  if($status == 1 || in_array(1, $additionalGroups)) return ROLE_ADMIN;

  if($status == 2 || in_array(2, $additionalGroups)) return ROLE_MODERATOR;
  if($status == 3 || in_array(3, $additionalGroups)) return ROLE_MODERATOR;

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

  return null;
  }



you are probably getting this error because you have more than 9 Groups???

That's my best guess anyway!!!!!!!!!!!!

I hope that's right!

(can someone please confirm???)

Thanks!

Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

Advertisement: