vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   New/Old Status Images as Text? (https://vborg.vbsupport.ru/showthread.php?t=317471)

Dave Strider 02-23-2015 04:51 AM

New/Old Status Images as Text?
 
Instead of using the typical images to differentiate if a forum has new posts or not, is it possible at all to use text instead? I've searched around and haven't come across anything so I thought I'd ask here.

darnoldy 02-23-2015 05:37 AM

Quote:

Originally Posted by Dave Strider (Post 2538356)
Iis it possible at all to use text instead?

That's a fairly straight-forward template edit.

The template(s) that you want to edit all are named forumhome_forumbit_level... The variable you want is $forum[statusicon]. This has a value of either "old" or "new"

You can use it as text, or?a more-interesting way to use it is to define a class on the "A" tag that surrounds the forum title. Like this:

HTML Code:

<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]" <if condition="$show['forumdescription']">title="$forum[description]"</if> class="$forum[statusicon]">$forum[title]</a>
Then in the CSS, you can change the styling of the listing, based on its status. I also added the following to my CSS:
HTML Code:

a.new:after {content:'NEW';background-color:#f00;color:#fff;font-size:.5em;margin-left:.125rem;border-radius:.66em;padding-left:.375em;padding-right:.375em;font-style:normal;position:relative;bottom:.25em;}


All times are GMT. The time now is 02:17 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.00941 seconds
  • Memory Usage 1,714KB
  • 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
  • (2)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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