PDA

View Full Version : Hidden Posts


tubedogg
02 Sep 2001, 21:32
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 (http://www.bigdoggslair.com/hiddenposts.jpg).

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
if ($ignore[$post[userid]]) {
$reviewmessage = $ignoreduser;Right below that, add } elseif ($post[hidden]) {
eval("\$hiddenpost = \"".gettemplate("threadreviewbit_hidden")."\";");
$reviewmessage = $hiddenpost;Then find post.pagetext,post.allowsmilie,post.userid FROM postand replace that with post.pagetext,post.allowsmilie,post.userid,post.hidden FROM postAnd 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.

eva2000
02 Sep 2001, 21:42
busy bee huh :)

badmeetsevil-
02 Sep 2001, 21:55
Do you have a demo? I'm not exactly sure what this does.

tubedogg
02 Sep 2001, 22:36
No demo but there's a screenshot I just added to the first post.

Kajiro
03 Sep 2001, 02:12
i think is same to ubb hack too....
Great...~~

JJR512
03 Sep 2001, 03:24
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 <font class=spoiler>{param}</font> ...the vB Code explanation is 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. ...and the Use { option }? is No.

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): .spoiler {color: black; background: black}

And here is a demo: http://www.jjr512.com/forums/showthread.php?s=&threadid=22710

Matt*is*thick
03 Sep 2001, 04:36
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 ???

MrLister
03 Sep 2001, 06:39
Looks great. I just installed it!

tweak
03 Sep 2001, 08:29
Thanx man ill give it a shot :P

Kajiro
03 Sep 2001, 09:58
this hack after the install....
need do sth for active !?
coz my case is no change....:confused:

dxb
03 Sep 2001, 23:18
I think Kevin it's time to update your signature with another well done hack :)

maverick1236
04 Sep 2001, 00:30
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
04 Sep 2001, 01:20
What didn't work about it? Did you make all the changes to the files? And create a new post marked as "hidden"?

maverick1236
04 Sep 2001, 01:22
and it just came out as a regular post

tubedogg
04 Sep 2001, 01:39
Most importantly, is this in admin/functions.php ?

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

tubedogg
04 Sep 2001, 02:59
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
$postdone[$post[postid]]=1;
}
and add right below it
if ($post[hidden]==1) {
$hidden=1;
} else {
$hidden=0;
}
It should now work. I've updated the installer with this change.

theflow
04 Sep 2001, 03:44
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
04 Sep 2001, 04:37
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
04 Sep 2001, 04:37
ill try this tomorrow and let ya know!!

JJR512
04 Sep 2001, 07:14
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/showthread.php?s=&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. :)

tubedogg
04 Sep 2001, 11:05
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 $DB_site->query("UPDATE post SET title='".addslashes(htmlspecialchars($title))."',pagetext='".addslashes($message)."',allowsmilie='$allowsmilie',showsignature='$signature',iconid='$iconid'$editedb ysql$attachmentsql WHERE postid='$postid'");and replace it with $DB_site->query("UPDATE post SET title='".addslashes(htmlspecialchars($title))."',pagetext='".addslashes($message)."',allowsmilie='$allowsmilie',showsignature='$signature',iconid='$iconid', hidden='$hidden'$editedbysql$attachmentsql WHERE postid='$postid'");

and reupload editpost.php. Should now work. :o

amykhar
06 Sep 2001, 16:58
Works like a charm (at least for new posts, haven't fully tested edited posts and replies yet)

THANK YOU Kevin :)

Amy

squawell
07 Sep 2001, 17:53
after install find some problem~~

Database error in vBulletin: Invalid SQL: INSERT INTO post (postid,threadid,title,username,userid,dateline,attachmentid,pagetext,allowsmili e,showsignature,ipaddress,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.php?s=&action=newthread&forumid=4

what's wrong??who can tell me??pls~~~

TWTCommish
07 Sep 2001, 21:03
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. :)

amykhar
08 Sep 2001, 22:36
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

tubedogg
09 Sep 2001, 01:14
I noticed that yesterday too. Shouldn't be too hard to fix...will work on it and release a new version probably by Tuesday.

tubedogg
11 Sep 2001, 13:01
OK all fixed up. See the first post. :)

amykhar
12 Sep 2001, 20:00
Way cool :)

Amy

butty
13 Sep 2001, 00:10
great hack thanks matey apart from a error on the instructions:



Step 5 of 5 Find:


post.pagetext,post.allowsmilie,post.userid FROM post


Right below that, add

post.pagetext,post.allowsmilie,post.userid,post.hidden FROM


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

squawell
14 Sep 2001, 17:16
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!

Goldfinger
14 Sep 2001, 22:48
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.hidden 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.hidden FROM post
LEFT JOIN u' at line 4
mysql error number: 1064

Any ideas on how to fix it ?

tubedogg
15 Sep 2001, 00:59
Find
post.pagetext,post.allowsmilie,post.userid FROM post
and delete that whole line.

The instructions are fixed, sorry :(

Goldfinger
15 Sep 2001, 01:54
works like a charm now :cool:

excellent hack :)

DarkReaper
15 Sep 2001, 20:01
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?

Dakota
19 Sep 2001, 06:01
Nice hack, very useful for the anime forum that I help on.

Dakota
20 Sep 2001, 06:49
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.

maverick1236
21 Sep 2001, 02:22
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?

maverick1236
22 Sep 2001, 15:26
^bump^

maverick1236
25 Sep 2001, 00:22
^bump^

slice
25 Sep 2001, 12:56
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

amykhar
25 Sep 2001, 15:33
Installation instructions are in the zip file.

Amy

tubedogg
25 Sep 2001, 18:37
Instructions are in the zip in a file named INSTALL.

slice, please enter your license information in your profile (http://www.vbulletin.com/forum/member.php?action=editprofile). See the link in my sig for more info. Thanks!

Bender
28 Sep 2001, 13:24
Great hack, tank you tubedogg!
Works great, and I love your installer ;)

Kengan
03 Oct 2001, 00:38
Nice Hack man ! I will try it later !!

;)

Darrenwu
03 Oct 2001, 03:35
is it possible to let it work with V2.01. i use V2.01.

thx!!!!

tubedogg
03 Oct 2001, 04:15
Please enter your license information in your profile (http://www.vbulletin.com/forum/member.php?action=editprofile). See the link in my sig for more info. Thanks!

You will need to upgrade to 2.0.3 to use this hack.

hacker
11 Oct 2001, 05:38
SOLID HACK!!!!

YourHostSucks
11 Oct 2001, 08:16
Yes, nice hack.. *but*

It may need some modification....

It is messing up my forum display.. http://forums.yourhostsucks.com/showthread.php?&threadid=37
(I am sure I just have to edit the postbit_hiddenpost or what it is)
But maybe there is a way to make this more easy?


But it seems to be working fine otherwise..
Thanks!

hacker
11 Oct 2001, 09:32
This is a really COOL hack. Got in installed without any hitches. One problem though, if one quotes the thread and replies, the hidden post is displayed. The same message should actually remain.

hacker
11 Oct 2001, 14:56
Originally posted by YourHostSucks
Yes, nice hack.. *but*

It may need some modification....

It is messing up my forum display.. http://forums.yourhostsucks.com/showthread.php?&threadid=37
(I am sure I just have to edit the postbit_hiddenpost or what it is)
But maybe there is a way to make this more easy?


But it seems to be working fine otherwise..
Thanks!

You have to edit the postbit_userhidden template to ensure that the look remains consistent with your design.

www.dyne.com/forums

Syphin
02 Nov 2001, 01:31
This hack works great on 2.2.0.. ^^

But a few request/suggestion, Is there a way to make it where

1) Unregistered users cant view them
2) Only specified members can view them
3) Only specified user groups can/or cant view them

That would be awesoem if it could have this stuff... if possible.. lol


-Syphin

GeorgeofCS
06 Nov 2001, 03:16
Syphin how did you get it to work on 2.20 all I get is errors when I try to load it up in 2.20

Invalid SQL:
SELECT
post.*,post.username AS postusername,post.ipaddress AS ip,user.*,userfield.*,icon.title as icontitle,icon.iconpath,
attachment.attachmentid,attachment.filename,attachment.visible AS attachmentvisible,attachment.counter
,avatar.avatarpath, user.avatarrevision > 0 OR 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,allowrate
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 = '35451'

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

