inherit
Peabrained Codebreaker
107114
0
Mar 11, 2020 7:47:27 GMT -8
Boy_Wonder
6,249
July 2007
natzy24
|
Post by Boy_Wonder on Jul 26, 2014 12:05:37 GMT -8
Okay you need to load up your Home template and find the part that looks like this:
{foreach $[category]} $[category.anchor]
It'll have a bunch of other text inside it as well.
You need to then adjust that to this:
{foreach $[category]} $[category.anchor] {if $[category.id]=="9"}<div id="OTM" style="display: inline-block;"> <div class="container boards" style="display: inline-block;"><div class="title-bar bbcode"><h2><div class="title_wrapper">$[category.display_name]</div></h2></div> <div class="content cap-bottom"> $[category.board_list] </div> </div> {else}
Then at the closing {foreach} for that part you need to add in a {/if} just before it
so it'll look like:
{/if} {/foreach}
Can you try that and see if that does the effect you're after?
|
|
inherit
204312
0
Aug 3, 2017 9:40:11 GMT -8
cracker0309
20
January 2014
cracker0309
|
Post by cracker0309 on Jul 26, 2014 12:31:20 GMT -8
I'm trying
|
|
inherit
Peabrained Codebreaker
107114
0
Mar 11, 2020 7:47:27 GMT -8
Boy_Wonder
6,249
July 2007
natzy24
|
Post by Boy_Wonder on Jul 26, 2014 12:33:17 GMT -8
Is there a particular point you get stuck on? Could you copy paste the existing code starting from the {foreach $[category]} {/foreach}
and I can make the modifications for you if that helps?
|
|
inherit
204312
0
Aug 3, 2017 9:40:11 GMT -8
cracker0309
20
January 2014
cracker0309
|
Post by cracker0309 on Jul 26, 2014 12:36:57 GMT -8
I did it and the pic came up inside the thread and not on the homepage
|
|
inherit
204312
0
Aug 3, 2017 9:40:11 GMT -8
cracker0309
20
January 2014
cracker0309
|
Post by cracker0309 on Jul 26, 2014 12:37:56 GMT -8
What I put in
{foreach $[category]}
$[category.anchor]
{if $[category.id]=="9"}<div id="OTM" style="display: inline-block;">
<div class="container boards" style="display: inline-block;"><div class="title-bar bbcode"><h2><div class="title_wrapper">$[category.display_name]</div></h2></div>
<div class="content cap-bottom">
$[category.board_list]
</div>
</div>
{else}
{/if}
{/foreach}
|
|
inherit
Peabrained Codebreaker
107114
0
Mar 11, 2020 7:47:27 GMT -8
Boy_Wonder
6,249
July 2007
natzy24
|
Post by Boy_Wonder on Jul 26, 2014 12:43:02 GMT -8
Are you sure you selected the template called "Home" on the Forum templates list
If yes can you reset it to default and just copy the foreach code that's already there directly?
|
|
inherit
204312
0
Aug 3, 2017 9:40:11 GMT -8
cracker0309
20
January 2014
cracker0309
|
Post by cracker0309 on Jul 26, 2014 12:47:12 GMT -8
|
|
inherit
Peabrained Codebreaker
107114
0
Mar 11, 2020 7:47:27 GMT -8
Boy_Wonder
6,249
July 2007
natzy24
|
Post by Boy_Wonder on Jul 26, 2014 12:48:48 GMT -8
Okay I know the problem
You see where it states <div class="container boards"> etc, copy that paste it after the {else} but before the {/if} and remove the style="display: inline-block;"
|
|
inherit
204312
0
Aug 3, 2017 9:40:11 GMT -8
cracker0309
20
January 2014
cracker0309
|
Post by cracker0309 on Jul 26, 2014 12:54:55 GMT -8
I don't see the style="display: inline-block;
|
|
inherit
Peabrained Codebreaker
107114
0
Mar 11, 2020 7:47:27 GMT -8
Boy_Wonder
6,249
July 2007
natzy24
|
Post by Boy_Wonder on Jul 26, 2014 12:56:18 GMT -8
Adjust that part to this:
{foreach $[category]}
$[category.anchor]
{if $[category.id]=="9"}<div id="OTM" style="display: inline-block;">
<div class="container boards" style="display: inline-block;"><div class="title-bar bbcode"><h2><div class="title_wrapper">$[category.display_name]</div></h2></div>
<div class="content cap-bottom">
$[category.board_list]
</div>
</div>
{else} <div class="container boards"><div class="title-bar bbcode"><h2><div class="title_wrapper">$[category.display_name]</div></h2></div>
<div class="content cap-bottom">
$[category.board_list]
</div>
</div>
{/if}
{/foreach}
|
|
inherit
204312
0
Aug 3, 2017 9:40:11 GMT -8
cracker0309
20
January 2014
cracker0309
|
Post by cracker0309 on Jul 26, 2014 12:58:31 GMT -8
It put it on the bottom of the page. Kind of a pita huh? Thanks for your help again
|
|
inherit
Peabrained Codebreaker
107114
0
Mar 11, 2020 7:47:27 GMT -8
Boy_Wonder
6,249
July 2007
natzy24
|
Post by Boy_Wonder on Jul 26, 2014 13:03:21 GMT -8
It shouldn't do - let me check the category id again Hang on I found an error in my own code - recopy and paste please:
{foreach $[category]}
$[category.anchor]
{if $[category.id]=="9"}<div id="OTM" style="display: inline-block;"> </div> <div class="container boards" style="display: inline-block;"><div class="title-bar bbcode"><h2><div class="title_wrapper">$[category.display_name]</div></h2></div>
<div class="content cap-bottom">
$[category.board_list]
</div>
</div>
{else}
<div class="container boards"><div class="title-bar bbcode"><h2><div class="title_wrapper">$[category.display_name]</div></h2></div>
<div class="content cap-bottom">
$[category.board_list]
</div>
</div>
{/if}
{/foreach}
cracker0309
|
|
inherit
204312
0
Aug 3, 2017 9:40:11 GMT -8
cracker0309
20
January 2014
cracker0309
|
Post by cracker0309 on Jul 26, 2014 13:12:24 GMT -8
You are the man. Thank You!!
|
|
inherit
Peabrained Codebreaker
107114
0
Mar 11, 2020 7:47:27 GMT -8
Boy_Wonder
6,249
July 2007
natzy24
|
Post by Boy_Wonder on Jul 26, 2014 13:12:59 GMT -8
You're welcome! I assume that fixed it for you!
|
|
inherit
204312
0
Aug 3, 2017 9:40:11 GMT -8
cracker0309
20
January 2014
cracker0309
|
Post by cracker0309 on Jul 26, 2014 13:13:48 GMT -8
Yes!! Perfect
|
|