Previous Thread
Next Thread
Print Thread
Rating: 5
Joined: Nov 2001
Posts: 10,369
JoshPet Offline OP
I type Like navaho
OP Offline
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Mod Name / Version: Show Uses's last on time in their profile

Description: Mod Name / Version: Show User's last on time in their profile

Description: This minor modification adds the Last On time to a User's profile and is only viewable by Administrators and Moderators.

Updated for 6.5.

Working Under: UBB.Threads 6.

Mod Status: Beta

Any pre-requisites: N/A

Author(s): Zackary

Date: 07/07/04

Credits: Pilgrim for requesting it and reminding me that I was going to do this long ago, but never did.

Files Altered: showprofile.php
templates -> showprofile.tmpl
languages -> showprofile.php

New Files: None

Database Altered: NO

Info/Instructions: See attached file for instructions.

Attached Images
116486-ShowUsersLastOnTime6.5.txt (0 Bytes, 174 downloads)
Sponsored Links
Joined: Mar 2001
Posts: 644
Z
Member
Offline
Member
Z
Joined: Mar 2001
Posts: 644

Joined: Jun 2002
Posts: 160
Z
Member
Offline
Member
Z
Joined: Jun 2002
Posts: 160
Thank you for updating this. I came here tonight actually specifically looking to see if this had been updated for 6.5 (and was going to suggest it again, if it hadn't). I ended up finding that I had a need for this recently, and knew it USED to be on the board (back in 6.2 or 6.3) and didn't remember if it was a mod or was built-in to threads, and noticed it wasn't on 6.4. and missed it.

Is this still in beta state?

Joined: Mar 2001
Posts: 644
Z
Member
Offline
Member
Z
Joined: Mar 2001
Posts: 644
It's only a simple template mod. So yeah it's Final. I wrote the 6.4 version.

Joined: Jan 2005
Posts: 14
M
Newbie
Offline
Newbie
M
Joined: Jan 2005
Posts: 14
I have worked and worked with this on 6.5......its the stangest thing.....its visable to moderators but not to administrators?

Sponsored Links
Joined: Mar 2001
Posts: 644
Z
Member
Offline
Member
Z
Joined: Mar 2001
Posts: 644
I won't be upgrading to 6.5 so I can't help with this. Hopefully Josh can give an assist on this one.

Joined: Nov 2001
Posts: 10,369
JoshPet Offline OP
I type Like navaho
OP Offline
I type Like navaho
Joined: Nov 2001
Posts: 10,369
This bit of code:
if (($thisuser['U_Status'] == "Administrator") || ($thisuser['U_Status'] == "Moderator")) {

Should be straightforward, not sure why it wouldn't be visible to Admins.

Above that you could add this debug code:
echo "Debug U_Status: {$thisuser['U_Status']}";


Then view it as an admin, and see what status it's seeing. It should say Administrator.

Joined: Jan 2005
Posts: 14
M
Newbie
Offline
Newbie
M
Joined: Jan 2005
Posts: 14
Ok thanks Ill try that

Joined: Nov 2002
Posts: 554
C
Code Monkey
Offline
Code Monkey
C
Joined: Nov 2002
Posts: 554
If I wanted it to be viewable by all users what could I change?
if (($thisuser['U_Status'] == "User") Maybe?

Any reason why I would want it available only to Admins and Mods?

*edit- Last on Wed Dec 31 1969 04:00 PM ????

Why is it showing that for everyone?

Last edited by ChAoS; 03/29/2005 11:55 PM.

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 448
Joined: February 2008
Forum Statistics
Forums63
Topics37,551
Posts293,824
Members13,840
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online 288
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 25
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,808
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 66
Gizmo 12
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2021 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Snapshot build 20201211)
Responsive Width:

PHP: 5.4.45 Page Time: 0.061s Queries: 34 (0.021s) Memory: 3.3280 MB (Peak: 3.5569 MB) Data Comp: Zlib Server Time: 2021-01-25 12:44:09 UTC
Valid HTML 5 and Valid CSS