vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Display count of unread posts in welcome box (https://vborg.vbsupport.ru/showthread.php?t=96522)

Paul M 09-17-2005 10:00 PM

Display count of unread posts in welcome box
 
This modification is no longer available or supported.

* This hack only works if you use the new database thread marking system, if you don't, then you probably should be. *

With the new marking system I have found a simple count of the new posts since your last visit to be less informative and useful than it used to be - esp as the GetNew function now excludes threads you have read, but includes threads from before your last visit. Therefore I decided to try a new system that counts the actual number of posts that are still considered unread by you, and will show up in a GetNew search.

In fact this hack gives you two options (with a new setting in the vBulletin Options > General Settings). If set to yes, it will only count the unread posts since your last visit, if set to no it will count all posts considered unread. This setting reflects the divider in the GetNew display.

To install this hack simply download the xml file to your pc and then import it into vbulletin as a product - then alter the ACP setting to your preferred option (the default is 'no' (i.e. all unread posts).

Note: This hack injects the result direct into the navbar template during page construction, thus avoiding the need for a template edit. This requires that a certain text combination exists in your template. This will be fine for most boards that use a navbar based on the vB default, but you should bear this in mind if you have a totally custom navbar.



History:

v1.01 : First Release.
v1.02 : Minor changes, no update necessary.

Boofo 09-18-2005 10:59 PM

Nice mod but you might want to remove the echo query out of the xml file or some newbies are really going to be confused. ;)

Paul M 09-18-2005 11:16 PM

Yeah, I suppose so.

Since it was commented out it wouldn't actually do anything, but removed anyway. :)

Boofo 09-18-2005 11:27 PM

Quote:

Originally Posted by Paul M
Yeah, I suppose so.

Since it was commented out it wouldn't actually do anything, but removed anyway. :)

Just trying to save you tons of "why does it run 2 queries that are the same" questions you were bound to get. ;)

Kirk Y 09-18-2005 11:47 PM

Nice to know you think so highly of us Boofo. Ha ha... great idea.

* acidburn0520 clicks install

Boofo 09-19-2005 01:33 AM

Quote:

Originally Posted by acidburn0520
Nice to know you think so highly of us Boofo. Ha ha... great idea.

* acidburn0520 clicks install

I was hoping I didn't have to classify you as "newbie", but if you insist. ;)

geoff4787 09-19-2005 03:32 AM

Where do I upload "products"? I have no product manager in my admin panel and I am running the latest version of VB.

Boofo 09-19-2005 05:37 AM

Before anyone jumps in here, I have talked to this gentlemen in another thread and explained the differences between 3.0 and 3.5. 'Nuff said. ;)

GoNz00 09-19-2005 06:40 AM

was hoping this worked on rc2 :( oh well.

geoff4787 09-19-2005 06:40 AM

edit...nevermind.


All times are GMT. The time now is 01:52 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.01150 seconds
  • Memory Usage 1,734KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)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