SimplePortal

Customization => Custom Coding => Topic started by: Manu on April 05, 2009, 10:09:54 AM

Title: Who is online block
Post by: Manu on April 05, 2009, 10:09:54 AM
Hi,

in the new version of the portal is the mod "Online Today" mod, thanks for it, but....

In the forum itself, the name of the "today online users" are only visible for logged in members, guest can see only how many were online today. Is it possible to make it in this way in the portal too?

Guest should see only, how many members were logged in during a day and members can see the names of the members?
Title: Re: Who is online block
Post by: Manu on May 09, 2009, 06:45:17 PM
Any idea how to solve the problem?

For the moment I have taken off the code for the "Users Online Today" but it would be nice when I can add it as I wrote in my request.  :-[
Title: Re: Who is online block
Post by: [SiNaN] on May 10, 2009, 06:17:15 AM
Does this work for you?

SPortal1-1.php

Code: (Find) [Select]
if (!empty($txt['uot_users_online_today']))
Code: (Replace) [Select]
if (!empty($txt['uot_users_online_today']) && !$context['user']['is_guest'])
Title: Re: Who is online block
Post by: Manu on May 10, 2009, 08:01:25 AM
Does this work for you?

SPortal1-1.php

Code: (Find) [Select]
if (!empty($txt['uot_users_online_today']))
Code: (Replace) [Select]
if (!empty($txt['uot_users_online_today']) && !$context['user']['is_guest'])

Thx Sinan, but this code hides complete the UOT for guests in the Portal.

My idea is not to hide the UOT for guests, my idea is to hide the member names of the UOT for guests.
Take a look here: http://forum.arseniums.com/index.php?action=forum
You can see as guest:
Users Logged In Today
Total: Number of members which were logged in during the day

Are you logged in to the forum you can see:
Users Logged In Today
Total: All member names which were logged in during the day.

Is there a way to show it in the portal as it is in the forum itself for guests?

/me doesn't know how to explain it better  :-[

SimplePortal 2.3.8 © 2008-2024, SimplePortal