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)

princeedward 09-14-2009 10:53 AM

nice and useful...thanks for this Lynne ;)

Nordinho 02-09-2010 09:09 PM

Very nice, ty!

goxy63 03-02-2010 05:58 PM

Will install VB4 soon, does anyone know is this option default there?

My users love this option :)

princeedward 03-06-2010 07:41 PM

Hi Lynne....is this goin to make it work with vB 4.0.2?

hope so...

best regards

;)

Lynne 03-06-2010 08:15 PM

I don't see why it couldn't work in 4.0.2 except the template edit would be different for 4.0.

princeedward 03-07-2010 08:42 AM

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

;)

princeedward 03-10-2010 01:53 AM

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') . '";');
to includes/class_profileblock.php

but i added it instead here to think and hope the right place is...but...

Code:

$visitorbits = '';
                foreach ($visitors AS $user)
                {
                        fetch_musername($user);
                        $user['invisiblemark'] = !$user['visible'] ? '*' : '';
                        $user['buddymark'] = in_array($user['userid'], $buddylist) ? '+' : '';
$user['date'] = vbdate($this->registry->options['dateformat'],$user['dateline']);           
$user['time'] = vbdate($this->registry->options['timeformat'], $user['dateline']);
$userdateline = $user['date'] .' '. $user['time']; 

                        $templater = vB_Template::create('memberinfo_visitorbit');
                                $templater->register('user', $user);
                        $visitorbits .= $templater->render();
                }


Upload the plugins without touching it i guess its look okay..hope so...:p

Code:



<plugins>
        <plugin active="1" executionorder="5" product="vbulletin">
                <title><![CDATA[Get Recent Visitor Date & Time]]></title>
                <hookname>member_profileblock_recentvisitors_query</hookname>
                <phpcode><![CDATA[$hook_query_fields= ',profilevisitor.dateline';]]></phpcode>
        </plugin>
</plugins>

and edit the template "memberinfo_visitorbit"

FROM:

Code:

<li>&nbsp;<a class="username" href="{vb:link member,{vb:raw user}}">{vb:raw user.musername}</a>{vb:raw user.invisiblemark}{vb:raw user.buddymark}</li>
TO:

Code:

<li>&nbsp;<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

Lynne 03-10-2010 03:22 AM

Change this line:
PHP Code:

                $templater->register('user'$user); 

To this:
PHP Code:

                $templater->register('user'$user);
                
$templater->register('userdateline'$userdateline); 

And you also have the variable name wrong in the template, it should be title="{vb:raw userdateline}"

princeedward 03-10-2010 12:10 PM

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...

;)

Lynne 03-10-2010 01:47 PM

Quote:

Originally Posted by princeedward (Post 2000853)
what i mean...is YOU can release it now...if you have time enough :p

Unfortunately, time is something I don't have a lot of these days. You are welcome to release it in the vB4 section if you'd like.


All times are GMT. The time now is 02:18 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
  • Page Generation 0.01113 seconds
  • Memory Usage 1,749KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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