vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Programming Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=188)
-   -   How To Use Category Specific Images For Your Category Strips (https://vborg.vbsupport.ru/showthread.php?t=118998)

silly rabbit 06-22-2008 01:06 AM

Kerry-Anne,
I found these today - work very well in the postbit. Nothing new I know but when put together effective:

PHP Code:

<!-- jpg image display conditionals --> 
<if 
condition="in_array($forumid, array(20))"
<if 
condition="in_array($bbuserinfo['usergroupid'], array(6,25,27))"
<
center><img src="images/editor/spelling.gif"></center
</if></if> 
<!-- 
jpg image display conditionals --> 

Wabbit

Goomzee 06-30-2008 09:00 AM

there is any screen shots becouse above link is not working now anymore

KURTZ 07-03-2008 09:20 AM

Quote:

Originally Posted by Goomzee (Post 1562820)
there is any screen shots becouse above link is not working now anymore

Ditto.

PGAmerica 08-06-2008 02:02 AM

The demo link does not work. Do we have screencaps or another demo link?

--------------- Added [DATE]1218078055[/DATE] at [TIME]1218078055[/TIME] ---------------

Quote:

Originally Posted by Kerry-Anne
Step Six: Adding A Row For Subforum Information

When you have clicked on your category, the next page displays information abour the subforums. As we have removed this information, this requires adding back in.

To do this find
Code:

    </td>
    </tr>
</tbody>
<if condition="$childforumbits">

and add above it
Code:

<if condition="$show['subforums']">
</td>
</tr>
<tr>
<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
    <div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>

This tells it to add an additional row if it is showing subforums. The width of this row is the full width of the forums.

My template looks like this
Code:

</table>
 
<br />
 
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">

<tbody>
    <tr>
        <td class="tcat" style="background:url(images/categories/cat_$forumid.gif) no-repeat;" colspan="<if condition="$vboptions[showmoderatorcolumn]">5<else />4</if>" height="75">
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img src="/forums/images/clear.gif" width="100%" height="20" border="0"></a>
    </td>
<td class="tcat" align="center">
            <if condition="$childforumbits">
        <a href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
            </if>
        </td>
    </tr>
    <tr align="center">
      <td class="thead" width="5%">&nbsp;</td>
      <td class="thead" width="50%" align="$stylevar[left]">$vbphrase[forum]</td>
      <td class="thead" width="25%">$vbphrase[last_post]</td>
      <td class="thead" width="10%">$vbphrase[threads]</td>
      <td class="thead" width="10%">$vbphrase[posts]</td>
      <if condition="$vboptions['showmoderatorcolumn']">
      <td class="thead" width="0%">$vbphrase[moderator]</td>
      </if>
    </tr>

</tbody>
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
$childforumbits
</tbody>
</if>

Your code does not match mine exactly. Where do I put it?

PGAmerica 08-07-2008 09:35 PM

Is there any answer to this?

PGAmerica 08-12-2008 07:32 PM

Hello? Anybody Here?


All times are GMT. The time now is 06:37 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.00998 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete