0 Members and 1 Guest are viewing this topic.

Possible to have flashchat load in the homepage?
« on: August 17, 2015, 08:51:46 PM »
Is it possible to have flashchat loas in the homepage rather than in a new window? I use the 3 column template and would love to be able to have flashchat load in the main portion of the homepage just beloe the "Special Offers" section. Any suggestions if this is even possible?
osDate 2.6.5 | MySQL 5.6 | MS SQL 2014 | PHP 5.3.11 & PHP 5.5.11 & PHP 5.6.0 |  Dedicated Windows 2012 R2 Server on 8 Core Zeon - 16Gb Ram - SSD | Adobe Flash Media Server Enterprise 4

Re: Possible to have flashchat load in the homepage?
« Reply #1 on: August 17, 2015, 09:30:32 PM »

Re: Possible to have flashchat load in the homepage?
« Reply #2 on: August 17, 2015, 10:24:44 PM »
I saw this a few days ago and tried it but no joy. Guess my server wont let it work either. If I come up with any ideas I'll be sure to post here
osDate 2.6.5 | MySQL 5.6 | MS SQL 2014 | PHP 5.3.11 & PHP 5.5.11 & PHP 5.6.0 |  Dedicated Windows 2012 R2 Server on 8 Core Zeon - 16Gb Ram - SSD | Adobe Flash Media Server Enterprise 4

Re: Possible to have flashchat load in the homepage?
« Reply #3 on: August 18, 2015, 12:19:19 AM »
Flashchat will always show just on some servers the auto member login does not work. Make sure you have the correct path the the flashchat.php file.

Re: Possible to have flashchat load in the homepage?
« Reply #4 on: August 18, 2015, 12:45:43 AM »
Flashchat works fine, including the autologin. What I cannot get to work is have the chat window open on the homepage rather than in a new window.
osDate 2.6.5 | MySQL 5.6 | MS SQL 2014 | PHP 5.3.11 & PHP 5.5.11 & PHP 5.6.0 |  Dedicated Windows 2012 R2 Server on 8 Core Zeon - 16Gb Ram - SSD | Adobe Flash Media Server Enterprise 4

Re: Possible to have flashchat load in the homepage?
« Reply #5 on: August 18, 2015, 01:27:54 AM »
Yes I think that I know why. You are using the chat link in the dropdown menu. In the dropdownpanelmenu.tpl you need to edit these links to direct to the page you have your flashchat embedded in.
Code: [Select]
{if $smarty.session.security.chat == 1  and $smarty.session.expired != '1' and $smarty.session.active == '1' and  ( $smarty.session.status == $lang.status_enum.active or $smarty.session.status == 'active') }

{if $flashchat_installed == '1'}
<form name='frmChat' id='frmChat' action="{$docroot}chat/flashchat_osdate.php" method='get' target="new">
<input type="hidden" name='username' value="{$smarty.session.UserName}" />
<input type="hidden" name='whatIneed' value="{$smarty.session.whatIneed}" />
</form>
{else}
<form name='frmChat' id='frmChat' action="{$docroot}flashchat.php" method="post">
<input type="hidden" name='username' value="{$smarty.session.UserName}" />
<input type="hidden" name='whatIneed' value="{$smarty.session.whatIneed}" />
</form>
{/if}
<a href="#" onclick="javascript:document.frmChat.submit(); return(false);">{lang mkey='chat'}</a>

{elseif $config.display_all_menu_items == 'Y' or $config.display_all_menu_items == '1'}

<a href="#" onclick="javascript:insufficientPrivileges();">{lang mkey='chat'}</a>

{/if}

Re: Possible to have flashchat load in the homepage?
« Reply #6 on: August 18, 2015, 03:16:57 AM »
I'm using the static link and tried to edit this code in panelmenu_options.tpl. Nothing I came up with made the chat open inside the main section. Removing the target= only opened the chat in the same window but not embedded within the os site. Basicly what I'm asking is I'd like to have the chat window open in the body of osdate between the left and right column just like all the other links do
osDate 2.6.5 | MySQL 5.6 | MS SQL 2014 | PHP 5.3.11 & PHP 5.5.11 & PHP 5.6.0 |  Dedicated Windows 2012 R2 Server on 8 Core Zeon - 16Gb Ram - SSD | Adobe Flash Media Server Enterprise 4

Re: Possible to have flashchat load in the homepage?
« Reply #7 on: August 18, 2015, 03:54:50 AM »
Do this for a test to see if it is working.

In your homepage.tpl add:
Code: [Select]
{if $smarty.session.active == 1 && $smarty.session.security.allowim == 1 }{include file='chat.tpl'}{/if}Now create a file called chat.tpl and add this in it:
Code: [Select]
<center><iframe width="800" height="480"  src="http://{$docroot}chat/flashchat.php"></iframe><center>Now when you login as a user from the front end chat should show on the home page.