Previous Thread
Next Thread
Print Thread
Rating: 5
Joined: Nov 2001
Posts: 10,369
I type Like navaho
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.
Attachments
116486-ShowUsersLastOnTime6.5.txt (0 Bytes, 174 downloads)

Sponsored Links
Joined: Mar 2001
Posts: 644
Member
Member
Offline
Joined: Mar 2001
Posts: 644

Joined: Jun 2002
Posts: 160
Member
Member
Offline
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
Member
Member
Offline
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
Newbie
Newbie
Offline
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
Member
Member
Offline
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
I type Like navaho
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
Newbie
Newbie
Offline
Joined: Jan 2005
Posts: 14
Ok thanks Ill try that

Joined: Nov 2002
Posts: 554
Code Monkey
Code Monkey
Offline
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/30/2005 12:55 AM.

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
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)