1
acris
increase backup Khat
  • 2006/3/16 13:12

  • acris

  • Just popping in

  • Posts: 20

  • Since: 2005/10/31


Hi!
I use the module Khat for educational proposals and I need to have a record of the conversations, about 30 elevens talking during two hours.
The preferences of the module are now:
Rafraichissement du chat (en secondes): 5
Recording method: database
PopUp: windows width 400
PopUp: window height 550
(resizeble)
PopUp: Input size 50
PopUp: Length of the chat 2500 (but it doesnt work)

However, the database does not record but the last 107 inputs. I obteined the database backup usind the module Database Tools 1.1. My XOOPS is 2.2.3Final and khat is 1.5.

I need to increase the number of inputs recorded in the database. How can I do that?
Thank you very much.
Acris



2
acris
Re: cant write two constants
  • 2005/12/9 20:41

  • acris

  • Just popping in

  • Posts: 20

  • Since: 2005/10/31


Well, because I made another installation of the same version of Xoops, with the same files, few days ago, I concluded the reason could not be a wrong definition inside the file.
You said the reason would be inside the file, then I found out that the problem was not the XOOPS core, but a corrupted file. In other words, it could be produced during the upload process.
Then, I deleted everything and made the upload again and... the site is working.
I must thank you, I would not think about this possibility without your comments.
Acris



3
acris
Re: cant write two constants
  • 2005/12/9 14:06

  • acris

  • Just popping in

  • Posts: 20

  • Since: 2005/10/31


On the page "Saving configuration data.." just two messages of error (the others are ok):

Quote:
Failed writing constant XOOPS_DB_PCONNECT to 0.
and
Failed writing constant XOOPS_CHECK_PATH to 1.


It completes the page with this note:
Quote:
Configuration data has been saved successfully to mainfile.php.


Thanks,
Acris



4
acris
Re: cant write two constants
  • 2005/12/9 12:06

  • acris

  • Just popping in

  • Posts: 20

  • Since: 2005/10/31


Oh, I'm sorry, I think I was not clear enough.
The version I am trying to install is brand new, entirely fresh. I create a new subdomain in my site and put there the original files.
Every time I got the problem and I tried again, I first overwrite the mainfile.php with the original file.
The site is new, I have no data yet.
I hope someaone can help me.
Thanks
Acris



5
acris
can't write two constants
  • 2005/12/8 22:09

  • acris

  • Just popping in

  • Posts: 20

  • Since: 2005/10/31


Please, I'm installing the same version of XOOPS (2.2.3a) that I installed few days ago. At that time, it worked fine, but today when the XOOPS install is wrinting the constants in the mainfile.php, two constants cannot be written:

XOOPS_DB_PCONNECT
and
XOOPS_CHECK_PATH

The installation program can be finnished, but, of course, the site doesn't work.
If anyone has any suggestion, it will be welcome.
Thank you,
Acris



6
acris
Re: hack for creating a list of users
  • 2005/11/11 9:06

  • acris

  • Just popping in

  • Posts: 20

  • Since: 2005/10/31


Yes, my friend, you are right.
I found this in the php.net website, in the manual.
I created a protocol for creatind passwords for my site not so obvious as the number of the users and I'll use the MD5 to convert that into cryptographed codes.
Very good.
Thank you.
Acris



7
acris
Re: hack for creating a list of users
  • 2005/11/10 0:00

  • acris

  • Just popping in

  • Posts: 20

  • Since: 2005/10/31


Thanks, guys, both of your answers was very helpful.
I adapted the Christian’s script and made the hack above.
There was just one problem that I could not solve: the automatic creation of different passwords. I was trying to make them using a variable concatenation of one fixed word and the number of the user. But, because XOOPS password is crypto graphed (as you said, davidthomas1), the password created did not work. I used, then, a fixed password for making the lista, with the word “teste” that will be the same for every user, just copying its code from the MySQL table, as it appears in the script (again, as you said, davidthomas1).
If someone know a more elegant way of doing that, I will appreciate your collaboration.
Thanks again,
Acris

