Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Last Active in Postbit Details »»
Last Active in Postbit
Version: 1.00, by harmor19 harmor19 is offline
Developer Last Online: May 2023 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.6.4 Rating:
Released: 05-28-2007 Last Update: 05-28-2007 Installs: 39
Uses Plugins Template Edits
 
No support by the author.

Requested Here

Description
This will show when the user was last active on the site in their postbit.

How to Install
Download the product XML. Go into to your ACP --> Plugins & Products --> Download / Upload Plugins. Scroll to the bottom of the page. Browse to the plugin you have just downloaded and click "Import".


Go into your Administrator Control Panel.
Open: Postbit Templates -- > postbit(_legacy)

Find
PHP Code:
<div>$post[icqicon$post[aimicon$post[msnicon$post[yahooicon$post[skypeicon]</div
Add Below
PHP Code:
<if condition="$show['lastactivity']"
    <
div>$vbphrase[last_activity]: $post[lastactivitydate]<br />
&
nbsp;@ <span class="time">$post[lastactivitytime]</span>&nbsp;</div>
</if> 
================================================== ==========

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 06-02-2007, 07:22 PM
Pirate45 Pirate45 is offline
 
Join Date: Apr 2006
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I'll uninstall. If you ever do any more with this, please post.

Thanks.
Reply With Quote
  #13  
Old 06-02-2007, 07:50 PM
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Posts: 1,324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tested it on my site with both postbit and postbit_legacy and they both work.
Reply With Quote
  #14  
Old 06-02-2007, 08:44 PM
DiSpy's Avatar
DiSpy DiSpy is offline
 
Join Date: Feb 2007
Location: South Florida!!
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible to change this to show the date in a different format than the way I have it set for every other place on the forums?

In other words, on posts and such I want it to show:

Sat June 2nd, 2007 @ 12:50 pm

But i'd like to change the last active date to look like:
06/02/07 @ 12:50 PM

This way it's not so long and doesn't have to wrap.

Any ideas??
Reply With Quote
  #15  
Old 06-02-2007, 09:55 PM
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Posts: 1,324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You'll have to edit the plugin XML.
Reply With Quote
  #16  
Old 08-14-2007, 04:15 PM
momo2 momo2 is offline
 
Join Date: Feb 2007
Posts: 327
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

worked excellent on both style and on 3.6.8
Reply With Quote
  #17  
Old 08-16-2007, 08:36 PM
pauloo pauloo is offline
 
Join Date: Dec 2004
Location: Belgium
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice thank you
Reply With Quote
  #18  
Old 08-23-2007, 12:10 PM
kingvillain's Avatar
kingvillain kingvillain is offline
 
Join Date: Mar 2007
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works fine on 3.6.8

Thanks *Installed*
Reply With Quote
  #19  
Old 04-17-2009, 01:06 PM
MickDoneDee MickDoneDee is offline
 
Join Date: Mar 2003
Location: Sydney
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do I add lastactivitydate to the post $post[postid] popup menu? I've tried but can't get it to work. Does anybody have any suggestions?
Reply With Quote
  #20  
Old 04-18-2009, 04:52 AM
MickDoneDee MickDoneDee is offline
 
Join Date: Mar 2003
Location: Sydney
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you wish to place the Last Activity Date in the Postbit Popup Menu, instead, import the attached XML file as a plugin.

The following code should be added to both postbit and postbit_legacy templates:

Search template for $template_hook[postbit_user_popup]. Immediately above that line insert:
Code:
<!-- Show Last Activity Date -->
	<tr><td class="vbmenu_option">$vbphrase[last_activity]: $post[lastactivitydate]</td></tr>
<!-- End Show Last Activity Date -->
Now save it. Refresh your browser (F5). The result should look like the screenshot in the attached image.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:36 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06384 seconds
  • Memory Usage 2,299KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete