Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Support / AdsManager Support / who is online field?

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

who is online field?

More
11 years 3 months ago #3139 by global
who is online field? was created by global
good morning to everyone,
it possible display a icon that shows if user is online in details and list view?

thanks in advance for your suggestions

fabio
The following user(s) said Thank You: adarr
More
11 years 3 months ago #3141 by tompap
Replied by tompap on topic who is online field?
Did you try something like:

<?php
$user = JFactory::getUser($this->content->id);
$status = $user->guest;
if (!$status) {
echo "Online";
}
?>

if views/details/tmpl/default.php
The following user(s) said Thank You: global, adarr
More
11 years 3 months ago #3257 by global
Replied by global on topic who is online field?
hello ... sorry I missed: D

thanks for your help .. It works! but also an error message JUser :: _load: it was not possible to load user with ID: 91

excuse my english ..
The following user(s) said Thank You: adarr
More
11 years 3 months ago #3258 by global
Replied by global on topic [SOLVED]who is online field?
I solved it in the following way ...
<? php
$ user = JFactory :: getUser ($ this-> content-> userid);
$ status = $ user-> registered;
if (! $ status) {
echo "Online";
}
?>

I hope it is correct

Thank you for your help and attention ...
The following user(s) said Thank You: adarr
Time to create page: 0.115 seconds
Powered by Kunena Forum