The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

How to move subcategories list inside forum

View previous topic View next topic Go down

How to move subcategories list inside forum

Post by Shaw on February 26th 2014, 1:28 am

Since it's my first post I would like to say Hi Hello

My problem is rather simple, yet I couldn't find the proper option in the administration panel or the solution on support forum.
When I have a forum category with subcategories attached to it and I go into mentioned category, I can see the list of subcategories showing on top and topics from the main category below. I would like to change that order. Here's the picture that will explain what I mean.



It can probably be done using proper command line, but I'm not really familiar with CSS, HTML and Java scripting I admit.

Any help would be appreciated.

Shaw
New Member

Posts : 6
Reputation : 1
Language : Polish/English

http://aegisglobal.forumotion.co.uk/

Back to top Go down

Re: How to move subcategories list inside forum

Post by Pizza Boi on February 26th 2014, 8:53 pm

Hi Very Happy

Well, I tried removing the template codes from one of the templates and input it in the topic template, but... even if I did modify it, some of the chunks kept on repeating and I can't remove all of them since I'll receive the message: "Not Authorized".

Anyway, moving this via CSS would be okay too, but I doubt this code I'll provide will work:

Code:
div.main-head, div.main-content {
position: float/fixed/absolute; /* Try any of the 3 */
top/bottom: 300px; /* Modify it to your liking */
}

My speculation for the above code that if ever it does work, it would be solely based on one part of the forum or if ever, will even over-lap the original topic, so you if you want to move the "Topics List" above, check your console for the ID and then declare codes for it to be moved up.

I'm sorry I can't help much.

Regards,
Pizza Boi

Pizza Boi
Hyperactive

Male Posts : 2016
Reputation : 160
Language : French
Location : Pizza Hut!

http://redlustempire.forumtl.com/

Back to top Go down

Re: How to move subcategories list inside forum

Post by Shaw on February 27th 2014, 1:37 pm

Thanks for reply Pizza Boi Smile

I did try the code but nothing really changed in the way it's displayed.
Thank you though.

Shaw
New Member

Posts : 6
Reputation : 1
Language : Polish/English

http://aegisglobal.forumotion.co.uk/

Back to top Go down

Re: How to move subcategories list inside forum

Post by Luffy on March 1st 2014, 1:58 am

To do that you must go:
Admin Panel >> Display >> Templates >> General >> topics_list_box

and find this part in your code:
Code:
<!-- BEGIN table_sticky -->
      </tbody>
   </table>
   </div>

   <div class="main-head">
      <!-- BEGIN multi_selection -->
      <input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" /   >
      <!-- END multi_selection -->
      <h2>{topics_list_box.row.topic.table_sticky.L_TITLE} [{topics_list_box.row.topic.table_sticky.COUNT_TOTAL_TOPICS}]</h2>
   </div>
   <div class="main-content">
   <table cellspacing="0" class="table">
      <thead>
         <tr>
            <th class="tcl">{L_TOPICS}</th>
            <th class="tc2">{topics_list_box.row.topic.table_sticky.L_REPLIES}</th>
            <th class="tc3">{topics_list_box.row.topic.table_sticky.L_VIEWS}</th>
            <th class="tcr">{topics_list_box.row.topic.table_sticky.L_LASTPOST}</th>
         </tr>
      </thead>
      <tbody class="statused">
   <!-- END table_sticky -->

and place it at the top of the template code. That should change it.

Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

Re: How to move subcategories list inside forum

Post by Shaw on March 1st 2014, 1:53 pm

Thanks Marios94 Smile

I tried that, moved this line of the code to very top of template and saved it, but it didn't work I'm afraid :/

Thank you for your help

Shaw
New Member

Posts : 6
Reputation : 1
Language : Polish/English

http://aegisglobal.forumotion.co.uk/

Back to top Go down

Re: How to move subcategories list inside forum

Post by Kiyomizu on March 1st 2014, 2:16 pm

@Shaw wrote:Thanks Marios94 Smile

