Log in

View Full Version : Staff can Post hidden Posts


Xenon
05-07-2004, 10:00 PM
If you have installed that Hack by Chen, you will already know what this Hack does.
If not i'll shortly explain: If you install this hack, your staff will be able to post hidden posts, which are just visible by other staffmembers. This can be usefull, if you are not sure, what to do with a thread, and want feedback by the other mods.

I have to say, that this is not an easy hack, so do not install it, if you are not familar with vB hacking, as i won't give much support.
I have put the basic instructions into the Installfile, which does everything needed.
The instructions in the advanced install file, are for those who have already installed this hack, and want to get some more features (like number of new hidden posts in the navbar and such things).

Have fun, we always have ;)

insanctus
05-07-2004, 11:29 PM
Does the post show any different? ~ Will look at the txt in few.

Xenon
05-07-2004, 11:31 PM
Well, i have added the instructions to show up different, but its up to you, how different it will be ;)

Boofo
05-07-2004, 11:52 PM
Great! I've been waiting for this.

When they try to quote a hidden post, it will work like it does here and not quote it right? And can you tell me (in PM maybe) how to add it to the Quick Reply box, too?

Thanks for this, sir. ;)

insanctus
05-08-2004, 12:18 AM
I will use this I just have to think on how I want to make posts look.... and add to quick reply.

/me clicks install

Boofo
05-08-2004, 04:06 AM
I will use this I just have to think on how I want to make posts look.... and add to quick reply.

* insanctus clicks install

Id you get it added to the quick reply and can figure out how to NOT have the quick reply quote a hidden post, please let me know? ;)

infamous41md
05-08-2004, 04:47 AM
cool stuff, took me a min, but cool.

Zachery
05-08-2004, 04:49 AM
Id you get it added to the quick reply and can figure out how to NOT have the quick reply quote a hidden post, please let me know? ;)
You should be able to use the same condition raped around the quote & quick reply buttons ;)

<if condition="$post[visible] == 0 and $thread[threadid] > 0"> </if>

Boofo
05-08-2004, 05:37 AM
You should be able to use the same condition raped around the quote & quick reply buttons ;)

<if condition="$post[visible] == 0 and $thread[threadid] > 0"> </if>

I want to be able to use the quick reply with a hidden post, just not have it quote the hidden post. ;)

Zachery
05-08-2004, 05:51 AM
I want to be able to use the quick reply with a hidden post, just not have it quote the hidden post. ;)
ooo thats abit tricky then O.o''

assassingod
05-08-2004, 06:19 AM
Thanks Stefan. I can use this on my forum:)

@Boofo;
Try adding

<if condition="can_see_hidden()"><br /><label for="cb_hidepost"><input type="checkbox" name="hidepost" value="1" id="cb_hidepost" />Hide Post?.</label></if>

In the Quick Reply template. Not tested though.

Boofo
05-08-2004, 06:35 AM
Thanks Stefan. I can use this on my forum:)

@Boofo;
Try adding

<if condition="can_see_hidden()"><br /><label for="cb_hidepost"><input type="checkbox" name="hidepost" value="1" id="cb_hidepost" />Hide Post?.</label></if>

In the Quick Reply template. Not tested though.

That might work for the checkbox but how do I keep it from quoting a hidden post when you click the quick reply button?

Logician
05-08-2004, 06:52 AM
For people who are not familiar with this hack, I can say that this hack is VERY useful. Especially if you have a large staff. This is definetely one of my favorites hack and IMO a must to have.

assassingod
05-08-2004, 06:57 AM
It's even better with the Search Feature *coughstefandoitcough*

Boofo
05-08-2004, 07:35 AM
For people who are not familiar with this hack, I can say that this hack is VERY useful. Especially if you have a large staff. This is definetely one of my favorites hack and IMO a must to have.

It's indespensable on any board, I think. If I can get the quick reply problem fixed and get it to work in the editpost like it does here, it will be perfect. ;)

insanctus
05-08-2004, 07:38 AM
I tested it , admins like how did you do that, lmao......

I have to admit be very useful.

Tony G
05-08-2004, 09:05 AM
Have to agree with you there. It's perfect for any large-scale forum. Even small-scale ones could benefit. :)

Xenon
05-08-2004, 10:12 AM
:)

I'm glad you all like it.

I may release an more complex addon sometime in the nearer future, sharing more features of this hack, which we have on vb.org, but this would bloat the basic version too much :)

Boofo
05-08-2004, 10:25 AM
:)

I'm glad you all like it.

I may release an more complex addon sometime in the nearer future, sharing more features of this hack, which we have on vb.org, but this would bloat the basic version too much :)

Bring it on! I'd like to see that version. :)

msimplay
05-08-2004, 10:41 AM
Bring it on! I'd like to see that version. :)
me too the basic idea is good but needs a few more features like quick the ability to do it via quick reply

rather than bloat i would say complete :p

Xenon
05-08-2004, 10:50 AM
*gg*

that was the first version which we had on vb.org during a long time, and it fit the needs.

if i would add every single bit to that file, it would be 4 times as big ;)
the ability to do it via qr was already mentioned by Steve.
as said, it's a hack for the more experienced admins, so everyone can add features he thinks he needs :)

assassingod
05-08-2004, 11:05 AM
Yeah my QR trick worked fine.

Boofo
05-08-2004, 11:09 AM
Yeah my QR trick worked fine.Yes, Steve, your quick reply code worked fine. Thank you, sir. ;)

The only thing I think I am missing it the editpost part of it. Unless I missed something somewhere else.

Boofo
05-08-2004, 12:01 PM
I need to ask a quesion about the instructions for this hack. When we look for:

visible = 1

and replace it with:

" . fetch_visible_sql() . "

that should only be done on the post table queries and NOT the thread table queries, right?

And also, I could only find 1 instance of:

post.visible = 1 in the showthread.php. That's all there is for that one, too, right?

Xenon
05-08-2004, 02:52 PM
yes, it's there just once.

and the replacement should just be done in the queries, nowhere else.

i said it's not the easiest hack, that's why i didn't want to release it at first :p

Boofo
05-08-2004, 02:56 PM
yes, it's there just once.

and the replacement should just be done in the queries, nowhere else.

i said it's not the easiest hack, that's why i didn't want to release it at first :p
But not the thread queries, just the post ones, right?

Xenon
05-08-2004, 03:56 PM
it's no hurt to do the thread queries as well.

but it's not really needed :)

neocorteqz
05-08-2004, 04:09 PM
Bring it on! I'd like to see that version. :)As would i. :)

SnowBot
05-09-2004, 04:18 AM
just gonna install this in an hour or so, the full version would be great but i understand why you dont want to rls it. Maybe just to some ppl who can install this without trouble.

I used this on a vb2 board i was admin at along time ago and it was very much needed.

Xenon
05-09-2004, 10:20 AM
well, as i see there are a lot people who want the full version.
ok, i'll release it, when i got the time to write the additional instructions, but it would be a installfile for pro's then ;)

Boofo
05-09-2004, 10:24 AM
Great! I'm looking forward to this one. If you need any help with the install file, let me know. ;)

insanctus
05-09-2004, 10:33 AM
well, as i see there are a lot people who want the full version.
ok, i'll release it, when i got the time to write the additional instructions, but it would be a installfile for pro's then ;)
Pro's ? That leave me out

* insanctus goes away crying........................


* insanctus runs back right fast and snags the code lol

sabret00the
05-09-2004, 10:49 AM
just outta curiosity why would you not just use the mods lounge?

insanctus
05-09-2004, 10:55 AM
just outta curiosity why would you not just use the mods lounge?
This way can talk about people behind their backs in the same room ?

* insanctus laughs

Boofo
05-09-2004, 11:12 AM
just outta curiosity why would you not just use the mods lounge?
Because a lot of of times you want to let a mod know something about a certain post in a thread or a thread itself and it is easier to do it this way instead of having to re-direct them to the thread or post. ;)

gmarik
05-11-2004, 11:03 AM
how much time to install this?

neocorteqz
05-11-2004, 11:21 AM
how much time to install this?
By looking at the file ~ 5 minutes.

For me, maybe 10 Minutes. :D

Xenon
05-18-2004, 05:02 PM
ok, i uploaded the advanced version now as well.

Normally it should work, and i think i have not forgotten anything, but if yes, just tell me (those who know about the vb.org version ^^)

insanctus
05-18-2004, 05:09 PM
ok, i uploaded the advanced version now as well.

Normally it should work, and i think i have not forgotten anything, but if yes, just tell me (those who know about the vb.org version ^^)
I will install this in a few, :) Watch my board go boom lol

* insanctus runs off to tinker.

insanctus
05-18-2004, 05:13 PM
With find:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if (!$postinfo['visible'] OR $postinfo['isdeleted'])
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

below add:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if ((!$postinfo['visible'] AND !can_see_hidden()) OR $postinfo['isdeleted'])
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Do you mean

find:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if (!$postinfo['visible'] OR $postinfo['isdeleted'])
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Replace with:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if ((!$postinfo['visible'] AND !can_see_hidden()) OR $postinfo['isdeleted'])
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ?

Seems would replace not add below.

Xenon
05-18-2004, 06:22 PM
yep correct.

damn, c&p ^^

*fixing and uploading the correct file*

assassingod
05-18-2004, 06:24 PM
Advance version works perfectly, thanks Xenon:)

Xenon
05-18-2004, 06:25 PM
i'm glad to hear :)

insanctus
05-18-2004, 06:28 PM
i'm glad to hear :)
Works great, thanks Xenon. I like the nav bar add in .

