vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Add image to thread title if there a new post (https://vborg.vbsupport.ru/showthread.php?t=205933)

pein87 02-19-2009 07:13 PM

Add image to thread title if there a new post
 
I was wondering whats the conditional I would use to add a new image if theres a new thread to a forum and for posts. I`m not sure what it would be myself so i thought i`d ask and and see if someone here knows it. Please and thank you.

DragonBlade 02-19-2009 07:26 PM

In the threadbit template, there is this:
HTML Code:

<if condition="$show['gotonewpost']"><a href="showthread.php?$session[sessionurl]goto=newpost&amp;t=$thread[threadid]" id="thread_gotonew_$thread[realthreadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a></if>
So, to determine if there is a new post, I suppose $show['gotonewpost'] is what you are looking for.\

EDIT: My bad, I assumed this is what you were looking for--after re-reading your post, I don't think it is.

pein87 02-19-2009 07:33 PM

I see thanks for the suggestion I`ll have to test it when I get off work.

DragonBlade 02-19-2009 07:38 PM

Oh, that was what you were looking for? ^_^ Great, hope you can do whatever it is you're wanting to do. :)

pein87 02-19-2009 11:41 PM

1 Attachment(s)
Sorry if I confused you its more or less like this image here.

DragonBlade 02-20-2009 01:53 AM

lol, Kon thread icon rocks. ;)

And yeah, you're talking about the orange image with the white arrow, correct?

wAnBoA 02-20-2009 02:14 AM

Nope. I think he meant the "new" image at the end of the thread.


All times are GMT. The time now is 09:16 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.01001 seconds
  • Memory Usage 1,717KB
  • 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_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete