Go Back   vb.org Archive > vBulletin Modifications > vBulletin 5.x Modifications > vBulletin 5.x Template Modifications

Reply
 
Thread Tools
New Post Indicators Details »»
New Post Indicators
Version: 1.01, by Zachery Zachery is offline
Developer Last Online: May 2017 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 5.0.x Rating:
Released: 04-04-2013 Last Update: Never Installs: 14
Template Edits
 
No support by the author.

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

Download Now

File Type: zip icons.zip (3.3 KB, 95 views)

Screenshots

File Type: png 2013-04-04_21h15_17.png (18.8 KB, 0 views)
File Type: jpg 2013-04-04_21h04_33.jpg (52.2 KB, 0 views)
File Type: jpg 2013-04-04_18h44_51.jpg (33.0 KB, 0 views)
File Type: png 2013-04-04_21h04_03.png (22.0 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
6 благодарности(ей) от:
BirdOPrey5, Crocodine, In Omnibus, Shadow, tbworld, TheLastSuperman

Comments
  #12  
Old 11-08-2013, 04:59 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry to hear that, I'll see what I can do about getting a newer version out.
Reply With Quote
  #13  
Old 07-26-2015, 06:15 PM
peterdadams peterdadams is offline
 
Join Date: Sep 2005
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Zachery,

Do you have a version of this mod for vBulletin 5.1.7?

I cannot find the following in display_contenttype_conversationreply_threadview_T ext template:

<div class="list-item-body conversation-body">
Reply With Quote
  #14  
Old 07-26-2015, 10:59 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If I can shake some free time this week, I'll work on updating it.
Reply With Quote
  #15  
Old 12-16-2015, 08:13 AM
Sagobal Sagobal is offline
 
Join Date: Oct 2006
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm Using 5.1.10 and it seems that there are Changes:
For full Icon Overlay I had to Use "display_contenttype_threadview_header" Template.
In this Template after
Code:
{vb:set postStatus, ''}
Insert
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>


For Background/Spartan the Right Template should also be "display_contenttype_threadview_header"
I got it to work there, but NOT on the first Post of a thread. (Seens to be something with the Headline)
Find an Replace
Code:
<div class="b-post__body h-restore--on-preview h-padding-horiz-xxl h-padding-top-xl h-padding-bottom-m h-clearfix">
for Background with
Code:
<div class="b-post__body h-restore--on-preview h-padding-horiz-xxl h-padding-top-xl h-padding-bottom-m h-clearfix <vb:if condition="$user['lastvisit'] <= $conversation['created']">z-unread-bg-icon</vb:if>">
or for Spartan with
Code:
<div class="b-post__body h-restore--on-preview h-padding-horiz-xxl h-padding-top-xl h-padding-bottom-m h-clearfix <vb:if condition="$user['lastvisit'] <= $conversation['created']">-unread-bg-spartan</vb:if>">

Maybe this may help you all. And maybe there is someone who can figure out, how to use it on the first post.
Greetz
Reply With Quote
  #16  
Old 06-08-2016, 03:56 AM
HowToEvery HowToEvery is offline
 
Join Date: Jun 2016
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to make it work on version 5.2.2?
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 04:18 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.06148 seconds
  • Memory Usage 2,287KB
  • Queries Executed 21 (?)
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
  • (14)bbcode_code
  • (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
  • (1)pagenav_pagelink
  • (6)post_thanks_box
  • (6)post_thanks_box_bit
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_attachment
  • (6)postbit_onlinestatus
  • (6)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete