inherit
217158
0
Oct 24, 2020 18:36:20 GMT -8
Ginger
53
December 2014
gingerfrost2
|
Post by Ginger on Jul 18, 2020 17:35:54 GMT -8
Okay, so I'm not sure what to put for the title.. But that's the best I could come up with. Basically I need a way so that a singular Thread would have a different Posting design than anywhere else on the forum. But I ran to a slight problem, I can't figure out which variables to use. I have a theory I Could do individual post Ids, but only change them after their made... And I rather set it up As they're being made.. The closest I've achieved are these.. This media.discordapp.net/attachments/671109372054863913/734183750040158328/unknown.png?width=839&height=315Instead of this cdn.discordapp.com/attachments/671109372054863913/734183682918842458/unknown.pngBut... The problem with the method I had use, it won't post the actual post_list.. I want the Actual Post list modified. Just is there any variable allow to me to change posts in specific threads?
Here placing what I tried code-wise.. [but its in the Thread Tab of templates... I need it to work in the Post list Tab] {if $[thread.id] == '5'} <table class="list" role="presentation" style="overflow:visible;"> <tbody > <div style="background-color:black;color:white;padding:50px;width:99%;"> Too Tired To do this anymore.... </div></tbody></table> {else} <table class="list" role="presentation" style="overflow:visible;"> <tbody class="$[list_class]"> $[post_list] </tbody> </table>{/if}
|
|
Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Jul 18, 2020 20:11:50 GMT -8
I gotchu!
In the Post List tab, you need to use $[post.thread.id] like this (notice no quotes in the thread ID):
{foreach $[post]} {if $[post.thread.id] == 5} [your code here] {else} [default code here] {/if} {/foreach}
|
|
inherit
217158
0
Oct 24, 2020 18:36:20 GMT -8
Ginger
53
December 2014
gingerfrost2
|
Post by Ginger on Jul 20, 2020 5:53:45 GMT -8
Sorry for late reply, But Thank you it worked!
I did try that, and didn't realize because of the quotes. THANK YOU, I would've been staring at the Screen forever clueless.
|
|
Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Jul 20, 2020 8:10:40 GMT -8
Sorry for late reply, But Thank you it worked! I did try that, and didn't realize because of the quotes. THANK YOU, I would've been staring at the Screen forever clueless. You're welcome! As a tip, you only need quotes if you're calling out a name. If you did something like $[category.name], you would use quotes when declaring the name, like so: $[category.name] == "Bob" ^ Note that this is case sensitive. "Bob" and "bob" would be considered two different names.
|
|