vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Postbit last date and time online (https://vborg.vbsupport.ru/showthread.php?t=300025)

Bubble #5 09-26-2013 01:37 AM

THANKS Ozzy, appreciate you taking the time to write that up :up:

ozzy47 09-26-2013 01:39 AM

Not a problem, glad to help. :)

justicechick 09-27-2013 06:50 AM

Quote:

Originally Posted by ozzy47 (Post 2448009)
What you could do is create a new plugin.
  1. Log into the ACP.
  2. On the side menu expand "Products & Plugins"
  3. Click on "Plugin Manager"
  4. At the very bottom there is a link to "Add New Plugin"
  5. On that page put in the following information-

    Product: vBulletin (this should be default)
    Title: Replace Minutes In Postbit
    Hook: postbit_display_complete (from a drop-down list)
    Execution Order: 5 (default value)
Code:

$vbulletin->templatecache['postbit_legacy'] = str_replace('Minutes','Mins',$vbulletin->templatecache['postbit_legacy']);
I tested this with the word Minutes directly in the postbit, and it works, I did not test it with this mod, but it should work.

Thanks for taking the time to do that Ozzy. When I posted this I thought that I had warned users this was my first attempt at anything like this. :confused: Looking back now, I see that I seems to have not included that warning ....LOL

Thanks for looking out and lending a helping hand to us all... :up: Much appreciated!

I did check this out though with and without the code you supplied and I couldnt get it to change it. Im sure that I must be missing something.
https://vborg.vbsupport.ru/external/2013/09/15.png

ozzy47 09-27-2013 09:23 AM

I dunno, as I said I did not try this with your mod, I will a bit later today when I get home from work and see what's going on.

Bubble #5 09-27-2013 04:12 PM

Quote:

Originally Posted by justicechick (Post 2448308)
I did check this out though with and without the code you supplied and I couldnt get it to change it. Im sure that I must be missing something.

I don't think it's on your end justicechick. It's not working here either. I eventually changed the phrase but not sure if that's the safe thing to do :cool: I'm sure ozzy will figure it out.

ozzy47 09-27-2013 07:47 PM

Yeah I will look into it, it may be how the plugins run in order. I will look somtime either tonight, or tomorrow, got alot going on ATM.

justicechick 10-01-2013 07:56 PM

Quote:

Originally Posted by Bubble #5 (Post 2448379)
I don't think it's on your end justicechick. It's not working here either. I eventually changed the phrase but not sure if that's the safe thing to do :cool: I'm sure ozzy will figure it out.

Thanks Bear lol...just making sure,


All times are GMT. The time now is 05:25 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.01112 seconds
  • Memory Usage 1,729KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_quote_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
  • (7)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