*

Vink

  • *****
  • 329
    • NedDate.nl
Re: Looking for a good Chat script?
« Reply #15 on: March 18, 2015, 03:21:35 PM »
Hi Jack,
I checked the download page and all is working..
Register first to get the chat..
Regards
Vink
osDate 2.19a | PHP 5.3.8 | MySQL  5.0.91

Re: Looking for a good Chat script?
« Reply #16 on: April 01, 2015, 09:57:49 AM »
Hi

is able to display the number of people online on another page?

*

Pharg

  • *****
  • 2,065
  • osDate Version: osDate Evo v1.0
Re: Looking for a good Chat script?
« Reply #17 on: April 01, 2015, 10:14:11 AM »
Hi dave841,

There are a few you can look at, one I can suggest neddchat or cometchat.

More on neddchat here http://www.osdateforum.com/addons-modules-7/looking-for-a-good-chat-script/
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.0 | PHP: 5.3.42 & PHP: 5.6.18 | MySQL: 5.5.35

*

heebeha

  • **
  • 60
  • Me
Re: Looking for a good Chat script?
« Reply #18 on: April 04, 2016, 01:47:58 PM »
This works great. I did modify this a little so that it will integrate with osdate better. Instead of putting the script in the panelmenu.tpl like the instructions say, you can modify the panelmenu_options.tpl so that it will integrate with the different levels of membership. This is a sample of my panelmenu_options.tpl.

{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') }
   <tr>
      <td class="panelbox_div">

You don't need the if flashchat statement so I removed it, works great.

{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') }
   <tr>
      <td class="panelbox_div">
            <form name='frmChat' id='frmChat' action="{$docroot}nedchat/chat.php" method='get' target="new">
               <input type="hidden" name='username' value="{$smarty.session.UserName}" />
               <input type="hidden" name='whatIneed' value="{$smarty.session.whatIneed}" />
            </form>
         <a class="panellink" href="nedchat/chat.php?name={$smarty.session.UserName}&id={$smarty.session.UserId}" target=" onclick="javascript:document.frmChat.submit(); return(false);">Chat Room</a>
      </td>

      {* if flashchat is installed, then open new window *}
         {if $flashchat_installed == '1'}
            <form name='frmChat' id='frmChat' action="{$docroot}nedchat/chat.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}nedchat/chat.php" method="post">
               <input type="hidden" name='username' value="{$smarty.session.UserName}" />
               <input type="hidden" name='whatIneed' value="{$smarty.session.whatIneed}" />
            </form>
         {/if}
         <a class="panellink" href="nedchat/chat.php?name={$smarty.session.UserName}&id={$smarty.session.UserId}" target=" onclick="javascript:document.frmChat.submit(); return(false);">{lang mkey='chat'}</a>
      </td>

You don't need the if flashchat statement.  I removed it.  Works better

{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') }
   <tr>
      <td class="panelbox_div">
            <form name='frmChat' id='frmChat' action="{$docroot}nedchat/chat.php" method='get' target="new">
               <input type="hidden" name='username' value="{$smarty.session.UserName}" />
               <input type="hidden" name='whatIneed' value="{$smarty.session.whatIneed}" />
            </form>
         <a class="panellink" href="nedchat/chat.php?name={$smarty.session.UserName}&id={$smarty.session.UserId}" target=" onclick="javascript:document.frmChat.submit(); return(false);">Chat Room</a>
      </td>

Question: How can I set it so only premium memberships can use the chat feature?

*

Vink

  • *****
  • 329
    • NedDate.nl
Re: Looking for a good Chat script?
« Reply #19 on: April 04, 2016, 03:24:13 PM »
Hi,
Quote
Question: How can I set it so only premium memberships can use the chat feature?   

You can find the answer here:
http://www.osdateforum.com/templates-and-themes-8/detect-if-customer-is-gold-member/
 
Regards
Vink
osDate 2.19a | PHP 5.3.8 | MySQL  5.0.91