vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Profile Enhancements - Date & Time of Profile Visitor (https://vborg.vbsupport.ru/showthread.php?t=200903)

Lynne 01-05-2009 10:00 PM

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>
To:
HTML Code:

<li class="smallfont"><a href="member.php?$session[sessionurl]u=$user[userid]" title="$userdateline">$user[musername]</a>$user[invisiblemark]$user[buddymark] </li>
Save the template.

3. Open the file includes/class_profileblock.php and find the following line around line 1159:
PHP Code:

eval('$visitorbits .= "' fetch_template('memberinfo_visitorbit') . '";'); 

Add above it:
PHP Code:

 $user['date'] = vbdate($this->registry->options['dateformat'],$user['dateline']);            
$user['time'] = vbdate($this->registry->options['timeformat'], $user['dateline']);
$userdateline $user['date'] .' '$user['time']; 

Save and upload the file.


This was written for and tested on my 3.8.0 RC1 board.

Bounce 01-06-2009 08:58 PM

1 Attachment(s)
ahhh excellent lynne :up:

Screenshot attached as someone is bound to ask for one :eek::D

Lynne 01-06-2009 09:13 PM

Thanks for the screen shot! I meant to do one and then forgot about it.

goxy63 01-06-2009 09:14 PM

Pitty Iam second :(

Nominated, rated, installed

Thanks Lynne

Here is a HUG from me :eek:
:D

g0dfather1984 01-06-2009 09:43 PM

Thank you, Lynne.

SEOvB 01-06-2009 09:46 PM

Nice work lynne!

Should be default!

Ch13f 01-07-2009 02:04 PM

thanks lynne nice

glorify 01-07-2009 03:49 PM

Usergroup permissions or do we have to add conditionals?

Lynne 01-07-2009 11:30 PM

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.

azher 01-16-2009 06:44 AM

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?


All times are GMT. The time now is 11:12 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05632 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete