![]() |
Date & Time of Profile Visitor
1 Attachment(s)
A simple mod to show the date and time of the profile visitor when you hover your cursor over their username in Recent Visitors in member.php.
1. Go to your Admin CP > Plugins & Products > Download / Upload Plugins > Upload the sml file profile_visitor_datetime.xml 2. Change the template "memberinfo_visitorbit" from: HTML Code:
<li class="smallfont"><a href="member.php?$session[sessionurl]u=$user[userid]">$user[musername]</a>$user[invisiblemark]$user[buddymark] </li> HTML Code:
<li class="smallfont"><a href="member.php?$session[sessionurl]u=$user[userid]" title="$userdateline">$user[musername]</a>$user[invisiblemark]$user[buddymark] </li> 3. Open the file includes/class_profileblock.php and find the following line around line 1159: PHP Code:
PHP Code:
This was written for and tested on my 3.8.0 RC1 board. |
1 Attachment(s)
ahhh excellent lynne :up:
Screenshot attached as someone is bound to ask for one :eek::D |
Thanks for the screen shot! I meant to do one and then forgot about it.
|
Pitty Iam second :(
Nominated, rated, installed Thanks Lynne Here is a HUG from me :eek: :D |
Thank you, Lynne.
|
Nice work lynne!
Should be default! |
thanks lynne nice
|
Usergroup permissions or do we have to add conditionals?
|
You could just add a condition either around the php code (added in step 3) or the template code (added in step 2). Either will work.
|
great mod. does anyone know of a way to make the profile visitors show up in the order of when they visited rather than in alphabetical order?
|
Sweet but just hate file edits...
|
Quote:
PHP Code:
Quote:
|
nice item, installed and rated as MOTM
|
Good Work Lynne :up:
|
Lynne
Regarding to 'azhers' post, and your reply.... quote: 'great mod. does anyone know of a way to make the profile visitors show up in the order of when they visited rather than in alphabetical order?' In includes/class_profileblock.php I found mentioned line PHP Code:
|
Just comment out that line like I showed (put the // in front of it).
|
Quote:
|
Thank you, Lynne. Installed.
|
Thanks Lynne, edited that long time ago :D
Now just upgraded to Vb 3.8.1 and had to change stuff again in includes/class_profileblock.php...works just great What I wanted to ask can this work out for blogs just the same !? Any pointers !? |
The idea would be the same for the blog, however since I don't have the blog add-on, I can't try it out.
|
nice and useful...thanks for this Lynne ;)
|
Very nice, ty!
|
Will install VB4 soon, does anyone know is this option default there?
My users love this option :) |
Hi Lynne....is this goin to make it work with vB 4.0.2?
hope so... best regards ;) |
I don't see why it couldn't work in 4.0.2 except the template edit would be different for 4.0.
|
thanks Lynne...tried to find the line at includes/class_profileblock.php can't find it...seems to be that they change it or...
would you be so kind (as always) :p please to re code this at your spare time...my members are keep bugging me on this one thanks and best regards ;) |
Hi Lynne tried to figure out and make this work but no luck at all...
as i said can't find this and can you please help me on this... Code:
eval('$visitorbits .= "' . fetch_template('memberinfo_visitorbit') . '";'); but i added it instead here to think and hope the right place is...but... Code:
$visitorbits = ''; Upload the plugins without touching it i guess its look okay..hope so...:p Code:
FROM: Code:
<li> <a class="username" href="{vb:link member,{vb:raw user}}">{vb:raw user.musername}</a>{vb:raw user.invisiblemark}{vb:raw user.buddymark}</li> Code:
<li> <a class="username" href="{vb:link member,{vb:raw user}}" title="{vb:raw user.dateline}">{vb:raw user.musername}</a>{vb:raw user.invisiblemark}{vb:raw user.buddymark}</li> but got anonym numbers only or say can't get it right... any idea pls...what wrong? thanks and best regards... :o |
Change this line:
PHP Code:
PHP Code:
|
1 Attachment(s)
....hmmm...did it too that variable way but also didn't go well... but now i got it...million thanks once again Lynne for your never ending assistance or support here and there...just informed my members and they're really quite happy about this...
so tested to my vb default skin and style skin...we can release it to vB4.0.0 Modification Section...i mean... YOU can release it now...if you have time enough :p for the others to feel the heat of this wonderful mod of yours... great...and much appreciated your assistance here once again...as always... ;) |
Quote:
|
Quote:
best regards... hmm...where...or how do i start now? :p |
Hi Lynne,
If the last visit has been today, instead of displaying "12-30-2010, 14:20" it should display "Today, 14:20". If the last visit has been yesterday, instead of displaying "12-29-2010, 14:20" it should display "Yesterday, 14:20". Could you please tell me how to do so? Thank you, Jonathan |
Quote:
|
Hi Lynne,
I'm not a programmer so I believe that I'm going to be unable to achieve that myself. If you get some free time soon hope you can give me a hand with this. Thank you, Jonathan |
Quote:
Code:
$user['date'] = vbdate($this->registry->options['dateformat'],$user['dateline'],true); |
Hi Lynne,
Thanks for your reply! It's working fine in vB 3.8.5 :) https://vborg.vbsupport.ru/ Just an important detail about my members are complaining. Everyone can see the date/time of the visit even in profiles of other members. I think that only the profile owner should be able to see that information. How I can apply the conditional? Thank you, Jonathan |
Quote:
PHP Code:
|
Thanks for your kind reply Lynne!
I applied the conditional and now I can't see the date/time even in my own profile :mad: |
Quote:
PHP Code:
|
Just wanted to say thank you very much and Happy New Year! :up:
|
All times are GMT. The time now is 04:57 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|