2023-02-09, 05:37 PM
2023-02-09, 06:18 PM
Forum Bit Templates →
Forum Bit Templates →
Now you can customize this structure with CSS.
forumbit_subforums
- Change the template content like this:<ul aria-label="{$lang->subforums}">
{$sub_forums}
</ul>
Forum Bit Templates →
forumbit_depth3
- Change the template content like this:<li>
{$statusicon}
<a href="{$forum_url}" title="{$forum_viewers_text_plain}">{$forum['name']}</a>
</li>
Now you can customize this structure with CSS.
2023-02-10, 10:34 AM
@tadem; Thank you for your help.
But what I want to ask is the subforums in the view below.
But what I want to ask is the subforums in the view below.
2023-02-10, 10:52 AM
forumdisplay_subforums
2023-02-10, 06:57 PM
(2023-02-10, 10:52 AM)Taylor M Wrote: [ -> ]forumdisplay_subforums
I know this place. However, the content is as follows, where the value "{$forums}" produces the same query as on the home page.
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="5" align="center"><strong>{$lang->sub_forums_in}</strong></td>
</tr>
<tr>
<td class="tcat" width="2%"> </td>
<td class="tcat" width="59%"><span class="smalltext"><strong>{$lang->forumbit_forum}</strong></span></td>
<td class="tcat" width="7%" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_threads}</strong></span></td>
<td class="tcat" width="7%" align="center" style="white-space: nowrap"><span class="smalltext"><strong>{$lang->forumbit_posts}</strong></span></td>
<td class="tcat" width="15%" align="center"><span class="smalltext"><strong>{$lang->forumbit_lastpost}</strong></span></td>
</tr>
{$forums}
</table>
<br />
2023-02-10, 07:20 PM
(2023-02-09, 06:18 PM)tedem Wrote: [ -> ]Forum Bit Templates →forumbit_subforums
- Change the template content like this:
<ul aria-label="{$lang->subforums}"> {$sub_forums} </ul>
Forum Bit Templates →forumbit_depth3
- Change the template content like this:
<li> {$statusicon} <a href="{$forum_url}" title="{$forum_viewers_text_plain}">{$forum['name']}</a> </li>
Now you can customize this structure with CSS.
Thats because it uses the same code as tedem pointed out.
2023-02-10, 08:39 PM
(2023-02-10, 10:34 AM)Hazel Wrote: [ -> ]@tadem; Thank you for your help.
You're welcome.
The same templates are used for both (
index
and forumdisplay
) pages.It can be styled differently according to both pages. I left an example below:
Define an
id
in the body
tag of the index
and forumdisplay
pages. <body id="pageHome">
for index and <body id="pageForumDisplay">
for forum display.Then customize it with CSS:
#pageHome ul.subforums { ... }
#pageForumDisplay ul.subforums { ... }
2023-02-11, 03:25 PM
So you're saying there is no choice but to interfere with CSS??
I will do this by manually manipulating the code.
Thank you.
I will do this by manually manipulating the code.
Thank you.