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

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

Category: Miscellaneous Hacks - Version: 4.2.x Rating:
Released: 12-23-2009 Last Update: 03-08-2017 Installs: 674
DB Changes Uses Plugins Auto-Templates
Translations  
No support by the author.

As of 23 Nov 2017 this modification has been withdrawn.

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

There is also an option to put back the members last visit date, which was removed in vb4. There is the choice to count the unread posts since your last visit, or all posts considered unread. This setting reflects where the divider in the 'getnew' search display used to be (apparently its no longer displayed).

There is also the option to disable the unread posts display or the new reputation comments display. New Reputation Comments are shown in the Notifications section.

This modifications settings are located in vBulletin Options > Display Unread Posts[/COLOR].

The unread posts functionality requires that database thread marking is active.
Please be aware that installing this will enable that system (with automatic forum marking).
Forum marking choices are located in vBulletin Options > General Settings > Thread/Forum Read Marking Type

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


History:

v4.0.1 : 24-Dec-2009 : Initial release for vb 4.0.0 Gold.
v4.0.2 : 27-Dec-2009 : Phrase updates.
v4.0.3 : 27-Dec-2009 : Phrase and Install updates only.
v4.0.4 : 17-Feb-2010 : Updated release for vB 4.0.2 onwards (only).
v4.0.5 : 18-Feb-2010: Installer & code updates.
v4.0.6 : 12-Apr-2010: Minor alignment change.
v4.0.7 : 29-May-2010 : Fix error in upgrade section of install code.
v4.0.8 : 06-Nov-2010 : Install code updated.

v4.1.0 : 04-Dec-2010 : Updated for vBulletin 4.1.

v4.1.7.0 : 16-Oct-2011 : Updated for vBulletin 4.1.7.

v4.2.0.0 : 24-May-2012 : Updated for vBulletin 4.2.0.
v4.2.5.0 : 09-Mar-2017 : Updated version for vBulletin 4.2.5 (only).


Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
6 благодарности(ей) от:
badheeu, BlueCheri, crazyboy1661, evelynpriscilla, mapleleaffans, Marcin147

Comments
  #232  
Old 07-25-2010, 01:50 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

You have an old copy of a phrase - most likely you copied it into your local language.
Reply With Quote
  #233  
Old 08-05-2010, 09:19 PM
jimnyc jimnyc is offline
 
Join Date: Aug 2003
Location: New York
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please excuse me if this has been answered before, but I searched and couldn't find anything.

Here is the text of what I have at the top of my forum:

Quote:
You last visited: Today at 04:39 PM : You Have 17 Unread Posts
I changed the font color of all the text on that line to BLACK, but the part that states "Unread Posts" remains in white. Even the "You have 17" is now black. The only thing I can think of is because the "Unread Posts" is a link, but I'm lost.

Any way to change the words "Unread Posts" to BLACK?

Thanks!
Reply With Quote
  #234  
Old 08-06-2010, 05:10 AM
Adam H Adam H is offline
 
Join Date: Apr 2008
Location: UK
Posts: 248
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I done it by placing div's around the hook location which this mod attaches its self too and then just a CSS to colour the link. Also handy for moving the mod away from the normal location under the toplinks which is highly annoying
Reply With Quote
  #235  
Old 08-06-2010, 12:12 PM
jimnyc jimnyc is offline
 
Join Date: Aug 2003
Location: New York
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by riverwire View Post
I done it by placing div's around the hook location which this mod attaches its self too and then just a CSS to colour the link. Also handy for moving the mod away from the normal location under the toplinks which is highly annoying
I'm a bit of a "newbie" when it comes to code and their locations. Would you mind giving me somewhat specific directions to do this? I would be very grateful if you could!

-Jim
Reply With Quote
  #236  
Old 09-10-2010, 01:55 PM
Canis Firebrand Canis Firebrand is offline
 
Join Date: Jun 2006
Location: Michigan
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Love this mod and many others you have created Paul.

One quick question. I'm using a custom template that isn't too heavily modified from the stock template. So, the Unread post count is automatically inserted right under the top nav bar where it shows "Welcome, user"

The issue I have is that the Unread post text gets placed right on a line separating that nav bar from my header box. I found the code in the xml file that sets the phrase. I added in an extra <br /> it and re-imported the product. When I refreshed my page, the phrase did move down a line like I wanted, but the 1 Unread Post part was no longer clickable like it should be.

Viewing the source, I do see that the html tag is still there.
When I import the default xml file you provided, the link is back where it originally was and is clickable.

I'm stumped as to why moving it down one line stopped it from being clickable.

This is what I changed

Code:
<phrase name="dup_posts" date="1255000000" username="Paul M" version="4.0.2"><![CDATA[Posts]]></phrase>
            <phrase name="dup_no_posts" date="1255000000" username="Paul M" version="4.0.2"><![CDATA[<br />You Have No <a href="{1}search.php?do=getnew&contenttype=vBForum_Post">Unread Posts</a>]]></phrase>
            <phrase name="dup_unread_posts" date="1255000000" username="Paul M" version="4.0.2"><![CDATA[<br />You Have <a href="{1}search.php?do=getnew&contenttype=vBForum_Post">Unread Posts</a>]]></phrase>
            <phrase name="dup_x_unread_posts" date="1255000000" username="Paul M" version="4.0.2"><![CDATA[<br />You Have {1} <a href="{3}search.php?do=getnew&contenttype=vBForum_Post">Unread {2}</a>]]></phrase>
Reply With Quote
  #237  
Old 09-10-2010, 02:46 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

I cant see anything obviously wrong with what you have done.
Reply With Quote
  #238  
Old 09-10-2010, 03:16 PM
Canis Firebrand Canis Firebrand is offline
 
Join Date: Jun 2006
Location: Michigan
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Paul M View Post
I cant see anything obviously wrong with what you have done.
That was why I was confused too. And I am even more stumped now.

I have 5 skins total. The default and 2 other skins that have 2 color choices each one.

With the link moved down using the edit I posted above, in the default and one of the skins in both colors works.

In the other skin, in both colors it does not.

here is the html generated in a skin that works.

Code:
<br /><div style="margin: 14px"><br />You Have 3 <a href="search.php?do=getnew&contenttype=vBForum_Post">Unread Posts</a></div>
And here is the html code generated in the skin that does not work.
Code:
<br /><div style="margin: 14px"><br />You Have 3 <a href="search.php?do=getnew&contenttype=vBForum_Post">Unread Posts</a></div>
They look exactly the same to me.

Both the two custom skins are from the same author and are pretty similar in structure/layout. So it is even more odd that one worked with my change above and the other didn't.

I might just have to leave it in the default location. It really isn't a major issue, just more of a nitpicky thing with some of my users.

Thanks though for the reply.
Reply With Quote
  #239  
Old 09-11-2010, 12:14 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

I would guess its something to do with the properties of the elements containing the code, but Im afraid my CSS & HTML is very limited, so I cannot help you.
Reply With Quote
  #240  
Old 10-24-2010, 12:18 PM
OurCouponHome OurCouponHome is offline
 
Join Date: May 2010
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks!!!
Reply With Quote
  #241  
Old 10-24-2010, 04:19 PM
SolarTalk SolarTalk is offline
 
Join Date: Dec 2008
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed on 4.0.8. this doesn't separate the new posts with "older" new posts like before.

am i the only one with this issue?
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 05:28 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.04643 seconds
  • Memory Usage 2,317KB
  • 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
  • (3)bbcode_code
  • (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
  • (6)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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