Hi, can someone tell me how to add a reply button to the top of thread view? Thanks
<div style="float:right">
<xen:if is="{$canReply}">
<a href="{xen:link 'threads/reply', $thread}"><input type="submit" class="button DisableOnSubmit" value="{xen:phrase more_options}..." name="more_options" /></a>
</xen:if>
</div>
sorry, your code has a smiley in it, can you clarify the code? thanks!If you want it to look like the More Options link, add this code:
<div style="float:right">
<xen:if is="{$canReply}">
<a href="{xen:link 'threads/reply', $thread}"><input type="submit" class="button DisableOnSubmit" value="{xenhrase more_options}..." name="more_options" /></a>
</xen:if>
</div>
sorry, your code has a smiley in it, can you clarify the code? thanks!
that's very close, but I's like it above that, pretty much the same level as the title line. Thanks so far
View attachment 128406
<xen:title>{xen:helper threadPrefix, $thread, escaped}{$thread.title}{xen:helper pagenumber, $page}</xen:title>
<xen:h1>{xen:helper threadPrefix, $thread}{$thread.title}</xen:h1>
<xen:description>
{xen:phrase discussion_in_x_started_by_y_date_z,
'forum=<a href="{xen:link forums, $forum}">{$forum.title}</a>',
'name={xen:helper username, $thread}',
'date=<a href="{xen:link threads, $thread}">{xen:datetime $thread.post_date, html}</a>'}
</xen:description>
<xen:navigation>
<xen:breadcrumb source="$nodeBreadCrumbs" />
</xen:navigation>
<xen:container var="$head.canonical">
<link rel="canonical" href="{xen:link 'canonical:threads', $thread, 'page={$page}'}" /></xen:container>
<xen:container var="$head.description">
<meta name="description" content="{xen:helper snippet, $firstPost.message, 155}" /></xen:container>
<xen:container var="$head.openGraph"><xen:include template="open_graph_meta">
<xen:set var="$url">{xen:link 'canonical:threads', $thread}</xen:set>
<xen:set var="$title">{xen:helper threadPrefix, $thread, escaped}{$thread.title}</xen:set>
<xen:set var="$description">{xen:helper snippet, $firstPost.message, 155}</xen:set>
<xen:set var="$avatar">{xen:helper avatar, $thread, m, 0, 1}</xen:set>
</xen:include></xen:container>
<xen:container var="$bodyClasses">{xen:helper nodeClasses, $nodeBreadCrumbs, $forum}{xen:if {$xenOptions.selectQuotable}, ' SelectQuotable'}</xen:container>
<xen:container var="$searchBar.thread"><xen:include template="search_bar_thread_only" /></xen:container>
<xen:container var="$searchBar.forum"><xen:include template="search_bar_forum_only" /></xen:container>
<xen:require css="thread_view.css" />
<div style="float:right">
<xen:if is="{$canReply}">
<a href="{xen:link 'threads/reply', $thread}"><input type="submit" class="button DisableOnSubmit" value="Reply" name="more_options" /></a>
</xen:if>
</div>
<xen:set var="$threadTagsHtml"><xen:if is="{$xenOptions.enableTagging} AND ({$canEditTags} OR {$thread.tagsList})">
<xen:include template="helper_tag_list">
<xen:map from="$thread.tagsList" to="$tags" />
<xen:set var="$editUrl">{xen:if $canEditTags, {xen:link threads/tags, $thread}}</xen:set>
</xen:include>
</xen:if></xen:set>
ok thanks
We use essential cookies to make this site work, and optional cookies to enhance your experience.