0 Members and 1 Guest are viewing this topic.

Flashchat homepage embed
« on: May 31, 2015, 08:31:02 PM »
Some of you may wish to have a different look for your dating site when members are logged in and viewing the homepage. This little trick is a easy one to have flashchat open in your homepage.

Create a new file called chat.tpl

Add the following into the file:
Code: [Select]
{literal}
<center><iframe width="800" height="480"  src="http://yourwebsite.com/chat/flashchat.php"></iframe><center>
{/literal}

In your homepage.tpl add the following:
Code: [Select]
{if $smarty.session.active == 1 && $smarty.session.security.allowim == 1 }
{include file='chat.tpl'}
{/if}

*Note: This works on all three of my hosts but have experience on a members server that the chat auto fill form of flashchat.php doesn't work and I have not figured out why as of this point.

*

Pharg

  • *****
  • 3,148
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Flashchat homepage embed
« Reply #1 on: May 31, 2015, 10:30:03 PM »
Hi scvoyager,

Thanks for sharing this cool way of embedding the flashchat, nice one  :)
Regards,
Pharg ( Phill )

Don't Personal Message me unless it's about a sensitive matter!!

REMEMBER TO ALWAYS BACKUP BEFORE MAKING ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.2 | MySQL: 5.5.35