PDA

View Full Version : Hidden Posts


tubedogg
09-01-2001, 10:00 PM
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.hi dden 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
09-02-2001, 07:42 PM
busy bee huh :)

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

tubedogg
09-02-2001, 08:36 PM
No demo but there's a screenshot I just added to the first post.

Kajiro
09-03-2001, 12:12 AM
i think is same to ubb hack too....
Great...~~

JJR512
09-03-2001, 01:24 AM
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
09-03-2001, 02:36 AM
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
09-03-2001, 04:39 AM
Looks great. I just installed it!

tweak
09-03-2001, 06:29 AM
Thanx man ill give it a shot :P

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

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 ?

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
$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
09-04-2001, 01:44 AM
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
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
09-04-2001, 09:05 AM
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='$signa ture',iconid='$iconid'$editedbysql$attachmentsql WHERE postid='$postid'");and replace it with $DB_site->query("UPDATE post SET title='".addslashes(htmlspecialchars($title))."',pagetext='".addslashes($message)."',allowsmilie='$allowsmilie',showsignature='$signa ture',iconid='$iconid', hidden='$hidden'$editedbysql$attachmentsql WHERE postid='$postid'");

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

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

THANK YOU Kevin :)

Amy

squawell
09-07-2001, 03:53 PM
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.php?s=&action=newthread&forumid=4

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

TWTCommish
09-07-2001, 07:03 PM
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
09-08-2001, 08:36 PM
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-08-2001, 11:14 PM
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
09-11-2001, 11:01 AM
OK all fixed up. See the first post. :)

amykhar
09-12-2001, 06:00 PM
Way cool :)

Amy

butty
09-12-2001, 10:10 PM
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.hi dden 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
09-14-2001, 03:16 PM
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
09-14-2001, 08:48 PM
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 ?

tubedogg
09-14-2001, 10:59 PM
Find
post.pagetext,post.allowsmilie,post.userid FROM post
and delete that whole line.

The instructions are fixed, sorry :(

Goldfinger
09-14-2001, 11:54 PM
works like a charm now :cool:

excellent hack :)

DarkReaper
09-15-2001, 06:01 PM
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
09-19-2001, 04:01 AM
Nice hack, very useful for the anime forum that I help on.

Dakota
09-20-2001, 04:49 AM
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
09-21-2001, 12:22 AM
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
09-22-2001, 01:26 PM
^bump^

maverick1236
09-24-2001, 10:22 PM
^bump^

slice
09-25-2001, 10:56 AM
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
09-25-2001, 01:33 PM
Installation instructions are in the zip file.

Amy

tubedogg
09-25-2001, 04:37 PM
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
09-28-2001, 11:24 AM
Great hack, tank you tubedogg!
Works great, and I love your installer ;)

Kengan
10-02-2001, 10:38 PM
Nice Hack man ! I will try it later !!

;)

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

thx!!!!

tubedogg
10-03-2001, 02:15 AM
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
10-11-2001, 03:38 AM
SOLID HACK!!!!

YourHostSucks
10-11-2001, 06:16 AM
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
10-11-2001, 07:32 AM
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
10-11-2001, 12:56 PM
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
11-01-2001, 11:31 PM
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
11-06-2001, 01:16 AM
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,attach ment.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,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 = '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
11-12-2001, 12:18 PM
Maybe an addition to this hack? i want to know who view this hidden text, is that possible?

butty
11-12-2001, 11:27 PM
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
11-13-2001, 12:06 PM
Butty, it worked fine for me on 2.2 with no modifications necessary.

What is it doing wrong on your board?

Amy

ForYou
12-16-2001, 10:30 PM
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/showthread.php?action=showpost&postid=44
Referer:



please help me

Barret
12-27-2001, 04:32 AM
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
12-27-2001, 01:54 PM
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
12-31-2001, 05:34 PM
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
12-31-2001, 06:34 PM
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-01-2002, 01:56 PM
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
01-02-2002, 05:28 AM
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
01-03-2002, 12:37 AM
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/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
01-22-2002, 09:13 AM
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
01-25-2002, 04:38 PM
: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:

mas404
01-29-2002, 10:49 AM
:cry: :cry:

no support??

PhotoGenie
01-30-2002, 04:34 PM
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
03-18-2002, 08:52 AM
anybody??

Tim Wheatley
03-18-2002, 11:02 AM
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
03-24-2002, 09:09 PM
ummmmmmm does this hack work on 2.2.4 ????

Be nice to know ?!?!?!?

mADmAX`
04-27-2002, 06:14 PM
Does this work with 2.2.5?

aspire007
06-21-2002, 05:28 PM
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
03-14-2003, 04:35 PM
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
03-14-2003, 05:46 PM
I gonna reinstall this on v2.2.9...i'll let ya all know what happen.

amykhar
03-14-2003, 05:55 PM
It works fine. Been using it on every version since it was released.