View Full Version : You Last Visited On
Amaury
06-28-2012, 08:20 PM
I did a search and couldn't find anything.
How would I add an indicator of when a user last visited. It would go in the Navbar template along with the time code I have there.
Example:
You last visited on Friday, 6/22/2012, 4:14 PM GMT -7.
The code for that is already in the header template, but it's commented out (for some reason I don't understand - maybe just a style choice). Anyway, as it turns out you can also copy it directly to the navbar template and it will work. It looks like this:
{vb:rawphrase last_visited_x_at_y, {vb:raw pmbox.lastvisitdate}, {vb:raw pmbox.lastvisittime}}
Amaury
06-28-2012, 09:04 PM
The code for that is already in the header template, but it's commented out (for some reason I don't understand - maybe just a style choice). Anyway, as it turns out you can also copy it directly to the navbar template and it will work. It looks like this:
{vb:rawphrase last_visited_x_at_y, {vb:raw pmbox.lastvisitdate}, {vb:raw pmbox.lastvisittime}}
Thank you, KH99. :)
Amaury
09-09-2012, 01:22 AM
So, new question. How I would I move the last visited into the one of the areas I marked in this screenshot? (Navigation bar or sub-navigation bar.)
http://i101.photobucket.com/albums/m62/AmauryGarcia/LastVisit.png
hazem_aliraqi
09-09-2012, 07:34 PM
use this code to control the place
<div style="position: absolute; right: 800px; top: 50px">
<td width="70" valign="top" style="padding-top: 1px;">{vb:rawphrase last_visited_x_at_y, {vb:raw pmbox.lastvisitdate}, {vb:raw pmbox.lastvisittime}}</td></div>
add in navbar template and change
top: 50px
and
right: 800px
--------------- Added 1347223244 at 1347223244 ---------------
also you can change the color
use this
<div style="position: absolute; right: 800px; top: 50px; color: #ffffff;">
<td width="70" valign="top" style="padding-top: 1px;">{vb:rawphrase last_visited_x_at_y, {vb:raw pmbox.lastvisitdate}, {vb:raw pmbox.lastvisittime}}</td></div>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.