Tutorial: how to COMPLETELY integrate FlashChat into SMF so you have a cool CHAT

Started by marcnyc, October 09, 2004, 07:21:56 AM

Previous topic - Next topic

unrelenting

What do I need to change in the flashchat code to display users display name rather than their member name. Some people have since changed their display name and no one knows them as their original registered name.

I know you just change a variable in smf but how and where do I change it in flashchat to achieve this result?

Anyone?

Uzbekistan

it is in inc/cmses/cmsSMF2.php

There was some membername or screenname thingy.

PS. Djafarich, sanmisan?

Uzbekistan

Also guys, you that iframe window showing "Who's chatting". Please advise a code to make it list users horisontally, like "Total online today", rather than unordered list (ul li). If also colour them accordingly and link to their profiles... ummm. :)

contreras


limo2005

Quote from: contreras on October 13, 2006, 01:28:36 AM
what about flashchat for smf 1.1 rc3 ?? is there any guide??

It seems that there is some "doc" on Tufats.com by Geno but I can't find it!

With one of my IBP sites I have managed to get the Flashchat inside by using this

<html>
<center>
<head>
<title>TITLE</title>
<meta name="generator" content="">
</head>

<body bgcolor="Black" text="white" link="blue" vlink="purple" alink="red">
<p><iframe name="ifrm1" src="http://www.yoursite/forum/chat/flashchat.php" width="800" height="600px" frameborder="1"></iframe></p>
</body>

</html></center>




How do I go about inserting this into a new page (HTML or PHP?) so that when the page is accessed it shows flashchat in an "Iframe"?

Limo2005



I dunno!

^DooM^

Quote from: unrelenting on July 20, 2006, 09:07:09 PM
What do I need to change in the flashchat code to display users display name rather than their member name. Some people have since changed their display name and no one knows them as their original registered name.

I know you just change a variable in smf but how and where do I change it in flashchat to achieve this result?

Anyone?

I know you already did this unrelenting but for those that also want to do this check out my post here.

http://www.simplemachines.org/community/index.php?topic=66561.msg652222#msg652222
Never argue with an idiot, they will simply bring you down to their level and then beat you with experience

PacMan

Has anyone updated this hack for SMF 1.1.1 ?
Looks like it would be a nice addition for us.

4 stages of manhood. 1st we belive in Santa.. 2nd we find out Santa is not real. 3rd we learn to play we are santa and 4th We suddenly look like santa! ....  :)....  Merry Christmas!

Simplemachines Cowboy

http://www.simplemachines.org/community/index.php?topic=66561.0
I did this first for RC2, but I just did all of the same bits in several 1.1.1 forums last week.
All information is the same.
My SMF forum: The Open Range

PacMan

Quote from: Simplemachines Cowboy on December 31, 2006, 10:56:20 PM
http://www.simplemachines.org/community/index.php?topic=66561.0
I did this first for RC2, but I just did all of the same bits in several 1.1.1 forums last week.
All information is the same.

Ok, thanks...  I'll go over the 17 pages of stuff again and try to see where I went wrong.  :'(

4 stages of manhood. 1st we belive in Santa.. 2nd we find out Santa is not real. 3rd we learn to play we are santa and 4th We suddenly look like santa! ....  :)....  Merry Christmas!

Simplemachines Cowboy

The important stuff is on the first page, first post.
The rest is some further tweaks to the displayed information.
My SMF forum: The Open Range

PacMan

Quote from: Simplemachines Cowboy on January 04, 2007, 01:26:42 PM
The important stuff is on the first page, first post.
The rest is some further tweaks to the displayed information.


Ok thanks pal.
I'm trying to figure out how to get my remember "forever" logon to remember anything at all looool.  Then I'll get back to making the chat nicer.

Pacman
4 stages of manhood. 1st we belive in Santa.. 2nd we find out Santa is not real. 3rd we learn to play we are santa and 4th We suddenly look like santa! ....  :)....  Merry Christmas!

Daniel15

Hi everyone,
I've created a mod which allows you to completely integrate FlashChat into SMF (no iframe needed). You may find it at http://custom.simplemachines.org/mods/index.php?mod=611 :)
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!

PacMan

Quote from: Daniel15 on January 05, 2007, 04:31:27 AM
Hi everyone,
I've created a mod which allows you to completely integrate FlashChat into SMF (no iframe needed). You may find it at http://custom.simplemachines.org/mods/index.php?mod=611 :)

That's fantastic Daniel15...  I'm planning to set that up once I get my mail bug and "remember forever" password option working.

I don't want to add any other problems until these things are working correctly.

Good job though and thanks for the heads up!

Pacman
4 stages of manhood. 1st we belive in Santa.. 2nd we find out Santa is not real. 3rd we learn to play we are santa and 4th We suddenly look like santa! ....  :)....  Merry Christmas!

Tanks

can anybody help me center the code that shows user in chat at the top of all pages ?

Thanks

Great stuff  ;)

Simplemachines Cowboy

You can try this (not tested):
In index.template.php, FIND:
echo '
<td width="90%" class="titlebg2">
<span class="mediumtext">', template_flash_chat(), '</span>
</td>';


Replace with:
echo '
<td width="90%" class="titlebg2" align="center">
<span class="mediumtext">', template_flash_chat(), '</span>
</td>';

My SMF forum: The Open Range

Tanks

thanks but actually i am talking about this bit of code that i added from the first post of this topic. Its in my index.template.php. It tells how many users are using the chat.. my site is danish so i translated some of the code  :)

Can you help me center the output from this code please  :)

// The main content should go here.  A table is used because IE 6 just can't handle a div.
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>';
     $chatrequest = db_query("
            SELECT COUNT(*) AS numb
            FROM  smf_fc_connections
            WHERE userid IS NOT NULL", __FILE__, __LINE__);
         list ($chatcount) = mysql_fetch_row($chatrequest);   
         mysql_free_result($chatrequest);
         
if ( @$_GET['action'] != "chat" ) {
if ( $chatcount == "1" ) {
$singularplural1 = "";
$singularplural2 = "";
} else {
$singularplural1 = "";
$singularplural2 = "mer";
}
if ( $chatcount != 0 )
echo 'Lige nu er der ' . $singularplural1 . ' <font color="#FF0000">' . $chatcount . ' Medlem'.$singularplural2.' inde på chatten!</font>';
}

Simplemachines Cowboy

#256
Let me make sure, you want the output of that statement to be centered?
So that will make that section look like this:

Users Online
2 Guests, 10 Users                                                                        2 Users in Chat
(with the user list here, all the way to the right edge----------------------------------------------------)

And I should verify, what version of SMF are you using?
This particular hack is written for the old version 1.0.
If you are using 1.1 then you need to follow these directions, which are slightly different:
http://www.simplemachines.org/community/index.php?topic=66561.0
My SMF forum: The Open Range

Tanks

Okey so i didnt put in enough information..


i am using smf 1.1 RC3 with TP installed

I would kindly ask you help

on this picture you can see how it looks now
http://www.shockwavenews.net/11.jpg

on this picture you can see what i am asking for.. to get the text centered.. just like my menu is centered..
http://www.shockwavenews.net/12.jpg

Can you help ??

Simplemachines Cowboy

OK, try this (Not tested):

Find:
// The main content should go here.  A table is used because IE 6 just can't handle a div.
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>';


Replace with:
// The main content should go here.  A table is used because IE 6 just can't handle a div.
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center"><tr>';
My SMF forum: The Open Range

Tanks

already tried that.. did not work  :(

But thanks for trying to help  :)

Advertisement: