4images Forum & Community
International => Français => Topic started by: _AsX_ on February 12, 2008, 01:38:08 PM
-
Bonjour a tous .
Je viens de tomber sur ce petit forum sur 4images ce qui est excelent :mrgreen: car je ne trouve pas réponse a mon problem .. .
J'espere que vous allez pouvoir m'aider .
Voila ma demande : J'aimerai avoir en bas de l'acceuil en stat comme il y as deja mais plus complet :)
exemple :
- Utilisateurs connectés: 1
- Il y a actuellement 1 membre(s) enregistré(s) . (1 utilisateurs invisibles) et 0 invité(s) connecté(s).
speudo 1 , speudo 2 ect ....
- Nous avons xxxx membres enregistrés
- L’utilisateur enregistré le plus récent est xxxxxx
- Le record du nombre d’utilisateurs en ligne est de 8 le Mer 28 Nov 2007 - 19:15
- Membres connectés au cours des 24 dernières heures : xxx xxx xxx
Voila j'espere que c'ets pas trop compliqué mais ca serait exelent !
Merci bien & en attante de votre réponse Thx .
-
up'sS :D
-
:cry: Vincent help :!:
-
This:
http://www.4homepages.de/forum/index.php?topic=12008.0
http://www.4homepages.de/forum/index.php?topic=14306.msg110852#msg110852
-
Bonjour
Merci pour cette réponse ! mais je ne pense pas que ca soit ca ,
je met une image de la ou je voudrai que les statistiques apparaissent :
(http://img258.imageshack.us/img258/2959/fondis9.gif) (http://imageshack.us)
- Utilisateurs connectés: 1
- Il y a actuellement 1 membre(s) enregistré(s) . (1 utilisateurs invisibles) et 0 invité(s) connecté(s).
speudo 1 , speudo 2 ect ....
- Nous avons xxxx membres enregistrés
- L’utilisateur enregistré le plus récent est xxxxxx
- Le record du nombre d’utilisateurs en ligne est de 8 le Mer 28 Nov 2007 - 19:15
- Membres connectés au cours des 24 dernières heures : xxx xxx xxx
Voila en gros ce que me faudrait .
Merci de Votre réponse :)
-
If install this:
http://www.4homepages.de/forum/index.php?topic=18629.0
is possible for edit template easy with request. ;)
Again -
L’utilisateur enregistré le plus récent est xxxxxx
Last register user in gallery ? Is this:
http://www.4homepages.de/forum/index.php?topic=14306.msg110852#msg110852
and ...
Le record du nombre d’utilisateurs en ligne est de 8 le Mer 28 Nov 2007 - 19:15
Most ever users online ?
http://www.4homepages.de/forum/index.php?topic=7290.0
-
good morning
thank you for your answer
excuse me, but ja i put well the first code, but nothing apparet stats dasn down, I am little and a lot NOob's :D
to give me just code could you and step has follow to have numbers of members it recorded on the site so that ca appears at the bottom of the site because I galére a lot.
I made well what are pointed out on the 1st answer: http://www.4homepages.de/forum/index.php?topic=18629.0
but nothing apparet at the bottom of the site
just code of the members recorded on the site my it will be enough is possible? thanks a lot of your time.
-
The sessions whos online MOD parse is work purfect for me ... 4images version ?
-
my version is 1.7.4
look I have reussi has put
(http://img257.imageshack.us/img257/7770/testly1.gif) (http://imageshack.us)
Most users ever online was:
Total: 2 on 19.02.2008, 13:53 ==> ok
Members: 1 on 19.02.2008, 13:34 ==> ok
Guests: 1 on 19.02.2008, 13:53 ==> ok
number of member inscribes ==> ???
thank you
-
LOL 'reussi'. Very good. ;)
Now, in includes/functions.php file,
add in top ?>:
if (!function_exists('get_all_last_registered_users')) {
function get_all_last_registered_users() {
global $site_db;
$last_registered_days = time() - 60 * 60 * 24 * 1;
$sql = "
SELECT COUNT(user_id) AS total_last_registered_users
FROM " . USERS_TABLE . "
WHERE " . get_user_table_field("", "user_level") . " >= '" . USER . "' AND " . get_user_table_field("", "user_joindate") . " >= '" . $last_registered_days . "'
ORDER BY " . get_user_table_field("", "user_joindate") . " DESC
";
$row = $site_db->query_firstrow($sql);
if (isset($row['total_last_registered_users']) && !empty($row['total_last_registered_users'])) {
return $row['total_last_registered_users'];
} else {
return 0;
}
}
}
In includes/sessions.php (after most ever user online last line),
Add new line - use this:
$lang['show_last_registered_users_content']
and output where you want in sessions box.
In lang/english/main.php file,
add:
$lang['show_last_registered_users_content'] = "Number of member inscribes: <b>" . get_all_last_registered_users() . "</b>";
Finish.
- Membres connectés au cours des 24 dernières heures : xxx xxx xxx
Yes, is 24 hours last.
-
I fix step 1 for return 0 if no new register user that day. ;)
-
arf !!
Fatal error: Call to undefined function: get_user_table_field() in /mnt/140/sda/4/e/hameau.prod.sources/includes/functions.php on line 1730
1730 ===> WHERE " . get_user_table_field("", "user_level") . " >= '" . USER . "' AND " . get_user_table_field("", "user_joindate") . " >= '" . $last_registered_days . "'
-
Ok ... I try patch.
In includes/sessions.php file,
find:
$lang['show_last_registered_users_content']
replace:
preg_replace("/" . $site_template->start . "value" . $site_template->end . "/siU", get_all_last_registered_users(), $lang['show_last_registered_users_content'])
with variable you use.
In main.php file,
replace:
$lang['show_last_registered_users_content'] = "Number of member inscribes: <b>" . get_all_last_registered_users() . "</b>";
for:
$lang['show_last_registered_users_content'] = "Number of member inscribes: <b>{value}</b>";
-
code works apparament but nothing is displayed on the site: numbers of members registered student
download my files => http://www.files-save.com/download-4c793be6b369ba25471bab185f05c7c5.html
Enter club foot anti of code to download the file at the bottom of the site and download my zip
Thank you :)
-
You no add variable in register vars ... you add code but empty string ...
In sessions.php file,
replace:
preg_replace("/" . $site_template->start . "value" . $site_template->end . "/siU", get_all_last_registered_users(), $lang['show_last_registered_users_content'])
with:
"last_24_hour_connect" => preg_replace("/" . $site_template->start . "value" . $site_template->end . "/siU", get_all_last_registered_users(), $lang['show_last_registered_users_content'])
In home.html file, use: {last_24_hour_connect} ...
-
(http://img101.imageshack.us/img101/1531/testzz3.gif) (http://imageshack.us)
You are a champion :wink:, bravo :wink:, thanks a lot. just a derniere thing or I can change the text in french of :
Most users ever online was: ==> Statistique des membres
Total: 2 on 19.02.2008, 13:53
Members: 2 on 19.02.2008, 17:08 ==> membres
Guests: 2 on 20.02.2008, 14:23 == > Invités
Number of member inscribes: 3 == > Nombre de membres inscrits <== and for it numbers of the members red colour
thank you I embete you more :D
-
In lang/french/main.php file,
add in top ?>:
$lang['show_last_registered_users_content'] = "Nombre de membres inscrits: <b>{value}</b>";
-
Statistiques des Membres sur Hameau Prod Sources:
Total: 2 on 19.02.2008, 13:53
Membres: 2 on 19.02.2008, 17:08
Invités: 2 on 20.02.2008, 14:23
Nombre de Membres Inscrits: 3
good !!!! thank you !!! :D
-
hello !!!
yew tree in made ca montre the members link for 24 .00 h and not every the time, few you one to rectify this???
-
If no show - is because you get visit after that 24 hour of time. ;)
-
ahh ok !!
in made it etait constant complete number of members without 24 hours which I wanted :lol:
-
hello :)
possibility of having code to have numbers of members it complete permanent registered student on the site ???
Tanks you ! :)
-
I no get question sorry ...
-
hello !!
ah veils there made have the number of members inscribed on the site (the total) and not for 24 hours.
Statistiques des Membres
Total: 4 on 25.02.2008, 15:06
Membres: 4 on 25.02.2008, 15:07
Invités: 3 on 22.02.2008, 14:07
Nombre de Membres Inscrits: 0 <==== permanant . not 24 hours
Nombre de Membres Inscrits: 128 <=== exemple
Thx :)
-
// Step 1
In includes/functions.php file,
add in top ?>:
if (!function_exists('get_total_registered_users')) {
function get_total_registered_users() {
global $site_db;
$sql = "
SELECT COUNT(user_id) AS total_users
FROM " . USERS_TABLE . "
WHERE " . get_user_table_field("", "user_level") . " >= '" . USER . "'
";
$row = $site_db->query_firstrow($sql);
$total_users = (isset($row['total_users'])) ? $row['total_users'] : 0;
if (sizeof($total_users) > 0) {
return $total_users;
}
}
}
// Step 2
In includes/sessions.php file,
find:
"last_24_hour_connect" => preg_replace("/" . $site_template->start . "value" . $site_template->end . "/siU", get_all_last_registered_users(), $lang['show_last_registered_users_content'])
add after:
"total_registered_users_gallery" => (function_exists('get_total_registered_users')) ? preg_replace("/" . $site_template->start . "value" . $site_template->end . "/siU", get_total_registered_users(), $lang['total_registered_users_gallery']) : "";
// Step 3
In lang/french/main.php file,
add in top ?>:
$lang['total_registered_users_gallery'] = "Nombre de membres inscrits: <b>{value}</b>";
// Step 4
In whos_online_content.html file, use: {total_registered_users_gallery}
-
:(
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /mnt/140/sda/4/e/hameau.prod.sources/includes/sessions.php on line 545
My code :
$site_template->register_vars(array(
"mueo" => $most_total[0],
"mueo_date" => format_date($config['date_format'].", ".$config['time_format'], $most_total[1]),
"mueo_registered" => $most_registered[0],
"mueo_registered_date" => format_date($config['date_format'].", ".$config['time_format'], $most_registered[1]),
"mueo_guests" => $most_guests[0],
"mueo_guests_date" => format_date($config['date_format'].", ".$config['time_format'], $most_guests[1]),
"lang_mueo" => $lang['mueo'],
"lang_mueo_total" => $lang['mueo_total'],
"lang_mueo_date" => $lang['mueo_date'],
"lang_mueo_registered" => $lang['mueo_registered'],
"lang_mueo_guests" => $lang['mueo_guests'],
"last_24_hour_connect" => preg_replace("/" . $site_template->start . "value" . $site_template->end . "/siU", get_all_last_registered_users(), $lang['show_last_registered_users_content'])
"total_registered_users_gallery" => (function_exists('get_total_registered_users')) ? preg_replace("/" . $site_template->start . "value" . $site_template->end . "/siU", get_total_registered_users(), $lang['total_registered_users_gallery']) : "";
));
-
"last_24_hour_connect" => preg_replace("/" . $site_template->start . "value" . $site_template->end . "/siU", get_all_last_registered_users(), $lang['show_last_registered_users_content'])
"total_registered_users_gallery" => (function_exists('get_total_registered_users')) ? preg_replace("/" . $site_template->start . "value" . $site_template->end . "/siU", get_total_registered_users(), $lang['total_registered_users_gallery']) : "";
for:
"last_24_hour_connect" => preg_replace("/" . $site_template->start . "value" . $site_template->end . "/siU", get_all_last_registered_users(), $lang['show_last_registered_users_content']),
"total_registered_users_gallery" => (function_exists('get_total_registered_users')) ? preg_replace("/" . $site_template->start . "value" . $site_template->end . "/siU", get_total_registered_users(), $lang['total_registered_users_gallery']) : ""
-
okk good thx !!!
but ca does not see itself on the site
Utilisateurs connectés: 1
Il y a actuellement 1 membre(s) enregistré(s) . (0 utilisateurs invisibles) et 0 invité(s) connecté(s).
_AsX_
Statistiques des Membres sur Hameau Prod Sources:
Total: 4 on 25.02.2008, 15:06
Membres: 4 on 25.02.2008, 15:07
Invités: 3 on 22.02.2008, 14:07
Nombre de nouveau Inscrits 24H: 0
?????????????????????????????? <<<<<== ?????
-
up'sS :D
-
thunderstrike help :D
-
good morning
having grieved to have upset you but me have find the problem
thank you still for your help
merci beaucoup :)
problem résolu !!