JoshPet
The artist formerly known as Mr. Bug
  
Reged: 11/29/01
Posts: 11414
Loc: Charlotte, NC
|
|
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.
|
Zackary
Code Monkey
   
Reged: 10/23/02
Posts: 540
|
|
|
ZealotOnAStick
Member
   
Reged: 06/14/02
Posts: 166
Loc: Indiana
|
|
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?
|
Zackary
Code Monkey
   
Reged: 10/23/02
Posts: 540
|
|
It's only a simple template mod. So yeah it's Final. I wrote the 6.4 version.
|
minimock
Newbie
Reged: 01/21/05
Posts: 14
|
|
I have worked and worked with this on 6.5......its the stangest thing.....its visable to moderators but not to administrators?
|
Zackary
Code Monkey
   
Reged: 10/23/02
Posts: 540
|
|
I won't be upgrading to 6.5 so I can't help with this. Hopefully Josh can give an assist on this one.
|
JoshPet
The artist formerly known as Mr. Bug
  
Reged: 11/29/01
Posts: 11414
Loc: Charlotte, NC
|
|
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.
--------------------
Josh - Joshua PettitWebsite - For Hire Coding work and Modifications
Feel Better, Look younger - www.BuyTransD.com
Use Coupon Code 1004 to Save $20 Off Your Initial Order of Trans-D Tropin
|
minimock
Newbie
Reged: 01/21/05
Posts: 14
|
|
Ok thanks Ill try that
|
ChAoS
Code Monkey
   
Reged: 11/15/02
Posts: 565
Loc: Great Northwest
|
|
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?
-------------------- ChAoS
Emerald Forest Gaming Servers
Official STFU Thread
Edited by ChAoS (03/29/05 11:55 PM)
|