0 Members and 1 Guest are viewing this topic.

*

heebeha

  • ***
  • 102
  • Me
Re: Freichat
« Reply #15 on: April 11, 2016, 10:15:12 PM »
I really like the way yours it setup.  I see your using the default-three-column theme but you must have made some mods to it to make the thumbnail images longer and wider and the heading boxes rounded and wider. I really like the simplicity just clean look.

Can I please get a copy.  I will modify it to make it my own I promise.  Please.

Screenshot attached

*

insha

  • **
  • 56
    • Duohost
  • osDate Version: osDate Evo v1.0
Re: Freichat
« Reply #16 on: April 12, 2016, 10:10:17 AM »
You can download it at
« Last Edit: April 12, 2016, 10:57:58 AM by Pharg »

*

Pharg

  • *****
  • 2,789
    • OsDateFourm
  • osDate Version: osDate Evo v1.2
Re: Freichat
« Reply #17 on: April 12, 2016, 10:59:08 AM »
We do not allow that template site on here anymore, he got banned!!
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

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

*

insha

  • **
  • 56
    • Duohost
  • osDate Version: osDate Evo v1.0
Re: Freichat
« Reply #18 on: April 12, 2016, 11:12:45 AM »
Sorry, i didn't know. I just reply to member that ask for template file.

*

Pharg

  • *****
  • 2,789
    • OsDateFourm
  • osDate Version: osDate Evo v1.2
Re: Freichat
« Reply #19 on: April 12, 2016, 11:30:27 AM »
Hi insha,

No worries, osDateEvo has almost the same templates, just more improved.
« Last Edit: September 24, 2016, 08:31:22 PM by Pharg »
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

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

*

insha

  • **
  • 56
    • Duohost
  • osDate Version: osDate Evo v1.0
Re: Freichat
« Reply #20 on: April 12, 2016, 11:40:09 AM »
I can't wait to release it

*

heebeha

  • ***
  • 102
  • Me
Re: Freichat
« Reply #21 on: April 12, 2016, 01:37:57 PM »
Who was banned?  Come on I just want the template.  Can you PM me a link or zip yours and attach it to a PM maybe?
Please

*

heebeha

  • ***
  • 102
  • Me
Re: Freichat
« Reply #22 on: April 12, 2016, 01:50:49 PM »
Also osDateEvo is nothing like the template found on http://mojduo.com/
Please PM me or give me the site that has it for download please.

*

insha

  • **
  • 56
    • Duohost
  • osDate Version: osDate Evo v1.0
Re: Freichat
« Reply #23 on: September 24, 2016, 06:42:56 PM »
Hello, did it get it to work, i have this for my osclass site, maybe it can help http://codologic.com/forum/index.php?u=/topic/7929/how-do-you-integrate-freichat-v10-0-with-osdate/1 ?

*

Pharg

  • *****
  • 2,789
    • OsDateFourm
  • osDate Version: osDate Evo v1.2
Re: Freichat
« Reply #24 on: September 24, 2016, 08:33:41 PM »
Hi heebeha,

That is a osDateEvo template in that link, I should know as I made it  :P

Also osDateEvo is nothing like the template found on http://mojduo.com/
Please PM me or give me the site that has it for download please.
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

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

*

Pharg

  • *****
  • 2,789
    • OsDateFourm
  • osDate Version: osDate Evo v1.2
Re: Freichat
« Reply #25 on: September 24, 2016, 08:36:50 PM »
Hi insha,

Yes I know about that as that's me asking the questions in there, but it doesn't work at 100% yet lol

Hello, did it get it to work, i have this for my osclass site, maybe it can help http://codologic.com/forum/index.php?u=/topic/7929/how-do-you-integrate-freichat-v10-0-with-osdate/1 ?
« Last Edit: September 24, 2016, 08:48:20 PM by Pharg »
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

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

*

insha

  • **
  • 56
    • Duohost
  • osDate Version: osDate Evo v1.0
Re: Freichat
« Reply #26 on: September 24, 2016, 08:52:14 PM »
What is bug ? So i can help

*

Pharg

  • *****
  • 2,789
    • OsDateFourm
  • osDate Version: osDate Evo v1.2
Re: Freichat
« Reply #27 on: September 24, 2016, 08:57:43 PM »
Hi insha,

When two or more members are logged in, they don't all show in the quick chat for some strange reason.
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

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

*

insha

  • **
  • 56
    • Duohost
  • osDate Version: osDate Evo v1.0
Re: Freichat
« Reply #28 on: September 24, 2016, 09:09:54 PM »
Does this helps someting:

<?php
/*
Plugin Name: Freichat
Plugin URI: http://plugins-zone.com/freichat
Description: This plugin enables you to show chat window in item page if the user is online and logged in.
Version: 1.0.5 Freichat Ready
Author: cartagena68
Author URI: http://plugins-zone.com
Short Name: freichat
Plugin update URI: http://plugins-zone.com/freichat
*/

