inherit
252670
0
Mar 22, 2019 14:05:03 GMT -8
laurieluvsliason
I can't explain it. It's not logical. That's why it's love.
125
February 2018
laurieluvsliason
|
Post by laurieluvsliason on Jul 15, 2018 8:08:10 GMT -8
Hi. I had a code to make the first post appear at the top of every page & had to re-doa theme & now can't seem to find it. Any help please?
|
|
inherit
76165
0
Jul 1, 2018 21:15:48 GMT -8
Beckea
Relax with a good book!
930
April 2006
purplescraps
|
Post by Beckea on Jul 15, 2018 9:30:35 GMT -8
Here it is:
*Replace everything in Structure > Layout Templates > Thread > Post List with this.
{foreach $[post]} {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 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] </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} {/foreach}
{foreach $[post]} {if $[post.id] != $[post.thread.first_post.id]} <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}
|
|
inherit
252670
0
Mar 22, 2019 14:05:03 GMT -8
laurieluvsliason
I can't explain it. It's not logical. That's why it's love.
125
February 2018
laurieluvsliason
|
Post by laurieluvsliason on Jul 15, 2018 10:35:39 GMT -8
Thanks Becky. Perfect
|
|
inherit
76165
0
Jul 1, 2018 21:15:48 GMT -8
Beckea
Relax with a good book!
930
April 2006
purplescraps
|
Post by Beckea on Jul 15, 2018 18:49:50 GMT -8
Your welcome.
|
|