Author Topic: Anzeige bei / Illustration if User (No-User)  (Read 8849 times)

0 Members and 1 Guest are viewing this topic.

Offline Michinator

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
Anzeige bei / Illustration if User (No-User)
« 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.
Never be afraid to try something new. Remember that amateurs built the Ark. Professionals built the Titanic.

Offline Michinator

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
Re: Anzeige bei / Illustration if User (No-User)
« Reply #1 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.
Never be afraid to try something new. Remember that amateurs built the Ark. Professionals built the Titanic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Anzeige bei / Illustration if User (No-User)
« Reply #2 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;
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Michinator

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
Re: Anzeige bei / Illustration if User (No-User)
« Reply #3 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 ":" ... :|
Never be afraid to try something new. Remember that amateurs built the Ark. Professionals built the Titanic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Anzeige bei / Illustration if User (No-User)
« Reply #4 on: April 09, 2005, 01:39:15 AM »
this is wierd....
maybe try:
Code: [Select]
    "user_online_end" => (empty($user_online_list)) ? "." : ":",?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Michinator

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
Re: Anzeige bei / Illustration if User (No-User)
« Reply #5 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.
Never be afraid to try something new. Remember that amateurs built the Ark. Professionals built the Titanic.

Offline vanish

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
    • White Album
Re: Anzeige bei / Illustration if User (No-User)
« Reply #6 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']),

Offline Michinator

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
Re: Anzeige bei / Illustration if User (No-User)
« Reply #7 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.
Never be afraid to try something new. Remember that amateurs built the Ark. Professionals built the Titanic.

Offline vanish

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
    • White Album
Re: Anzeige bei / Illustration if User (No-User)
« Reply #8 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.

Offline Michinator

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
Re: Anzeige bei / Illustration if User (No-User)
« Reply #9 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.
Never be afraid to try something new. Remember that amateurs built the Ark. Professionals built the Titanic.

Offline vanish

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
    • White Album
Re: Anzeige bei / Illustration if User (No-User)
« Reply #10 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.