*

KaloSex

  • ****
  • 135 posts
Subforums list
« on: September 06, 2023, 02:22:45 PM »
Subforums appear one after each other on same line. Their code looks like this:
Code: [Select]
<div class="frm-subboards">
                          <div class="frm-square"></div>

                                                      <a href="https://www.kalosex.com/el/forums/board/eterofylofilikes-erotikes-istories-b38">Ετεροφυλοφιλικές Ερωτικές Ιστορίες</a>
                                                      <a href="https://www.kalosex.com/el/forums/board/transexual-erotikes-istories-b39">Transexual Ερωτικές Ιστορίες</a>
                                                      <a href="https://www.kalosex.com/el/forums/board/omofylofilikes-erotikes-istories-b40">Ομοφυλοφιλικές Ερωτικές Ιστορίες</a>
                                                  </div>

I want to make it look like this, so one have each one line. So, 3 subforums, 3 lines. Not all on same:
Code: [Select]
<div class="frm-subboards">
                          <div class="frm-square"></div><a href="https://www.kalosex.com/el/forums/board/eterofylofilikes-erotikes-istories-b38">Ετεροφυλοφιλικές Ερωτικές Ιστορίες</a><br>                                                 
                                                     <div class="frm-square"></div> <a href="https://www.kalosex.com/el/forums/board/transexual-erotikes-istories-b39">Transexual Ερωτικές Ιστορίες</a><br>
                                                    <div class="frm-square"></div>  <a href="https://www.kalosex.com/el/forums/board/omofylofilikes-erotikes-istories-b40">Ομοφυλοφιλικές Ερωτικές Ιστορίες</a>
                                                  </div>

Which file should i edit?

*

MB Themes

Re: Subforums list
« Reply #1 on: September 06, 2023, 08:19:19 PM »
Can you add screenshot and url?
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

KaloSex

  • ****
  • 135 posts
Re: Subforums list
« Reply #2 on: September 06, 2023, 09:08:40 PM »
i attach screenshot

*

MB Themes

Re: Subforums list
« Reply #3 on: September 07, 2023, 10:10:26 AM »
I would just add "clear:both;" to have 1 per line.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

KaloSex

  • ****
  • 135 posts
Re: Subforums list
« Reply #4 on: September 07, 2023, 06:46:30 PM »
This way they will not have the icon in front. I mean we got to add it manually (as i did for the screenshot). Also which file to edit? (ok if its just css i know, i mean in the case if we add the icon in front)

Thank you very much. You are very helpful

*

KaloSex

  • ****
  • 135 posts
Re: Subforums list
« Reply #5 on: September 08, 2023, 02:14:52 PM »
Ok so, i did what i needed, one subforum per line with the "icon" in front of it on each line.

I attach the changes for anyone that might want to do the same.

I edited this on form/home.php:
Code: [Select]

                    <div class="frm-about">
                      <div class="frm-name"><a href="<?php echo frm_board_url($board); ?>"><?php echo frm_name($board); ?></a></div>

                      <?php if(isset($board['children']) && count($board['children']) > 0) { ?>
                        <div class="frm-subboards">
                          <div class="frm-square"></div>

                          <?php foreach($board['children'] as $subboard) { ?>
                            <a href="<?php echo frm_board_url($subboard); ?>"><?php echo frm_name($subboard); ?></a>
                          <?php ?>
                        </div>
                      <?php ?>

changed it to:
Code: [Select]
                    <div class="frm-about">
                      <div class="frm-name"><a href="<?php echo frm_board_url($board); ?>"><?php echo frm_name($board); ?></a></div>

                      <?php if(isset($board['children']) && count($board['children']) > 0) { ?>
                        <div class="frm-subboards">
                         

                          <?php foreach($board['children'] as $subboard) { ?>
                            <div class="frm-square"></div><a href="<?php echo frm_board_url($subboard); ?>"><?php echo frm_name($subboard); ?></a><br>
                          <?php ?>
                        </div>
                      <?php ?>