Announcements

Spam Blaster Implemented
by NetriX - 4 months ago
The New PHP-Fusion USA
by NetriX - 8 months ago

Latest Posts

View Thread

Who is here? 1 guest(s)
 Print Thread
ArrowChat Details
NetriX
Hello Fusioneer,

By now you've probably noticed a new chat bar at the bottom of the screen. The chat bar is powered by ArrowChat.

You can head over to their website and download and try the software for free. However, take note that this is not a free application after your trial period. The minimum fee is $45 to own a license.

I've created an integration for the software and am willing to share it completely once finished.

Please take further note that this software is not AGPL licensed and it is not required for me to release any source files.

I will release a tutorial soon, please, no hounding for its' release as integration is delicate.

Kind Regards,
NetriX


Edited by NetriX on 04-03-2013 21:15

Need help? Having trouble?
» View our Documentation for guides, functions and more - including the Getting Started section!
» Attach Log Files and Screenshots when reporting issues
» My support days are usually Sun-Wed. Send me a PM if urgent.
 
Homdax
Well, I don't mean to be picky, but the code you made to integrate it in PHP-Fusion will, as I understand it, have to be released.

Great work nevertheless, so we owe you money now? Wink
 
NetriX
I understand the confusion with it an all and seriously don't wish to drop another agpl nuke discussion. However, just mentioning, the script does not use any php-fusion src making it immune to the agpl.

Other than that, catch yall in the chat room sometime! :1pacman:

The code I used to integrate is also self dependent, really.

Download source  Code
function get_user_id()
   {
      session_start();
      $userid = NULL;
      
      if (isset($_SESSION['user_id_sess'])) {
        $userid=$_SESSION['user_id_sess'];
      }

      return $userid;
   }




And that is only read from what I set it to. PHP-Fusion remains unmodified. ;)
Edited by NetriX on 04-04-2013 03:14

Need help? Having trouble?
» View our Documentation for guides, functions and more - including the Getting Started section!
» Attach Log Files and Screenshots when reporting issues
» My support days are usually Sun-Wed. Send me a PM if urgent.
 
Advertisement
Craig
Hi,

Nice chat guy's, keep up the good work.

Regards
Craig
 
Dzonson
I have a question as to add to the PHP-Fusion
 
NetriX
Tutorial is now live

http://php-fusion.us/infusions/video/...o.php?id=6
NetriX attached the following file:
You must register or login in order to download this file.

Need help? Having trouble?
» View our Documentation for guides, functions and more - including the Getting Started section!
» Attach Log Files and Screenshots when reporting issues
» My support days are usually Sun-Wed. Send me a PM if urgent.
 
Dzonson
THX NetriX
 
Advertisement
Dzonson
As I type this command install nothing happens
 
NetriX

>Dzony wrote:


As I type this command install nothing happens

You lost me by not making sense. Hmm..
Need help? Having trouble?
» View our Documentation for guides, functions and more - including the Getting Started section!
» Attach Log Files and Screenshots when reporting issues
» My support days are usually Sun-Wed. Send me a PM if urgent.
 
Dzonson
All files placed in infusions
 
NetriX
You'll need to download arrow chat from http://arrowchat.com/ by trial or other means.

Have your tree structure look as follows:

php-fusion.us/forum/attachments/structure.jpg
NetriX attached the following file:
You must register or login in order to download this file.

Need help? Having trouble?
» View our Documentation for guides, functions and more - including the Getting Started section!
» Attach Log Files and Screenshots when reporting issues
» My support days are usually Sun-Wed. Send me a PM if urgent.
 
Dzonson
Due to my error I read to the end
 
LiVeLy-Chat
I followed the video tutorial to install arrowchat and after logging into the website, I am still receiving the error you must login or register to chat. I am using the latest version of Arrowchat. Any ideas?
Chats and forums for everyone at LiVeLy Chat. Register free today:
http://www.lively...
 
adam8779184
I am eager to mend this panel Sad not connected to a database
 
Homdax
NetriX, it needs ionCube to work.
http://www.php-fusion.us/forum/viewth...read_id=94
...just one among some friends...
 
djdanni
Hi. I have bin trying it on http://www.icehumor.com but it always say Loading. Can someone who can fix it contact me on Skype? I am there as toppfm
Edited by djdanni on 07-14-2013 13:27
 
Septron
Hello,

I also tested it with the trail version as a nulled version but both did not work ....

Despite video instructions vain

pity wait times matrimonial or whether it is being revised, Maybe something better comes out but it would be advantageous Wink

greeting Septron
 
