4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: Michinator on April 02, 2005, 11:47:59 AM

Title: Anzeige bei / Illustration if User (No-User)
Post 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.
Title: Re: Anzeige bei / Illustration if User (No-User)
Post by: Michinator on April 05, 2005, 10:29:38 PM
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.
Title: Re: Anzeige bei / Illustration if User (No-User)
Post by: V@no on April 06, 2005, 01:01:53 AM
I didnt understand your question first time I read it..but now I think I got it ;)

Try this:
in includes/sessions.php find:
Code: [Select]
    "user_online_list" => $user_online_listInsert above:
Code: [Select]
    "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;
Title: Re: Anzeige bei / Illustration if User (No-User)
Post by: Michinator on April 09, 2005, 01:29:54 AM
I didnt understand your question first time I read it..but now I think I got it ;)

Try this:
in includes/sessions.php find:
Code: [Select]
    "user_online_list" => $user_online_listInsert above:
Code: [Select]
    "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 ":" ... :|
Title: Re: Anzeige bei / Illustration if User (No-User)
Post by: V@no on April 09, 2005, 01:39:15 AM
this is wierd....
maybe try:
Code: [Select]
    "user_online_end" => (empty($user_online_list)) ? "." : ":",?
Title: Re: Anzeige bei / Illustration if User (No-User)
Post by: Michinator on April 09, 2005, 08:22:14 AM
this is wierd....
maybe try:
Code: [Select]
    "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.
Title: Re: Anzeige bei / Illustration if User (No-User)
Post by: vanish on April 10, 2005, 12:42:45 PM
1. instead
Code: [Select]
"user_online_end" => ($user_online_list) ? ":" : ".",
find
Code: [Select]
  $site_template->register_vars(array(
    "num_total_online" => $num_total_online,

and insert above
Code: [Select]
$user_online_end = ($user_online_list) ? ":" : ".";
2. find
Code: [Select]
    "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
Code: [Select]
    "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']),
Title: Re: Anzeige bei / Illustration if User (No-User)
Post by: Michinator on April 10, 2005, 02:06:33 PM
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.
Title: Re: Anzeige bei / Illustration if User (No-User)
Post by: vanish on April 10, 2005, 07:51:08 PM
but NOW there is a ":" too much

What does it mean - "Too much"?

1. in main.php:
Code: [Select]
$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.
Title: Re: Anzeige bei / Illustration if User (No-User)
Post by: Michinator on April 10, 2005, 08:37:18 PM
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.
Title: Re: Anzeige bei / Illustration if User (No-User)
Post by: vanish on April 10, 2005, 10:44:04 PM
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.