Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

Reply
 
Thread Tools
Display Unread Posts and New Reputation Comments Details »»
Display Unread Posts and New Reputation Comments
Version: 3.7.007, by Paul M Paul M is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.7.x Rating:
Released: 01-19-2008 Last Update: 06-16-2008 Installs: 545
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, also, this attaches itself to certain phrases in the "welcome" box and will not work if they are not present (or are modified by other code).

FYI, the Forum Marking Choices are located in vBulletin Options ;
vBulletin Options > General Settings > Thread/Forum Read Marking Type


This displays the actual number of posts that are still considered unread by you (and will show up in a 'getnew' search). It also displays 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.

There is also the option to display the New Reputation Comments counter as a Welcome Box Notification.

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

Version 3.7.004 adds the following ;

A forum exclusion list - requested a number of times, an option is provided to exclude forums from the unread count & display.

A time limit on unread posts count - if a member has not visited for more than x days then a simple unread posts link will be displayed, not an actual count, this stops potential large sql queries if you have a busy forum. The option can be disabled.



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


History:

v3.7.001 : First Release for vb 3.7.
v3.7.002 : Added Notification Display Option for Reputation Comments.
v3.7.003 : Internal version, not released.
v3.7.004 : Added time limit and forum exclusion list.
v3.7.005 : Fixed path bug in welcome box notification.
v3.7.006 : Slight change to accomodate customised navbars still using vb 3.6 code.
v3.7.007 : Fix potential database error if lastrepcheck is blank, rare, but it can happen it seems.

Show Your Support

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

Comments
  #222  
Old 07-16-2008, 12:22 PM
Piccante Piccante is offline
 
Join Date: May 2006
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm having an issue that the new rep notification is not showing on my admin account on my board. Unread posts is working though, and for my registered members it is all working.

Any idea?
Reply With Quote
  #223  
Old 07-16-2008, 05:59 PM
liwo liwo is offline
 
Join Date: Apr 2006
Location: Germany
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have done a small patch to get this mod work together with Opt-Out Forums from Get New/Get Daily.

I post it here, it might be usefull for some people (or you might even include it in the hack)...

Code:
--- Unread-posts.xml    (Revision 10)
+++ Unread-posts.xml    (Arbeitskopie)
@@ -174,7 +174,23 @@
                        }
                        unset($fids[$eforum]);
                }
+
+               // Modification by liwo
+               // Exclude forums selected in addon optoutgnp (https://vborg.vbsupport.ru/showthread.php?t=91025)
+               if ($vbulletin->products['optoutgnp'])
+               {
+                       if ($vbulletin->userinfo['excludeforumsgnp'])
+                       {
+                               $optout_forums = explode(',', $vbulletin->userinfo['excludeforumsgnp']);
+                               foreach($optout_forums AS $id)
+                               {
+                                       unset($fids[$id]);
+                               }
+                       }
+               }
+               // End modfication by liwo

+
                $flist = implode(',', $fids);
                $elist = implode(',', $elista);
Reply With Quote
  #224  
Old 07-16-2008, 08:03 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

Thank you.

I'll take a closer look at this when I next update the mod.
Reply With Quote
  #225  
Old 07-17-2008, 09:35 AM
Piccante Piccante is offline
 
Join Date: May 2006
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Piccante View Post
I'm having an issue that the new rep notification is not showing on my admin account on my board. Unread posts is working though, and for my registered members it is all working.

Any idea?
PS I've upgraded to lastest release and didn't make any difference.
And I realised I hadn't marked as installed - which I've rectified
Reply With Quote
  #226  
Old 07-17-2008, 09:55 AM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you sure your admin account is set to display reputation (its a user option).
Reply With Quote
  #227  
Old 07-17-2008, 06:59 PM
Piccante Piccante is offline
 
Join Date: May 2006
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M View Post
Are you sure your admin account is set to display reputation (its a user option).
It was set to "no", but I hadn't realised as I could still always see my reputation on my posts

I've managed to change it now... after the trauma of finding I was an unalterable user.

Will see if it's sorted now. Thank you Paul.
Reply With Quote
  #228  
Old 07-24-2008, 09:41 PM
lazytown lazytown is offline
 
Join Date: Feb 2004
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod.. I am having a couple members say that for ex it shows "5 new posts since your last visit" and when they click the link it doesn't show any or shows 1 or 2. I figured it might be due to the mod section posts? However if I exclude them, then it will affect the count the mods see. If it's not due to the mod sections, can someone point me as to what the cause might be?

Thanks
-vissa
Reply With Quote
  #229  
Old 07-24-2008, 10:08 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

Could be moderated threads perhaps ?

How many do you see when they tell you this.
Reply With Quote
  #230  
Old 07-25-2008, 07:37 AM
lazytown lazytown is offline
 
Join Date: Feb 2004
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah, perhaps it is moderated threads (spambot). I wasn't online when they quoted the number, though I can try it through a test account.

-vissa
Reply With Quote
  #231  
Old 07-30-2008, 02:13 PM
ePrOmD's Avatar
ePrOmD ePrOmD is offline
 
Join Date: Aug 2006
Location: jump! | argentina
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Paul
it is possible that through this hack can also see where there are post in social groups to which the user belongs? as well too, if someone responds to a blog ?

thank you very much again for your work
regards from argentina
Reply With Quote
Reply

Thread Tools

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 08:36 AM.


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.04705 seconds
  • Memory Usage 2,304KB
  • 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_code
  • (2)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