I tried that, moved this line of the code to very top of template and saved it, but it didn't work I'm afraid :/

Thank you for your help

Hello,

Have you good registered your template ? (Add)

Thanks

Kiyomizu
Forumember

Male Posts : 201
Reputation : 30
Language : French and English
Location : France

http://forum.sosblog.fr/

Back to top Go down

Re: How to move subcategories list inside forum

Post by Shaw on March 2nd 2014, 5:03 pm

Hi.

Yea I did press the "Publish" icon as well, but like I said no changes occurred.

Shaw
New Member

Posts : 6
Reputation : 1
Language : Polish/English

http://aegisglobal.forumotion.co.uk/

Back to top Go down

Re: How to move subcategories list inside forum

Post by Luffy on March 4th 2014, 11:24 pm

Could you provide all the template here to give it a check? If not and you prefer to send it via pm then i am available at any time..






Luffy
Manager
Manager

Male Posts : 4035
Reputation : 407
Language : Greek, English
Location : Greece

http://www.thinktankforum.net

Back to top Go down

Re: How to move subcategories list inside forum

Post by Shaw on March 5th 2014, 8:36 pm

Sure, no problem bro. Again thank you for your help.

Code:
<!-- BEGIN table_sticky -->
      </tbody>
   </table>
   </div>

   <div class="main-head">
      <!-- BEGIN multi_selection -->
      <input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" /   >
      <!-- END multi_selection -->
      <h2>{topics_list_box.row.topic.table_sticky.L_TITLE} [{topics_list_box.row.topic.table_sticky.COUNT_TOTAL_TOPICS}]</h2>
   </div>
   <div class="main-content">
   <table cellspacing="0" class="table">
      <thead>
         <tr>
            <th class="tcl">{L_TOPICS}</th>
            <th class="tc2">{topics_list_box.row.topic.table_sticky.L_REPLIES}</th>
            <th class="tc3">{topics_list_box.row.topic.table_sticky.L_VIEWS}</th>
            <th class="tcr">{topics_list_box.row.topic.table_sticky.L_LASTPOST}</th>
         </tr>
      </thead>
      <tbody class="statused">
   <!-- END table_sticky -->
<!-- BEGIN topics_list_box -->
<!-- BEGIN row -->
<!-- BEGIN header_table -->
   <!-- BEGIN multi_selection -->
      <script type="text/javascript">
      function check_uncheck_main_{topics_list_box.row.header_table.BOX_ID}() {
         var all_checked = true;
         for (i = 0; (i < document.{topics_list_box.FORMNAME}.elements.length) && all_checked; i++) {
         if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}') {
            all_checked = document.{topics_list_box.FORMNAME}.elements[i].checked;
         }
         }
         document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked = all_checked;
      }
      function check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}() {
         for (i = 0; i < document.{topics_list_box.FORMNAME}.length; i++) {
         if (document.{topics_list_box.FORMNAME}.elements[i].name == '{topics_list_box.FIELDNAME}[]{topics_list_box.row.header_table.BOX_ID}') {
            document.{topics_list_box.FORMNAME}.elements[i].checked = document.{topics_list_box.FORMNAME}.all_mark_{topics_list_box.row.header_table.BOX_ID}.checked;
         }
         }
      }
      </script>
   <!-- END multi_selection -->

   <div class="main-head">
      <!-- BEGIN multi_selection -->
      <input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" />
      <!-- END multi_selection -->
      <h1 class="page-title">{topics_list_box.row.L_TITLE} [{topics_list_box.row.COUNT_TOTAL_TOPICS}]</h1>
   </div>
   <div class="main-content">
   <table cellspacing="0" class="table">
      <thead>
         <tr>
            <th class="tcl">{L_TOPICS}</th>
            <th class="tc2">{topics_list_box.row.L_REPLIES}</th>
            <th class="tc3">{topics_list_box.row.L_VIEWS}</th>
            <th class="tcr">{topics_list_box.row.L_LASTPOST}</th>
         </tr>
      </thead>
      <tbody class="statused">