// Install Plugin
function freichat_install() {
    $conn = getConnection();
    $conn->autocommit(false);
    try {
        $path = osc_plugin_resource('freichat/struct.sql');
        $sql = file_get_contents($path);
        $conn->osc_dbImportSQL($sql);
        $conn->commit();
        } catch (Exception $e) {
        $conn->rollback();
        echo $e->getMessage();
    }
    $conn->autocommit(true);
   osc_set_preference('freichat_chat','enable', 'freichat', 'STRING');
   osc_set_preference('freichat_show_chat','enable', 'freichat', 'STRING');
   
   rename(osc_plugins_path().'freichat/freichat_script', osc_base_path().'freichat');
   
}
// Uninstall Plugin
function freichat_uninstall() {
   $conn = getConnection();
    $conn->autocommit(false);
    try {
        $conn->osc_dbExec('DROP TABLE %st_chat_users', DB_TABLE_PREFIX);
      $conn->osc_dbExec('DROP TABLE frei_banned_users');
      $conn->osc_dbExec('DROP TABLE frei_chat');
      $conn->osc_dbExec('DROP TABLE frei_config');
      $conn->osc_dbExec('DROP TABLE frei_rooms');
      $conn->osc_dbExec('DROP TABLE frei_session');
      $conn->osc_dbExec('DROP TABLE frei_smileys');
      $conn->osc_dbExec('DROP TABLE frei_video_session');
      $conn->osc_dbExec('DROP TABLE frei_webrtc');
      $conn->commit();
        } catch (Exception $e) {
        $conn->rollback();
        echo $e->getMessage();
    }
    $conn->autocommit(true);
   osc_delete_preference('freichat_chat', 'freichat');
   osc_delete_preference('freichat_show_chat', 'freichat');
   
   copy(osc_base_path()."freichat/hardcode/hardcode.php", osc_base_path().'freichat/hardcode.php');

   $freiInstall = osc_base_path()."freichat/chat_installed";
   if(file_exists($freiInstall)) { rename(osc_base_path()."freichat/chat_installed", osc_base_path().'freichat/installation'); }
   rename(osc_base_path().'freichat', osc_plugins_path().'freichat/freichat_script');
}


function freichat_user_online() {

   if (osc_is_web_user_logged_in()) {
      $conn   = getConnection();
      $id = osc_logged_user_id() ;
      $conn->osc_dbExec("INSERT INTO %st_chat_users (`userid`, `timestamp`) VALUES ('$id', CURRENT_TIMESTAMP) ON DUPLICATE KEY UPDATE timestamp=CURRENT_TIMESTAMP",DB_TABLE_PREFIX);
      }
  // delete the USER ID that are no longer online (no update for longer than 5 minutes)
     $conn   = getConnection();
     $conn->osc_dbExec("DELETE FROM %st_chat_users WHERE timestamp < NOW() - INTERVAL 10 MINUTE",DB_TABLE_PREFIX);   
}
   
///////////////////// START CODE FOR CHAT //////////////////////////////


function header_add_chat_code() {

if(USER_IS_LOGGED_IN)
{
    $ses = osc_logged_user_id() ; //tell freichat the userid of the current user

    setcookie("freichat_user", "LOGGED_IN", time()+3600, "/"); // *do not change -> freichat code
}
else {
    $ses = null; //tell freichat that the current user is a guest

    setcookie("freichat_user", null, time()+3600, "/"); // *do not change -> freichat code
}

if(!function_exists("freichatx_get_hash")){
function freichatx_get_hash($ses){

       if(is_file(osc_base_path()."/freichat/hardcode.php")){

               require osc_base_path()."/freichat/hardcode.php";

               $temp_id =  $ses . $uid;

               return md5($temp_id);

       }
       else
       {
               echo "<script>alert('module freichatx says: hardcode.php file not
found!');</script>";
       }

       return 0;
}
}
?>
<script type="text/javascript" language="javascipt" src="<?php echo osc_base_url() ; ?>freichat/client/main.php?id=<?php echo $ses;?>&xhash=<?php echo freichatx_get_hash($ses); ?>"></script>
   <link rel="stylesheet" href="<?php echo osc_base_url() ; ?>freichat/client/jquery/freichat_themes/freichatcss.php" type="text/css">
<?php   }
   
   function freichat_user_status() {
   $itemUserId = osc_item_user_id();
   $conn   = getConnection();
   $freichatOnline=$conn->osc_dbFetchResult("SELECT * FROM %st_chat_users WHERE userid = '%s'",DB_TABLE_PREFIX, $itemUserId);
   if($freichatOnline !=''){
      return 1;
   } else {
      return 0;
      }
}

