![]() |
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? :)
|
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 |
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?
|
$post[visible]==1
|
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. :) |
==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 :) |
Quote:
Code:
$post[visible]!=1 |
yes right, normally it should have turned it on for hidden posts but don't show up for normal ones...
|
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. :)
|
:)
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 |
All times are GMT. The time now is 04:54 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:
|