<!-- END header_table -->

<!-- BEGIN header_row -->
<strong>{topics_list_box.row.L_TITLE}</strong>
<!-- END header_row -->

<!-- BEGIN topic -->
   
      <tr>
         <td class="tcl tdtopics <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->">
            <span class="status">
               <img title="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" src="{topics_list_box.row.TOPIC_FOLDER_IMG}" alt="{topics_list_box.row.L_TOPIC_FOLDER_ALT}" />
            </span>
            <!-- BEGIN single_selection -->
            <input type="radio" name="{topics_list_box.FIELDNAME}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} />
            <!-- END single_selection -->
            {topics_list_box.row.ICON}
            {topics_list_box.row.NEWEST_POST_IMG}
            {topics_list_box.row.PARTICIPATE_POST_IMG}
            {topics_list_box.row.TOPIC_TYPE}
            <h2 class="topic-title"><a class="topictitle" href="{topics_list_box.row.U_VIEW_TOPIC}">{topics_list_box.row.TOPIC_TITLE}</a></h2>
            {topics_list_box.row.GOTO_OPEN} {topics_list_box.row.GOTO_PAGE_NEW} {topics_list_box.row.GOTO_CLOSE}
            {topics_list_box.row.L_BY} {topics_list_box.row.TOPIC_AUTHOR}
            <!-- BEGIN switch_description -->
            <br />
            {topics_list_box.row.topic.switch_description.TOPIC_DESCRIPTION}
            <!-- END switch_description -->
         </td>
         <td class="tc2 <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->">{topics_list_box.row.REPLIES}</td>
         <td class="tc3 <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->">{topics_list_box.row.VIEWS}</td>
         <td class="tcr <!-- BEGIN line_sticky --> sticky-separator <!-- END line_sticky -->">{topics_list_box.row.LAST_POST_TIME} {topics_list_box.row.L_BY} {topics_list_box.row.LAST_POST_AUTHOR} {topics_list_box.row.LAST_POST_IMG}</td>
         <!-- BEGIN multi_selection -->
         <td><input onclick="javascript:check_uncheck_main_{topics_list_box.row.BOX_ID}();" type="checkbox" name="{topics_list_box.FIELDNAME}[]{topics_list_box.row.BOX_ID}" value="{topics_list_box.row.FID}" {topics_list_box.row.L_SELECT} /></td>
         <!-- END multi_selection -->
      </tr>
<!-- END topic -->
<!-- BEGIN no_topics -->
<tr>
   <td class="tcl" colspan="4"><strong>{topics_list_box.row.L_NO_TOPICS}</strong></td>
</tr>
<!-- END no_topics -->

<!-- BEGIN bottom -->
      </tbody>
   </table>
   </div>
   <div class="main-foot clearfix">
      <!-- BEGIN multi_selection -->
      <input onclick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" />
      <!-- END multi_selection -->
      <p class="h2">{L_TOPICS} [{topics_list_box.row.bottom.COUNT_TOTAL_TOPICS}]</p>
      <p class="options">
         <a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a>{S_WATCH_FORUM}<a href="#top">{L_BACK_TO_TOP}</a>
      </p>
   </div>
<!-- END bottom -->
<!-- BEGIN spacer --><br /><!-- END spacer -->
<!-- END row -->
<!-- END topics_list_box -->

Shaw
New Member

Posts : 6
Reputation : 1
Language : Polish/English

http://aegisglobal.forumotion.co.uk/

Back to top Go down

Re: How to move subcategories list inside forum

Post by Shaw on March 12th 2014, 4:21 pm

Since we couldn't find the solution I'm asking to close the topic. Thank you.

Shaw
New Member

Posts : 6
Reputation : 1
Language : Polish/English

http://aegisglobal.forumotion.co.uk/

Back to top Go down

Re: How to move subcategories list inside forum

Post by SLGray on March 12th 2014, 4:28 pm

Locked as Requested


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35667
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum