vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - Unread Posts and Reputation Comments (welcome box) (https://vborg.vbsupport.ru/showthread.php?t=123886)

HDT 07-09-2007 07:08 PM

Quote:

Originally Posted by Ren? Kunze (Post 1280428)
Hello,

i used the RSS Feed and the problem is: I have 50 or 100 new Post in the Forum every day.

It is possible to determined forumid.

Try this hack,might be help.
http://www.vbulletin.com/forum/showthread.php?t=231241

kyokushin4life 07-09-2007 08:24 PM

Paul M, thank you for this plugin. One of my members brought up an issue that an incon that shows "Forum Contains New Posts" are still there after reading the unread posts. Do you know how to solve this issue?

popowich 07-13-2007 05:45 PM

Quote:

There is no facility to exclude forums from the count (note: only forums that a member has permission to view are included).
Looks like I have the same question as what is being discussed. I have used the unread posts product for a while now and it works great. I installed Selective Forum Filter today at the request of my members. If my members go to unread posts the posts they don't want to see are not displayed in the listing, which is good, but they are still counted in the X unread posts number. If you can't see it, is it possible to have it not counted? If nothing is done they'll end up with a huge number of unread posts that they can't see. I'm wondering Is this is a reasonable request for this mod to not count what will not be displayed?

Is there a creative way for my users to get around this?

Publicly joinable groups that have no permissions to the forum?

Thank you for your time.
-Raymond

centurius 07-13-2007 07:00 PM

Thank you, this is awesome.

RedTyger 07-15-2007 04:09 PM

Hi,

I struggled for a bit about whether this was a bug because vBulletin's behaviour didn't seem correct to me, but regardless according to this, a bug it be.

Quote:

This will display the actual number of posts that are still considered unread by you (and will show up in a 'getnew' search).

A usergroup is permitted to view a forum and thread content in that forum but is not permitted to view other's threads. When a thread they are not permitted to view has a new post, the new posts indicator lights up and your modification declares that the user has 1 new post.

That new post does not display in a get new search, as they have no permission to view it so from that user's perspective the count is not correct (and nor is the statusicon, it seems to me). Tested on a stock forum, latest version.

Ta!

Paul M 07-15-2007 08:16 PM

That's quite possible, I'm pretty sure no permission checks were changed when this was ported from 3.5, but I believe new thread permissions were added to 3.6, so this won't take them into account.

I'll make a note to fix it, but given that it will affect very few people and I'm quite busy (with a long todo list), it will probably be a while.

Canis Firebrand 07-19-2007 01:09 PM

I don't know how popular or if it is even something that would be fairly easy to code in.

The two options you have to display the unread posts.

What would it take to make the choice be selectable per user in their UserCP? The master option would be chosen in the same way, and if they didn't choose their own, that is how they would see the unread count.

But, if they did choose the method in their UserCP options, they could see it the other way.

I hope that makes sense.

Paul M 07-19-2007 05:05 PM

Yes, it would be possible, but since no one has ever mentioned it, there doesn't seem to be a great need for such a feature, which means it's unlikely it will ever get added, I would need to be very short of things to do. :)

popowich 07-19-2007 05:14 PM

I think we are all talking about the same thing but not to each other?

I have many Paul M products, and i like to keep my members happy.

Would a donation in appreciation of all the work from those asking for the update help to prioritize and get this issue resolved?

-Raymond :D

Antivirus 07-26-2007 07:54 AM

This is very nice Paul, thanks! It's untested, but regarding counting posts in forums where a member has doesn't have permission to "Can View Other's Threads"...

i think all that needs to be done is adding a conditional to the query which checks $xfperms & $vbulletin->bf_ugp_forumpermissions['canviewothers']

Like following:
PHP Code:

if (!($xfperms $vbulletin->bf_ugp_forumpermissions['canviewothers']))
{
    
$xpostuserid_list "AND thread.postuserid = " $vbulletin->userinfo['userid'] . " AND " $vbulletin->userinfo['userid'] . " <> 0";
}
else
{
    
$xpostuserid_list '';


and adding $xpostuserid_list as a variable conditional for within the WHERE clause of the query


All times are GMT. The time now is 09:33 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.01238 seconds
  • Memory Usage 1,746KB
  • 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
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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