NetriX
I installed it on another website yesterday and all seems to work well.

Ensure you meet the requirements and use the install script.

yoursite.com/infusions/chat_panel/install/
Need help? Having trouble?
» View our Documentation for guides, functions and more - including the Getting Started section!
» Attach Log Files and Screenshots when reporting issues
» My support days are usually Sun-Wed. Send me a PM if urgent.
 
Septron
Hello Netrix,

I made it only indicates that I should me Register or log .....

is it the Coockies or missing something in the name?
users or the same?

greeting Septron
 
Advertisement
NetriX
I understand your using SGI Fusion, I have no idea how much it differs from PHP-Fusion, but it could be an issue.

The chat relies on sessions, please refer to the integration file below to ensure it meets SGI Fusion requirements.

Download source  PHP
  1. <?php
  2.  
  3.     /**
  4.      * This function returns the user ID of the logged in user on your site.  Technical support will not
  5.      * help you with this for stand-alone installations.  You must purchase the professional installation
  6.      * if you are having trouble.
  7.      *
  8.      * Suggestion: Check out the other integration files in the functions/integrations directory for
  9.      * many examples of how this can be done.  The easiest way is to get the user ID through a cookie.
  10.      *
  11.      * @return the user ID of the logged in user or NULL if not logged in
  12.      */
  13.     function get_user_id() 
  14.     {
  15.        session_start();
  16.         $userid = NULL;
  17.         
  18.         if (isset($_SESSION['user_id_sess'])) {
  19.           $userid=$_SESSION['user_id_sess'];
  20.         }
  21.  
  22.         return $userid;
  23.     }
  24.  
  25.     /**
  26.      * This function returns the SQL statement for the buddylist of the user.  You should retrieve
  27.      * all ONLINE friends that the user is friends with.  Do not retrieve offline users.  You can use
  28.      * global $online_timeout to get the online timeout.
  29.      * ex: AND (arrowchat_status.session_time + 60 + " . $online_timeout . ") > " . time() . " 
  30.      *
  31.      * @param userid the user ID of the person receiving the buddylist
  32.      * @param the time of the buddylist request
  33.      * @return the SQL statement to retrieve the user's friend list
  34.      */
  35.     function get_friend_list($userid, $time)
  36.     {
  37.         global $db;
  38.         global $online_timeout;
  39.         
  40.         $sql = ("
  41.             SELECT DISTINCT " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_USERID . " userid, " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_NAME . " username, arrowchat_status.session_time lastactivity, " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_AVATAR . " avatar, " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_USERID . " link, arrowchat_status.is_admin, arrowchat_status.status 
  42.             FROM " . TABLE_PREFIX . DB_FRIENDSTABLE . 
  43.             JOIN " . TABLE_PREFIX . DB_USERTABLE . 
  44.                 ON  " . TABLE_PREFIX . DB_FRIENDSTABLE . "." . DB_FRIENDSTABLE_FRIENDID . " = " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_USERID . 
  45.             LEFT JOIN arrowchat_status 
  46.                 ON " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_USERID . " = arrowchat_status.userid 
  47.             WHERE " . TABLE_PREFIX . DB_FRIENDSTABLE . "." . DB_FRIENDSTABLE_USERID . " = '" . $db->escape_string($userid) . "' 
  48.                 AND " . TABLE_PREFIX . DB_FRIENDSTABLE . "." . DB_FRIENDSTABLE_FRIENDS . " = 1 
  49.                 AND (arrowchat_status.session_time + 60 + " . $online_timeout . ") > " . time() . 
  50.             ORDER BY " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_NAME . " ASC
  51.         ");
  52.         
  53.         return $sql; 
  54.     }
  55.  
  56.     /**
  57.      * This function returns the SQL statement for all online users.  You should retrieve
  58.      * all ONLINE users regardless of friend status.  Do not retrieve offline users.  You can use
  59.      * global $online_timeout to get the online timeout.
  60.      * ex: AND (arrowchat_status.session_time + 60 + " . $online_timeout . ") > " . time() . " 
  61.      *
  62.      * @param userid the user ID of the person receiving the buddylist
  63.      * @param the time of the buddylist request
  64.      * @return the SQL statement to retrieve all online users
  65.      */
  66.     function get_online_list($userid, $time) 
  67.     {
  68.         global $db;
  69.         global $online_timeout;
  70.         
  71.         $sql = ("
  72.             SELECT DISTINCT " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_USERID . " userid, " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_NAME . " username, arrowchat_status.session_time lastactivity, " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_AVATAR . " avatar, " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_USERID . " link, arrowchat_status.is_admin, arrowchat_status.status 
  73.             FROM " . TABLE_PREFIX . DB_USERTABLE . 
  74.             JOIN arrowchat_status 
  75.                 ON " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_USERID . " = arrowchat_status.userid 
  76.             WHERE ('" . time() . "' - arrowchat_status.session_time - 60 < '" . $online_timeout . "') 
  77.                 AND " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_USERID . " != '" . $db->escape_string($userid) . "' 
  78.             ORDER BY " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_NAME . " ASC
  79.         ");
  80.         
  81.         return $sql; 
  82.     }
  83.  
  84.     /**
  85.      * This function returns the SQL statement to get the user details of a specific user.  You should
  86.      * get the user's ID, username, last activity time in unix, link to their profile, avatar, and status.
  87.      *
  88.      * @param userid the user ID to get the details of
  89.      * @return the SQL statement to retrieve the user's defaults
  90.      */
  91.     function get_user_details($userid) 
  92.     {
  93.         global $db;
  94.         
  95.         $sql = ("
  96.             SELECT " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_USERID . " userid, " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_NAME . " username, arrowchat_status.session_time lastactivity,  " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_USERID . " link,  " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_AVATAR . " avatar, arrowchat_status.is_admin, arrowchat_status.status 
  97.             FROM " . TABLE_PREFIX . DB_USERTABLE . 
  98.             LEFT JOIN arrowchat_status 
  99.                 ON " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_USERID . " = arrowchat_status.userid 
  100.             WHERE " . TABLE_PREFIX . DB_USERTABLE . "." . DB_USERTABLE_USERID . " = '" . $db->escape_string($userid) . "'
  101.         ");
  102.         
  103.         return $sql;
  104.     }
  105.  
  106.     /**
  107.      * This function returns the profile link of the specified user ID.
  108.      *
  109.      * @param userid the user ID to get the profile link of
  110.      * @return the link of the user ID's profile
  111.      */
  112.     function get_link($link, $user_id) 
  113.     {
  114.         global $base_url;
  115.         
  116.         return "http://php-fusion.us/profile.php?lookup=" . $link;
  117.     }
  118.  
  119.     /**
  120.      * This function returns the URL of the avatar of the specified user ID.
  121.      *
  122.      * @param userid the user ID of the user
  123.      * @param image if the image includes more than just a user ID, this param is passed
  124.      * in from the avatar row in the buddylist and get user details functions.
  125.      * @return the link of the user ID's profile
  126.      */
  127.     function get_avatar($image, $user_id) 
  128.     {
  129.         global $base_url;
  130.         
  131.         if ($image) 
  132.         {
  133.             return "http://php-fusion.us/images/avatars/{$image}";
  134.         } 
  135.         else 
  136.         {
  137.             return $base_url . AC_FOLDER_ADMIN . "/images/img-no-avatar.gif";
  138.         }
  139.     }
  140.  
  141.     /**
  142.      * This function returns the name of the logged in user.  You should not need to
  143.      * change this function.
  144.      *
  145.      * @param userid the user ID of the user
  146.      * @return the name of the user
  147.      */
  148.     function get_username($userid) 
  149.     { 
  150.         global $db;
  151.         global $language;
  152.         global $show_full_username;
  153.         
  154.         $users_name = $language[83];
  155.  
  156.         $result = $db->execute("
  157.             SELECT " . DB_USERTABLE_NAME . " name 
  158.             FROM " . TABLE_PREFIX . DB_USERTABLE . 
  159.             WHERE " . DB_USERTABLE_USERID . " = '" . $db->escape_string($userid) . "'
  160.         ");  
  161.  
  162.         if ($result AND $db->count_select() > 0)  
  163.         {
  164.             $row = $db->fetch_array($result); 
  165.             $users_name = $row['name']; 
  166.         }
  167.  
  168.         $pieces = explode(" ", $users_name);
  169.         
  170.         if ($show_full_username == 1)
  171.         {
  172.             return $users_name;
  173.         }
  174.         else
  175.         {
  176.             return $pieces[0]; 
  177.         }
  178.     } 
  179.  
  180. ?>

Need help? Having trouble?
» View our Documentation for guides, functions and more - including the Getting Started section!
» Attach Log Files and Screenshots when reporting issues
» My support days are usually Sun-Wed. Send me a PM if urgent.
 
Jump to Forum:

Similar Threads

Thread Forum Replies Last Post
arrowchat Loading... no member online? General Support 2 09-16-2014 09:03
ArrowChat Addon Requests 3 04-13-2013 19:21