Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

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
  #62  
Old 01-01-2002, 01:56 PM
Barret Barret is offline
 
Join Date: Nov 2001
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just followed the instructions is all. Mind ya I have installed
tons of hacks "and even modified some" so maybe it is my version 2.03 or mysql "which I doubt" but I`ll work on scripting it later.
Reply With Quote
  #63  
Old 01-02-2002, 05:28 AM
feldon23's Avatar
feldon23 feldon23 is offline
 
Join Date: Oct 2001
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

JJR512 gave info above about how to add a Spoiler code, but it was pretty vague (at least to me, I'm no vB guru yet). Here's step-by-step instructions:

1. Go to the Admin Control Panel.

2. Click 'Modify' under the 'Styles' item on the left navigation bar.

3. Click Fonts/Colors/etc.

4. In the Head Insert box, scroll down to the bottom and insert this line above </style>

.spoiler {color: white; background: white}

5. Click Save Changes at the bottom of the window.

6. Click "Add" under the 'Custom BB codes' item on the left navigation bar.

7. Fill in these entries:

vB Code tag: spoiler

vB Code replacement: <font class=spoiler>{param}</font>

vB Code example: Highlight this text to see the answer: [spoiler]Luke Skywalker is Darth Vader's son.[/spoiler]

vB Code explanation: The [spoiler] tag allows you to place text in your message that is unreadable, unless someone highlites it. This makes viewing the text a deliberate effort. This is for posting messages about movies or other things where you might not wish to give away plot points to those that haven't seen it yet.

Use { option } ? Yes ( ) No (*)

8. Click Save.

For a fancier vB Code replacement, put this:

<BLOCKQUOTE><FONT face="verdana,arial,helvetica" size="1" ><B>Spoiler Alert!</B> (highlight to read)</FONT><HR><FONT class="spoiler">{param}</FONT><HR></BLOCKQUOTE>
Reply With Quote
  #64  
Old 01-03-2002, 12:37 AM
LangTuDaTinh LangTuDaTinh is offline
 
Join Date: Dec 2001
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by ForYou
Get Error ..any idea for help //

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

Database error in vBulletin 2.2.1:

Invalid SQL:
SELECT
post.*,post.username AS postusername,post.ipaddress AS ip,user.*,userfield.*,icon.title as icontitle,icon.iconpath,
attachment.attachmentid,attachment.filename,attach ment.visible AS attachmentvisible,attachment.counter
,avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar,customavatar.dateline AS avatardateline
FROM post
LEFT JOIN icon ON icon.iconid=post.iconid
LEFT JOIN user ON user.userid=post.userid,ratetotal,ratenum,allowrat e
LEFT JOIN userfield ON userfield.userid=user.userid
LEFT JOIN avatar ON avatar.avatarid=user.avatarid
LEFT JOIN customavatar ON customavatar.userid=user.userid
LEFT JOIN attachment ON attachment.attachmentid=post.attachmentid
WHERE post.postid = '44'

mysql error: Table 'vb2.ratetotal' doesn't exist

mysql error number: 1146

Date: Monday 17th of December 2001 02:12:21 AM
Script: http://localhost/vb2.1/vb2.1/showthr...post&postid=44
Referer:



please help me

same problem as above, i installed topics feature... Please tell me how to fix it if i installed topics feature from PHPportal..Thanks
Reply With Quote
  #65  
Old 01-22-2002, 09:13 AM
mas404 mas404 is offline
 
Join Date: Nov 2001
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

from long time i was tring to install this hack but I face many problem .

and now i have new one it is like ( foryou) & (LangTuDaTinh)

and we are waiting for the anser from any body to help us >

please .
Reply With Quote
  #66  
Old 01-25-2002, 04:38 PM
mas404 mas404 is offline
 
Join Date: Nov 2001
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

:noid: :noid: :noid: :noid: :noid:
i am wating for help any body please ..

Database error in vBulletin: Invalid SQL:
SELECT

post.*,post.username AS postusername,post.ipaddress AS ip,user.*,userfield.*,icon.title as icontitle,icon.iconpath,
attachment.attachmentid,attachment.filename,attach ment.visible AS attachmentvisible,attachment.counter
,avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar,customavatar.dateline AS avatardateline
FROM post
LEFT JOIN icon ON icon.iconid=post.iconid
LEFT JOIN user ON user.userid=post.userid,ratetotal,ratenum,allowrat e
LEFT JOIN userfield ON userfield.userid=user.userid
LEFT JOIN avatar ON avatar.avatarid=user.avatarid
LEFT JOIN customavatar ON customavatar.userid=user.userid
LEFT JOIN attachment ON attachment.attachmentid=post.attachmentid

WHERE post.postid = '21226'

mysql error: Table '7loocom_as :noid: .ratetotal' doesn't exist
mysql error number: 1146
Date: Friday 25th of January 2002 01:39:01 PM
Script: /vb/showthread.php?s=&action=showpost&postid=21226
Referer:
Reply With Quote
  #67  
Old 01-29-2002, 10:49 AM
mas404 mas404 is offline
 
Join Date: Nov 2001
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

:cry: :cry:

no support??
Reply With Quote
  #68  
Old 01-30-2002, 04:34 PM
PhotoGenie PhotoGenie is offline
 
Join Date: Jan 2002
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a great hack.. Only problem Im having after installing is when replying to a message and attaching an image the file uploads and everything post but it never redirects or changes screens. It stays on the page where you insert your text. Anybody know what the problem might be? This is without checking the hidden option. Other than that everything is working great!! Thanks
Reply With Quote
  #69  
Old 03-18-2002, 08:52 AM
mas404 mas404 is offline
 
Join Date: Nov 2001
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anybody??
Reply With Quote
  #70  
Old 03-18-2002, 11:02 AM
Tim Wheatley's Avatar
Tim Wheatley Tim Wheatley is offline
 
Join Date: Nov 2001
Location: England
Posts: 489
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can someone with some knowledge please tell me if I'm correct in thinking that instead of:

functions.php

Code:
if (!$ignore[$post[userid]]) {
eval("\$retval = \"".gettemplate("postbit")."\";");
} else {
eval("\$retval = \"".gettemplate("postbit_ignore")."\";");
}
replace with

Code:
if ($ignore[$post[userid]]) {
		eval("\$retval = \"".gettemplate("postbit_ignore")."\";");
	} elseif ($hidden==1) {
		eval("\$retval = \"".gettemplate("postbit_userhidden")."\";");
	} else {
		eval("\$retval = \"".gettemplate("postbit")."\";");
	}
Because I have 2.2.4 I should change

Code:
if (!$ignore[$post[userid]]) {
eval("\$retval = \"".gettemplate("postbit")."\";");
} else {
eval("\$retval = \"".gettemplate("postbit_ignore")."\";");
}
to be replaced with...

Code:
if ($ignore[$post[userid]]) {
		eval("\$retval = \"".gettemplate("postbit_ignore")."\";");
	} elseif ($hidden==1) {
		eval("\$retval = \"".gettemplate("postbit_userhidden")."\";");
	} else {
		eval("\$retval = \"".gettemplate($templatename)."\";");
	}
Reply With Quote
  #71  
Old 03-24-2002, 09:09 PM
datatec datatec is offline
 
Join Date: Jan 2002
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ummmmmmm does this hack work on 2.2.4 ????

Be nice to know ?!?!?!?
Reply With Quote
Reply


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 02:38 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.06399 seconds
  • Memory Usage 2,324KB
  • 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
  • (4)bbcode_code
  • (4)bbcode_php
  • (1)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
  • (11)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