vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   merging new posts + thread style conditionals (https://vborg.vbsupport.ru/showthread.php?t=125417)

EasyTarget 08-31-2006 04:25 PM

merging new posts + thread style conditionals
 
in vb 3.6 for vbplaza we're supposed to change this:
HTML Code:

                        <a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$show['gotonewpost']"> style="font-weight:bold"</if>>$thread[threadtitle]</a>
to this:
HTML Code:

                        <a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$thread['titlestyle']">style="$thread[titlestyle]"</if>>$thread[threadtitle]</a>
If someone uses the option to change the style of a certain thread then this change will apply that, but we then lose the ability to decipher between threads with new posts and threads without.

How can the 2 features be used without one or the other being lost? I don't know how to code, but I figure something in the format of this would work?
HTML Code:

                        <a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$thread['titlestyle']" AND "$show['gotonewpost']=0">style="$thread[titlestyle]"</if><if condition="$thread['titlestyle']" AND "$show['gotonewpost']">style="font-weight:bold, $thread[titlestyle]"</if><if condition="$show['gotonewpost']" AND "$thread['titlestyle']=0">style="font-weight:bold</if>>$thread[threadtitle]</a>
Can anyone lend a hand?

peterska2 08-31-2006 04:40 PM

HTML Code:

      <a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$thread['titlestyle']">style="$thread[titlestyle]"</if>><if condition="$show['gotonewpost']"><strong>New: </strong></if>$thread[threadtitle]</a>
It's quick, but it will show as

New: unread thread title
New: unread thread title with style
read thread title
read thread title with style


I've use italic underline and highlight as the style to make it stand out which is which.

EasyTarget 08-31-2006 05:00 PM

thanks, I'll post it in the vblaza threads for those looking for a fix.


All times are GMT. The time now is 12:14 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.01062 seconds
  • Memory Usage 1,720KB
  • 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_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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