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)

NeoGT 01-15-2002 12:19 PM

Oh sorry, don't bother. I reinstalled it and it worked fine. I must have accidentally deleted something earlier.

Admin 01-15-2002 12:38 PM

Oh, alright then. :)

NeoGT 01-15-2002 12:41 PM

Oh I do have another question though - how do I make this hack appear to people using different styles? We've got two main styles, but only users of one of them can make use of this hack.

Admin 01-15-2002 01:09 PM

What do you mean? Sorry I don't get it. :)

NeoGT 01-15-2002 01:14 PM

under styles in the CP, we have "default" and "no ticker". "no ticker" was created for the people who use macs because our news ticker doesn't display correctly on their machines. They have the options to change styles in their user cp. The ones who change to no ticker are unable to use the hidden message feature.

holev 01-19-2002 03:57 PM

great idea for a hack
will come in handy

// EDIT //
for some reason it wont show the $post[hidden] even when it is hidden
:confused:

holev 01-20-2002 06:50 AM

*bump*

Wolf42 01-28-2002 11:36 AM

Just added to my board and worked perfectly! :D

Thanks for that!

mADmAX` 02-25-2002 06:46 AM

Added to board few days back and just had a regular member hide a post...

What and how did he do that? I can read it and am starting to wonder if he can actually read the hiden messages?

squawell 02-27-2002 03:55 AM

FireFly ask u one question~

if i want to add the option to when i post a new thread how

should i do??not add to the replythread~~

and another question:

can i replace the userinfo[usergroupid] to userinfo[posts] is this

can work even i replace the userinfo[fieldx] can i do that and

work well i need ur answer~ :)

69-FLy-gUy 03-25-2002 06:49 PM

I am having the same problem as holey. what is the problem???

Admin 03-26-2002 05:25 AM

What problem would that be?

69-FLy-gUy 03-28-2002 07:27 AM

Firefly.. Thanks for responding. here is the problem i am having..

When i put the $post[hidden] variable in the posbit template. it doesn't show up when a post is hidden....

I am not sure why though....

Thanks .=)) i hope you are able to help me.

69-FLy-gUy 03-29-2002 08:02 AM

*bump*

Chris M 03-29-2002 01:06 PM

Brilliant hack...

I will recommend that we install this at our Forums!

Satan

69-FLy-gUy 04-02-2002 06:54 AM

Firefly?

Admin 04-02-2002 09:08 AM

Did you hack functions.php to set $post['hidden']?

69-FLy-gUy 04-02-2002 09:45 AM

yeah... i checked it a few times. can't figure it out..

your instructions ion the text file say $post[hidden].. not $post['hidden']

here is the part of functions.php

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]='';
        }


Admin 04-02-2002 10:03 AM

No, my post says $post[visible]!=1.

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

ohhh! oops. let me try.. sorry about that...

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

lordofgun 06-11-2002 01:59 AM

just tried it in 2.2.5

no go. showthread.php has changed

Admin 06-11-2002 11:05 AM

What part can't you find?

e@sy 06-14-2002 06:12 PM

There is a bug.

If a Mod or Admin quote a hidden text all user can see the text. Maybe in this case, the post should be automatic hidden ?

Sorry for my pour english.

e@sy

DemiNeo0101 06-15-2002 10:16 PM

yup no-go in 2.2.6

Chris M 06-30-2002 02:54 PM

No go...

I get a parse error if I try and add it to functions.php

Satan

Chris M 07-01-2002 05:57 PM

So...

Can anyone help?

Satan

69-FLy-gUy 07-07-2002 07:33 AM

Firefly?

69-FLy-gUy 07-08-2002 02:53 AM

I got it to work!!!!!

Velocd 07-16-2002 10:34 PM

I've been looking for a hack like this for ages, to bad I didn't see it till now.

I have a neat suggestion for a better hack. :cool: Allow moderators and admins to use a comment syntax, that would allow all text after // or between the /* */ to be invisible but only visible to moderators and admins. This would be more helpful, because if an admin/moderator wanted to edit someones post putting comments inside of it, they could! Or if an admin/moderator wanted to mock somebody's post by filling it with comments throughout, they could! ;)

How about it Firefly, pweeease :)

Admin 07-17-2002 12:57 PM

Good idea but it would be be harder for mods to notice which text is hidden and which isn't, and they might quote it in public.

I think the current version is pretty good. :)


All times are GMT. The time now is 04:11 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.01560 seconds
  • Memory Usage 1,778KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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