![]() |
[DBTech] Staff Only Hidden Posts v1 (vB4)
1 Attachment(s)
DragonByte Technologies are proud to present Staff Only Hidden Posts v1: Staff Only Hidden Posts allows Administrators, Super Moderators, Forum Moderators, and any additional usergroups that has moderation privileges, to post/view hidden posts.
Why Staff Only Hidden Posts? It is a neat tool for staff to post in a thread but not allow everyone to see what they posted. These posts are only viewable by the aforementioned usergroups. This Mod uses the vBulletin moderation feature to achieve this. The post however will not show up in the Moderation Queue in the Admincp or Modcp. It is fully phrased so you can edit it to your languages. ------------------------------------------------------------------------------------------- If you like this mod please hit the https://vborg.vbsupport.ru/external/2015/08/1.png button to the right ----> Please remember to click the, https://vborg.vbsupport.ru/external/2015/08/2.png button to the right if you installed the mod ----> What does 'Marking As Installed' do ? * It helps you to stay on top of updates - members who have installed modifications will be notified by us whenever new updates are available. * For security issues - vbulletin.org will contact all members who have installed a modification whenever a security issue is brought to their attention. * Marking a modification as installed also helps us know how many people are using our work, giving us extra incentive to provide more features and new modifications. We appreciate the support! ------------------------------------------------------------------------------------------- Priority support for this version is handled at http://www.dragonbyte-tech.com/ ------------------------------------------------------------------------------------------- Translations available @ our forum Support for translations handled by the translator in its respective threads only. ------------------------------------------------------------------------------------------- Complete Feature List
To have a different background color for hidden posts follow this. In postbit_legacy find: HTML Code:
<div class="postbody"> HTML Code:
<div class="postbody <vb:if condition="$show['moderated']">moderated</vb:if>"> HTML Code:
.postbitlegacy div.postbody.moderated { ------------------------------------------------------------------------------------------- This mod displays a copyright notification in the footer of pages generated by this mod which includes:
|
It's nice
The way I've been doing it is to reply to any thread but manually mark it moderated post where only Admins/SMODs can see What happens to the staff hidden/moderated posts if you disable or uninstall the mod? |
So was I, but then I decided their had to be a easier way to do it, and not have the post show up in the moderation queue.
Chris |
Agreed!!!
I know you probably read my post before I edited it.. Sorry about that.. I added a question |
The posts stay hidden, as if you clicked moderate. they will not become visible, or be deleted.
Chris |
Thanks
|
FYI: Screen shots could be a little bigger. :)
|
Sorted, added screenshots.
Chris |
This mod beast :p
|
Glad ya like it. :)
|
What a great idea Ozzy! This will come in handy.
Thank you for this! |
Glad to be of service.:)
|
Ozzy, one question.
I have some registered members listed as moderators of one specific forum. Will they be able to see all hidden posts, if at all, or just ones in the forum they moderate? |
If they are in the Moderator group, they will only be able to see the posts in the forums they moderate. If they are Super Moderators, they will be able to see all hidden posts
Chris |
Thank you.
|
looking good
thanks mate |
Sorry, I didn't see the other uploaded pictures, looks great.
Giving it a go now |
Worked apart from when clicking on the phrase "Veiw 2 hidden posts" next to my user name, it just took me to a blank white page.
The url looked like: http://www.myurl.net/search.php?do=findhiddenposts I'm using vB4.1.9 Also when using the Go Advanced I'd like to move the part which you tick to hide the post. What code is used for this part, it also has a tick box to the left of the text : (the tick box) Hide This Post? |
Their is a known issue with the click to view posts that I am trying to sort out.
Their is no easy way for you to move the Hide This Post in either editor. But if you wish to try you can look at the file dbtech/staffonlyhidddenposts/hooks/process_templates_complete and the code that is used to insert it is on line 22 Chris |
Quote:
But apart from that a very good mod :) |
Quote:
Code:
<li><label for="cb_hidepost"><input type="checkbox" name="hidepost" value="1" id="cb_hidepost"/>Hide Post </label><li> As i am not a coder, could either the coder of this mod or someone else please help so that it won't show to regular members. |
Quote:
Chris |
ozzy47 said to look in the dbtech/staffonlyhidddenposts/hooks/process_templates_complete file, so i did, and then tried to make a code from the code in there.
That's just a code that I made. I am not a coder, it did work fine, but it showed the tick box and the Hide Post to regular members, but the post was hidden after posting it to regular members. So i just need to hide the tick box and the Hide Post bit. Thanks |
Quote:
I added it in the newreply Template after; Code:
<img id="display_posticon" src="{vb:raw selectedicon.src}" alt="{vb:raw selectedicon.alt}" /> |
Ok I see the problem, I will fix it in the next release, but in the mean time in that same file, right below:
Code:
if ($vbulletin->options['dbtech_staffonlyhiddenposts_active']) Code:
if (can_moderate()) Chris |
I see you edited you post, so change your code to this:
Code:
<vb:if condition="can_moderate()"><li><label for="cb_hidepost"><input type="checkbox" name="hidepost" value="1" id="cb_hidepost"/>Hide Post </label><li></vb:if> |
Quote:
It adds the tick box and Hide Post just under the Title A nice easy place to tick the box. Put that code after Code:
<img id="display_posticon" src="{vb:raw selectedicon.src}" alt="{vb:raw selectedicon.alt}" /> |
Not a problem, glad to help.
Chris |
Chris, don't forget about this part;
Quote:
Kind of a big thing as at the moment, when you post a hidden post it doesn't show up on "What's New" searching. Maybe this is as it's a Moderated post or how you made this modification. So without the "View hidden posts" bit working it's hard to know where they are. |
I know I am looking for a solution to the issue, but with some of the staff on holiday it is a bit slow going. I hope to have a solution soon though.
Chris |
Hi Chris, any update yet?
|
No not as of yet. I will post in here when I have found a working solution.
Chris |
very good mod but the view hidden posts issue need to be fixed ....un installed for now till there is new release ....keep up good work db
|
*Un-Installed*
Will wait for the search to be fixed, as this modification isn't really workable until that time. @DragonByte Don't you think that instead of flooding the org with new Modifications, you should get the ones you already have working right out of the box and tested so they do work first. |
Quote:
Chris |
when i click View 1 New Hidden Posts,it show me a new message in forum.
|
It is a known issue. I am looking for a work around to make it work correctly.
Chris |
I am using version 4.1.9 and in my thread I cannot seem to find where you can hide the post, anyone fill me in with where the option is to hide posts :P?
|
In the quick reply box it is right below Show Your Signature.
In the advanced editor it is in the Additional Options right below Show Your Signature. Chris |
Quote:
|
All times are GMT. The time now is 07:48 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|