Custom Content in Forum Made Simple Problem
Posted: Thu Jun 05, 2008 5:06 pm
FrontEndUsers 1.4.2
CustomContent 1.5
FrontEndUserListing 0.4-beta-2
Forum 0.9.1
I am trying to add signatures to the bottom of posts
I created a signature property in FEU and now I'm having problems getting the smarty tag to display the correct members signature. Here is a big snippit of code i am using starting and ending with foreach smarty tag. This is from the Template: topic.
now the code thats killing me is the
I used every possible combination of these smarty tags
and the only code that i got to work is
Any ideas are appreciated
Heres the whole code for the topic template
CustomContent 1.5
FrontEndUserListing 0.4-beta-2
Forum 0.9.1
I am trying to add signatures to the bottom of posts
I created a signature property in FEU and now I'm having problems getting the smarty tag to display the correct members signature. Here is a big snippit of code i am using starting and ending with foreach smarty tag. This is from the Template: topic.
Code: Select all
{foreach from=$items item=entry}
{cycle values="forum_alternate1,forum_alternate2" assign="alt_bgcolor"}
<tr>
<td class="forum_info {$alt_bgcolor}">{$entry->poster}
{if $entry->rank > 0}<br />{repeat string=$starimage times=$entry->rank}{/if}
{if $entry->postings > 0}<br />{$forum_posts}: {$entry->postings}{/if}
<br />{$entry->postdate}
{if isset($entry->poster_ip)}<br />{$entry->poster_ip}{/if}
{if $entry->avatar}<br /><img src="{$entry->avatar}" alt="avatar" title="avatar" />{/if}<br><br>
{if isset($entry->edit_link)}{$entry->edit_link}{/if} {if isset($entry->delete_link)}{$entry->delete_link}{/if}
{if isset($entry->last_edit)}<br />
{$entry->last_edit}<br />
{$entry->editor}<br />
{$entry->editordate}<br />
{if isset($entry->editor_ip)}{$entry->editor_ip}<br />{/if}
{/if}
<br />
</td>
<td class="forum_content {$alt_bgcolor}">
{$entry->body}
{if isset($signature)}<br><hr size="1px"><br>{$signature}{/if}
</td>
</tr>
{/foreach}
Code: Select all
{if isset($signature)}<br><hr size="1px"><br>{$signature}{/if}
Code: Select all
$entry.signature
$entry->signature
$entry.signature->data
$signature
Code: Select all
{if isset($signature)}<br><hr size="1px"><br>{$signature}{/if}
Heres the whole code for the topic template
Code: Select all
<div id='forum'>
<div class="breadcrumbs forum">{$breadcrumbs}</div>
<!-- topic -->
{if isset($message)}<p>{$message}</p>{/if}
<br />
{if $pagecount > 1}
<p class="forum_pagination">
{if $pagenumber > 1}
{$firstpage} {$prevpage}
{/if}
{$pagetext} {$pagenumber} {$oftext} {$pagecount}
{if $pagenumber < $pagecount}
{$nextpage} {$lastpage}
{/if}
</p>
{/if}
{if $itemcount > 0}
<br />
<table class="forum_pagetable" cellspacing="0">
<thead>
<tr>
<th class="forum_head_table forum_head_topic" colspan="3">{$topic_subject} - {$poster}</th>
</tr>
<tr>
<td class="forum_head_table forum_head_reply" colspan="3">{if isset($topic_reply_link)}{$topic_reply_link}{/if}</td>
</tr>
</thead>
<tbody>
{foreach from=$items item=entry}
{cycle values="forum_alternate1,forum_alternate2" assign="alt_bgcolor"}
<tr>
<td class="forum_info {$alt_bgcolor}">{$entry->poster}
{if $entry->rank > 0}<br />{repeat string=$starimage times=$entry->rank}{/if}
{if $entry->postings > 0}<br />{$forum_posts}: {$entry->postings}{/if}
<br />{$entry->postdate}
{if isset($entry->poster_ip)}<br />{$entry->poster_ip}{/if}
{if $entry->avatar}<br /><img src="{$entry->avatar}" alt="avatar" title="avatar" />{/if}<br><br>
{if isset($entry->edit_link)}{$entry->edit_link}{/if} {if isset($entry->delete_link)}{$entry->delete_link}{/if}
{if isset($entry->last_edit)}<br />
{$entry->last_edit}<br />
{$entry->editor}<br />
{$entry->editordate}<br />
{if isset($entry->editor_ip)}{$entry->editor_ip}<br />{/if}
{/if}
<br />
</td>
<td class="forum_content {$alt_bgcolor}">
{$entry->body}
{if isset($signature)}<br><hr size="1px"><br>{$signature}{/if}
</td>
</tr>
{/foreach}
<tr>
<td class="forum_head_table forum_head_reply" colspan="3">{if isset($topic_reply_link)}{$topic_reply_link}{/if}</td>
</tr>
</tbody>
</table>
{else}
<p>{$topic_empty}</p>
{/if}
</div>
-- 0:) Trevix 
