vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Hide administrator post count (https://vborg.vbsupport.ru/showthread.php?t=162016)

Simon Lloyd 06-03-2012 02:16 PM

Thats because you've posted as though asking for help with vb3 and that postbit is from vb4!
Here's the line you want
HTML Code:

<dt>{vb:rawphrase posts}</dt><dd>{vb:raw post.posts}</dd>
and wrap it like this
HTML Code:

<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>

dlewisr 06-03-2012 03:26 PM

Oops I didn't notice that bloomer! I just found this in my search and didn't realise it was a different version. Thanks for that Simon.

Back to business now. I don't know what you mean by wrap. I've tried changing

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

to

<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>

but obviously that's wrong as it doesn't work. I don't do many edit templates.... which may be a good thing. Could you please tell me in a little more detail? Cheers for your help.

(I envy you coders!)

Simon Lloyd 06-03-2012 03:37 PM

In what respect didn't it work, what were ther results?

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

Errrrm, sorry my bad, it's a typo with the </vb:if>, it should look like this
HTML Code:

<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>


dlewisr 06-03-2012 04:17 PM

It said there was an error with no closing tag with the original changes.

I've changed that now to the code you posted above and it's worked............. but it now says 'Posts ??' and I wanted that line out all together no posts or ??. Is that possible.

Not a major problem if that isn't possible and thanks for your help, I've been trying to do this for months now!

Simon Lloyd 06-03-2012 04:38 PM

yep, just remove the ?? from the code, you can put whatever text you want there :)

dlewisr 06-03-2012 04:42 PM

How dumb am I? (rolls eyes). That solution is so obvious haha.

Thank you very much.

I've just removed them, perfect.

vBMerkezi 06-05-2012 01:45 PM

I got some useful information, thanks


All times are GMT. The time now is 11:04 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.01121 seconds
  • Memory Usage 1,726KB
  • 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
  • (3)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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