vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Hide administrator post count in post bit. (https://vborg.vbsupport.ru/showthread.php?t=297732)

dlewisr 05-01-2013 06:49 AM

Hide administrator post count in post bit.
 
Some one please put me out of my misery. I have installed the latest patch and am now on vb4.2.1. I had a security token issue on 'Mark Forums Read' and after reading through solutions on here, thought it was because two templates needed reverting. I reverted ALL templates and that seemed to do the trick. I'm now wanting to hide the admin post count in the postbit legacy, but though I've tried more times than I care to count. I'm doing something wrong.

I change (should say 'have' been changing:

Quote:

<dt>{vb:rawphrase posts}</dt><dd>{vb:raw post.posts}</dd>
to:

Quote:

<vb:if condition="$post['userid'] == '6'"><dt>{vb:rawphrase posts}</dt><dd>??</dd><vb:else /><dt>{vb:rawphrase posts}</dt><dd>{vb:raw post.posts}</dd></vb:if>
This worked for me before installing the patch. Could anyone point me in the right direction please?

Cheers in advance.

John Lester 05-01-2013 06:53 AM

The code is written for one user with a userid of 6. It should be usergroupid vs userid, although I'm not at home to test it on my test site.

dlewisr 05-01-2013 07:19 AM

Thank you for the reply John, I have tried user ID 1 also, which is mine, but it won't work with that either. I did get the original code from this thread:

https://vborg.vbsupport.ru/showthread.php?t=162016

post 6 was my query and it did work at that time.

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

I've sorted the issue out. I have the horizontal post bit not the vertical and so needed to add the changes to the postbit template NOT the postbit legacy. You were right too about the ID, I changed it to ID 1 and it worked. Thank you John.


All times are GMT. The time now is 04:20 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.01088 seconds
  • Memory Usage 1,710KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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