Anonymous,

Please Login or Register
Download Nuke Evolution Xtreme today for a CMS you can enjoy using and sharing with your friends!
[ Download Now ]
Forum Index  ·  Search  ·  Usergroups  ·  Edit your profile  ·  Members  ·  Login, Check Messages
Arcade  ·  Ranks  ·  Staff  ·  Statistics  ·  Board Rules  ·  Forum FAQ  ·  Log in

Search for at
Evolution-Xtreme Advanced Search


+  
Latest Site News   Next 5 >>  
 Forum   Author   Replies   Last Post 
File Repository 1.0.0 Released Announcements! Lonestar 0 Tue Apr 26, 2016 6:44 am
Lonestar View latest post
Image Repository Released Announcements! Lonestar 1 Mon Oct 27, 2014 7:39 pm
Lonestar View latest post
So what happened to us? Announcements! SgtLegend 0 Tue May 06, 2014 12:32 am
SgtLegend View latest post
[PROGRESS] Nuke Evolution Xtreme 2.0.9e Announcements! SgtLegend 2 Sun May 27, 2012 6:25 pm
SgtLegend View latest post
European Cookie Law Announcements! SgtLegend 0 Sat May 26, 2012 7:33 am
SgtLegend View latest post
   
Recent Topics   Next 15 >>  
 Forum   Author   Replies   Last Post 
Evo staff looking for some volunteers. Community Announcements coRpSE 20 Thu Jul 02, 2015 9:19 am
Depresjon2 View latest post
Evo Xtreme 2.0.9D Updated for PHP 5.6 General Support coRpSE 121 Thu Mar 23, 2017 3:57 pm
casterdon View latest post
[ MOD ] - Honeypot V2.2 AntiBot Module Security coRpSE 106 Tue Nov 22, 2016 11:30 am
coRpSE View latest post
Possible new Admin area layout Comments and Suggestions Lonestar 18 Wed Sep 14, 2016 11:37 am
Blackou View latest post
jQuery update General Support Lonestar 2 Wed May 11, 2016 4:49 pm
Charles64 View latest post
Deutsche Sprachdatei - german language files German DT50R 7 Thu Jan 28, 2016 7:04 am
DT50R View latest post
[FIX] Correct Cookie Settings (Invalid Session Error) Quick fixes killigan 110 Fri Mar 20, 2015 1:06 pm
Macdaddy View latest post
login as admin strange error General Support Worfwarrior 8 Sun May 21, 2017 12:42 pm
Worfwarrior View latest post
Does Anyone Have a Media Player Mod? Modules goosse 0 Mon May 01, 2017 9:17 am
goosse View latest post
head and body help General Support hercountrybuck 8 Tue Apr 04, 2017 2:08 pm
Sp0rAdiC View latest post
babstats nuke evo PHP 5.6 Modules pd35 4 Mon Mar 27, 2017 5:45 pm
Ragonese View latest post
Looking for coRpSE? He is gone till May. General Chat coRpSE 4 Sun Mar 26, 2017 6:50 pm
coRpSE View latest post
Think I got hit with malware somehow General Support bobdude 10 Sun Mar 26, 2017 6:44 pm
coRpSE View latest post
error log Bugs Redcougarxr7 31 Tue Mar 21, 2017 8:46 pm
coRpSE View latest post
I seem to be locked out of my website Smile General Support storm 4 Sat Mar 11, 2017 12:29 pm
coRpSE View latest post

freichat

 
Post new topic    Reply to topic    printer-friendly view   Thank Post    Evolution-Xtreme Forum Index -> Support
View previous topic :: View next topic  
Author Message
Dprince




Joined: Jun 17, 2009
Posts: 22

Reputation: 1.8


Status: Offline
PostPosted: Tue Oct 11, 2011 11:28 am Post subject: No icon freichat Reply with quote

 hey  guys  so  i  use  freichat  on  my  website  but  i  need  a  little  help  making  it  hook  up  to  the  evo  extreme  database...
 
 heres  what  the  i  gotta  edit..
 
 
 
 
                                                 
PHP:                
<?php

require 'base.php';

