#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:40:01 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? You can now. They both work. You can also use parenthesis. support.proboards.com/thread/474166If I want to add extra boards, is it just a case of adding another number line? Nope. It's a bit more complicated than that. Here's an example with multiple board IDs.
|
|
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:56:38 GMT -8
We can do that?! How did I not already know this? >_< Is it just && that works, or can we use || too? You can now. They both work. You can also use parenthesis. support.proboards.com/thread/474166If I want to add extra boards, is it just a case of adding another number line? Nope. It's a bit more complicated than that. Here's an example with multiple board IDs. Thanks Brian Ordonez. You've all helped me out a lot.
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
May 5, 2024 0:06:36 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Aug 29, 2013 13:58:49 GMT -8
We can do that?! How did I not already know this? >_< Is it just && that works, or can we use || too? You can now. They both work. You can also use parenthesis. support.proboards.com/thread/474166Can't say I know what the parenthesis do, but this is my favourite thing in ages. =D Aside from the fact that I now have a load of old coding to rework. >_<
|
|
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 14:28:30 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. Done! Thanks pawl and Brian for the help and I'm glad Barkley has got everything sorted
|
|
#00AF33
Bark Different.
102833
0
1
Feb 12, 2023 16:57:46 GMT -8
RedBassett
I'm a Marxist/Lennonist of the Groucho/John variety.
15,405
April 2007
applecomputer
RedBassett's Mini-Profile
|
Post by RedBassett on Aug 29, 2013 14:31:46 GMT -8
Can't say I know what the parenthesis do, but this is my favourite thing in ages. =D Grouping.
|
|
#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 14:32:24 GMT -8
Can't say I know what the parenthesis do, but this is my favourite thing in ages. =D Aside from the fact that I now have a load of old coding to rework. >_< You can do something like in my previous post. That tells it that if you're a guest and you're in any of those boards inside the paranthesis, it should output the contents within the if statement. That way you can just keep adding on to a single if statement using || (the "or" operator) instead of having to repeat the same if statement and its output over and over again. Without the parenthesis, you'd have to do something like this. Having operators and parenthesis saves a lot of time.
|
|
inherit
187402
0
Mar 23, 2016 19:15:19 GMT -8
Barkley
1,590
December 2012
avinalaff
|
Post by Barkley on Aug 29, 2013 15:42:20 GMT -8
We can do that?! How did I not already know this? >_< Is it just && that works, or can we use || too? You can now. They both work. You can also use parenthesis. support.proboards.com/thread/474166If I want to add extra boards, is it just a case of adding another number line? Nope. It's a bit more complicated than that. Here's an example with multiple board IDs.
|
|
inherit
187402
0
Mar 23, 2016 19:15:19 GMT -8
Barkley
1,590
December 2012
avinalaff
|
Post by Barkley on Aug 29, 2013 15:44:06 GMT -8
We can do that?! How did I not already know this? >_< Is it just && that works, or can we use || too? You can now. They both work. You can also use parenthesis. support.proboards.com/thread/474166If I want to add extra boards, is it just a case of adding another number line? Nope. It's a bit more complicated than that. Here's an example with multiple board IDs. Brian Ordonez , I've just realised it's actually not working. The message comes up, but the post is there underneath lol. Also, it is readable using the hover.
|
|
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 16:51:59 GMT -8
Also, it is readable using the hover. Good call!
|
|
inherit
187402
0
Mar 23, 2016 19:15:19 GMT -8
Barkley
1,590
December 2012
avinalaff
|
Post by Barkley on Aug 30, 2013 2:00:18 GMT -8
Bumpety bump
|
|
inherit
187402
0
Mar 23, 2016 19:15:19 GMT -8
Barkley
1,590
December 2012
avinalaff
|
Post by Barkley on Aug 30, 2013 4:21:40 GMT -8
ok, I fixed it. I'd tagged the code again without thinking, so after deleting the <!--tags--> it's working, although you can still view using the hover (not hugely important, but .... )
|
|
inherit
187402
0
Mar 23, 2016 19:15:19 GMT -8
Barkley
1,590
December 2012
avinalaff
|
Post by Barkley on Aug 30, 2013 5:07:04 GMT -8
Also, the multiple board code only works on the last number in the list.
|
|
inherit
\o/ ^o^ /o_ /o\
16464
0
May 5, 2024 0:06:36 GMT -8
pawl
29,621
November 2003
pollo
Pink Stars
|
Post by pawl on Aug 30, 2013 6:06:31 GMT -8
Can't say I know what the parenthesis do, but this is my favourite thing in ages. =D Aside from the fact that I now have a load of old coding to rework. >_< You can do something like in my previous post. That tells it that if you're a guest and you're in any of those boards inside the paranthesis, it should output the contents within the if statement. That way you can just keep adding on to a single if statement using || (the "or" operator) instead of having to repeat the same if statement and its output over and over again. Without the parenthesis, you'd have to do something like this. Having operators and parenthesis saves a lot of time. Ahh, makes perfect sense. Think I must have just read it wrong last night, because that's a ridiculously obvious use. >_< xD Still, rather pleased that it's been added, s'something that I felt was missing months ago when I first started playing with my forum. Soon as my macbook decides it wants to work properly again I'll be playing with my templates again - no end of stuff that I can condense down now. =]
|
|
inherit
187402
0
Mar 23, 2016 19:15:19 GMT -8
Barkley
1,590
December 2012
avinalaff
|
Post by Barkley on Aug 30, 2013 13:03:06 GMT -8
Also, the multiple board code only works on the last number in the list.
|
|
inherit
187402
0
Mar 23, 2016 19:15:19 GMT -8
Barkley
1,590
December 2012
avinalaff
|
Post by Barkley on Aug 31, 2013 14:26:44 GMT -8
Any chance of the multiple code tested please ?
|
|