vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   how to hide the date and time from certain threads or posts (https://vborg.vbsupport.ru/showthread.php?t=190141)

Marcel Lee 09-05-2008 11:28 PM

how to hide the date and time from certain threads or posts
 
How do I hide the date and time from certain threads or posts?

I use the word "hide" because I dont want to remove the date and time forever. I also dont want to mess-up or alter the post sequencing in any way. I just want to make it so that no one can see when certain posts; or posts in certain threads; were made until, or unless, I decide to un-hide them.

Opserty 09-06-2008 07:00 AM

There isn't such a default option as far as I can remember. You'd probably have to edit the postbit(_legacy) template and remove it from there. Although that would remove it from all posts.

Marcel Lee 09-07-2008 07:50 AM

Yeah, that would remove it from all posts; which doesn't help because I only want to remove it from certain posts.

And I'd already figured there wasn't a default option to do it.

What I'm asking for is a plug-in code or something; basically a hack to tell my board to hide the date and time from the posts or threads I dont want the date and time to appear on.

It seems simple enough to me; something that is certainly possible, given the complex modifications I've come across on this site.

Question is, will somebody show me how to do it?

Shishir 09-10-2008 06:22 AM

Don't know if it helps you but here is something you might try.

First, open 'postbit'(or 'postbit_legacy' whichever you use) for edit. Look for:
Code:

$post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]
Add Before:
Code:

<if condition="!in_array($post[postid], array(number1,number2,etc,etc))">
In the same line find:
Code:

</if>
Add after:
Code:

</if>
Replace the number1,number2,etc,etc with the Post ID you want date and time to hide.

Hope it helps.
Shishir

Marcel Lee 09-12-2008 01:52 AM

Yes, it certainly helps. In fact, it works just the way I wanted. Thanks!


All times are GMT. The time now is 06:57 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.01070 seconds
  • Memory Usage 1,715KB
  • 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
  • (4)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete