vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Quote w/Reply Button Not Show Up In Hidden Replies (https://vborg.vbsupport.ru/showthread.php?t=46824)

Boofo 12-20-2002 02:28 AM

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? :)

Xenon 12-20-2002 04:05 PM

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

Boofo 12-20-2002 04:41 PM

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?

Xenon 12-20-2002 07:20 PM

$post[visible]==1

Boofo 12-20-2002 08:36 PM

Quote:

Originally posted by Xenon
$post[visible]==1
Thank you, sir, it worked great! But now I am confused. Why wouldn't this work?

Code:

$post[visible]!=1
And what does the ==1 mean?

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. :)

Xenon 12-20-2002 09:24 PM

==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 :)

Boofo 12-20-2002 09:31 PM

Quote:

Originally posted by Xenon
==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 :)

Ok, that makes sense. But why didn't this work then?

Code:

$post[visible]!=1
Oh, ok, I see, I think. This code turned it off for everyone. It made it think that all posts were hidden, but it should have worked backwards, shouldn't it? It should have turned on the quote button for hidden replies and off for normal replies. Or am I missing something elementary here? :)

Xenon 12-20-2002 09:45 PM

yes right, normally it should have turned it on for hidden posts but don't show up for normal ones...

Boofo 12-20-2002 10:28 PM

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. :)

Xenon 12-20-2002 10:30 PM

:)
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
  • Page Generation 0.01043 seconds
  • Memory Usage 1,728KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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