vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Italics for threads with new posts (https://vborg.vbsupport.ru/showthread.php?t=44371)

SweetSVT99 10-07-2002 06:05 AM

Italics for threads with new posts
 
Does anyone know where I can find the hack to change the font to Italics for threads with new posts in them? I'm pretty sure I have seen it before, but I searched all over here and can't seem to find it.

Thanks!

Eander 10-08-2002 11:47 PM

This is pretty easy. First thing you want to do is open up forumdisplay.php and look towards the end of the file (for me it was around line 633) for
PHP Code:

eval("\$forumdisplaybits .= \"".gettemplate('forumdisplaybit')."\";"); 

replace that with...

PHP Code:

if (substr($thread[newoldhot],0,3)=="new") {
$italics="<i>";
}
    eval(
"\$forumdisplaybits .= \"".gettemplate('forumdisplaybit')."\";");
$italics=""

Then edit the forumdisplaybit template, inserting $italics after
Quote:

<td bgcolor="#13486D" align="left" width="70%"><normalfont>

SweetSVT99 10-17-2002 09:59 PM

Thank you for your response. I can't find the code in forumdisplaybits though...any suggestions?

Quote:

Originally posted by Eander
This is pretty easy. First thing you want to do is open up forumdisplay.php and look towards the end of the file (for me it was around line 633) for
PHP Code:

eval("\$forumdisplaybits .= \"".gettemplate('forumdisplaybit')."\";"); 

replace that with...

PHP Code:

if (substr($thread[newoldhot],0,3)=="new") {
$italics="<i>";
}
    eval(
"\$forumdisplaybits .= \"".gettemplate('forumdisplaybit')."\";");
$italics=""

Then edit the forumdisplaybit template, inserting $italics after


Dean C 10-18-2002 04:20 PM

what an awesome idea!

- miSt

SweetSVT99 10-22-2002 12:29 AM

I got it, it worked! Thanks!!!


All times are GMT. The time now is 02:55 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.01839 seconds
  • Memory Usage 1,728KB
  • 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
  • (4)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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