![]() |
[SOLVED] hide the full post for a specific post for a specific user
HELLO ,
I Use this code to hide the content of post for a specific post for a specific member , And works well . but if I want to hide the full post ,What condition should I use? HOOK : postbit_display_complete Code:
if ($vbulletin->userinfo['userid']==1 AND $this->post['postid']==35) |
Doesn't that hide the full post (postid 35)? Or do you mean you don't want to show that message ("You can not see the content") either?
|
Quote:
|
Ah, that would be a bit more difficult especially since you will have a skip in postids (say, go from 3 to 5 instead of 3 to 4). Do you mind if the postids are not sequential?
|
Quote:
only userid 1 will not see postid 35 but he still see postid 1,2,3...elc 33,34,36...elc |
You may want to just put a condition around the whole postbit & postbit_legacy template.
<if condition="!($post[postid]==35 AND $bbuserinfo[userid]==1)"> all the postbit code </if> |
Quote:
|
I would guess so, but I don't know the plugin code off the top of my head. Perhaps someone else will have it.
|
Quote:
you have a very good help here :up: thank you anyway --------------- Added [DATE]1417103600[/DATE] at [TIME]1417103600[/TIME] --------------- okay , Simple solution , if you want hide a post by a plugin Thanks again Lynne HOOK : postbit_display_complete PHP Code:
|
All times are GMT. The time now is 09:58 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|