mysql error number: 1146

Date: Monday 05th of November 2001 09:50:50 PM
Script: http://www.customerssuck.com/forums/forums/showthread.php3?s=&action=showpost&postid=35451

:confused:

psico
12 Nov 2001, 14:18
Maybe an addition to this hack? i want to know who view this hidden text, is that possible?

butty
13 Nov 2001, 01:27
im havin probs with gettin this 2 work with 2.2.0 aswel, n e body shed n e light on how to get it goin or how ya did it?

thanks

amykhar
13 Nov 2001, 14:06
Butty, it worked fine for me on 2.2 with no modifications necessary.

What is it doing wrong on your board?

Amy

ForYou
17 Dec 2001, 00:30
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,attachment.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,allowrate
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/showthread.php?action=showpost&postid=44
Referer:



please help me

Barret
27 Dec 2001, 06:32
I have tried and tried "well twice actually" and it just won`t work.
Like I told the peeps at the board, of all the hacks I have installed..this is the only one I cannot get to work.
Me wonders why come?
Maybe it`s just that on some servers it won`t work right?
I have 2.03 so any ideas why it doesn`t work?
Please help....

Barret
27 Dec 2001, 15:54
I guess it just wasn`t meant to work for me :(
I just redid it again and it still doesn`t work.
Thanks for the help anyway.
Button look cool though.

Barret
31 Dec 2001, 19:34
I just looked over this and I think the problem is in functions.php.
You can click "hide" all you want but it does not hide anything.
Since this isn`t being called up "postbit_userhidden , I suspect functions.php."
Maybe the new instructions got messed up or whatever but it does not work now.
Guess I was just too late getting the first file.
:(
Would be cool if someone could get a working model of this though. ;)

TheComputerGuy
31 Dec 2001, 20:34
i had it working in 2.2, I just now installed something, and I decided I would take it out..so....you might want to learn how to add the snippet of code as needed

Barret
01 Jan 2002, 15:56
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. :(

feldon23
02 Jan 2002, 07:28
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: Luke Skywalker is Darth Vader's son.

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>

LangTuDaTinh
03 Jan 2002, 02:37
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,attachment.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,allowrate
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/showthread.php?action=showpost&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

mas404
22 Jan 2002, 11:13
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 .

mas404
25 Jan 2002, 18:38
: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,attachment.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,allowrate
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:

mas404
29 Jan 2002, 12:49
:cry: :cry:

no support??

PhotoGenie
30 Jan 2002, 18:34
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

mas404
18 Mar 2002, 10:52
anybody??

Tim Wheatley
18 Mar 2002, 13:02
Can someone with some knowledge please tell me if I'm correct in thinking that instead of:

functions.php

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


replace with

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

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


to be replaced with...

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

datatec
24 Mar 2002, 23:09
ummmmmmm does this hack work on 2.2.4 ????

Be nice to know ?!?!?!?

mADmAX`
27 Apr 2002, 20:14
Does this work with 2.2.5?

aspire007
21 Jun 2002, 19:28
Originally posted by psico
Maybe an addition to this hack? i want to know who view this hidden text, is that possible?


That would be a killer feature :) Id love to see it on here :)

amykhar
14 Mar 2003, 18:35
Curiosity killed the cat, right? My little tweak to this hack makes guests unable to view the hidden post. Only registered members can see what's behind the curtain.

After the hack is installed, in admin/functions.php Find:


} elseif ($hidden==1) {
eval("\$retval = \"".gettemplate("postbit_userhidden")."\";");
}


Replace With:


} elseif ($hidden==1) {
if ($bbuserinfo[userid]==0) {
eval("standarderror(\"".gettemplate("error_nopermission_loggedout")."\");");
} else {
eval("\$retval = \"".gettemplate("postbit_userhidden")."\";");
}

LangTuDaTinh
14 Mar 2003, 19:46
I gonna reinstall this on v2.2.9...i'll let ya all know what happen.

amykhar
14 Mar 2003, 19:55
It works fine. Been using it on every version since it was released.