vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 5.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=259)
-   -   Show Thread Enhancements - New Post Indicators (https://vborg.vbsupport.ru/showthread.php?t=296868)

Zachery 04-04-2013 09:00 PM

New Post Indicators
 
1 Attachment(s)
This has been tested to work in 5.0.0 and 5.0.1.

How to install Unread Icons for vBulletin 5.0.1

If you wish to use the full icon overlay:
Step 1: Adding CSS
Add the following to css_additional.css
Code:

.z-unread-icon {
float: right;
margin-top: -45px;
position: relative;
right: 75px;
top: 52px;
z-index: 1;
}

Step 2: Adding Code
Find the following code in display_contenttype_conversationreply_threadview_T ext template
Code:

{vb:set postStatus, ''}
Right after this line, add on its own line

Code:

<vb:if condition="$user['lastvisit'] <= $conversation['created']"><div class="z-unread-icon"><img src="{vb:raw vboptions.bburl}/.././images/custom/unread-whatchamajigger4.png" alt="New since your last visit" title="New since your last visit" /></div></vb:if>

If you wish to use the icon in the background of the post instead of the overlay

Step 1: Adding CSS
Add the following to css_additional.css
Code:

.z-unread-bg-icon {
background-image: url({vb:raw vboptions.bburl}/.././images/custom/unread-background-majigger.png);
background-position: top right;
background-repeat: no-repeat;
}

Step 2: Adding Code
Find the following in display_contenttype_conversationreply_threadview_T ext
Code:

<div class="list-item-body conversation-body">
Change it too
Code:

<div class="list-item-body conversation-body <vb:if condition="$user['lastvisit'] <= $conversation['created']">z-unread-bg-icon</vb:if>">
If you wish to use the ?Spartan? style

Step 1: Adding CSS
Add the following to css_additional.css
Code:

.z-unread-bg-spartan {
background-image: url({vb:raw vboptions.bburl}/.././images/custom/unread-spartan-majigger.png);
background-position: top right;
background-repeat: no-repeat;
}

Step 2: Adding the code
Find the following in display_contenttype_conversationreply_threadview_T ext
Code:

<div class="list-item-body conversation-body">
Change it too
Code:

<div class="list-item-body conversation-body <vb:if condition="$user['lastvisit'] <= $conversation['created']">z-unread-bg-spartan</vb:if>">
You need to also upload the icon you want to the images/custom folder

Hornstar 04-07-2013 12:17 AM

So will this be the solution for finding those unread posts/comments?

Zachery 04-08-2013 04:58 PM

I hope to see it added back to the product. For the time being, this is how I'd take care of it.

In Omnibus 04-12-2013 09:26 PM

Thank You ...

Merenguista 04-21-2013 06:15 AM

Is there a hack for New Post Indicators ?

Zachery 04-22-2013 09:13 PM

Why would you need a hack?

Zachery 05-12-2013 03:05 PM

Made a small change so people on 5.0.1 will be able to use it.

stb74 07-19-2013 05:31 AM

Should this work in 5.0.3

Zachery 07-19-2013 05:35 PM

Should be fine, I'm working on a newer version of this, but this gets the basic across.

Crocodine 11-08-2013 12:13 PM

Couldn't make it work on 5.0.5.


All times are GMT. The time now is 09:37 PM.

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.01487 seconds
  • Memory Usage 1,732KB
  • 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
  • (9)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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