vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Template conditionals (https://vborg.vbsupport.ru/showthread.php?t=311063)

Set3sh 05-06-2014 04:47 AM

If there are new posts, to load an image to let users know that.
With phpbb, mybb, xenforo I can easily do that.
Why it can not be posssible with vbulletin?

Zachery 05-06-2014 05:33 AM

Why wouldn't your images already be part of your global sprite sheet?

Set3sh 05-06-2014 01:27 PM

Thank you for trying to help me but I need solutions not questions.

Zachery 05-06-2014 03:57 PM

That is a solution to your problem.

Set3sh 05-06-2014 05:03 PM

It is not.
Let me share you my way of optimising vbulletin:
> replace most images with css buttons
> combine a few of them to preserve the style

That is why it is imperious that I check if there are new posts or not.

Zachery 05-06-2014 06:14 PM

You should serve 1 sprite, with all of your images, not multiple.

cellarius 05-06-2014 06:15 PM

Yeah, well, that information is just not available out of the box. You can do it on forumhome or on forumdisplay for subforums, but Lynne has explained to you how to do that. As far as I know, inside the forum (i.e. forumdisplay for threads and showthread) that information is just not readily available. You'd probably have to do a plugin checking the lastpost date of the forum against the last activity date of the user. Maybe that information can be pulled out of the datastore.

Set3sh 05-06-2014 06:27 PM

Well, that is just great...

Lynnes suggestion works if you need to check if subforums have new posts.
But you can't check if a category forum has new posts using her solution.

Are you aware of a plugin that can solve my problem or some piece of code that I might insert in a template?

Zachery 05-06-2014 07:03 PM

So here is what I don't get. you want to reduce the overall http request, why aren't you just serving one big sprite image, with all the graphics your forum uses?

Why even bother using graphics when you can use something like FontAwesome?


All times are GMT. The time now is 06:30 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.01125 seconds
  • Memory Usage 1,722KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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