vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Show custom threadicon on forumdisplay (https://vborg.vbsupport.ru/showthread.php?t=116619)

TCB 05-25-2006 09:30 AM

Show custom threadicon on forumdisplay
 
There's a modification for vb3.0 where you can add a custom theadicon (image) for selected forums (topic).

My whishes are a bit different though than the creator offered. So can anyone change the following code:
PHP Code:

 <if condition="$show['threadicons']"
        <
td class="alt2"
        <if 
condition="$thread[forumid] == 7"><img src="http://www.mysite.com/images/forumdisplay/$thread[threadid].jpg" width="90" height="90"></if> 
        <if 
condition="$show['threadicon']"><img src="$thread[threadiconpath]alt="$thread[threadicontitle]border="0" />         
        <else />&
nbsp;</if></td
        </if> 

in the threadbit template so that:

* images (named $thread[threadid].jpg) are shown instead of threadicons in forumid's 7,9 and 12 (for example)
* threadicons are shown in all other forumid's

With my alterations it works a bit (except for the conditionals), but threadicons (or an &nbsp) are also shown in the forums 7,9,12

Can anyone help me with these conditionals? Thanks a LOT :D

peterska2 05-25-2006 01:37 PM

Code:

<if condition="$show['threadicons']">
        <td class="alt2">
        <if condition="$thread[forumid] == 7"><img src="http://www.mysite.com/images/forumdisplay/$thread[threadid].jpg" width="90" height="90">
<else />
        <if condition="$show['threadicon']"><img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />       
        <else />&nbsp;</if>
</if>
</td>
        </if>

That will replace the thread icons with the custom icons instead of using them in addition to them :)

TCB 05-26-2006 06:16 PM

fantastic, I will try that...

I also couldn't find how to make a conditional with a range of forums (like using the custon threadicon on forum 7, 12 and 15)

Thanks a lot also :banana:


All times are GMT. The time now is 07:47 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.01028 seconds
  • Memory Usage 1,724KB
  • 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_code_printable
  • (1)bbcode_php_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