TinyPortal

Development => Block Codes => Topic started by: Teelow on February 24, 2006, 07:11:47 AM

Title: Using Flashchat in an article?
Post by: Teelow on February 24, 2006, 07:11:47 AM
Would anybody have any idea how I could use the flashchat.php file within an artilce to start the chat within that article?  rather then opening up a new window.  I would like to use the TP template w/ flashchat.

Thanks!
Title: Re: Using Flashchat in an article?
Post by: IchBin on February 25, 2006, 03:24:53 AM
Create a php article and add this code in it.

include('path/to/flashchat.php');
Title: Re: Using Flashchat in an article?
Post by: technodragon73 on February 25, 2006, 04:22:54 AM
You could also look here to see how to integrate it into your site without popping up in a new window.

http://www.simplemachines.org/community/index.php?topic=27137.0

the php file that that topic has you make...
the line that has the iframe tag...

change it to something like this:

echo '<iframe width="100%" [b]height="450"[/b] src="http://www.technodragon.net/forum/chat/flashchat.php"></iframe>';

that will allow you to change the size of the frame so that you can adjust the size of the chatroom once it opens up
Title: Re: Using Flashchat in an article?
Post by: Teelow on February 25, 2006, 05:42:29 AM
You have both been a great help and it works!  ;D

I just had to fiddle with the height and width and bingo!  I can't thank you both enough  /thumbs up
Title: Re: Using Flashchat in an article?
Post by: technodragon73 on February 25, 2006, 06:14:04 AM
anytime...these guys here have been such a great help for me...the fact that I can give something back in return is great too!
Title: Re: Using Flashchat in an article?
Post by: whoflungdoo on January 21, 2007, 06:31:48 AM
Hey guys, the first one didnt work for me ( using the include ).

I had already tried using the iframe, which worked, but I still have to login, even though I am already logged into tinyportal. Any ideas? According to the documentation, if I am logged in already to the cms, I shouldnt have to log in to the flashchat. I figure it has something to do with the iframe.

Title: Re: Using Flashchat in an article?
Post by: funxlab on January 31, 2007, 12:32:51 AM
I am looking for the same. Did it worked for you whoflungdoo  ?
Regards,
Jim
Title: Re: Using Flashchat in an article?
Post by: Ken. on January 31, 2007, 01:31:03 AM
If you'er going to use an iframe you might want to check this thread where G6 posted the code for an iframe with auto-resize... it works great.  ;D

http://www.tinyportal.net/index.php?topic=11744.0
Title: Re: Using Flashchat in an article?
Post by: Shane84 on February 09, 2007, 09:37:36 PM
Call me crazy, but wasn't there a post or topic about a block code where it would popup an individual window with no address bar and none of the other stuff, making it more of a separate chat window than just another browser opening.

I know I had this on my site a while back and I took it down, since then I've been kicking myself for not saving that code or saving an older DB backup that would still have it.