<!-- conversations popup -->
<li class="navTab inbox Popup PopupControl PopupClosed">
<a href="{xen:link conversations}" rel="Menu" class="navLink NoPopupGadget">{xen:phrase inbox}
<strong class="itemCount {xen:if {$visitor.conversations_unread}, '', 'Zero'}" id="ConversationsMenu_Counter" data-text="{xen:phrase you_have_x_new_unread_conversations}">
<span class="Total">{xen:number $visitor.conversations_unread}</span>
<span class="arrow">{ADD HOOK HERE}</span>
</strong>
</a>
</div>
</div>
<div class="footerLegal">
<div class="pageWidth">
</div>
</div>
<xen:hook name="footer_after_links_before_legal" />
<div class="footerLegal">
<div class="pageWidth">
Did any make it into 1.1.2 ?Is there any reason, why you stopped implementing the template hook requests?
Sorry, haven't noticed. Hope moderators will move message.You should post that here: http://xenforo.com/community/threads/template-hooks.7909/
<xen:hook name="above_navtabs"></xen:hook>
<div class="navTabs">
</ul>
<xen:if is="{$visitor.user_id}"><xen:include template="navigation_visitor_tab" /></xen:if>
</div>
<xen:hook name="below_navtabs"></xen:hook>
<div class="controls faint">
<xen:if is="{$thread.canEditThread}"></xen:if>
<xen:if is="{$showSubscribeOptions}></xen:if>
</div>
For that you can just modify the $forum[title] on the XenForo_ViewPublic_Forum_List classI did look for it, but it appears no-one has suggested it - a nodeText level template hook.
Firstly, the reason. I'm working on an addon to add 'Sponsored By x' under the Forum title, but currently there is no template hook that allows you to alter the nodeText block.
This is fixed very simply by wrapping the nodeText div with a template hook, which then allows you to alter the HTML within the hook.
In my case that's injecting HTML after the </h3> tag of the node title.
I'm sure other people could find a use for altering the NodeText as well.
<xen:foreach loop="$post.attachments" value="$attachment">
<li class="attachment{xen:if {$attachment.thumbnailUrl}, ' image'}" title="{$attachment.filename}">
<div class="boxModelFixer primaryContent">
<div class="thumbnail">
<xen:if is="{$attachment.thumbnailUrl} AND {$canViewAttachments}">
<a href="{xen:link attachments, $attachment}" target="_blank" class="LbTrigger"
data-href="{xen:link misc/lightbox}"><img
src="{$attachment.thumbnailUrl}" alt="{$attachment.filename}" class="LbImage" /></a>
<xen:elseif is="{$attachment.thumbnailUrl}" />
<a href="{xen:link attachments, $attachment}" target="_blank"><img
src="{$attachment.thumbnailUrl}" alt="{$attachment.filename}" /></a>
<xen:else />
<a href="{xen:link attachments, $attachment}" target="_blank" class="genericAttachment"></a>
</xen:if>
</div>
<div class="attachmentInfo pairsJustified">
<h6 class="filename"><a href="{xen:link attachments, $attachment}" target="_blank">{$attachment.filename}</a></h6>
<dl><dt>{xen:phrase file_size}:</dt> <dd>{xen:number $attachment.file_size, size}</dd></dl>
<dl><dt>{xen:phrase views}:</dt> <dd>{xen:number $attachment.view_count}</dd></dl>
</div>
</div>
</li>
</xen:foreach>
<div class="section newestMembers">
<div class="secondaryContent avatarHeap">
<h3>{xen:phrase newest_members}</h3>
<ol>
<xen:foreach loop="$latestUsers" value="$user">
<li><xen:avatar user="$user" size="s" text="{$user.username} ({xen:datetime $user.register_date})" class="Tooltip" title="{$user.username}, {xen:phrase joined}: {xen:datetime $user.register_date}" /></li>
</xen:foreach>
</ol>
</div>
</div>
<xen:if is="{$xenOptions.facebookAppId} AND {$xenOptions.facebookFacepile}">
<xen:container var="$facebookSdk">1</xen:container>
<fb:facepile width="{xen:property sidebar.width}" size="small" colorscheme="{xen:property fbColorScheme}"></fb:facepile>
</xen:if>
</xen:sidebar>
How do you get at $post?
By doing:
Code:$params = $template->getParams();
You only get access to:
session, sessionId, requestPaths, visitor, visitorLanguage, xenOptions, xenCache, serverTime, debugMode, controllerName, controllerAction, viewName, visitorStyle, thread, forum, posts, page, postsPerPage, totalPosts, postsRemaining, canReply, canQuickReply, canEditThread, canDeleteThread, canMoveThread, canWatchThread, canViewIps, canViewAttachments, deletedPosts, moderatedPosts, inlineModOptions, firstPost, lastPost, unreadLink, poll, attachmentParams, attachmentConstraints, showPostedNotice, nodeBreadCrumbs, qrEditor, _styleId, session, sessionId, requestPaths, visitor, visitorLanguage, xenOptions, xenCache, serverTime, debugMode, controllerName, controllerAction, viewName, visitorStyle, thread, forum, posts, page, postsPerPage, totalPosts, postsRemaining, canReply, canQuickReply, canEditThread, canDeleteThread, canMoveThread, canWatchThread, canViewIps, canViewAttachments, deletedPosts, moderatedPosts, inlineModOptions, firstPost, lastPost, unreadLink, poll, attachmentParams, attachmentConstraints, showPostedNotice, nodeBreadCrumbs, qrEditor, _styleId
As the template object is actually thread_view
We use essential cookies to make this site work, and optional cookies to enhance your experience.