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)

ServerX14 10-02-2006 07:59 PM

installed =)

Limerick 10-02-2006 08:15 PM

Hello Brad,

Thanks for this hack, but prior to install it, I'd like to know if it is possible to let only Admin seeing this information in postbit ?

Limerick 10-07-2006 10:43 AM

Quote:

Originally Posted by Limerick
Hello Brad,

Thanks for this hack, but prior to install it, I'd like to know if it is possible to let only Admin seeing this information in postbit ?

Nobody has the answer ?

giza 10-08-2006 04:52 PM

can we make this work only for administrators and not for all users??

bump..sorry i didnt see this last post

Rich 10-11-2006 06:13 PM

I don't have this installed but I am guessing you can wrap the template code in this:

Code:

<if condition="is_member_of($bbuserinfo, x)">
Template Edit Here
<else />
&nbsp;
</if>

"x" is the usergroup you want to see this. You can add multiple usergroups by writing x,y,z

The default admin usergroup is 6. For admin only, you would change the "x" to a 6.

jw00dy 10-17-2006 07:10 AM

Excellent job.

*clicks installed*

cuphongle 10-18-2006 03:28 PM

very nice, simple

dagummit 10-29-2006 07:06 PM

I searched for the text per the instructions in the zip, but neither my postbit or postbit_legacy templates has the coding:

<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>

I am running 3.6.2, would this be a problem?

Viper007Bond 11-09-2006 08:03 AM

Thanks! :)

I needed a shorter version for my postbit_legacy though, so this is what I ended up using:

Code:

<if condition="$show['last_seen_online']"><div>Last Online: <if condition="$post[lastseen_date] == Today">$post[lastseen_time]<else />$post[lastseen_date]</if></div></if>
If they were online today, it shows only the time, otherwise it shows only the date. It's not perfect though as they coulda just been online but right before midnight your time (making it "Yesterday").

Been Told 11-24-2006 06:20 PM

Thanks, great mod. :)


All times are GMT. The time now is 06:04 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.02239 seconds
  • Memory Usage 1,734KB
  • 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_code_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