Simple code to display user active or inactive on osclass item page

David07

New member
XNullUser
Joined
Jun 25, 2022
Messages
27
Reaction score
0
Points
1
NullCash
0
Insert this code in your item page, on the contact form to display user active or not.

<?php if (osc_is_web_user_logged_in()==1){

echo "User Active";
}
else{
echo "User Active Recently";
}?>
 

imontpep

New member
XNullUser
Joined
Jun 2, 2022
Messages
13
Reaction score
0
Points
1
NullCash
3
thank for the contact form to display user active...
 

David07

New member
XNullUser
Joined
Jun 25, 2022
Messages
27
Reaction score
0
Points
1
NullCash
0
You are welcome. You can also nicely display date of registration. Let me know if you need this too
 

Son

Active member
XNullUser
Joined
Feb 26, 2022
Messages
157
Reaction score
31
Points
28
NullCash
4
I see it in EPILSON theme, or it's different from it
 

autopost

New member
XNullUser
Joined
Jul 3, 2022
Messages
3
Reaction score
0
Points
1
NullCash
6
How to get value osc_is_web_user_logged_in()
 

David07

New member
XNullUser
Joined
Jun 25, 2022
Messages
27
Reaction score
0
Points
1
NullCash
0
I see it in EPILSON theme, or it's different from it
No this is just a simple code to achieve that. The theme you mentioned might be using the user online plugin
Post automatically merged:

How to get value osc_is_web_user_logged_in()
Please be clearer on how I can help
 
Top