class 
Custom extends driver_base {

    public function 
__construct($db) {
        
//parent::__construct();
        
$this->db $db;
    }

//------------------------------------------------------------------------------
    
public function getDBdata($session_id$first) {
       
            if (
$session_id != null) {
                
$userID strip_tags($session_id);
                
$_SESSION[$this->uid 'is_guest'] = 0;
            } else {
                
$_SESSION[$this->uid 'is_guest'] = 1;
                
$_SESSION[$this->uid 'usr_name'] = $_SESSION[$this->uid 'gst_nam'];
                
$_SESSION[$this->uid 'usr_ses_id'] = $_SESSION[$this->uid 'gst_ses_id'];     
            }
           
            if ((
$_SESSION[$this->uid 'time'] < $this->online_time || isset($_SESSION[$this->uid 'usr_name']) == false || $first == 'false') && $_SESSION[$this->uid 'is_guest'] == 0) { //To consume less resources , now the query is made only once in 15 seconds
          
                
$query "SELECT DISTINCT " $this->row_username "," $this->row_userid "
                      FROM " 
DBprefix $this->usertable "
                      WHERE " 
$this->row_userid "='" $userID "'
                      LIMIT 1"
;

                
$res_obj $this->db->query($query);

                
$res $res_obj->fetchAll();

                if (
$res == null) {
                    
$this->freichat_debug("Incorrect Query :  " $query ", check parameters");
                    
$_SESSION[$this->uid 'is_guest'] = 1
                    
$_SESSION[$this->uid 'usr_name'] = $_SESSION[$this->uid 'gst_nam'];
                    
$_SESSION[$this->uid 'usr_ses_id'] = $_SESSION[$this->uid 'gst_ses_id'];     
                }

                foreach (
$res as $result) {
                    if (isset(
$result[$this->row_username])) { //To avoid undefined index error. Because empty results were shown sometimes
                        
$_SESSION[$this->uid 'usr_name'] = $result[$this->row_username];
                        
$_SESSION[$this->uid 'usr_ses_id'] = $result[$this->row_userid];
                    }
                }
            }
         else {
            
$this->freichat_debug("Wrong method defined!");
        }
    }

//------------------------------------------------------------------------------
    
public function avatar_url($avatar) {
        
$murl str_replace("server/freichat.php"""$this->url);
        
$avatar_url $murl 'client/jquery/user.jpeg';
        return 
$avatar_url;
    }
//------------------------------------------------------------------------------
    
public function getList() {

        
$user_list null;

        if (
$this->show_name == 'guest') {
            
$user_list $this->get_guests();
        } else if (
$this->show_name == 'user') {
            
$user_list $this->get_users();
        } else {
            
$this->freichat_debug('USER parameters for show_name are wrong.');
        }
        return 
$user_list;
    }
//------------------------------------------------------------------------------
    
public function get_guests() {

        
$query "SELECT DISTINCT status_mesg,username,session_id,status,guest
                   FROM frei_session
                  WHERE time>" 
$this->online_time2 "
                   AND session_id!=" 
$_SESSION[$this->uid 'usr_ses_id'] . "
                   AND status!=2
                   AND status!=0"
;
//echo $query;
        
$list $this->db->query($query)->fetchAll();
        return 
$list;
    }

//------------------------------------------------------------------------------     
    
public function get_users() {

        
$query "SELECT DISTINCT status_mesg,username,session_id,status,guest
                   FROM frei_session
                  WHERE time>" 
$this->online_time2 "
                   AND session_id!=" 
$_SESSION[$this->uid 'usr_ses_id'] . "
                   AND guest=0
                   AND status!=2
                   AND status!=0"
;

        
$list $this->db->query($query)->fetchAll();
        return 
$list;
    }

    
//------------------------------------------------------------------------------
    
public function get_buddies() {

        
$query "SELECT DISTINCT status_mesg,username,session_id,status,guest
                   FROM frei_session
                  WHERE time>" 
$this->online_time2 "
                   AND session_id!=" 
$_SESSION[$this->uid 'usr_ses_id'] . "
                   AND guest=0
                   AND status!=2
                   AND status!=0"
;

        
$list $this->db->query($query)->fetchAll();
        return 
$list;
    }

//------------------------------------------------------------------------------ 
    
public function load_driver() {

        
define("DBprefix"$this->db_prefix);
        
$session_id $this->options['id'];
        
$custom_mesg $this->options['custom_mesg'];
        
$first $this->options['first'];

// 1. Connect The DB
//      DONE
// 2. Basic Build the blocks        
        
$this->createFreiChatXsession();
// 3. Get Required Data from client DB
        
$this->getDBdata($session_id$first);
// 4. Insert user data in FreiChatX Table Or Recreate Him if necessary
        
$this->createFreiChatXdb();
// 5. Update user data in FreiChatX Table
        
$this->updateFreiChatXdb($first$custom_mesg);
// 6. Delete user data in FreiChatX Table
        
$this->deleteFreiChatXdb();
// 7. Get Appropriate UserData from FreiChatX Table
        
if ($this->usr_list_wanted == true) {
            
$result $this->getList();
            return 
$result;
        }
// 8. Send The final Data back
        
return true;
    }

               

 
 
 i  have  no  idea  where  to  start  and  would  love  some  help.  
 
 Please  and  thank  you
 
 DPrince
Back to top
View user's profile Send private message
Dprince




Joined: Jun 17, 2009
Posts: 22

Reputation: 1.8


Status: Offline
PostPosted: Thu Oct 13, 2011 8:20 am Post subject: No icon Re: freichat Reply with quote

 so  can  anyone  help  me?
Back to top
View user's profile Send private message
SnakZ
Xtreme Contributor
Xtreme Contributor



Gender: Gender:Male
Joined: Jul 14, 2010
Age: 31
Posts: 735
Location: MD
Reputation: 70.9
votes: 4
usa.png


Status: Offline
Web Control Panel: xampp 1.7.4
PostPosted: Thu Oct 13, 2011 1:03 pm Post subject: No icon Re: freichat Reply with quote

 im  at  a  lost  as  to  what  is  going  on  Very Happy  
 i  dont  see  anything  that  is  trying  to  link  up  with  the  database
 and  evo  xtreme  use  $db  to  link  up  with  the  database  but  it  look  like  that  program  is  already  using  $db  for  some  other  thing
 
 
 http://code.google.com/p/frei-chat/
 
 is  that  the  program  ur  trying  to  use  ?
 
 have  u  asked  the  maker  yet  or  if  they  have  a  forum  ?
 they  would  know  better  then  any  of  us  on  how  to  link  up
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger Visit member's Facebook: 720050661 MySpace Profile: zzsnakzz
Sponsor
webstorm.jpg
Dprince




Joined: Jun 17, 2009
Posts: 22

Reputation: 1.8


Status: Offline
PostPosted: Fri Oct 14, 2011 12:07 pm Post subject: No icon Re: freichat Reply with quote

 yeah  they  have  a  forum  and  i  have  asked.  they  said  i  was  on  my  own.  so  i  came  here  to  ask  you  guys..
Back to top
View user's profile Send private message
SnakZ
Xtreme Contributor
Xtreme Contributor



Gender: Gender:Male
Joined: Jul 14, 2010
Age: 31
Posts: 735
Location: MD
Reputation: 70.9
votes: 4
usa.png


Status: Offline
Web Control Panel: xampp 1.7.4
PostPosted: Sat Oct 15, 2011 3:36 am Post subject: No icon Re: freichat Reply with quote

 open  the  arg.php  file  and  look  all  the  way  down  that  where  ur  login  info  for  SQL  will  be  at  make  sure  that  it  is  right  
 
 and  is  there  any  error  coming  up  what  is  not  working  i  need  something  to  go  on  lol
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger Visit member's Facebook: 720050661 MySpace Profile: zzsnakzz
washbucket




Joined: Jun 01, 2010
Age: 62
Posts: 13

Reputation: 1.6
usa.png


Status: Offline
PostPosted: Sat Oct 15, 2011 10:42 am Post subject: No icon Re: freichat Reply with quote

 I  hope  I  am  not  speaking  out  of  turn  of  intruding  on  you  guys,  but  if  you  want  a  chat  program  just  go  Flash  Chat  I  added  it  into  my  website  and  a  video  chat,  and  also  a  photo  gallery,  this  php  nuke  extreme  program  is  the  best  on  the  internet.  other  people  could  take  lessons  from  you  guys  on  making  a  great  program,  any  way  you  cannot  access  my  website  because  it  private  for  family  and  friends  only  but  I  believe  the  chat  links  show  up  on  the  front  page  here  it  is  the  link.  oh  by  the  way  thanks  for  the  template  great  price.  Social-Chat
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Sponsor
webstorm.jpg
washbucket




Joined: Jun 01, 2010
Age: 62
Posts: 13

Reputation: 1.6
usa.png


Status: Offline
PostPosted: Sat Oct 15, 2011 10:55 am Post subject: No icon Re: freichat Reply with quote

 Capping  on  this  subject  I  did  download  a  flash  chat  viewing  block  that  lets  you  see  who  is  online  and  in  what  rooms  as  a  addon,  but  I  get  a  error  in  it,  is  their  anyway  that  I  could  up  load  the  zip  file  to  any  one  to  take  a  look  at  it.  thanks
Back to top
View user's profile Send private message Send e-mail Visit poster's website
SnakZ
Xtreme Contributor
Xtreme Contributor



Gender: Gender:Male
Joined: Jul 14, 2010
Age: 31
Posts: 735
Location: MD
Reputation: 70.9
votes: 4
usa.png


Status: Offline
Web Control Panel: xampp 1.7.4
PostPosted: Sat Oct 15, 2011 1:25 pm Post subject: No icon Re: freichat Reply with quote

 on  my  webpage  i  use  meebo  it  put  a  chat  thing  at  the  bottom  of  your  page  (like  facebook/myspace)
 it  only  let  u  login  to  other  chat  programs  but  still  nice  lol
 
 what  is  not  hard  to  set  up  but  i  dont  know  if  that  something  u  would  want
 
 
 
                                                 
washbucket  wrote  (View  Post):                
Capping  on  this  subject  I  did  download  a  flash  chat  viewing  block  that  lets  you  see  who  is  online  and  in  what  rooms  as  a  addon,  but  I  get  a  error  in  it,  is  their  anyway  that  I  could  up  load  the  zip  file  to  any  one  to  take  a  look  at  it.  thanks                

 
 you  would  need  to  do  that  in  ur  own  post  to  get  any  help  on  that  
 when  doing  so  post  the  full  zip  of  the  block  where  u  got  it  from  and  the  error  your  getting
 and  a  website  address  so  one  can  look  at  the  block  it  self  would  help  to
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger Visit member's Facebook: 720050661 MySpace Profile: zzsnakzz
washbucket




Joined: Jun 01, 2010
Age: 62
Posts: 13

Reputation: 1.6
usa.png


Status: Offline
PostPosted: Sat Oct 15, 2011 1:59 pm Post subject: No icon Re: Flash Chat Reply with quote

 here  is  the  Flash  chat  view  from  where  I  got  it  on  the  bottom  right  hand  side,  the  error  that  I  am  getting  is  when  I  activate  the  block  half  my  web  page  blowes  out  of  view,  I  even  changed  the  size  of  the  block  in  the  settings,  and  I  set  up  everything  as  the  direction  required  me  to  do,  and  my  flash  chat  is  a  stand  alone.  thanks
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Sponsor
phpstorm.jpg
Display posts from previous:
Post new topic  Reply to topic   printer-friendly view   Thank Post Evolution-Xtreme Forum Index ->  Support All times are UTC - 5 Hours
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts Upgrade from basic 2 jtellup 577 Thu Feb 18, 2016 8:50 am
jtellup View latest post
No new posts Intermitent trouble with Evo Basic Newsletter 4 Daveran27703 2657 Tue Feb 12, 2013 9:54 am
Daveran27703 View latest post
No new posts Upgrade from Evo Basic to Extreme - advice please. 11 DiscPete 5138 Mon Oct 01, 2012 11:13 am
DiscPete View latest post
No new posts Basic Block Help 2 Malius 1412 Fri Mar 16, 2012 3:35 pm
Malius View latest post
No new posts nuke evo basic to nuke evo xtreme 2.0.9 problem 1 Teo 2522 Fri Dec 02, 2011 5:37 am
Teo View latest post
 




Powered by phpBB © 2001, 2006 phpBB Group
EvoXtreme Theme by SgtLegend ©
Forums ©