vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Template Help - Subforums in Forumdisplay? (https://vborg.vbsupport.ru/showthread.php?t=182334)

Kaelon 06-13-2008 01:45 AM

Template Help - Subforums in Forumdisplay?
 
Hi there,

I was working to customize ElForro's iPhone Skin, and realized it was designed only for forums that have a single tier forum structure. I wanted simple links to sub-forums to appear in any forumdisplay template -- is there an easy/quick way to call up a list of links of subforums?

I tried copying/pasting the relevant parts from the standard vBulletin forumdisplay template into the iPhone/Minimalist forumdisplay template, but it basically did nothing.

Any help you can offer would be greatly appreciated. Thanks!

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

Let me be a bit more specific. When I insert the following into the minimalist template forumdisplay:

Code:

<if condition="$show['forumslist']">
<!-- sub-forum list  -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">
<tr>
 <td class="tcat" width="100%">$vbphrase[subforums]<span class="normal"> : $foruminfo[title]</span></td>
 <if condition="$show['forumsearch']">
 <td class="vbmenu_control" id="forumsearch.subforums" nowrap="nowrap"><a href="search.php?$session[sessionurl]f=$foruminfo[forumid]" rel="nofollow">$vbphrase[search_this_forum]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("forumsearch.subforums"); </script></if></td>
 </if>
</tr>
</table>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
 <tr align="center">
  <td class="thead">&nbsp;</td>
  <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
  <td class="thead">$vbphrase[last_post]</td>
  <td class="thead">$vbphrase[threads]</td>
  <td class="thead">$vbphrase[posts]</td>
  <if condition="$vboptions[showmoderatorcolumn]">
  <td class="thead">$vbphrase[moderator]</td>
  </if>
 </tr>
</thead>
$forumbits
</table>
<br />
<!-- / sub-forum list  -->
</if>

... only a list of headers (Last Post, etc.) comes up, but no actual subforums are listed. Am I missing something?

Princeton 06-13-2008 02:25 PM

not clear but I'll give it a go ;)

compare custom templates with default

forumhome_forumbit_levelXXX (look for $forum[subforums])
you can modify forumhome_subforumbit_XXX templates to suit your needs


All times are GMT. The time now is 12:28 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.01067 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
  • (1)bbcode_code_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