General discussion

Place for discussing all the general topics

51
0

The chat rooms appear to be working normally till another user logs in to the site. At that point the text box and message display gray out and you cant read messages or type in the box. when no one is on the site it goes back to normal. has this happened to anyone before and if so what is the fix? also is it possible to set the chatrooms to be open on load load, apparently people are saying its too hard to see the little chat room tab when its collapsed.

93
0

I'm trying to use a PHP script to generate another php script copying from a "stub" that has replacement tags. The problem I'm facing is opening a "stub" php script and reading it line by line. I've tried multiple functions: file_get_contents(), print_r(file($file)), where $file = fopen(filename). fgets, etc. echo file_get_contents() spits out the file only starting at a certain point, so I have wondered if it is trying to run the php that is in there. The odd thing, is that if I create a new file with exactly the same content, it won't display anything!
Currently I have:
Code:
<?php
if( file_exists("Stubs/test.txt"smile){
echo "This works!";
echo file_get_contents('Stubs/test.txt'smile;
}
else{
echo "This doesn't work!";
}
?>

and the txt file:
Code:
<?php

require_once('util/import/ListHubImport.php'smile;

class CBGoldKeyRealtyIncUTImport extends ListHubImport
{

public function __construct($date = null, $printMessages = true)
{
    parent::__construct(CO_ImportScript::CBGOLDKEYREALTYINCUT, $printMessages, null, 'Coldwell Banker Gold Key Reality Inc.');

    // CONNECTION INFO
    $dataConn = new DataConnection();
    $dataConn->setConnectionType(DataConnection::HTTP);
    $dataConn->setValidOfficeIds(array('38575'));

    $this->connectionInfo = $dataConn;

    $this->setSaveFilename($dataConn->getSaveDataPath() . "CBGoldKeyRealtyInc-UT_::DATE::.xml");

    $this->date = $date;
    $this->setSaveRecords(true);
    $this->fields = $this->skippedListings = array();

//...

}

}

?>

This behavior is bizarre to me, and I'm running out of debugging options with php. Any help would be appreciated! Thanks. -Luc

PS. It shows everything from the line: $dataConn = new DataConnection(); to the end of the file.

Edit: Removed links because the discussion is off-topic

125
1

Hi, I'm still new to php and wondered if I can get some help with a free php script. (inserted below)
I am trying to get number of ocurrences from a given string and by date, but I'm stuck and not sure how to finish it. Thanks

<?php
//
// CONNECT TO THE DATABASE SERVER (use your credentials)
//

$db = new mysqli(localhost,root,password,my_db);

//
// GET THE VALUE TO SEARCH FROM FROM SUBMITTED FORM DATA
//
$search = isset($_GET['search']) ? $_GET['search'] : '';
//
// ADD THE WILDCARD CHARACTERS
//
$sqlSearch = '%'.$search.'%';

//
// PREPARE AND EXECUTE THE QUERY
//
$sql = "SELECT
dst, calldate
, COUNT(*) as total
FROM asterisk_cdr
WHERE tablefield LIKE '%given string%'
GROUP BY dst";

$stmt = $db->prepare($sql);
$stmt->bind_param('s', $sqlSearch);
$stmt->execute();
$res = $stmt->get_result();

//
// LOOP THROUGH THE RESULTS AND BUILD THE HTML OUTPUT
//
$output = "";
while ($row = $res->fetch_row()) {
$output .= "<tr><td>" . join('</td><td>', $row) . "</td></tr>\n";
}
?>

<!DOCTYPE HTML >

<html lang="en">
<head>
<title>Sample</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
<style type='text/css'>
table {
border-collapse: collapse;
}
th {
background-color: #369;
color: white;
}
td {
background-color: #eee;
}
</style>

</head>
<body>
<form>
Channel Number:
<input type="text" name="search" value="<?=$search?>" size="10">
<input type="submit" name="btnSubmit" value="Search">
</form>

<form>
Date format, 2014-05-19:
<input type="text" name="search" value="<?=$search?>" size="10">
<input type="submit" name="btnSubmit" value="Search">
</form>
<hr/>
<table border='1'>
<tr><th>Table Field</th><th>Total</th></tr>
<?=$output?>
</table>
<p> </p>
</body>
</html>






recent by adesh  ·  Nov 21 '14 at 8:14 am
170
3
rapt0r posted Oct 13 '14 at 7:52 pm

So ive just installed this forum on ubuntu i get this error after installing Parse error: syntax error, unexpected '[' in /var/www/forum/sys/vendor/illuminate/database/Illuminate/Database/Query/Builder.php on line 979

But i can still access the admin panel

I've installed 5.6 and still get the error i've also reinstalled the forum!!!
Server version: Apache/2.2.22 (Ubuntu)
Server built: Jul 22 2014 14:37:02

PHP 5.6.1 (cli) (built: Oct 13 2014 19:43:45)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies

recent by rapt0r  ·  Oct 14 '14 at 4:47 pm
149
5
scree posted Oct 13 '14 at 9:00 am

Hello, I am looking for new chat solution for my Joomla website.

I would like to buy and integrate your plugin. Only thing I have to figure out before is little customization. How to hide the online users list in chatbox. Of course, I can do it by CSS, but than I have no possibility to lunch new chat box with specific user. I do not want the possibility to chat with any online users from that list and I do not want to see all actual online users. I want the possibility to chat only with specific users, where I know their nicknames. I can imagine some input box, where I write the nickname or ID of user, click the button and chatbox with that user is lunched.

Can you offer me some support how to do that? If tehre´s a small posibility to customize your plugin, I will buy it.

Thank you for kind reply ...

recent by scree  ·  Oct 14 '14 at 2:02 pm
102
2
rapt0r posted Oct 12 '14 at 11:25 pm

So ive just installed this forum on ubuntu i get this error after installing Parse error: syntax error, unexpected '[' in /var/www/forum/sys/vendor/illuminate/database/Illuminate/Database/Query/Builder.php on line 979

But i can still access the admin panel

recent by rapt0r  ·  Oct 13 '14 at 7:10 pm
168
6
subtle_mistakes posted Jul 19 '14 at 7:29 pm

Love your extension, just the simple thing my site needs, so thank you for developing it.

I am trying to embed CodoPM into CRMery component page using "Component Everywhere". CodoPM works fine when used as a standalone, but when embedded the icons all turn into filter symbols. Additionally, and more importantly, all users can view all other users' messages, and all messages appear to come from one source. What I mean by that is if user "Mike" sends a message to user "Dave" and Dave responds, all messages will say they are from Mike. Would you be able to assist me in fixing this problem, or pointing me in the right direction?

Thank you very much

158
1
Etceterum posted Jun 16 '14 at 5:38 pm

We want to add chat in SugarCRM and we have somme questions.

Is freichat able to save a conversation to a SugarCRM note then linked to an object?
If not, would you do it as an extra dev and for how much?

After instaling in news version of SugarCRM 7.2 Professionnal, we have somes errors... We can see logging users on the chat...

We have errors in apache errors logs...

[Mon Jun 16 18:21:41 2014] [error] [client ::1] PHP Notice: Undefined index: 539ec07d9a175is_guest in /var/www/html/crm/freichat/server/drivers/base.php on line 106, referer: http://localhost/crm/
[Mon Jun 16 18:21:41 2014] [error] [client ::1] PHP Notice: Undefined index: 539ec07d9a175usr_ses_id in /var/www/html/crm/freichat/server/drivers/base.php on line 142, referer: http://localhost/crm/
[Mon Jun 16 18:21:41 2014] [error] [client ::1] PHP Fatal error: Call to a member function fetchAll() on a non-object in /var/www/html/crm/freichat/server/drivers/base.php on line 147, referer: http://localhost/crm/

Thanks

recent by admin  ·  Jun 18 '14 at 6:55 pm
75
3
swapasap posted May 27 '14 at 11:32 am

Hey so Basically when i'm online, i can see the others people online like this:
53846950c6d84.jpg

I would like to also be able to see my own informations. Because most of our users don't fill their chat user profile so they go on the chat without picture, Nickname, age ,profile link and flag ( everything is replaced by null null null null except nickname).

We are sure that if people see that their own informations are weird, they will fill their profiles !

recent by admin  ·  May 29 '14 at 5:54 pm
70
2
pctechnik.ch posted May 26 '14 at 2:41 pm

Hello

Two questions remain: If two users are on the site, free chat says 0 users online. The two users can chat, free chat says 0 User Online? This is in the small window at the bottom right. In the chat room window you can see all user.

Second question: I want to show only the small chat window at the bottom right. So not two. Can you hide the big chat window? I only have one chat room.

Thank you very much

Rene

155
9

Hello!

Hello!
I installed correctly the module for Joomla free of errors, but the FreiChat not appear on any page of the site. Only the title is displayed. All settings are defaulted (for Guest, on the everyone online users list...)

To test the left modulo only one page (Sobre nós) where you can see the title "Chat" in the position "navigation-a".

The website address to check is: http://webtv.unindocoracoes.com.br/index.php/sobre-nos



Regards
J Augusto

recent by bucknla  ·  May 21 '14 at 9:07 am
92
8
annafrancese posted Mar 11 '14 at 7:46 pm

hi, there is a way to show a CB field (like gender or country) near the username in the freichat online user list?(a tooltip on the avatar like facebook would be even better)
i know i need some php code to do that, so could u tell me what file should i study for this "hack"?

389
2.53k
18
Actions
Hide topic messages
Enable infinite scrolling
Previous
Next
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft