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)

dead7 11-29-2006 04:13 PM

This is a great hack and it's been working great so far!

Recently i edited my navbar and removed the welcome/pm/post count because i added a right column to every page of the forum. I updated this new right column in header and footer templates in the style manager for my style.

I pasted the exact same navbar bit that had the unread postcount (that previously worked great) into it and now it won't show the count?

I haven't changed anything except where i display the actual unread post count, it shows the rest of the phrase just not the physical # of actual posts unread now.

Is it sensitive where its being displayed?

Basically i cleaned up our design and put that type of info on the right column thus bumping the forums up .. any help is appreciated

Paul M 11-29-2006 05:22 PM

TBH, I don't really follow what you are describing - can you post a sceen shot, or better still, a link and test login.

dead7 11-29-2006 06:35 PM

I'll try to post a screenshot here in a bit. This is a temp design so a login won't work since its not active to show.

Basically you're familiar with navbar and how your hack goes into that template to display X Unread Posts.

I have removed everything from navbar except the breadcrumb portion which gives the breadcrumb nav as people use the forums.

I then added a right column to the entire forum. I took the Welcome/PM/Unread Posts from the navbar and added it into my right column on the top.

Therefore what navbar had, i removed, and put inside of my right column.

Basically in the end, all i did was move $newposts to my right column and removed it from navbar template. Everything the phrase has displays just fine, just the actual count of how many posts are unread doesn't show up.

For instance i changed mine to say

# Unread Posts since your last visit.

It now says

Unread posts since your last visit

It doesn't even render that $newposts variable to show the actual number of posts.

If this still isn't clear let me know and i'll find a way to get a good screen shot in the half_done design that we're trying this in.

Thanks for your help on this support issue Paul, its truly appreciated.

dead7 11-29-2006 07:07 PM

Shouldn't I be able to take this:

Quote:

<if condition="$vbulletin->userinfo['userid'] != '0' AND THIS_SCRIPT == 'index'">

<a href="$vboptions[bburl]/search.php?do=getnew"><strong>$newposts unread posts</strong></a> since last visit.

</if>

And put it anywhere I want it? Right now I use the Right Column hack which adds a quick snip to the header template and footer. In the footer template is where the code above is.

Paul M 11-29-2006 07:25 PM

There is no such variable as $newposts, I'm not sure where you got that from, try $postcount[unread].

dead7 11-29-2006 07:35 PM

Ah sorry thanks, i meant to use that variable.

I believe what it was is the end of the if condition ='index'. I removed that if condition and it seems to show up great on all the other pages now.

flynnibus 11-30-2006 12:24 AM

*install*

Thanks PaulM!

LjubavnaZona 08-04-2007 01:45 AM

Thank you so much for this :) I love it. Installed.


All times are GMT. The time now is 11:30 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.02143 seconds
  • Memory Usage 1,729KB
  • 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
  • (1)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
  • (8)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