vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - [DBTech] Staff Only Hidden Posts v1 (vB4) (https://vborg.vbsupport.ru/showthread.php?t=276557)

DragonByte Tech 01-06-2012 11:00 PM

[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
  • General Settings
    • Toggle plugin on or off
    • Option to show notification in header
    • Option to display version number in footer
    • DBTech Affiliate ID support

To have a different background color for hidden posts follow this.

In postbit_legacy find:
HTML Code:

<div class="postbody">
Change to:
HTML Code:

<div class="postbody <vb:if condition="$show['moderated']">moderated</vb:if>">
Then add some CSS to additional.css like:
HTML Code:

.postbitlegacy div.postbody.moderated {
background: {vb:stylevar sohp_background};

Then to set the background color go to stylevars, under DragonByteTechMods look for sohp_background and you can set the color there.


-------------------------------------------------------------------------------------------

This mod displays a copyright notification in the footer of pages generated by this mod which includes:
  • 1 Link to DragonByte Technologies homepage.
  • 1 Link to Product Description page of this modification.

Merjawy 01-07-2012 01:31 AM

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?

DragonByte Tech 01-07-2012 01:34 AM

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

Merjawy 01-07-2012 01:38 AM

Agreed!!!

I know you probably read my post before I edited it.. Sorry about that.. I added a question

DragonByte Tech 01-07-2012 01:41 AM

The posts stay hidden, as if you clicked moderate. they will not become visible, or be deleted.

Chris

Merjawy 01-07-2012 02:01 AM

Thanks

Mr_Running 01-07-2012 02:35 AM

FYI: Screen shots could be a little bigger. :)

DragonByte Tech 01-07-2012 02:41 AM

Sorted, added screenshots.

Chris

HHelp1 01-07-2012 02:49 AM

This mod beast :p

DragonByte Tech 01-07-2012 02:51 AM

Glad ya like it. :)

CharlieDelta 01-07-2012 02:49 PM

What a great idea Ozzy! This will come in handy.
Thank you for this!

DragonByte Tech 01-07-2012 03:28 PM

Glad to be of service.:)

CharlieDelta 01-07-2012 04:05 PM

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?

DragonByte Tech 01-07-2012 11:01 PM

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

CharlieDelta 01-08-2012 02:12 AM

Thank you.

dacho 01-10-2012 07:38 AM

looking good
thanks mate

Fready 01-10-2012 08:22 AM

Sorry, I didn't see the other uploaded pictures, looks great.
Giving it a go now

Fready 01-10-2012 08:29 AM

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?

ozzy47 01-10-2012 11:27 AM

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

Alex@bulletin 01-10-2012 04:21 PM

Quote:

Originally Posted by Fready (Post 2285885)
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?

I got the same issue. the search for hidden posts gets me a blank white page.
But apart from that a very good mod :)

Fready 01-11-2012 03:31 AM

Quote:

Originally Posted by ozzy47 (Post 2285935)
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

I got it to show a box and work and make the post hidden using this code;

Code:

<li><label for="cb_hidepost"><input type="checkbox" name="hidepost" value="1" id="cb_hidepost"/>Hide Post </label><li>
But the phrase Hide Post and the tick box showed to regular members too.
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.

DragonByte Tech 01-11-2012 03:45 AM

Quote:

Originally Posted by Fready (Post 2286354)
I got it to show a box and work and make the post hidden using this code;

Code:

<li><label for="cb_hidepost"><input type="checkbox" name="hidepost" value="1" id="cb_hidepost"/>Hide Post </label><li>
But the phrase Hide Post and the tick box showed to regular members too.
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.

Where did you add that bit of code?

Chris

Fready 01-11-2012 03:52 AM

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

Fready 01-11-2012 03:55 AM

Quote:

Originally Posted by DragonByte Tech (Post 2286360)
Where did you add that bit of code?

Chris

Sorry I miss read your post.
I added it in the newreply Template after;
Code:

&nbsp;<img id="display_posticon" src="{vb:raw selectedicon.src}" alt="{vb:raw selectedicon.alt}" />
That was it is just under the Title of the Thread when you Go Advanced....

DragonByte Tech 01-11-2012 04:04 AM

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'])
{

ADD:
Code:

if (can_moderate())
{

Then below the last } add a additional }

Chris

DragonByte Tech 01-11-2012 04:16 AM

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>
Chris

Fready 01-11-2012 04:39 AM

Quote:

Originally Posted by DragonByte Tech (Post 2286376)
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>
Chris

Thanks Chris, that worked great.
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:

&nbsp;<img id="display_posticon" src="{vb:raw selectedicon.src}" alt="{vb:raw selectedicon.alt}" />
In the newreply Template

DragonByte Tech 01-11-2012 04:42 AM

Not a problem, glad to help.

Chris

Fready 01-11-2012 05:24 AM

Chris, don't forget about this part;
Quote:

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
Thanks

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.

DragonByte Tech 01-11-2012 10:20 PM

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

Fready 01-14-2012 12:10 AM

Hi Chris, any update yet?

DragonByte Tech 01-14-2012 12:26 AM

No not as of yet. I will post in here when I have found a working solution.

Chris

LLent 01-14-2012 01:22 PM

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

New Joe 01-21-2012 04:13 AM

*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.

DragonByte Tech 01-21-2012 04:38 AM

Quote:

Originally Posted by New Joe (Post 2290454)
*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.

Their are multiple coders at DragonByte Tech, those coders released some mods today, I am the coder for this mod and I did not release anything. I am working on a fix for this but it is proving to be stubborn. I will continue to search for a viable solution to the issue.

Chris

kfyonur 01-21-2012 09:27 AM

when i click View 1 New Hidden Posts,it show me a new message in forum.

DragonByte Tech 01-21-2012 12:42 PM

It is a known issue. I am looking for a work around to make it work correctly.

Chris

Jack.D 01-24-2012 02:03 PM

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?

DragonByte Tech 01-24-2012 05:09 PM

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

New Joe 02-02-2012 09:32 AM

Quote:

Originally Posted by DragonByte Tech (Post 2290456)
Their are multiple coders at DragonByte Tech, those coders released some mods today, I am the coder for this mod and I did not release anything. I am working on a fix for this but it is proving to be stubborn. I will continue to search for a viable solution to the issue.

Chris

Still a month after this mod was put out for us, there is still no fix.


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
  • Page Generation 0.01325 seconds
  • Memory Usage 1,830KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_code_printable
  • (3)bbcode_html_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete