Post by SafeInSanity on Jan 21, 2019 6:47:55 GMT -8
Hey Ulises Tumbleweed
Remember this code that you guys made to sticky the first post in a thread to the top of the page and add the green lines at the bottom to separate it from the other posts in a thread?
I have a few questions for you about it since I forgot. Was there another code that made this board specific or is this global across all boards? Secondly, could I change the secret word from "sticky" to "published" ?
Remember this code that you guys made to sticky the first post in a thread to the top of the page and add the green lines at the bottom to separate it from the other posts in a thread?
i{foreach $[post]}
{if $[post.thread.first_post.edited.reason] == "sticky"}
{if $[post.index] == 0}
<tr id="$[post.thread.first_post.content_id]" class="$[post.thread.first_post.content_class]{if $[post.thread.first_post.even]} even{/if}{if $[viewing_recent_posts]} recent{/if} first-post">
<td style="background-color:gray;border-bottom: 18px double green;margin-bottom:18px;" class="$[post.thread.first_post.unblocked_class]">
<table role="grid">
<tr>
<td class="left-panel" rowspan="2">
$[post.thread.first_post.created_by.miniprofile]
</td>
<td class="content">
<article>
<div class="content-head ui-helper-clearfix">
<div class="info">
$[post.thread.first_post.thread]
<span class="date">$[post.thread.first_post.created_on]</span>
{if $[post.thread.first_post.how_posted]}
<span class="post-method">via $[post.thread.first_post.how_posted]</span>
{/if}
$[post.thread.first_post.likes]
<span style="opacity:0.0;font-size;0px;">$[post.edited.reason]</span>
</div>
<div class="controls">
$[post.thread.first_post.quote_button]
$[post.thread.first_post.edit_button]
$[post.thread.first_post.likes.button]
$[post.thread.first_post.select_options]
</div>
</div>
<h3 class="title aria-hidden">Post by $[post.thread.first_post.created_by.name] on $[post.thread.first_post.created_on]</h3>
<div class="message">$[post.thread.first_post.message]</div>
</article>
</td>
</tr>
<tr>
<td class="foot">
{if $[post.thread.first_post.edited]}
<div class="edited_by"><span class="italic">Last Edit:</span> $[post.thread.first_post.edited.date] by $[post.thread.first_post.edited.by_user]{if $[post.thread.first_post.edited.reason]}: $[post.thread.first_post.edited.reason]{/if}</div>
{/if}
{if $[post.thread.first_post.created_by.signature]}
<div class="signature">$[post.thread.first_post.created_by.signature]</div>
{/if}
</td>
</tr>
</table>
</td>
{if $[post.thread.first_post.is_blocked]}
<td class="$[post.thread.first_post.blocked_class] content center">
<div class="message note pad-bottom">This post is hidden</div>
$[post.thread.first_post.display_blocked_post_button]
</td>
{/if}
</tr>
{/if}
{/if}
{/foreach}
{foreach $[post]}
{if $[post.edited.reason] != "sticky"}
<tr id="$[post.content_id]" class="$[post.content_class]{if $[post.even]} even{/if}{if $[viewing_recent_posts]} recent{/if}">
<td class="$[post.unblocked_class]">
<table role="grid">
<tr>
<td class="left-panel" rowspan="2">
$[post.created_by.miniprofile]
</td>
<td class="content">
<article>
<div class="content-head ui-helper-clearfix">
<div class="info">
$[post.thread]
<span class="date">$[post.created_on]</span>
{if $[post.how_posted]}
<span class="post-method">via $[post.how_posted]</span>
{/if}
$[post.likes]
</div>
<div class="controls">
$[post.quote_button]
$[post.edit_button]
$[post.likes.button]
$[post.select_options]
</div>
</div>
<h3 class="title aria-hidden">Post by $[post.created_by.name] on $[post.created_on]</h3>
<div class="message">$[post.message]</div>
</article>
</td>
</tr>
<tr>
<td class="foot">
{if $[post.edited]}
<div class="edited_by"><span class="italic">Last Edit:</span> $[post.edited.date] by $[post.edited.by_user]{if $[post.edited.reason]}: $[post.edited.reason]{/if}</div>
{/if}
{if $[post.created_by.signature]}
<div class="signature">$[post.created_by.signature]</div>
{/if}
</td>
</tr>
</table>
</td>
{if $[post.is_blocked]}
<td class="$[post.blocked_class] content center">
<div class="message note pad-bottom">This post is hidden</div>
$[post.display_blocked_post_button]
</td>
{/if}
</tr>
{/if}
{/foreach}
{if !$[post]}
<tr class="last"><td class="last center" colspan="1">No posts were found.</td></tr>
{/if}nsert code here
I have a few questions for you about it since I forgot. Was there another code that made this board specific or is this global across all boards? Secondly, could I change the secret word from "sticky" to "published" ?