function freichat_show_chat() {
   $user = User::newInstance()->findByPrimaryKey(osc_item_user_id());
   if(osc_is_web_user_logged_in() && osc_logged_user_id()!=osc_item_user_id()) {       
      echo '<div style="margin-top:10px;" class="onlineuser">' ;
   if(freichat_user_status() == 1) {
      echo '<img style="border:none !important" src="'.osc_base_url().'oc-content/plugins/freichat/images/chat.png"/>&nbsp;&nbsp;<a id="onlineuser" href="javascript:void(0)" onClick="FreiChat.create_chat_window_mesg(\''.$user['s_name'].'\','.osc_item_user_id().')">'.__("Chat with ", "freichat").$user['s_name'].'</a>' ;
   } else {
      echo '<img style="border:none !important" src="'.osc_base_url().'oc-content/plugins/freichat/images/chat.png"/>&nbsp;&nbsp;'.$user['s_name'].__(" is offline, chat is closed.", "freichat") ;
         }
       echo '</div>' ;
   } elseif(!osc_is_web_user_logged_in() && freichat_user_status() == 1) {
      echo '<div style="margin-top:10px;" class="onlineuser"><img style="border:none !important" src="'.osc_base_url().'oc-content/plugins/freichat/images/chat.png"/>&nbsp;&nbsp;'.__('You must log in or register a new account in order to chat with ','freichat').$user['s_name'].'<div align="center">
                <strong><a href="'.osc_user_login_url().'">'.__('Login or ', 'freichat').'</a></strong>
                <strong><a href="'.osc_register_account_url().'">'.__(' Register', 'freichat').'</a></strong>
            </div></div>';
      } elseif(!osc_is_web_user_logged_in() && freichat_user_status() == 0) {
         echo '<div style="margin-top:10px;" class="onlineuser"><img style="border:none !important" src="'.osc_base_url().'oc-content/plugins/freichat/images/chat.png"/>&nbsp;&nbsp;'.$user['s_name'].__(' is offline.', 'freichat').'</div>';
   } elseif(osc_is_web_user_logged_in() && osc_logged_user_id()==osc_item_user_id()) {
      echo '<div style="margin-top:10px;" class="onlineuser"><img style="border:none !important" src="'.osc_base_url().'oc-content/plugins/freichat/images/chat.png"/>&nbsp;&nbsp;'.__('You are online, users can chat with you.','freichat').'</div>';
   }
}

///////////// END CODE FOR CHAT ///////////////////

function freichat_admin() {
        osc_admin_render_plugin(osc_plugin_path(dirname(__FILE__)) . '/admin.php') ;
    }
   
// Delete USER ID when user logout
   function freichat_user_logout() {
      if (osc_is_web_user_logged_in()) {
      $conn   = getConnection();
      $id = osc_logged_user_id() ;
      $conn->osc_dbExec("DELETE FROM %st_chat_users WHERE userid = '%s'",DB_TABLE_PREFIX, $id);
      
      }
   }
   
function freichat_admin_menu() {
    echo '<h3><a href="#">FreiChat</a></h3>
    <ul>
        <li><a href="' . osc_admin_render_plugin_url(osc_plugin_folder(__FILE__) . 'admin.php') . '">&raquo; ' . __('Admin', 'freichat') . '</a></li>
         <li><a href="' . osc_admin_render_plugin_url(osc_plugin_folder(__FILE__) . 'help.php') . '">&raquo; ' . __('Help', 'freichat') . '</a></li>
    </ul>';
}


// This is needed in order to be able to activate the plugin
osc_register_plugin(osc_plugin_path(__FILE__), 'freichat_install');

// This is a hack to show a Uninstall link at plugins table (you could also use some other hook to show a custom option panel)
osc_add_hook(osc_plugin_path(__FILE__)."_uninstall", 'freichat_uninstall');

osc_add_hook(osc_plugin_path(__FILE__) . '_configure', 'freichat_admin');

osc_add_hook('before_html', 'freichat_user_online') ;
osc_add_hook('logout', 'freichat_user_logout') ;
osc_add_hook('admin_menu', 'freichat_admin_menu');


if(osc_get_preference('freichat_show_chat', 'freichat')=="enable") {
osc_add_hook('item_detail', 'freichat_show_chat');
}

if(osc_get_preference('freichat_chat', 'freichat')=="enable") {
osc_add_hook('header', 'header_add_chat_code');
}
?>

*

Pharg

  • *****
  • 2,789
    • OsDateFourm
  • osDate Version: osDate Evo v1.2
Re: Freichat
« Reply #29 on: September 24, 2016, 09:13:43 PM »
Hi insha,

Thanks heaps, I will test later on :)

Does this work in version 10 also?
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

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