![]() |
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:
PHP Code:
PHP Code:
PHP Code:
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. |
busy bee huh :)
|
Do you have a demo? I'm not exactly sure what this does.
|
No demo but there's a screenshot I just added to the first post.
|
i think is same to ubb hack too....
Great...~~ |
I did a similar thing, only it's a lot simpler. Not quite as fancy...but I think the simpleness of it makes it just as good.
All it is is a custom vB Code tag called Spoiler. The vB Code tag is spoiler, the vB Code replacement is PHP Code:
Quote:
Note that this requires you to place this bit of code inside the style section of the Head Insert on your styles (same thing as the headinclude template): PHP Code:
|
I am not sure if this is just me but I installed it and the hidden post shows that message, but when I click on the link to view the actual message that is hidden I get the warning message again ???
|
Looks great. I just installed it!
|
Thanx man ill give it a shot :P
|
this hack after the install....
need do sth for active !? coz my case is no change....:confused: |
I think Kevin it's time to update your signature with another well done hack :)
|
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!!:):) |
What didn't work about it? Did you make all the changes to the files? And create a new post marked as "hidden"?
|
and it just came out as a regular post
|
Most importantly, is this in admin/functions.php ?
PHP Code:
|
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:
PHP Code:
|
Quote:
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 :) |
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.
|
ill try this tomorrow and let ya know!!
|
Quote:
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. :) |
s'ok JJR :)
Squashed another bug folks. Involving editpost.php... Find $signature=iif($signature=="yes",1,0); Add right below it $hidden=iif($hidden=="yes",1,0); Then find PHP Code:
PHP Code:
|
Works like a charm (at least for new posts, haven't fully tested edited posts and replies yet)
THANK YOU Kevin :) Amy |
after install find some problem~~
Database error in vBulletin: Invalid SQL: INSERT INTO post (postid,threadid,title,username,userid,dateline,at tachmentid,pagetext,allowsmilie,showsignature,ipad dress,iconid,visible,hidden) VALUES (NULL,'16','[ ???? ]???Ф@?|?s?}?x??','squawell','1','999881856','0' ,'VWEVWEV','1','1','127.0.0.1','0','1','1') mysql error: mysql error number: 0 Date: Saturday 08th of September 2001 12:57:36 AM Script: /vbb203/newthread.php Referer: http://localhost/vbb203/newthread.ph...read&forumid=4 what's wrong??who can tell me??pls~~~ |
Dang, I can't believe someone made this...I run a movie forum site, so a [spoiler] tag is becoming a must. I'll probably write my own version of it though, which can give users the option to automatically display spoilers anyway, have them show up in a JS alert, or have them show up in a popup window...or something. :)
|
One of my users just noticed a slight hitch in the hack. When hit reply, all of the posts, hidden and not, are displayed down below.
I am going to poke around and see if I can fix it, but it might take a while. :D Amy |
I noticed that yesterday too. Shouldn't be too hard to fix...will work on it and release a new version probably by Tuesday.
|
OK all fixed up. See the first post. :)
|
Way cool :)
Amy |
great hack thanks matey apart from a error on the instructions:
Quote:
whereas ur not sposed to add the code below your sposed to replace it with it. i know its summet n nothin thought id just let ya know n e ways keep up the good work matey |
tubedogg master:
i download your new file but it still no work in my forum!! can you help me~~i send need to edit php file to you can you help me to edit those php file ??please~~~ i already fail too much time~~~ if you won't !! that's alright and sorry bother you too much time! |
The script works great when i post a new thread but when i try to post a new reply it comes up with this error:
Database error in vBulletin: Invalid SQL: SELECT IF(post.userid=0,post.username,user.username) AS username, post.pagetext,post.allowsmilie,post.userid FROM post post.pagetext,post.allowsmilie,post.userid,post.hi dden FROM post LEFT JOIN user ON user.userid=post.userid WHERE post.visible=1 AND post.threadid='2' ORDER BY dateline DESC mysql error: You have an error in your SQL syntax near '.pagetext,post.allowsmilie,post.userid,post.hidde n FROM post LEFT JOIN u' at line 4 mysql error number: 1064 Any ideas on how to fix it ? |
Find
post.pagetext,post.allowsmilie,post.userid FROM post and delete that whole line. The instructions are fixed, sorry :( |
works like a charm now :cool:
excellent hack :) |
What about allowing a user to make only part of the post hidden, inside a [hidden] tag or someting.
If you can't do that, could there be an option for the user to specify why they hid the post? |
Nice hack, very useful for the anime forum that I help on.
|
Ok, the users gave me this idea, like when you select the option to use a poll, have it take you to another page where you can specify what is in the post, like what the spoiler is about, so you can specify the reason the post it hidden in detail.
|
This person has specified this post as Hidden. It may contain some type of spoiler or less-than-family-friendly language, among other things. To view this post click [here]
when i click the "here" link, i get another window which says... This person has specified this post as Hidden. It may contain some type of spoiler or less-than-family-friendly language, among other things. To view this post click [here] the same window!!lol any ideas? |
^bump^
|
^bump^
|
i have not installed it all all. how do i install it from scratch? your direction in the first post are for upgrade instructions? are there any instructions for 1st time installation of this hack?
thanks |
All times are GMT. The time now is 03:51 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:
|