Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Unread Posts and Reputation Comments (welcome box) Details »»
Unread Posts and Reputation Comments (welcome box)
Version: 1.25, by Paul M Paul M is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.x Rating:
Released: 08-13-2006 Last Update: 10-17-2007 Installs: 556
Uses Plugins Auto-Templates
Translations  
No support by the author.

This modification is no longer available or supported.

Note: The unread posts portion of this hack only works if you use the database thread marking system.

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

Versions 1.22+ also display the number of new reputation comments since you last checked your usercp.

There is the option to count the unread posts since your last visit, or all posts considered unread. This setting reflects the divider in the 'getnew' search display. There is also the option to disable the unread posts display or the new reputation comments display.

All settings are located in vBulletin Options > Display Unread Posts and Reputation.

To install this hack unzip the xml file and import it using the ACP Product Manager.


History:

v1.11 : First Release for vb 3.6 - various changes.
v1.12 : Updated for Version Checking.
v1.13 : Phrases Updated.
v1.14 : Dependancies updated, URL's updated.
v1.15 : Minor phrasing changes.
v1.16 : Changes to the way displayed messages are built.
v1.17 : SQL Changes to use slave.
v1.18 : Fixed broken Index creation (on install).
v1.19 : Modified slightly to exclude moderated or soft deleted posts (unless moderator).
v1.20 : Duplicate line of code removed.
v1.21 : ATCS and disable options added.
v1.22 : New reputation comments added. ATCS removed as now unnecessary.
v1.23 : Bug fixes. Added links prefix setting.
v1.24 : Fix reputation comments not being marked as read.
v1.25 : Permission check updated to include 'canviewthreads'.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #282  
Old 07-09-2007, 07:08 PM
HDT HDT is offline
 
Join Date: Sep 2006
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ren? Kunze View Post
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
Reply With Quote
  #283  
Old 07-09-2007, 08:24 PM
kyokushin4life kyokushin4life is offline
 
Join Date: Jul 2006
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #284  
Old 07-13-2007, 05:45 PM
popowich popowich is offline
 
Join Date: Jun 2004
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #285  
Old 07-13-2007, 07:00 PM
centurius centurius is offline
 
Join Date: Jul 2007
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you, this is awesome.
Reply With Quote
  #286  
Old 07-15-2007, 04:09 PM
RedTyger's Avatar
RedTyger RedTyger is offline
 
Join Date: Nov 2006
Location: UK
Posts: 1,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #287  
Old 07-15-2007, 08:16 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #288  
Old 07-19-2007, 01:09 PM
Canis Firebrand Canis Firebrand is offline
 
Join Date: Jun 2006
Location: Michigan
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #289  
Old 07-19-2007, 05:05 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #290  
Old 07-19-2007, 05:14 PM
popowich popowich is offline
 
Join Date: Jun 2004
Posts: 388
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #291  
Old 07-26-2007, 07:54 AM
Antivirus's Avatar
Antivirus Antivirus is offline
 
Join Date: Sep 2004
Location: Black Lagoon
Posts: 1,090
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:16 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04697 seconds
  • Memory Usage 2,323KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete