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 02-02-2012 10:57 AM

I have tried a multitude of different ways and the only way I can get the posts to show correctly so far is to leave them in the moderation queue. Which is what I don't want, otherwise they show up in the acp as Posts to Moderate.

I am trying different options constantly, I have not started development on any other mods yet while I try and get this sorted. This has not been forgotten, I try various options every day, and will let you know here when I have come up with a viable solution.

Chris

DragonByte Tech 02-04-2012 01:37 AM

Well after many days of testing different configurations, I finally managed to get it to show the hidden posts correctly, when you click on the link in the header.

In addition when you do click on the link you will be able to see all the hidden posts, not just the un-read ones.

Chris

DragonByte Tech 02-04-2012 01:45 AM

Sorry it took so long, but it was a rather interesting thing to track down, basically I re wrote the entire thing.

On a side note, it will not show hidden posts that were made before this fix, as they were removed from the table in the database.

Chris

New Joe 02-04-2012 02:46 AM

Thanks, i will give it a go.

DragonByte Tech 02-04-2012 03:18 AM

Thanks, and let me know if their is any other issues.

Chris

DragonByte Tech 02-18-2012 02:20 AM

1 Attachment(s)
Fixed: A issue with false positives showing up when you clicked the link in the header if there were true "moderated posts".
Fixed: A issue with extra queries on the hidden posts page.
Changed: It will now get any previous posts hidden before that are not showing on the view hidden posts page.
Changed: The hidden posts table to be wider.
Added: A display options table so you have more options to display the posts on the hidden posts page.
Added: A stylevar so you can have different color backgrounds for moderated / hidden posts for each style.

NOTE: If you have alot of posts in moderation, it will take some time for the product to import, due to the fact it has to check each record and see if it should be a hidden post or a true moderated post. I would suggest making sure you have no posts/threads awaiting moderation in the acp before upgrading.

To use the stylevar to change the background follow these steps.

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.

For those of you who had done the background color before, simply change what you put in the addditional.css with what is posted here.

For Translation Purposes:

Added: The phrase, dbtech_staffonlyhiddenposts_sohp_posts
Added: The phrase, dbtech_staffonlyhiddenposts_thread
Added: The phrase, dbtech_staffonlyhiddenposts_hidden_by
Added: The phrase, dbtech_staffonlyhiddenposts_forum
Added: The phrase, dbtech_staffonlyhiddenposts_replies
Added: The phrase, dbtech_staffonlyhiddenposts_views
Added: The phrase, dbtech_staffonlyhiddenposts_moderation_tools
Added: The phrase, dbtech_staffonlyhiddenposts_showing_messages_x_to_ y_of_z
Added: The phrase, dbtech_staffonlyhiddenposts_icon_legend
Added: The phrase, dbtech_staffonlyhiddenposts_new_posts
Added: The phrase, dbtech_staffonlyhiddenposts_no_new_posts
Added: The phrase, dbtech_staffonlyhiddenposts_no_hidden_posts
Added: The phrase, dbtech_staffonlyhiddenposts_try_controls_below_for _older_posts
Added: The phrase, dbtech_staffonlyhiddenposts_display_options
Added: The phrase, dbtech_staffonlyhiddenposts_show_results_deleted_w ithin
Added: The phrase, dbtech_staffonlyhiddenposts_show_results_hidden_wi thin
Added: The phrase, dbtech_staffonlyhiddenposts_last_day
Added: The phrase, dbtech_staffonlyhiddenposts_last_2_days
Added: The phrase, dbtech_staffonlyhiddenposts_last_week
Added: The phrase, dbtech_staffonlyhiddenposts_last_10_days
Added: The phrase, dbtech_staffonlyhiddenposts_last_2_weeks
Added: The phrase, dbtech_staffonlyhiddenposts_last_month
Added: The phrase, dbtech_staffonlyhiddenposts_last_45_days
Added: The phrase, dbtech_staffonlyhiddenposts_last_2_months
Added: The phrase, dbtech_staffonlyhiddenposts_last_75_days
Added: The phrase, dbtech_staffonlyhiddenposts_last_100_days
Added: The phrase, dbtech_staffonlyhiddenposts_last_year
Added: The phrase, dbtech_staffonlyhiddenposts_beginning
Added: The phrase, dbtech_staffonlyhiddenposts_select_daysprune_descr iption
Added: The phrase, dbtech_staffonlyhiddenposts_sort_results_by
Added: The phrase, dbtech_staffonlyhiddenposts_title
Added: The phrase, dbtech_staffonlyhiddenposts_hidden_by
Added: The phrase, dbtech_staffonlyhiddenposts_date
Added: The phrase, dbtech_staffonlyhiddenposts_sort_results_descripti on
Added: The phrase, dbtech_staffonlyhiddenposts_all_forums
Added: The phrase, dbtech_staffonlyhiddenposts_select_forum_descripti on
Added: The phrase, dbtech_staffonlyhiddenposts_order_results
Added: The phrase, dbtech_staffonlyhiddenposts_in_ascending_order
Added: The phrase, dbtech_staffonlyhiddenposts_in_descending_order
Added: The phrase, dbtech_staffonlyhiddenposts_order_results_descript ion
Added: The phrase, dbtech_staffonlyhiddenposts_show_results
Added: The phrase, dbtech_staffonlyhiddenposts_inline_mod
Added: The phrase, dbtech_staffonlyhiddenposts_select_all
Added: The phrase, dbtech_staffonlyhiddenposts_deselect_all
Added: The phrase, dbtech_staffonlyhiddenposts_invert_selection
Added: The phrase, dbtech_staffonlyhiddenposts_select_posts_with_atta chments
Added: The phrase, dbtech_staffonlyhiddenposts_moderation_tools
Added: The phrase, dbtech_staffonlyhiddenposts_merge_posts
Added: The phrase, dbtech_staffonlyhiddenposts_move_posts
Added: The phrase, dbtech_staffonlyhiddenposts_delete_posts
Added: The phrase, dbtech_staffonlyhiddenposts_undelete_posts
Added: The phrase, dbtech_staffonlyhiddenposts_approve_posts
Added: The phrase, dbtech_staffonlyhiddenposts_view_selected_posts
Added: The phrase, dbtech_staffonlyhiddenposts_clear_post_list
Added: The phrase, dbtech_staffonlyhiddenposts_proceed
Added: The phrase, dbtech_staffonlyhiddenposts_full
Added: The phrase, dbtech_staffonlyhiddenposts_viewing
Added: The phrase, dbtech_staffonlyhiddenposts_display_timeframe
Added: The phrase, dbtech_staffonlyhiddenposts_display_by
Added: The phrase, dbtech_staffonlyhiddenposts_display_forum
Added: The phrase, dbtech_staffonlyhiddenposts_display_ascdesc
Added: The phrase, stylevar_sohp_background_description
Added: The phrase, stylevar_sohp_background_name

Chris

nerowolfe 02-20-2012 07:31 PM

Hi and tanks for this mod.

I have only one little question: I wanted to know if it was possible to extend the function including the moderators, not just the moderators of a forum.

Thank's a lot

DragonByte Tech 02-21-2012 01:17 AM

Not at this time, like I stated it uses the same permissions as the moderation feature in vbulletin.

Chris

leejohn02 02-24-2012 11:48 PM

getting this error bitfield_dbtech_vbnavtabs.xml not found in directory /home/pureglit/public_html/includes/xml/

DragonByte Tech 02-25-2012 12:23 AM

Sorted, re download the files.

Chris

HHelp1 02-25-2012 06:47 PM

Quote:

Originally Posted by DragonByte Tech (Post 2303111)
Sorted, re download the files.

Chris

I just did that redownloaded but it still said : bitfield_dbtech_vbnavtabs.xml not found in directory /home/pureglit/public_html/includes/xml/

DragonByte Tech 02-25-2012 07:57 PM

Quote:

