Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Details »»

Version: , by tubedogg tubedogg is offline
Developer Last Online: Dec 2016 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 09-01-2001 Last Update: Never Installs: 32
 
No support by the author.

I have updated this hack. It now hides hidden posts during replying, when they are shown below the newreply screen for review.

See the upgrade instructions below.

-------------------------------

Just for the record this IS NOT Lockdown. This allows the user to select an option when posting/editing a post that will make his post display a message that it is hidden, and to view it, click here. 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.

Idea by amykhar.

Screenshot is here.

For version: 2.0.3

Files needed: install_hiddenposts.php

Files to edit: newthread.php, newreply.php, editpost.php, showthread.php, admin/functions.php

Templates to edit/create: newthread, newreply, editpost, postbit_hidden

Instructions are in the zip in a file named INSTALL.

Upgrading Instructions: To upgrade from the previous version of this hack (which didn't hide posts when replying), do the following:
In newreply.php, find
PHP Code:
          if ($ignore[$post[userid]]) {
            
$reviewmessage $ignoreduser
Right below that, add
PHP Code:
          } elseif ($post[hidden]) {
            eval(
"\$hiddenpost = \"".gettemplate("threadreviewbit_hidden")."\";");
            
$reviewmessage $hiddenpost
Then find
PHP Code:
        post.pagetext,post.allowsmilie,post.userid FROM post 
and replace that with
PHP Code:
        post.pagetext,post.allowsmilie,post.userid,post.hidden FROM post 
And that's it.

Please DO NOT email, PM, IM, or otherwise contact me off this board about this hack. Post in this thread.

Feedback appreciated. Enjoy!

This hack is ?2001 Kevin Schumacher and may not be redistributed, edited or not, without this copyright notice attached.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 09-03-2001, 09:18 PM
dxb's Avatar
dxb dxb is offline
 
Join Date: Oct 2001
Posts: 120
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think Kevin it's time to update your signature with another well done hack
Reply With Quote
  #13  
Old 09-03-2001, 10:30 PM
maverick1236 maverick1236 is offline
 
Join Date: Oct 2001
Location: NY
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!!
Reply With Quote
  #14  
Old 09-03-2001, 11:20 PM
tubedogg's Avatar
tubedogg tubedogg is offline
 
Join Date: Oct 2001
Location: Medina, OH
Posts: 785
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What didn't work about it? Did you make all the changes to the files? And create a new post marked as "hidden"?
Reply With Quote
  #15  
Old 09-03-2001, 11:22 PM
maverick1236 maverick1236 is offline
 
Join Date: Oct 2001
Location: NY
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

and it just came out as a regular post
Reply With Quote
  #16  
Old 09-03-2001, 11:39 PM
tubedogg's Avatar
tubedogg tubedogg is offline
 
Join Date: Oct 2001
Location: Medina, OH
Posts: 785
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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")."\";");
    } 
Reply With Quote
  #17  
Old 09-04-2001, 12:59 AM
tubedogg's Avatar
tubedogg tubedogg is offline
 
Join Date: Oct 2001
Location: Medina, OH
Posts: 785
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #18  
Old 09-04-2001, 01:44 AM
theflow theflow is offline
 
Join Date: Aug 2002
Location: San Francisco
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #19  
Old 09-04-2001, 02:37 AM
M ²
Guest
 
Posts: n/a
Default

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.
Reply With Quote
  #20  
Old 09-04-2001, 02:37 AM
maverick1236 maverick1236 is offline
 
Join Date: Oct 2001
Location: NY
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ill try this tomorrow and let ya know!!
Reply With Quote
  #21  
Old 09-04-2001, 05:14 AM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:34 PM.


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.04692 seconds
  • Memory Usage 2,319KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete