The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Quote w/Reply Button Not Show Up In Hidden Replies
I just installed Chen's Hidden Reply Hack and i want to be able to have the Quote w/Reply button not show up on any posts that are hidden. Is there an easy way to do this? I know I need to make a new template with the quote button in it, but I'm not sure where to add the code to do this. Can anyone please steer me in the right direction?
|
#2
|
||||
|
||||
well, you can easyly use logicians conditional in templates hack, for such mods it's perfect
if you don't want to use it, you have to hack the getpostbit function in functions.php |
#3
|
||||
|
||||
Ok, I have Logician's hack installed but for the life of me I can seem to get the right condition to make it work. I have tried "post.visible=1", "$hiddenreply==1", "visible=1", etc. What condition can I use to make it work?
|
#4
|
||||
|
||||
$post[visible]==1
|
#5
|
||||
|
||||
Quote:
Code:
$post[visible]!=1 Thank you for getting me to try the conditional templates. I think I am going to have a blast now. There's a lot of hacking of php files I can save doing it this way. |
#6
|
||||
|
||||
==1 means is equal to 1
!=1 means is NOT equal to 1 $post[visible]=1 means set $post[visible]=1 which would be true always |
#7
|
||||
|
||||
Quote:
Code:
$post[visible]!=1 |
#8
|
||||
|
||||
yes right, normally it should have turned it on for hidden posts but don't show up for normal ones...
|
#9
|
||||
|
||||
It turned it off for all posts. Strange. I'll have to play with it and see why it does that. In the meantime, the code you gave me does the job. Thank you again.
|
#10
|
||||
|
||||
you're welcome as always hmm, maybe it's a bug in pal Logicians hack. You might post it into the supportthread so he'll read about |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|