vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Show Thread Enhancements - Last Seen Online in postbit (https://vborg.vbsupport.ru/showthread.php?t=123366)

wolfyman 02-20-2010 12:35 PM

it must be a simple process to make it work for 4.x, right?

TundraSoul 03-12-2010 07:29 PM

Also looking for this mod to work with vB4.x.

doopz 03-18-2010 01:27 PM

Same here! would be very nice to have it working

New Joe 03-26-2010 08:27 AM

Quote:

Originally Posted by wolfyman (Post 1987254)
it must be a simple process to make it work for 4.x, right?

It is if you know about coding Mods, wish someone could do it,

Alan_SP 04-01-2010 03:14 AM

If you want just certain usergroups to know last activity, use code like this:

<if condition="is_member_of($bbuserinfo,6)"><div>$vbph rase[join_date]: $post[lastseen_date] $post[lastseen_time]</div></if>

In this <if condition="is_member_of($bbuserinfo,6)"> number 6 represents usergroup that has access to this information. 6 is default for administrators. If you want to enable this for moderators and supermoderators too, use:

<if condition="is_member_of($bbuserinfo,5,6,7)">

New Joe 04-01-2010 04:11 AM

How to make it work for vB4?

Alan_SP 04-05-2010 03:15 PM

I just played a bit more with this add-on. There's info for last post user made. And it's also in this cryptic format, so you need to edit add-on and find:

PHP Code:

$this->post['lastseen_time'] = vbdate($this->registry->options['timeformat'], $this->post['lastactivity'], true);
$this->post['lastseen_date'] = vbdate($this->registry->options['dateformat'], $this->post['lastactivity'], true); 

Add this code:

PHP Code:

$this->post['lastpost_time'] = vbdate($this->registry->options['timeformat'], $this->post['lastpost'], true);
$this->post['lastpost_date'] = vbdate($this->registry->options['dateformat'], $this->post['lastpost'], true); 

You should now have this:

PHP Code:

$this->post['lastseen_time'] = vbdate($this->registry->options['timeformat'], $this->post['lastactivity'], true);
$this->post['lastseen_date'] = vbdate($this->registry->options['dateformat'], $this->post['lastactivity'], true);
$this->post['lastpost_time'] = vbdate($this->registry->options['timeformat'], $this->post['lastpost'], true);
$this->post['lastpost_date'] = vbdate($this->registry->options['dateformat'], $this->post['lastpost'], true); 

To add it in postbit (or postbit legacy), just use lastpost_time and lastpost_date the way you like it and where you like it.:up:

mgurain 06-08-2010 05:45 AM

Hi,
this is a great mod, I wonder why it's not a default or an option in vbulletin ?
Do you have it updated for 3.8.5 ? I searched but find nothing other than this version.

Thanks,,

New Joe 06-09-2010 11:08 PM

Quote:

Originally Posted by mgurain (Post 2050274)
Hi,
this is a great mod, I wonder why it's not a default or an option in vbulletin ?
Do you have it updated for 3.8.5 ? I searched but find nothing other than this version.

Thanks,,

I just installed it on vB 3.8.5 and it worked.

Alan_SP 09-26-2010 02:53 PM

Quote:

Originally Posted by New Joe (Post 2013840)
How to make it work for vB4?

I just tested it on my upgrade testing site and it works with vB4 too. You only need to change code you put in postbit (legacy or new one, which I don't use).

My code looks like this (and just to let you know, I use last time user posted in postbit):

HTML Code:

<vb:if condition="is_member_of($bbuserinfo,5,6,7,11)"><dt>Zad.Akt</dt> <dd>{vb:raw post.lastseen_date} {vb:raw post.lastseen_time}</dd></vb:if>

<vb:if condition="is_member_of($bbuserinfo,5,6,7,11)"><dt>Zad.Post</dt> <dd>{vb:raw post.lastpost_date} {vb:raw post.lastpost_time}</dd></vb:if>

To explain:

This part
HTML Code:

<vb:if condition="is_member_of($bbuserinfo,5,6,7,11)">
checks if the user is part of this usergroups (I allow it just for moderators and up to see this info). You can check for different conditions.

This is where actual message is written in postbit:
HTML Code:

<dt>Zad.Akt</dt> <dd>{vb:raw post.lastseen_date} {vb:raw post.lastseen_time}</dd>
. This part:
HTML Code:

<dt>Zad.Akt</dt>
, you put your own text respectively, what you want users to see as description for info. Don't forget to close if statement, do it with:
HTML Code:

</vb:if>
I don't used any phrasing, it's a bit different if you want to use phrases. You'll need to create phrase and use it.

This add-on can be put to vB4 section with no problem. :)


All times are GMT. The time now is 11:16 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.01107 seconds
  • Memory Usage 1,762KB
  • 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_html_printable
  • (3)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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