Quote:

<?php
error_reporting(E_ALL);
// creating a list of anonimous users; author Ana Matte (acrishttp://www.xoops.net.br)
// adapted from christian@frxoops.org -http://www.frxoops.org:
// for XOOPS 2.0.x
// I recieved some help from friends of the www.xoops.net.br: Desus, Diego and Hostmarx. Thanks!

$bdd= "testephp";
$host= "localhost";
$user= "ana";
$psw= "";

mysql_connect($host, $user, $psw) or die("Unable to connect Database");
mysql_select_db($bdd);

// Add user in xoops_users table
$n = 1;
for ($n = 35; $n < 36; $n++){
$uname = "{$n}";
$pass = "698dc19d489c4e4db73e28a713eab07b";
$email = "{$uname}\@semiofon.org";
$query = "insert into teste_users (uname, name, email, pass) VALUES ('$uname', '$uname', '$email','$pass')";
$result= mysql_query($query);
$uid = mysql_insert_id();

//Add user in group : experimento
$numgroup ='5';
$query = "INSERT INTO teste_groups_users_link (groupid, uid) VALUES('$numgroup', '$uid')";
$result= mysql_query($query);
}

if (mysql_error()){
echo "Error in database : ".mysql_error();
echo "<br>users' creation interrupted.";
exit();
}else{
echo "Record ".$uid." - ".$uname." added<br> ";
}

echo "<br>Creation of users finished successfully."
?>



8
acris
hack for creating a list of users
  • 2005/11/9 12:07

  • acris

  • Just popping in

  • Posts: 20

  • Since: 2005/10/31


It seams strange, but I need to create a list of users for an special group. The users must be anonimous because they will participate in one scientific experiment.
We will distribute logins and passwords to previously instructed informants.
Then, I need to create a list of hundreds of users, calleds "n" (from 1 to x), with non real e-mails (n@mysite.org).
In the admin area of XOOPS I must to create that one by one. I think it could be done using a hack, but I didn't find the solution yet.
I'll keep trying, but I would apreciate if someone could help me with this hack. I'm not a programer, but I have a little knowledge about programing.
Thanks
Acris



9
acris
Re: counting online users
  • 2005/11/9 11:53

  • acris

  • Just popping in

  • Posts: 20

  • Since: 2005/10/31


I think i must share this answer from SourceForge.net with you. I am changing my host and can't do any changes right now, but it can be usefull for someaone else.
Acris
Quote:

Please - a bit of patience. This issue is important to you,
we understand that, but please give us a bit more than a
weekend to respond.

The online handler has a garbage collection routine so that
it doesn't check and discard timed-out online users on
every
request. Therefore it can be somewhat unprecise.

You can remedy some of that by removing the garbage
collection randomiser so it will always run.
This is done by editing
modules/system/blocks/system_blocks.php, the
b_system_online_show() function

Find these lines:
mt_srand((double)microtime()*1000000);
// set gc probabillity to 10% for now..
if (mt_rand(1, 100) < 11) {
$online_handler->gc(300);
}

and replace them with just
$online_handler->gc(300);

But I wouldn't recommend making business solutions based
on
the Who's Online block. Instead, I would suggest using a
stats tracking tool like PHP-Stats, AWStats or Webalizer,
when it is so crucial to your business.



10
acris
Re: counting online users
  • 2005/11/6 5:10

  • acris

  • Just popping in

  • Posts: 20

  • Since: 2005/10/31


Another oops: I was always trying to define if the problem occures too with another users than the webmaster. At this night I'v got the proof: yes, any user can appear twice in the list of the onlile users... it complicates the problem. Perhaps something about caches or coockies...
But, then, why it does not happens always?
Ok, I'll go back to the sf.net bug tracker right now.
Thanks
Acris




TopTop
(1) 2 »



Login

Who's Online

224 user(s) are online (145 user(s) are browsing Support Forums)


Members: 0


Guests: 224


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits