![]() |
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 |
All times are GMT. The time now is 02:05 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:
|