Originally Posted by HHelp1 (Post 2303354)
I just did that redownloaded but it still said : bitfield_dbtech_vbnavtabs.xml not found in directory /home/pureglit/public_html/includes/xml/

Could you pm me a admin account and ftp info and I will look into it.

Chris

leejohn02 02-25-2012 08:55 PM

getting the same error

Installation Failed
Sorry, the product encountered an error during installation. More information is provided below to help address the issue.

bitfield_dbtech_staffonlyhiddenposts.xml not found in directory /home/pureglit/public_html/includes/xml/

DragonByte Tech 02-25-2012 09:25 PM

Anyone getting a error like this, bitfield_dbtech_staffonlyhiddenposts.xml not found in directory /home/*******/public_html/includes/xml/ re download the files, upload them to your server and import the new xml, I do think it is sorted, seems their was a file missing when I packaged the product. Sorry for the confusion.

Chris

leejohn02 02-26-2012 05:53 AM

got it installed now every time i view a thread im getting a message saying
moderated"> before the actual post and thats in every post not only in the staff sections

DragonByte Tech 02-26-2012 11:22 AM

Sorted, re download the product and re upload it.

Chris

HHelp1 02-29-2012 09:41 PM

IS there any way that Only Staff can see thread? 0.o APPRECIATE that!

DragonByte Tech 03-01-2012 12:18 AM

Not at this time, it is only to hise posts within a thread.

Chris

Alan_SP 03-03-2012 03:18 PM

Quote:

Originally Posted by HHelp1 (Post 2304849)
IS there any way that Only Staff can see thread? 0.o APPRECIATE that!

I made request for that too. :)

Will see if it's possible to do this. I also requested, if it could be made that this threads could be made into sticky ones. Would be useful, enabling moderators to communicate in their forums.

Anyway, as a workaround this, you could use some thread like forum rules (not for the site as whole, but every forum could it's rules), you make it sticky and use it for moderators to discuss things.

Just to note, reply to post that's hidden stays hidden too, you don't need to explicitly make it so. It greatly speeds things up and makes this mod much easier to use.

LLent 03-19-2012 10:55 AM

one of my mods hid a post by accident is there a way to make that post normal again so everyone can view it if not can we make it so we can view these again by everyone thanks

DragonByte Tech 03-19-2012 11:03 AM

Tick the box next to the post id, the go to moderation tools and select Approve Posts that should take care of that.

Chris

LLent 03-19-2012 11:45 AM

Quote:

Originally Posted by DragonByte Tech (Post 2310968)
Tick the box next to the post id, the go to moderation tools and select Approve Posts that should take care of that.

Chris

worked like a charm thanks

DragonByte Tech 03-20-2012 01:05 AM

Good, glad it worked. :)

Chris

AURFSCAN 03-20-2012 01:40 AM

awesome mod.. works great

DragonByte Tech 03-20-2012 04:04 AM

Thanks, glad you like it.

Chris

Mukashi 03-25-2012 04:53 AM

Hmmm. So is there any way for these posts to be marked as having been read (per individual staff member), or will that notifications bar just show the total amount of these in existence?

DragonByte Tech 03-25-2012 10:28 AM

If you click on "Mark Forums Read" in the Forum Actions dropdown or above the footer the message bar then will show 0.

Chris

Alan_SP 04-06-2012 05:12 PM

Moderators who couldn't read hidden posts receive information about them. Is there a way that moderators get notification only when they could see hidden posts?

And, there's one dot (.) after my username after I installed hidden posts. Is there are way to remove it?

DragonByte Tech 04-06-2012 05:23 PM

Where are the moderators getting the information from?

Where is the (.) showing up at?

Chris

Alan_SP 04-06-2012 05:38 PM

For dot (.):

http://img706.imageshack.us/img706/1791/image005n.png

Notice this dot between my name and start of phrase (in Croatian) Novi skriveni postovi... which is in header, on top right position.

I use vBNotifications (Pro) also, that may influence it.

And one my moderator reported (so far, I just installed it) that she see new hidden posts. Actually, she sees notice about new hidden posts, all of them, but can actually see only posts she could see.

So, if you could make somehow that notice isn't shown if there's no hidden posts that moderators couldn't see? That they see notice only about hidden posts they actually could see?

EDIT: Just to add html code that causes dot:

HTML Code:

<li class="welcomelink">
Dobrodošli,
<a rel="nofollow" href="http://slobodni.net/users/4/">Alan_SP</a>
.
<a rel="nofollow" href="http://slobodni.net/sohp.php?do=viewposts&type=moderated">Novi skriveni postovi: 2 </a>
</li>

Dot is obvious here, but don't know where it comes from.

DragonByte Tech 04-06-2012 06:08 PM

Ok I will look into these as soon as I can, I am a little bit tied up at the moment, but I should be able to look into it this weekend.

Chris

Alan_SP 04-06-2012 06:49 PM

Just found out that it doesn't work with doublepost prevention mod from Paul. I know you use it too on your site.

This is just to inform you, probably you wouldn't be able to fix this...

Alan_SP 04-06-2012 07:28 PM

And I just discovered from where dot is when I checked navbar template. It's my fault, it's in the phrase welcome_x_link_y, I just didn't noticed it before. :( Sorry, my mistake completely.

Also, one thing I noticed, if we disable notification of new hidden posts in header, the link isn't available anywhere. Could you provide alternative link and also, if you maybe create notification that will be used with vBNotifications?

EDIT: Now I'm using this location for hidden posts:

http://img696.imageshack.us/img696/858/image006xc.png

It's in Croatian, but I think it's obvious enough where it is. To achieve this you need to edit file: \dbtech\staffonlyhiddenposts\hooks\parse_templates .php

Find this code:

PHP Code:

$vbphrase['welcome_x_link_y'] .= "<a href=\"sohp.php?do=viewposts&type=moderated\">" $phrase_link "</a>"

You just need to use different phrase where the link will be added. I used phrase new_posts_nav so code should look like this:

PHP Code:

$vbphrase['new_posts_nav'] .= "<a href=\"sohp.php?do=viewposts&type=moderated\">" $phrase_link "</a>"

Effect is shown on picture. Of course, you could choose some other phrase you like to have this added. And I think you could add it to more than one phrase, if I'm not mistaken.

DragonByte Tech 04-06-2012 09:35 PM

Yeah it does conflict with Paul's mod, and I suspect it would do the same thing with regular moderated posts, as this mod uses vBulletins Moderation feature to hide the posts.

Glad to hear the dot is sorted out, one less thing for me to look for.

I will also look into alternative ways to display the notification link, as far as working with vBNotifications I think that has to be done from within that mod.

Chris

Alan_SP 04-06-2012 09:42 PM

Thanks, now only thing if you could do is that moderators see only hidden posts they could actually see.

And of course, some things I asked on DBTech forum... :)

DragonByte Tech 04-09-2012 03:00 AM

Alan SP I have not forgot about you, I am just tied up with my new mod, I will get to it as soon as I can.

Chris

Alan_SP 04-09-2012 11:49 AM

No problem, I understand. If and when you can, I'm sure you'll do everything you can. :up:

Tripolis 05-20-2012 07:53 AM

I want to uninstall it:

Quote:

uninstall.php not found in directory
Missing a file.

DragonByte Tech 05-20-2012 11:40 AM

Quote:

Originally Posted by Tripolis (Post 2330898)
I want to uninstall it:



Missing a file.

Sorted, please re download the product, upload the new files, and then you should be able to uninstall it.

Chris

Alan_SP 05-20-2012 05:44 PM

I see that this version has a lot changes in files (different file sizes). I usually download from DBTech site, as it has latest fixes. What's new in this version here and latest version od DBTech? I downloaded files 16.4.2012.


All times are GMT. The time now is 03:59 AM.

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.01300 seconds
  • Memory Usage 1,845KB
  • 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
  • (4)bbcode_html_printable
  • (2)bbcode_php_printable
  • (6)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