4images Forum & Community
4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: Michinator on April 02, 2005, 11:47:59 AM
-
hallo,
auf der startseite möchte ich unten im ONLINESTATUS nach dem satz ...
"Zur Zeit sind 1 Besucher und 0 registrierte(r) User online"
... ein "." anzeigen lassen, wenn kein registrierter user eingeloogt ist, und ein ":" wenn registrierte user eingeloggt sind.
welche änderungen muss ich da vornehmen? (in der whos_online.html?)
-----------------
on my start page after this phrase ...
"At the moment there are 1 visitors and 0 reg users online"
... i want a "." to show if no registered user is online, and ":" if registered users are online.
how can i do this? (modify whos_online.html?)
greetings & grüße,
michinator.
-
huhu, someone there? is there someone who can help me? :|
i think that the solution of this problem could be easy.
greetings from germany,
michinator.
-
I didnt understand your question first time I read it..but now I think I got it ;)
Try this:
in includes/sessions.php find: "user_online_list" => $user_online_list
Insert above: "user_online_end" => ($user_online_list) ? ":" : ".",
Then replace "." from the text of $lang['user_online_detail'] variable in lang/<yourlanguage>/main.php file with {user_online_end} tag;
-
I didnt understand your question first time I read it..but now I think I got it ;)
Try this:
in includes/sessions.php find: "user_online_list" => $user_online_list
Insert above: "user_online_end" => ($user_online_list) ? ":" : ".",
Then replace "." from the text of $lang['user_online_detail'] variable in lang/<yourlanguage>/main.php file with {user_online_end} tag;
thank you very much, but unfortunetaly it doesn't fit. you always see ":" ... :|
-
this is wierd....
maybe try: "user_online_end" => (empty($user_online_list)) ? "." : ":",
?
-
this is wierd....
maybe try: "user_online_end" => (empty($user_online_list)) ? "." : ":",
?
thanks again, but it also doesn't fit.
all i want to have is, that a "." appears if no registered user is online, or a ":" appears if a registered user is online on my page.
greetings from germany,
michinator.
-
1. instead
"user_online_end" => ($user_online_list) ? ":" : ".",
find
$site_template->register_vars(array(
"num_total_online" => $num_total_online,
and insert above
$user_online_end = ($user_online_list) ? ":" : ".";
2. find
"lang_user_online_detail" => str_replace(array('{num_registered_online}','{num_invisible_online}','{num_guests_online}'), array($num_registered_online,$num_invisible_online,$num_guests_online), $lang['user_online_detail']),
replace
"lang_user_online_detail" => str_replace(array('{num_registered_online}','{num_invisible_online}','{num_guests_online}','{user_online_end}'), array($num_registered_online,$num_invisible_online,$num_guests_online,$user_online_end), $lang['user_online_detail']),
-
thank you very much, but NOW there is a ":" too much. maybe you can fix it?
besides, is it right ...
1) that i must insert your tags (hints) in sessions.php?
2) that i must insert {user_online_end} after my sentence in main.php?
greetings from germany,
michinator.
-
but NOW there is a ":" too much
What does it mean - "Too much"?
1. in main.php:
$lang['user_online_detail'] = "There are currently <b>{num_registered_online}</b> registered user(s) ({num_invisible_online} among them invisible) and <b>{num_guests_online}</b> guest(s) online{user_online_end}";
2. in sessions.php as mentioned above.
-
thanx again for your help! :lol: just take a look at my page: http://rosickylover.ro.funpic.de
"Zur Zeit sind 2 Besucher und 0 registrierte(r) User online.:"
the ":" at the end of this sentence is unnecessary. how can i delete it?
greetings from germany,
michinator.
-
In your template file whos_online.html after {lang_user_online_detail} you can see ":". Remove it!
Also I highly recommend you protect directories on your web-server. I can easy browse its content and download your template files and pictures.