vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Hidden Posts (https://vborg.vbsupport.ru/showthread.php?t=27179)

dxb 09-03-2001 09:18 PM

I think Kevin it's time to update your signature with another well done hack :)

maverick1236 09-03-2001 10:30 PM

i tried tubedoggs way-and although i got no errors...
it just didnt work

i would like to try JJR512's way, but i simply am not sure how to do it-ive never messed around with replacement variables

could someone be kind enough to write a VERY detailed way to do this-so i could give it a try-it would be much appreciated!!:):)

tubedogg 09-03-2001 11:20 PM

What didn't work about it? Did you make all the changes to the files? And create a new post marked as "hidden"?

maverick1236 09-03-2001 11:22 PM

and it just came out as a regular post

tubedogg 09-03-2001 11:39 PM

Most importantly, is this in admin/functions.php ?

PHP Code:

    if ($ignore[$post[userid]]) {
        eval(
"\$retval = \"".gettemplate("postbit_ignore")."\";");
    } elseif (
$hidden==1) {
        eval(
"\$retval = \"".gettemplate("postbit_userhidden")."\";");
    } else {
        eval(
"\$retval = \"".gettemplate("postbit")."\";");
    } 


tubedogg 09-04-2001 12:59 AM

It seems I messed up the directions a bit...hmm...well not exactly, but the thing I have you searching for in showthread.php actually appears twice, and it needs to go in the second place, not the first.

So here goes:
In showthread.php, find
PHP Code:

    $postdone[$post[postid]]=1;
  } 

and add right below it
PHP Code:

  if ($post[hidden]==1) {
      
$hidden=1;
  } else {
      
$hidden=0;
  } 

It should now work. I've updated the installer with this change.

theflow 09-04-2001 01:44 AM

Quote:

Originally posted by tubedogg
It's great for spoilers, off-color language, or anything else that you would want the viewer to make a conscious decision to view it.
I think this is a great feature -- expecially for movie discussions; good job. Kevin, correct me if I'm wrong, but this is an all-or-nothing option for any given post, correct? Did you consider an option that enables you to write a "public" portion of a post, then select another portion of the post to be treated as "hidden"? In which case in the post display, at the point where you encounter the hidden marker, your warning message appears, requiring you to click to see the rest?

I also tried JJR512's "blackout & highlight" scheme -- and it is a great idea and does accomplish the basic task of blockout, then requiring an active choice to display. Very cool. Nothing wrong with it at all.

For me, personally, I do think a click-through is a more certain form of protection than the active-choice highlight scheme. (I've been known to do cntrl-A at times, unintentionally, due to 2-finger hunt & peck clumsiness, but it's pretty far-fetched to worry about that :)

M ² 09-04-2001 02:37 AM

When someone quotes a hidden post, shouldn't the post default to hidden? A minor thing, but there are rude people out there that would do something like this not thinking they're giving it away for everyone else.

maverick1236 09-04-2001 02:37 AM

ill try this tomorrow and let ya know!!

JJR512 09-04-2001 05:14 AM

Quote:

Originally posted by Maverick1236
i tried tubedoggs way-and although i got no errors...
it just didnt work

i would like to try JJR512's way, but i simply am not sure how to do it-ive never messed around with replacement variables

could someone be kind enough to write a VERY detailed way to do this-so i could give it a try-it would be much appreciated!!:):)

I posted about it in a thread: http://www.vbulletin.com/forum/showt...threadid=16306

If anyone has any other questions or comments about my thing, I think it would be only fair to Tubedogg if you posted them in that thread. I didn't mean to steal Tubedogg's thread; sorry, dude. :)


All times are GMT. The time now is 01:47 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.01170 seconds
  • Memory Usage 1,743KB
  • 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
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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