Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Mar 2001
Posts: 7,394
LK
Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Modification Name: You Last Visited Wording

Author(s): LK

Description: This is a very simple modification, which tells the users the last time they had visited your board in Forum Summary, under "Hello, X", according to their cookie. It also welcomes the new users, who don't have any cookie, and it links to the Update Post Indicators page. Uses your TimeZone setting.
The only reason it's not finished is because it isn't Wordletized.

Demo: http://www.lkworld.com

Requirements: UBB.classic 6.7.0+

Credits: Charles Capps for making this up @ "Flave"

Open public_forum_summary.pl.
Find:
Code
		navbar_replace_right => qq~<b>$memberline</b>~,
Add below:
Code
		navbar_under_left => qq~
<script type="text/javascript">
var atime = unescape(session_dt);
if (atime != "NEW") {
var btime = atime.split("-");
btime[0] = Math.round(btime[0]);
btime[0]--;
var ctime = btime[2].split(" ");
dtime = ctime[1].split(":");
dtime[0] = Math.round(dtime[0]);
if (ctime[2] == "PM" && dtime[0] < 12) {
dtime[0] += 12;
} else if (ctime[2] == "AM" && dtime[0] == 12) {
dtime[0] = 0;
}
document.write('You last visited: <b>'+timestamp(new Date(ctime[0],btime[0],btime[1],
dtime[0],dtime[1],0),dfrm,tfrm,0,0,0,0)+
'  [<a href="$ULTIMATEBB{"ubb=markallread"}">Update Post Indicators</a>]</b>');
} else {
document.write('Welcome to '+unescape('~.UBBCGI::escape($vars_config{BBName}).
qq~')+'!<b>  [<a href="$ULTIMATEBB{"ubb=markallread"}">Update Post Indicators</a>]</b>');
}
</script>~,

Sponsored Links
Entire Thread
Subject Posted By Posted
[6.7] [beta] You Last Visited Wording LK 04/07/2004 2:13 PM
Re: [6.7] [beta] You Last Visited Wording AllenAyres 04/07/2004 5:46 PM
Re: [6.7] [beta] You Last Visited Wording Gizmo 04/07/2004 5:52 PM
Re: [6.7] [beta] You Last Visited Wording autostream 05/03/2004 11:18 PM
Re: [6.7] [beta] You Last Visited Wording Ian Spence 05/04/2004 1:53 AM
Re: [6.7] [beta] You Last Visited Wording LK 05/04/2004 9:39 AM
Re: [6.7] [beta] You Last Visited Wording havoq 05/04/2004 6:27 PM
Re: [6.7] [beta] You Last Visited Wording Ian Spence 05/04/2004 6:36 PM
Re: [6.7] [beta] You Last Visited Wording LK 05/04/2004 10:59 PM
Re: [6.7] [beta] You Last Visited Wording GATOR420 05/09/2004 5:32 PM
Re: [6.7] [beta] You Last Visited Wording Ian Spence 05/09/2004 5:36 PM
Re: [6.7] [beta] You Last Visited Wording GATOR420 05/09/2004 6:34 PM
Re: [6.7] [beta] You Last Visited Wording twslex 08/19/2005 10:50 AM
Re: [6.7] [beta] You Last Visited Wording Ian Spence 08/19/2005 10:52 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
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
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
WebGuy 2
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)