The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
[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) { $replacer = "You can not see the content"; $this->post['message'] = str_replace($post[message],$replacer,$this->post['message']); } |
#3
|
||||
|
||||
i want hide full post (content+posterusername+all user info) without any message
|
#4
|
||||
|
||||
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?
|
#5
|
||||
|
||||
Quote:
only userid 1 will not see postid 35 but he still see postid 1,2,3...elc 33,34,36...elc |
#6
|
||||
|
||||
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> |
#7
|
||||
|
||||
thanx , it's working well :up: , can i do the same code by a plugin .. becouse if i used your code i must edit every style template [postbit & postbit_legacy]
|
#9
|
||||
|
||||
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:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|