vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Post Timestamp Visibility (https://vborg.vbsupport.ru/showthread.php?t=272961)

BirdOPrey5 10-30-2011 02:57 PM

What this does is not show the timestamp if anyone is logged in is NOT an administrator.

Perhaps you are trying to hide the date on posts that were not made by an administrator for everyone? (Different logic?)

If so that code would be:

Code:

if (!is_member_of($post, 6,22)) 
{
  $post['posttime'] = ' ';
  $post['postdate'] = ' ';
}


BirdOPrey5 10-30-2011 03:02 PM

Also this only works on posts on showthread.php - it does not hide the date/time on "Last Post" on other pages.

Prisoner 10-30-2011 03:21 PM

That shows the date and time of my posts and everybody can see it.

I just want to make it so that only Admins can see the date and time.

--------------- Added [DATE]1319991928[/DATE] at [TIME]1319991928[/TIME] ---------------

Quote:

Originally Posted by BirdOPrey5 (Post 2262930)
Also this only works on posts on showthread.php - it does not hide the date/time on "Last Post" on other pages.

Yes, I will try to find the hook for those once I get this working.

BirdOPrey5 10-30-2011 03:42 PM

If this isn't working like that all I can think is maybe another mod is interfering. Try disabling any other mods you may use.

Prisoner 10-30-2011 04:31 PM

Thanks for all your help. I will set up a test forum and try it.

Prisoner 10-30-2011 06:16 PM

1 Attachment(s)
Same result with a fresh install. Here's a screen shot of the plugin I created. Maybe that is where the problem is. This is the first time I have tried to do this, so I am learning as I go.

BirdOPrey5 10-30-2011 06:20 PM

That is correct... does your forum use some sort of page caching?

Prisoner 10-30-2011 06:42 PM

No, I don't think so. Before I install it, the date shows, when I install it, it doesn't, then when I disable it, the date shows again. Tried it in both Internet Explorer and Firefox.

BirdOPrey5 10-30-2011 06:55 PM

Since you got a test site, if you want PM me login info and I'll see if I can figure it out.

Prisoner 10-30-2011 07:33 PM

Thanks!


All times are GMT. The time now is 08:02 AM.

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.02643 seconds
  • Memory Usage 1,728KB
  • 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
  • (1)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
  • (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