vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Post posts in threads, and only allows mods to read them! (https://vborg.vbsupport.ru/showthread.php?t=33794)

69-FLy-gUy 04-02-2002 10:14 AM

hmm it still didn't work....

Admin 04-02-2002 10:18 AM

Paste the code you have there now.

69-FLy-gUy 04-02-2002 10:25 AM

sure doing that now...

Code:


if (($bbuserinfo[usergroupid]==5 or $bbuserinfo[usergroupid]==6 or $bbuserinfo[usergroupid]==7) and $post[visible]!=1) {
                $post[hidden]='<br><b><u>This post is hidden!</u></b>';
        } else {
                $post[hidden]='';
        }


I knwo the post is hidden.. but i can't get it to show it in the postbit......

Admin 04-02-2002 10:27 AM

Replace the first line with:
Code:

if (ismoderator() and !$post['visible']) {
Maybe that'll help.
Are you sure you have $post[hidden] in the template and you're using the right style set.

69-FLy-gUy 04-02-2002 10:29 AM

yeah. i only have 1 style.. you want me to show you the post bit also?

i am trying your edit now.. iw ill lety ou know.

still didn't work..

here is part of my postbit...

Code:

<td bgcolor="$post[backcolor]" width="175" valign="top" nowrap>
        <a name="post$post[postid]"></a>
        $post[firstnewinsert]
        <normalfont><b>$post[username]</b></normalfont><br>
        <smallfont>$post[usertitle]</smallfont><br>
        $post[avatar]<p>
        <smallfont>Registered: $post[joindate]<br>
        Location: $post[field2]<br>
        Posts: $post[posts]<br>
Threads Started: $starts<br>
        Personal Views: $personal <br>
$post[hidden]
</smallfont>
</td>


Admin 04-02-2002 10:34 AM

I really don't know then, sorry.

69-FLy-gUy 04-02-2002 10:34 AM

that is ok. Thanks for trying FireFly...

lordofgun 06-04-2002 04:46 PM

does this work for 2.2.5? anyone?

thanks in advance!

ladyfyre 06-10-2002 04:13 AM

better yet...will it work with 2.2.6???

lordofgun 06-11-2002 01:13 AM

i just love the quick responses to questions here. :D


All times are GMT. The time now is 08:01 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.01150 seconds
  • Memory Usage 1,731KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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