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
  #22  
Old 08-15-2006, 01:00 AM
HMBeaty's Avatar
HMBeaty HMBeaty is offline
 
Join Date: Sep 2005
Posts: 4,141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How can we move the text to a different place? I'd prefer it under the "Private Messages: Unread/Total"
Reply With Quote
  #23  
Old 08-15-2006, 01:35 AM
Luke Brown256 Luke Brown256 is offline
 
Join Date: Jun 2005
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Brilliant mod, i used it on 3.5 and will use it on 3.6 so handy , although i do hate coming back online and seeing something like 4578 unread posts ;P
Reply With Quote
  #24  
Old 08-15-2006, 01: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

Quote:
Originally Posted by Redlinemotorsports
How can we move the text to a different place? I'd prefer it under the "Private Messages: Unread/Total"
There is no option to move it.
Reply With Quote
  #25  
Old 08-15-2006, 02:38 AM
HMBeaty's Avatar
HMBeaty HMBeaty is offline
 
Join Date: Sep 2005
Posts: 4,141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M
There is no option to move it.
I know there isn't......which is why I was asking how would I go about moving it to another location? obviously the code has to modified but I have no experience with product modification.
Reply With Quote
  #26  
Old 08-15-2006, 03:06 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

You would have to edit the plugin to disable the auto template update of the navbar, and then manually edit your navbar to put $unread where you want it.
Reply With Quote
  #27  
Old 08-15-2006, 06:57 AM
Harry72's Avatar
Harry72 Harry72 is offline
 
Join Date: May 2004
Location: Germany, Bavaria
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thx Paul - very useful.
Reply With Quote
  #28  
Old 08-15-2006, 09:47 AM
bubba01 bubba01 is offline
 
Join Date: Oct 2004
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great hack big thx form me
Reply With Quote
  #29  
Old 08-15-2006, 10:13 AM
Muellmann's Avatar
Muellmann Muellmann is offline
 
Join Date: Jun 2006
Location: near keyboard
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Virtex-II
It works fine for me but I would prefer to place it below the "You last visited" string. How can it be done?
Go into the XML-File and replace

Code:
$search_text = '</strong><br />';
with

Code:
$search_text = '\$vbphrase[last_visited_x_at_y]</phrase>';
Then replace
Code:
$unread = construct_phrase('<a href=\"search.php?do=getnew\">'.$vbphrase['unread_posts'].'</a><br />',$postcount['unread']);
with
Code:
$unread = construct_phrase('<br /><a href=\"search.php?do=getnew\">'.$vbphrase['unread_posts'].'</a><br />',$postcount['unread']);
If I understood the Code correctly it should work fine for you!
Reply With Quote
  #30  
Old 08-15-2006, 11:12 AM
Muellmann's Avatar
Muellmann Muellmann is offline
 
Join Date: Jun 2006
Location: near keyboard
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by wii
Can this be modified to show in the header between calendar and seach, like this:

Calendar - New Posts (45) - Search

45 is just an example, this would be post count.

Thanks
I agree, that it would be good, and so I did it and tested it for you :laugh:
Step 1: Open Paul's XML-File with Notepad
Step 2:

Search for:

Code:
$vbulletin->templatecache['navbar'] = str_replace($search_text,$search_text.$unread,$vbulletin->templatecache['navbar']);
Below add these four Lines:

Code:
$vbulletin->templatecache['navbar'] = str_replace("\$vbphrase[new_posts_nav]</a>","\$vbphrase[new_posts_nav] (".$postcount['unread'].")</a>",$vbulletin->templatecache['navbar']);
              $vbulletin->templatecache['navbar'] = str_replace("\$vbphrase[new_posts_nav]</a>","\$vbphrase[new_posts_nav] (".$postcount['unread'].")</a>",$vbulletin->templatecache['navbar']);
              $vbulletin->templatecache['navbar'] = str_replace("\$vbphrase[todays_posts]</a>","\$vbphrase[todays_posts] (".$postcount['unread'].")</a>",$vbulletin->templatecache['navbar']);
              $vbulletin->templatecache['navbar'] = str_replace("\$vbphrase[todays_posts]</a>","\$vbphrase[todays_posts] (".$postcount['unread'].")</a>",$vbulletin->templatecache['navbar']);
Step 3: Re-Import the XML (allow overwrite=Yes) - Yep you're done!
And don't forget to refresh your Browser
Reply With Quote
  #31  
Old 08-15-2006, 11:31 AM
Muellmann's Avatar
Muellmann Muellmann is offline
 
Join Date: Jun 2006
Location: near keyboard
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Redlinemotorsports
How can we move the text to a different place? I'd prefer it under the "Private Messages: Unread/Total"
Customize just the default Searchtext for proper Replacement

Find this in Paul's XML-Product-File:
Code:
$search_text = '</strong><br />';
Replace with:
Code:
$search_text = '\$vbphrase[private_messages_nav]</phrase></if>';
Find this:
Code:
$unread = construct_phrase('<a href=\"search.php?do=getnew\">'.$vbphrase['unread_posts'].'</a><br />',$postcount['unread']);
Replace with (just to ensure to have it in the new Line):
Code:
$unread = construct_phrase('<br /><a href=\"search.php?do=getnew\">'.$vbphrase['unread_posts'].'</a><br />',$postcount['unread']);
It should normally work (untested)!
Save with Notepad - Re-Import Hack, Allow overwrite 'yes', refresh Browser
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 04:49 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.05453 seconds
  • Memory Usage 2,326KB
  • 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
  • (10)bbcode_code
  • (5)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
  • (1)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