II. IMPROVED FEATURES ON THE CHAT
2. Posting of Images direct
You can copy and paste in an image URL and the image appears on the Chat post directly.
3. Posting of embedded Youtube videos
You can copy and paste in a youtube URL and the youtube video appears on the Chat post directly.
Note: it requires a basic [b] <youtube url> [/b] post to embed the playable Youtube video inside the chat post
For a working demo, please check out my production site at
Click on the PHPFreeChat green collapsible topic tab.
Does this Chat have any learning value? I believe it has.
Wish Item A
Wish Item C
Wish Item D
and then only the link http://voicethread.com/share/value will appear in the stream, not the embedded object itself.
$voicethread_site = preg_replace('/http:\/\//','',$voicethread_site);
preg_match_all('/ \]/s'.$u, $text, $list_of_movies);
$ret = preg_replace("#(^|[\n \]])([a-z0-9&\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)#ie", "'\\1<a href=\"mailto:\\2@\\3\">' . pfc_shorten_url('\\2@\\3') . '</a>'", $ret);
VI. FINAL THOUGHTS
$replace = '<div id="voicethread-container">'.
$headertext . '<br>' .
'<object width="320" height="240"> '.
'<param name="movie" value="http://'.$voicethread_site.'/book.swf?b='.$movie->reference.'"></param> '.
'<param name="wmode" value="transparent"></param>'.
'<embed src="http://'.$voicethread_site.'/book.swf?b='.$movie->reference.'" type="application/x-shockwave-flash" wmode="transparent" width="800" height="600"></embed>'.
..there may be security issues (hacking, code injecting and other nasty, irritating stuff) or compatibility/poratability issues (some admins may turn off the Object embed feature on their Moodle site). I need some advice on this. Anyone?
Finally, I hope you can also contribute to this chat code to make it better. If you end up using it on your Moodle site, that would be meat and drink enough for me.
I visited your blog, downloaded the plugin, installed it as you recommended, but I could not get the plugin to work until I changed the permissions of the FreeEmbedChat folder to 0777. I changed permissions recursively. It now works, and I want to thank you for this exciting contribution to Moodle.
However, I am a little concerned about security. The only other folder with these permissions is moodledata. Do you see any potential issue with 777 here?
Can anyone else advise on this?
Thanks again. I look forward to trying it out in the classroom.
Thanks for highlighting the chmod problem.
I forgot to include that part of the install instructions!
From the phpFreeChat installation webpage,
it seems that you need not (should not?) chmod 777recursively.
Instead, just a couple of folders to be 'chmoded' with 777 privileges.
When reading the below instructions, when you see the text "phpfreechat-x.x", think "FreeEmbedChat".
Get the zip (or tar.gz for unix users) archive from the download page
Give the web server's write permissions to “phpfreechat-x.x/data/public” and “phpfreechat-x.x/data/private” directories. If you are using FTP:
CHMOD 777 phpfreechat-x.x/data/private CHMOD 777 phpfreechat-x.x/data/public
If you are using SSH:
chmod 777 phpfreechat-x.x/data/*
Tip: On the latest version 1.x maybe it will not work and it will show you ”“Error: the chat cannot be loaded!…””, then try with 755 rights.
Browse the “phpfreechat-x.x” directory with your browser and enjoy !
I think that answers the security question eh?
Thank you for working on this. I think it has great potential.
My wish would be embeddable and viewable PDF and PowerPoint files, especially Powerpoint. As a teacher, I have lots of POwerpoint shows that would be great teaching tools in a chat. Consider both 2003 and 2007 versions (.ppt and .pptx) of Powepoint. Also, PDF files are awesome teaching tools, especially as there are so many free books available in PDF format now.
Thanks for your insightful reply!
As forPDF files, you mean something like this?
On the http://phpFreeChat.net forums, these is a post on how to allow a user to upload an image to the chat.
I tried it but couldn't get it to workwith phpFreeChat version 1.3. I think that the upload image hack only works with an earlier 0.x version.
My point is that with PHP anything is possible. Including what you mentioned about PDF, PPT/PPTX file embeds.
So in the past, someone in the phpFreeChat community had figured out a way to upload an image into the chat window. It should be logically possible to upload PDF file have have the system auto-generate the HMTL OBJECT embed code and to display it within the chat window/stream.
Displaying a PDF file within the chat widow is a god idea. It will work great if the user can zoom to full-window or full-screen size. Otherwise the text will be too small to read in the chat window.
The question is how difficult and how long would it take to program that it. If there is a will, there's a way they say. So that would be worth looking into.
I've also implemented the "user can post multiple-line input" by using a [br] syntax: E.g., text.....[br]text......[br].
And, you can also specify the background image file of your choice. On my demo site, I am using a yellow jpg background file. It can be changed of course.
There is a separate discussion on this Chat at phpFreeChat.net specifically at this forum post:
Some guy by the name of OldWolf picked up my message and I hope that the rest of the original development team will take notice. Who knows, this might help to kick in version 1.5 of PHPFreeChat?
Have fun extending the functionality of this excellent phpFreeChat chat!