inherit
\o/ ^o^ /o_ /o\
16464
0
Apr 28, 2024 3:27:19 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Aug 29, 2013 12:34:30 GMT -8
Sod it, I'm gonna tag BrianHe's usually good at fixing stuff I've broken. =P OI, venub, come make my code work. =]
|
|
inherit
187402
0
Mar 23, 2016 19:15:19 GMT -8
Barkley
1,590
December 2012
avinalaff
|
Post by Barkley on Aug 29, 2013 12:35:49 GMT -8
{if !$[current_user.is_member]} {if $[thread.board.id] == "8"} <div class="container posts"> <div class="title-bar"> <h2>Error!</h2> </div> <div class="content cap-botom"> <div style="padding: 10px;"> Error Message </div> </div> </div> {/if} {else}
<div class="container posts"> <div class="title-bar"> {if $[reply_button]} <ul class="controls"><li>$[reply_button]</li></ul> {/if} <h1>$[thread.subject]</h1> </div> <div class="control-bar ui-helper-clearfix $[scroll_class]"> $[search] <div class="controls"> $[action_menu] </div> <div class="float-left">$[thread.icons]</div> $[pagination] </div> <div class="content cap-bottom"> $[thread.labels] $[poll] <table class="list" role="presentation"> <tbody class="$[list_class]"> $[post_list] </tbody> </table> {if !$[quick_reply]}{if $[bottom_reply_button]} <div class="reply_button pad-all-double">$[bottom_reply_button]<br class="clear" /></div> {/if}{/if} </div> </div> <div class="secondary_pagination">$[pagination]</div> $[quick_reply] {/if}
|
|
inherit
187402
0
Mar 23, 2016 19:15:19 GMT -8
Barkley
1,590
December 2012
avinalaff
|
Post by Barkley on Aug 29, 2013 12:46:48 GMT -8
OK, the following is a default thread template:
<div class="container posts"> <div class="title-bar"> {if $[reply_button]} <ul class="controls"><li>$[reply_button]</li></ul> {/if} <h1>$[thread.subject]</h1> </div> <div class="control-bar ui-helper-clearfix $[scroll_class]"> $[search] <div class="controls"> $[action_menu] </div> <div class="float-left">$[thread.icons]</div> $[pagination] </div> <div class="content cap-bottom"> $[thread.labels] $[poll] <table class="list" role="presentation"> <tbody class="$[list_class]"> $[post_list] </tbody> </table> {if !$[quick_reply]}{if $[bottom_reply_button]} <div class="reply_button pad-all-double">$[bottom_reply_button]<br class="clear" /></div> {/if}{/if} </div> </div> $[quick_reply]
I just want to view the 2 together
|
|
inherit
187402
0
Mar 23, 2016 19:15:19 GMT -8
Barkley
1,590
December 2012
avinalaff
|
Post by Barkley on Aug 29, 2013 12:58:18 GMT -8
Paul, it works on my own test forum. The only difference I see is the secondary pagination. Is this causing your code not to work?
|
|
inherit
187402
0
Mar 23, 2016 19:15:19 GMT -8
Barkley
1,590
December 2012
avinalaff
|
Post by Barkley on Aug 29, 2013 13:03:14 GMT -8
Answer - no.
Added pagination to test site and still works, so the issue lies elsewhere on my forum.
|
|
#eb7100
33409
0
1
May 3, 2024 16:38:41 GMT -8
Brian
48,129
November 2004
smashmaster3
|
Post by Brian on Aug 29, 2013 13:12:36 GMT -8
Being on a custom domain has nothing to do with templates working or not working.
The primary reason it's breaking in other boards is because your if statement is telling it that if you're a guest, the post list shouldn't render at all, ever. Both of the conditions of the if statements should be used at the same time as part of one if statement.
Start over and add this to the top of the template. And add this to the very bottom.
If you want it to affect every board on your forum, you can remove the part in green.
|
|
inherit
196452
0
Nov 1, 2013 7:40:31 GMT -8
Baller95
What's for dinner?: Food
1,771
July 2013
baller95
|
Post by Baller95 on Aug 29, 2013 13:15:27 GMT -8
Brian, mine is currently working so I don't have to do any changes do I?
|
|
#eb7100
33409
0
1
May 3, 2024 16:38:41 GMT -8
Brian
48,129
November 2004
smashmaster3
|
Post by Brian on Aug 29, 2013 13:16:23 GMT -8
Brian, mine is currently working so I don't have to do any changes do I? To your knowledge. I recommend mine as it's the sure way to make it work.
|
|
inherit
187402
0
Mar 23, 2016 19:15:19 GMT -8
Barkley
1,590
December 2012
avinalaff
|
Post by Barkley on Aug 29, 2013 13:16:35 GMT -8
Being on a custom domain has nothing to do with templates working or not working. The primary reason it's breaking in other boards is because your if statement is telling it that if you're a guest, the post list shouldn't render at all, ever. Both of the conditions of the if statements should be used at the same time as part of one if statement. Start over and add this to the top of the template. And add this to the very bottom. Thanks Brian. I have implemented the above and no difference.
|
|
#eb7100
33409
0
1
May 3, 2024 16:38:41 GMT -8
Brian
48,129
November 2004
smashmaster3
|
Post by Brian on Aug 29, 2013 13:18:27 GMT -8
Thanks Brian. I have implemented the above and no difference. You need to add it to your default theme. That's the one that guests see.
|
|
inherit
187402
0
Mar 23, 2016 19:15:19 GMT -8
Barkley
1,590
December 2012
avinalaff
|
Post by Barkley on Aug 29, 2013 13:20:46 GMT -8
ok, I've found the problem.
It only works if you are using the default theme. I wasn't on default.
|
|
inherit
187402
0
Mar 23, 2016 19:15:19 GMT -8
Barkley
1,590
December 2012
avinalaff
|
Post by Barkley on Aug 29, 2013 13:22:06 GMT -8
Thanks Brian. I have implemented the above and no difference. You need to add it to your default theme. That's the one that guests see. Ha ha, I am a genius
|
|
inherit
187402
0
Mar 23, 2016 19:15:19 GMT -8
Barkley
1,590
December 2012
avinalaff
|
Post by Barkley on Aug 29, 2013 13:23:04 GMT -8
Brilliant guys - thank you.
If I want to add extra boards, is it just a case of adding another number line?
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
Apr 28, 2024 3:27:19 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Aug 29, 2013 13:27:12 GMT -8
{if $[thread.board.id] == 8 && !$[current_user.is_member]} We can do that?! How did I not already know this? >_< Is it just && that works, or can we use || too? ok, I've found the problem. It only works if you are using the default theme. I wasn't on default. Somehow that never actually occurred to me. I blame sleep deprivation. =P[/quote]
|
|
inherit
187402
0
Mar 23, 2016 19:15:19 GMT -8
Barkley
1,590
December 2012
avinalaff
|
Post by Barkley on Aug 29, 2013 13:31:20 GMT -8
{if $[thread.board.id] == 8 && !$[current_user.is_member]} We can do that?! How did I not already know this? >_< Is it just && that works, or can we use || too? ok, I've found the problem. It only works if you are using the default theme. I wasn't on default. Somehow that never actually occurred to me. I blame sleep deprivation. =P [/quote] I'm the same Paul. Only 3 hours last night. Had fallen asleep for an hour earlier, hence the delay in replying. I appreciate your efforts very much.
|
|