Xenon
05-18-2004, 06:28 PM
*gg*

we do as well ;)

Boofo
05-18-2004, 07:43 PM
Ok, everything seems to work as expected. Great job, Stefan. ;)

The only thing I can suggest it maybe have it so when you click the hidden post option in editpost, that it also works with the message submit buttons instead of only the delete message button. Can that be added very easily?

Xenon
05-18-2004, 07:50 PM
hmm, well, not that easy, as the delete button goes to another section of editpost, than the submit button.

well, it wouldn't be hard as well, if you add another checkbox below the signature field maybe ;)

Boofo
05-18-2004, 08:01 PM
Wouldn't it actually be better to have it in the signature box area instead of the delete box area? That way it would be in the same place for all of them, right?

Xenon
05-18-2004, 09:31 PM
well, depends on your personal opinion.

I put it into the deletion form, as it was actually meant to make a post of another user invisible instead of deleting it ;)

Boofo
05-18-2004, 09:42 PM
well, depends on your personal opinion.

I put it into the deletion form, as it was actually meant to make a post of another user invisible instead of deleting it ;)
Ahhh, ok, I see now. So when it is made invisible, it looks deleted to the original poster. That does make more sense then. ;)

What do I need to add to get it to work with the submit buttons, too then?

ap0c
05-18-2004, 09:45 PM
this hack rocks!!!! thanks Xenon

ap0c
05-19-2004, 02:02 AM
I need to ask a quesion about the instructions for this hack. When we look for:

visible = 1

and replace it with:

" . fetch_visible_sql() . "

that should only be done on the post table queries and NOT the thread table queries, right?
in the showthread.php.
I came up with 5 of these that needed changing correct? After I reply I get redirected back to the forum, not the thread. Is that how it's supposed to be?

Boofo
05-19-2004, 02:12 AM
Yes, that is how it works here, also. ;)

ap0c
05-19-2004, 02:42 AM
cool, just making sure I didnt screw up

Xenon
05-19-2004, 02:14 PM
it uses the moderation system, and that brings one to the forum instead the thread.
no idea why they did that, but well, it's that way ;)

i've updated the instructions a bit (thx to my Pal logician for help me finding them).
Everyone who has installed this hack and it works, does not need to do anything, there were just a view simple bugs, for some php versions, and also missing TABLE_PREFIXES (damn things ^^)

Jolten
05-19-2004, 03:21 PM
I'm getting an odd message when editing the editpost template...

----------

The following template conditional expression contains function calls:

<if condition="can_see_hidden()">

Function Name
Usage in Expression

can_see_hidden
can_see_hidden()

With a few exceptions, function calls are not permitted in template conditional expressions. Please go back and re-write this expression.

The following functions are allowed in template conditional expressions:
in_array() is_array() is_numeric() isset() empty() defined() array() can_moderate() can_moderate_calendar() exec_switch_bg() is_browser() is_member_of()

--------

Where did I go wrong?
I assume it's becuase that function hasn't been added to the phpinclude_start. But where is the phpinclude_start?

Installing the advanced version.

Thanks

assassingod
05-19-2004, 03:27 PM
Jolten, are you sure you edited adminfunctions_template.php?

Jolten
05-19-2004, 03:32 PM
Uhmm.. the instructions don't refer to adminfunction_template at all. They refer to editpost.php, search.php. Then under "template changes" it refers to editpost and phpinclude_start, that's it.

Jolten
05-19-2004, 03:36 PM
I think I know where I went wrong. Istarted with the advanced install and it appears that you also need the regular install. I'll go back install from the regular first then work upwards.

My fault. Thanks.

Xenon
05-19-2004, 03:39 PM
Well, the first lines in the advanced install script should be clear i think ;)

You must have the hidden post hack already installed on your board.
These instructions are just additional ones, if you want to have some cool special features (like
seeing how much new hidden posts are there, and such)!

Jolten
05-19-2004, 03:57 PM
My fault, I know. I went too fast. It's installed now Xenon and working great. Thanks for this!

/me clicks install

Xenon
05-19-2004, 03:59 PM
glad to hear so ;)

Xenon
05-20-2004, 09:35 PM
I've uploaded Version 1.01
Thx to Logician who took the time to look through it, this hack now can be used with moderate posts on as well.

Alsos a few little bugfixes with some php versions, as well as the preview now keeps the checkbox checked (damn thing if you forget a variable in the template ^^)

SnowBot
05-26-2004, 03:35 AM
hhmm im getting an error :(

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/synergy4/public_html/forum/showthread.php on line 1435

line 1435 is


$number" . fetch_visible_sql() . ";,

Xenon
05-27-2004, 12:39 PM
that's why i said, it's a bit tricky to install this hack.

it's obviously, you have hacked your showthread otherwise before installing the hidden posts, and then just did a search and replace all.

the correct line there would have been:
$numbervisible = 1; ;)

DamasGate
05-31-2004, 02:52 PM
Thanks for this nice hack

I have one problem when editing newreply temblate, i cant save change


http://www.damasgate.com/vb/upload/hide.gif

Any help plz

assassingod
05-31-2004, 02:56 PM
Did you edit adminfunctions_template.com correctly?

DamasGate
05-31-2004, 03:39 PM
yes i do it already

Xenon
05-31-2004, 04:36 PM
hmm, try to do the steps exactly as i wrote in the install file.

from your screenshot it seems, you have just misspelled the condition...

DamasGate
05-31-2004, 08:10 PM
i try it 2 time steps by step exactly

may be i do not have chance to install this great hack

Xenon
05-31-2004, 08:13 PM
hmm, maybe your template editor is buggy.

at least it is not in my instructions to put the () BEFORE the can_see_hidden like you did in your screenshot.

DamasGate
06-01-2004, 05:44 AM
Thanks Xenon for help

maybe next time can do it

Boofo
06-14-2004, 10:06 AM
Stefan, I see you fixed the quick reply button for hidden posts here. Can we get the code for that, sir? ;)

ap0c
06-14-2004, 12:09 PM
Stefan, I see you fixed the quick reply button for hidden posts here. Can we get the code for that, sir? ;)
I dont see that option anywhere:D

Xenon
06-14-2004, 05:52 PM
I'll update the instructions.

It's just the prototype here on vb.org, i have to make sure, everything works ^^

Boofo
06-14-2004, 10:02 PM
I'll update the instructions.

It's just the prototype here on vb.org, i have to make sure, everything works ^^
It seems to work great here. Have you figured out a way to do it with the quote reply button also? ;)

Xenon
06-14-2004, 10:39 PM
/me hides because of his lazyness ^^

Boofo
06-14-2004, 10:52 PM
* Xenon hides because of his lazyness ^^
That's catching, I think. ;)

teksigns
06-15-2004, 01:24 AM
anyway to unhide a post once its hidden ?

Xenon
06-15-2004, 11:40 AM
the build in manage post feaqture by vb (you see that when a post is deleted) gives you the possibility to unhide posts as well.

teksigns
06-15-2004, 01:40 PM
the build in manage post feaqture by vb (you see that when a post is deleted) gives you the possibility to unhide posts as well.


i do not see any way to unhide

Xenon
06-15-2004, 03:37 PM
you may want to reread my post.

correct, there is no link to the unhide feature, but you can add one yourself, as the manage post feature of standard vb, can do that:
postings.php?do=managepost&p=$post[postid]

teksigns
06-15-2004, 04:09 PM
you may want to reread my post.

correct, there is no link to the unhide feature, but you can add one yourself, as the manage post feature of standard vb, can do that:
postings.php?do=managepost&p=$post[postid]



not sure how to add one !

can you be so kind and show us .......



thank you

Xenon
06-15-2004, 04:25 PM
:)

no prob :)

in the postbit template find:

<if condition="$post['editlink']">
<a href="$post[editlink]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
</if>

and before add:
<if condition="$post[visible] == 0 and $thread[threadid] > 0"><a href="postings.php?do=managepost&p=$post[postid]">Manage Post</a></if>

that should create the link :)

teksigns
06-15-2004, 04:34 PM
that done it ..... thanks

Xenon
06-15-2004, 04:59 PM
you're welcome :)

NuclioN
06-15-2004, 09:35 PM
Installed and it works! :) What is a working code for a select field in quick reply so staff can post quick?

Xenon
06-15-2004, 09:49 PM
Sorry, i'm not sure what you want to have.

Do you mean a code to put into the showthread_quickreply template, to add a Hide post checkbox there as well?

if yes, just use the code for newreply template there as well.
if no, then please explain more what you want to have :)

NuclioN
06-15-2004, 09:52 PM
code to put into the showthread_quickreply template, yes that should do it. I shall try it. Great addon Xenon.

Xenon
06-15-2004, 09:54 PM
:)

thx

NuclioN
06-15-2004, 09:57 PM
Ok, it's working. But in the newreply and also in quick reply the page is not reloading to the post but out of the thread into the forumdisplay.

ap0c
06-16-2004, 02:22 AM
that's how it is supposed to work:)

Xenon
06-16-2004, 01:58 PM
exactly :)

it's like that here on vb.org as well.
i consider it as the quick way to make sure the post was hidden ^^

marcel-ea
06-22-2004, 07:13 PM
short questions:
Must i install first the normal and then the advanced?
Or only advanced?

Thx

Xenon
06-22-2004, 07:48 PM
yes, first the normal.

the advanced just contains additional infos :)

Boofo
06-22-2004, 08:52 PM
Any word on the update for the quick reply link fix? ;)

Xenon
06-22-2004, 10:18 PM
shh, noone knows yet ;)

will add it soon :)

Boofo
06-22-2004, 10:35 PM
shh, noone knows yet ;)

will add it soon :)
You could always pm me the code for it and then take all the time you need to update it. ;)

Xenon
06-23-2004, 05:55 PM
i could do many things ^^

Boofo
06-23-2004, 10:10 PM
i could do many things ^^
Nice attitude from our fearless leader. :p

marcel-ea
06-23-2004, 11:58 PM
yes, first the normal.

the advanced just contains additional infos :)Gracias :squareeyed:

Xenon: Wounderful work!
I have two lang. i make all with pharses and i instert it in the QuickReplyBox
is allowed to post this changes here?

Other Question:
This post is not to edit?
Is this normal? I can?t delete or edit the posts.

Xenon
06-24-2004, 12:22 PM
First:
feel free to post those changes here :)

Second:
If you just have the normal version, than this is correct, you have to install the advanced version to be able to edit/delete hidden posts

@Bob: i know :p

SnowBot
06-27-2004, 04:08 AM
OK i got it installed :) finally got round to doing it even tho i had clicked the install button ages ago :)

Anyway i have 2 questions :)

1. In the instructions it says


+++++++++++++++++++++++++++++++++++++++
add this code block whereever you want it to be:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<!-- Hidden posts -->
<if condition="can_see_hidden()">
<div class="smallfont">
<a href="search.php?$session[sessionurl]do=findhiddenposts&special=getnew">View $newhiddenposts New Hidden Posts</a>
</div>
</if>
<!-- Hidden posts --> BUT how can i add it to the search popup on the navbar under the advanced search button ?


2. I have seen on other sites they have this feature with a tick box on the quick reply box, how can i add this ?

Thanks in advance :0

Snowy

SnowBot
06-27-2004, 04:28 AM
:)

no prob :)

in the postbit template find:

<if condition="$post['editlink']">
<a href="$post[editlink]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
</if>

and before add:
<if condition="$post[visible] == 0 and $thread[threadid] > 0"><a href="postings.php?do=managepost&p=$post[postid]">Manage Post</a></if>

that should create the link :)

Anyway we can get it just to delete the post ?


I know im a pain but im lovable with it :0 lol

SnowBot
06-27-2004, 10:13 AM
HELP i have a serious problem :(

everything works BUT when making a new thread no text appears in the thread but replies do :( HELP!!

Same happens when i edit a post, the new text does not show up :(

Boofo
06-28-2004, 12:57 AM
For anyone not wanting the hidden posts checkbox to show up in the first post of a thread when editing the post, do the following:

In the editpost template, find:

<if condition="can_see_hidden()">

and REPLACE it with:

<if condition="can_see_hidden() AND !$show['firstpostnote']">

and it will no longer show up in the first post of a thread when in edit mode. ;)

Xenon
06-28-2004, 08:52 PM
@Snowbot: just edit the hidden post and you can delete them as well ^^ (advanced version of the hack)

@Snowbot2: the quickreply checkbox is mentioned in the thread iirc. If not, it's absolutelly the same checkbox code then in the newreply code, just add it to the quickreply template

@Snowbot3: hmm, nothing to do with the hack itself, as you can see on vb.org ^^
Maybe you have installed another hack, or a template condition in postbit got wrong?

SnowBot
06-28-2004, 11:00 PM
Thanks for the reply, i figured the problem out and its a bug with vb3.

http://www.vbulletin.com/forum/bugs.php?do=view&bugid=3057

:)

Jolten
07-06-2004, 05:02 AM
Having a little bit of a DB problem with vb3.0.3 now. The hiding works. But when attempting to alter a usergroup permissions I'm getting the following.

Database error in vBulletin 3.0.3:

Invalid SQL: UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
title = 'Users Awaiting Email Confirmation',
description = '',
usertitle = '',
opentag = '',
closetag = '',
passwordexpires = '0',
passwordhistory = '0',
canseehiddencustomfields = '0',
attachlimit = '0',
avatarmaxwidth = '80',
avatarmaxheight = '80',
avatarmaxsize = '20000',
profilepicmaxwidth = '100',
profilepicmaxheight = '100',
profilepicmaxsize = '65535',
pmquota = '50',
pmsendmax = '0',
canuserep = '0',
cannegativerep = '0',
canseeownrep = '0',
canhiderep = '0',
forumpermissions = '1',
pmpermissions = '0',
calendarpermissions = '0',
wolpermissions = '0',
adminpermissions = '0',
genericpermissions = '64',
genericoptions = '0',
arcadepermissions = '0'
WHERE usergroupid=3
mysql error: Unknown column 'canseehiddencustomfields' in 'field list'

Any help would be appreciated. I've checked and double checked all steps for installation. They've been done correctly.

Xenon
07-06-2004, 10:20 AM
that's not a problem with my hack, as my hack doesn't touch usergroup settings at all.

it seems you 303 upgrade did not went correctly, as the 'canseehiddencustomfields' column was added in 302/303

you might ask at vb.com, as that's the place for upgrading problems :)

Jolten
07-06-2004, 08:07 PM
Your'e right Xenon. Not your hack at all. It was another issue. Sorry to have troubled you.

The Realist
09-13-2004, 08:53 PM
Ignore - My fault :)

theArchitect
09-15-2004, 11:33 PM
Briliant idea, but I am having a problem with the excecution.

I get the following error message:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING

Any thoughts as to what I am doing wrong?

theArchitect
09-17-2004, 01:27 AM
FIXED!

The problem was with the original file. The unhacked code was:

'openclose' => iif($post['openclose'], HTML_CHECKED)

Once I added , to the end:

'openclose' => iif($post['openclose'], HTML_CHECKED),

Everything worked fine.

theArchitect
09-17-2004, 03:19 AM
Just installed the advanced features. Brilliant Job.

Well done to Xenon and his team (Chen for his vb2 version of this Hack & Logician for finding a way to make it work with moderate posts enabled).

BTW. The install button doesn't work on Firefox on a Mac, so I have to switch to Netscape 7 to register my installs.

alqafelah
09-19-2004, 12:49 PM
not worked with 3.03 :(

theArchitect
09-19-2004, 12:54 PM
not worked with 3.03 :(
Strange :speechless:. I am running 3.0.3 and it works fine for me.

What is not working? Do you have an error message?

alqafelah
09-19-2004, 02:00 PM
No, i have blank page !

i am sure for all steps!

thanx

Xenon
09-20-2004, 12:31 PM
@the Architect: hmm, i'm using firefox and the install button works perfectly for me.
Could it be a security setting or something on your site.
I know from several users that they don't have a problem like that with firefox

@algafelah: blank pages are most of the time, installing problems while doing the template changes.
try to revert you templates and then reinstalling the hack.
also just install the plain version at first.

And yes, it works on 3.0.3, as we have isntalled it on vb.org ;)

theArchitect
09-20-2004, 01:06 PM
@the Architect: hmm, i'm using firefox and the install button works perfectly for me.
Could it be a security setting or something on your site.
I know from several users that they don't have a problem like that with firefox
hmm, I wonder what they are writing about us. :nervous:

Are your friends running on a Mac? They can be a little temperamental at times (but nothing compares to the power of duel G5s *composes self*) I am now browsing via Netscape and the install button appears ok.

Also I have encountered a number of different issues with vB (not vB.org but my own site) and various browsers. But I suspect this is the topic of another thread.

Xenon
09-20-2004, 01:40 PM
hmm, ok Mac could be the real reason ^^

Yeah, that would be better on another thread or even more on vb.com ;)

theArchitect
09-20-2004, 02:09 PM
hmm, ok Mac could be the real reason ^^
Hey, all the best people work on Mac's.

Yeah, that would be better on another thread or even more on vb.com ;)
What :speechless:, so my thread idea isn't good enough for vB.org. I get the hint. I will take my thread and go where I am more appreciated. *takes ball and goes home to sulk*.

On a serious note: check out for the thread on Browser X Files at vB.com.

http://www.vbulletin.com/forum/showthread.php?t=116208

alqafelah
09-21-2004, 09:34 AM
@algafelah: blank pages are most of the time, installing problems while doing the template changes.
try to revert you templates and then reinstalling the hack.
also just install the plain version at first.

And yes, it works on 3.0.3, as we have isntalled it on vb.org ;)

:up:

yes Xenon, my install is wrong :o .. i'm reinstall and it's work fine now :D

thanks

Xenon
09-21-2004, 10:42 AM
I'm glad to hear so :)

arab_flash
09-26-2004, 10:15 AM
thnks Xenon for this hack I want to ask how can i hidd thread as well

thank you for helping me

Xenon
09-26-2004, 09:46 PM
well theoretically the way would be quite similar, using the moderate threads feature like the moderate posts feature.

But actually i don't think it's worth to write such a hack, because private forums are easier for private threads ;)

theArchitect
10-03-2004, 11:12 PM
well theoretically the way would be quite similar, using the moderate threads feature like the moderate posts feature.

But actually i don't think it's worth to write such a hack, because private forums are easier for private threads ;)
One more point. Is it possible to search for and display all hidden posts?

A mod just asked me as she was concerned that the facelift I have just given our forum would make these posts visible and wanted to be able to search for them to check. I said it shouldn't but thought that one might want to revisit hidden posts from time to time.

Xenon
10-05-2004, 04:24 PM
if you have the advanced pack installed, there is already the link for searching hidden posts. just remove the getnew part of the link and you'll get every hidden post :)

theArchitect
10-05-2004, 11:31 PM
if you have the advanced pack installed, there is already the link for searching hidden posts. just remove the getnew part of the link and you'll get every hidden post :)
Thankyou. Devilishly simple.

Xenon
10-06-2004, 12:09 PM
You're welcome :)

Yeah devilish is always the simplest and best way ^^

Neutral Singh
11-17-2004, 11:23 AM
Oh Thank You !!! Thank You !!!

Martyjp
01-04-2005, 08:58 PM
Tried installing this on 3.0.4 but cant make the template changes, get

The following template conditional expression contains function calls:

<if condition="can_see_hidden()">

Function Name Usage in Expression
can_see_hidden can_see_hidden()

With a few exceptions, function calls are not permitted in template conditional expressions. Please go back and re-write this expression.

The following functions are allowed in template conditional expressions:
in_array() is_array() is_numeric() isset() empty() defined() array() can_moderate() can_moderate_calendar() exec_switch_bg() is_browser() is_member_of()

When trying to save templates

Jolten
01-04-2005, 09:02 PM
Make certain you install the Hidden Posts BEFORE the advanced Hidden Posts.

Martyjp
01-04-2005, 09:04 PM
My mistake, ftp bombed out while uploading so adminfunctions_template.php hadnt been uploaded :o

Quick reply though ;)

theArchitect
01-10-2005, 11:06 PM
It's indespensable on any board, I think. If I can get the quick reply problem fixed and get it to work in the editpost like it does here, it will be perfect. ;)
Just a quick Q.

I am having some core problems with my board and I need to strip it back to the basics so that the team at vBulletin can work out what is wrong.

However, some of my staff have written a few comments that a less than politically correct and would not be happy if their "hidden" posts sudden became publicly available. If I uninstall this hack will the post become visible? Or will they simply be unavailable to everyone including staff?

Xenon
01-13-2005, 02:08 PM
if you uninstall the hack, posts will stay hidden for anyone.

but as this hack also has a few bugfixes to the normal moderated post feature, people who know what they do, could be able to see some posts

yakusasc
01-25-2005, 08:53 PM
Do we see hidden posts in the last reply area on the forumdisplay.php page ? Thanks !

Xenon
01-25-2005, 09:05 PM
nope, hidden posts don't update the thread/forum infos, so that really no user can know a hidden post was made :)

yakusasc
01-25-2005, 09:11 PM
Ok thanks for your quick answer; I've asked that because we wanted to use it to tell other moderators that the thread was already read. By watching forumdisplay.php, a thread with no hidden post by a moderator would mean : thread not checked. By any luck, would you know a hack that would enable us to do such a thing ? We have a large board and we'd like to optimize the way moderators are working.

Xenon
01-25-2005, 09:14 PM
ah,
nope sorry no idea of such a hack right now

yakusasc
01-25-2005, 09:17 PM
And is there a simple way to modify yours ? On forumdisplay.php, people allowed to see hidden posts would see them in the last answer area.

Xenon
01-25-2005, 09:19 PM
would need a bit more hacking, and as it would be a security issue for others (or at least annoying if everyone sees there is a msg, but no idea what)
i won't code it into ;)

yakusasc
01-25-2005, 09:23 PM
Ok ;) ! thanks for your help ! If one day you create such a hack, don't forget your french friend :) !

Oblivion Knight
01-26-2005, 09:57 AM
I've been looking for this for ages! I was certain that I wasn't daydreaming.. :p

I'll install this one when I have a spare 10/15 minutes.

Xenon
01-26-2005, 03:37 PM
it's a hack i don't want to be missing here on this site ;)

kall
02-04-2005, 06:29 AM
nope, hidden posts don't update the thread/forum infos, so that really no user can know a hidden post was made :)
Which part of the hack controls this?

I'm trying to apply the same concept to the 'Completely Private Threads' hack.

:)

Xenon
02-05-2005, 10:51 AM
actually that part is done by the plain vb.

if the visible flag is set to 0, it assumes that a thread/post is under moderation and therefore doesn'T update the infos

Imperial Fritz
03-27-2005, 06:21 AM
Hope this doesn't sound too stupid - who exactly count as "staff"? I have mods, supermods and a group which again has supermod rights but can see some deeper forums. Are all people with some kind of modding rights counted by this hack?

Xenon
03-28-2005, 02:59 PM
there is a function created with this hack:

function can_see_hidden($usergroupid = 0)
{
global $bbuserinfo;

if ($usergroupid == 0)
{
$usergroupid = $bbuserinfo['usergroupid'];
}
return in_array($usergroupid, array(5, 6, 7)); // replace the usergroupids you want
}


the default setting as you can see takes all users which are primary users in mod/supermod/admin group

you can of course change that yourself to include/exclude whoever you want.

Allan
05-07-2005, 09:37 PM
Hey Xenon :)

work with 3.0.7 ?

Imperial Fritz
05-07-2005, 10:30 PM
I think so. Seems to be working for me.

Xenon
05-09-2005, 07:39 AM
Yep works on 307, as we are using it on vb.org :)

Jolten
05-09-2005, 08:01 AM
I do have a slight bug with 3.0.7 and post counts in threads. If a thread is set to, say, 10 posts per page and in those 10 posts there is 1 hidden post and there are a total of 11 replies to the thread. The second page of the thread will not be visible to anyone with permission to see the hidden posts until there are 12 posts in the thread.

Basically, staff pagination for threads is dependent on the hidden posts. It's not a dire issue but can be very disconcerting for staff that isn't aware of it.

Marco van Herwaarden
05-09-2005, 08:05 AM
lol don't give away our secrets stefan. :D

Xenon
05-09-2005, 03:08 PM
Jep, that's a little bug, because of the cached total post value

it would be possible to fix it, but that would mean one extra query per showthread, that's why i just left it ;)

Jolten
05-09-2005, 03:12 PM
ahh okay. Thanks for explaining. Glad you were aware of it. Like I said.. it's not critical and I'd rather live with the bug than an extra query per page. :) Thanks Stefan.

Chris M
05-12-2005, 10:42 AM
Got it working on a fresh install of 3.0.7 incase anyone was wondering if it will work :p

Satan

Toky0
06-09-2005, 05:30 PM
I had trouble editing the showthread.php I got this error.. Any idea what's wrong?

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /www/d/darkmasta/htdocs/forum/showthread.php on line 1456

Xenon
06-09-2005, 06:46 PM
may have made a mistake while copying somethin into the queries .

theArchitect
07-15-2005, 07:21 AM
I know you are very busy, and this is probably not the place for this type of post. But is there any chance of this being ported to 3.5.0? Or will that happen once it has gone Gold?

Xenon
07-15-2005, 04:34 PM
nice signature text ;)

yep, this hack will definitelly be ported to 3.5, as we need it for vb.org as well, but not before gold.

theArchitect
07-15-2005, 09:27 PM
nice signature text ;)

yep, this hack will definitelly be ported to 3.5, as we need it for vb.org as well, but not before gold.

Thanks. I have been a FWN fan since my undergrad days and seeing it in your sig re-inspired me.

And thanks for the notice about the release. Your work for the community is most apprecaited.

Xenon
07-17-2005, 12:28 PM
Same for me, i've read every singel book by him 8not only once ;))

Glad you like my work :)

the vb 3.5 version will be easier to install i expect, i already have some things in mind how i could make it easier, but won't apply em to 307 i tihnk.

theArchitect
07-17-2005, 12:36 PM
Same for me, i've read every singel book by him 8not only once ;))

Glad you like my work :)

the vb 3.5 version will be easier to install i expect, i already have some things in mind how i could make it easier, but won't apply em to 307 i tihnk.

I very much look forward to it.

One question, though your released mod will probably answer it. You had two versions. A simple Staff Can Post Hidden Posts and you also have an extension to this hack with some advanced features. Will you be conbining the two into a kind of super mod?

Xenon
07-17-2005, 03:35 PM
hmm, i think so.

it depends on how much code edits are needed in vb3.5

the advanced version was just because it got too big to just release all in one, for those not comfortable in big hacking processes

yoyoyoyo
07-17-2005, 06:49 PM
Great hack, thanks much!

Chris M
10-26-2005, 08:00 PM
Hey Stefan any update on a 3.5 release?:D

Chris

Xenon
10-26-2005, 10:49 PM
yep,

shortly after vb.org's upgrade normally ^^

it's jsut a little thing missing for the completion (i hope it's just a little thing ^^)

Chris M
10-27-2005, 01:55 PM
Sounds good :)

Chris

Nilsd
12-16-2005, 11:47 AM
it's jsut a little thing missing for the completion (i hope it's just a little thing ^^) Can you tell me something about the release date?

Thanks

Nils

sarum
01-11-2006, 06:41 AM
it is now 2006
any word on the new release date???

sarum
01-11-2006, 06:55 AM
need help fast!!!!

just upgraded to vb3.5

what is the query to delete all hidden posts in the forum????

i did not install the advanced one
i deleted the two templates mods for it
cause it was giving me an error during upgrade

all my hidden posts are visiable
please help??

rms-2004
01-11-2006, 07:05 AM
I can't upgrade from 3.0.X too. Please help!

sarum
01-11-2006, 07:48 AM
stupid me... i already did it
and cant go back

my forums are closed till i can fix this
this really sucks
i need to start figuring out how to do this myself
but gonna be too busy answering emails
:(

Xenon
01-21-2006, 02:59 PM
all my hidden posts are visiable

that should not happen.

be sure you are NOT logged in as a moderator, because a plain vb3.5 shows hidden posts automatically to admins/mods but not to normal users WITHOUT having to install anything from my hack.