On the sidebar in the description tab.Thanks! Where have you found the old one?
Information
Author:
Total Downloads:
100
First Release:
Feb 19, 2012
Last Update:
Mar 20, 2012
Category:
All-Time Rating:
1234512 votes
On the sidebar in the description tab.Thanks! Where have you found the old one?
class MyMod_Listener_Template
{
public static function templateTms( &$template, &$applyCount, $styleId )
{
$template .= 'stuff';
return $template;
}
}
Awesome thanks.simbolo, thanks! you found a bug
All the variables are scalar.
Your code must work in the next version.
- When search in templates, it makes search in both templates and modifications.
- Button "Save and Check" added.
- Fixed noticed bugs.
I'll ask Nathaan to add support for tms.Would it be possible to have this use the editor windows/tools from :http://xenforo.com/community/resources/template-syntax.524/
You can use Preg Replace with
search:replace:Code:#^.*$#s
Code:<div class="footerWrap> $0 </div>
<xen:hook name="footer">
-- add this new line - <div class="footerwrap">
<div class="footer">
And this at the bottom :
</div>
-- add this new line -- </div>
[ADDED BY SOME ADDON]
</xen:hook>
The above preg replace wraps the whole footer with hook.
You may wrap inside the hook, but there will be a design issues in this case if some addon will use this hook.
I mean, if some addon adds something to the end of the hook and you wrapped the footer insede the hook, than the rendered version will be equal to:
The [ADDED BY SOME ADDON] will just break your design.Code:<xen:hook name="footer"> -- add this new line - <div class="footerwrap"> <div class="footer"> And this at the bottom : </div> -- add this new line -- </div> [ADDED BY SOME ADDON] </xen:hook>
I guess you upgraded your style by old version without mods thats why they were deleted. Templates would also lost in this case.I also noticed that if you reupload your xml file, all the modifications is lost. I found this a little frustrating as I removed several modifications from my template and made some changes but when I went back to the previous version the mods were lost.
This is perhaps due to the way I work. I sometimes tweak my design but before doing so I back up my style so that I can revert to it if I don't like the changes.![]()
<div class="messageUserBlock">
<xen:if is="{xen:helper ismemberof, $user, 3}"> <div class="messageUserBlock admin">
<xen:elseif is="{xen:helper ismemberof, $user, 4}" /> <div class="messageUserBlock moderator">
<xen:elseif is="{xen:helper ismemberof, $user, 2, 5, 6}" /> <div class="messageUserBlock mitglied">
<xen:else /> <div class="messageUserBlock gast">
</xen:if>
<h3 class="userText">
<xen:username user="$user" itemprop="name" rich="true" />
<xen:if hascontent="true"><em class="userTitle" itemprop="title"><xen:contentcheck>{xen:helper userTitle, $user}</xen:contentcheck></em></xen:if>
<!-- slot: message_user_info_text -->
</h3>
<xen:if is="{xen:helper ismemberof, $user, 3}">
<h3 class="userText admin">
<xen:username user="$user" itemprop="name" rich="true" />
<xen:if hascontent="true"><em class="userTitle" itemprop="title"><xen:contentcheck>{xen:helper userTitle, $user}</xen:contentcheck></em></xen:if>
<!-- slot: message_user_info_text -->
</h3>
<xen:elseif is="{xen:helper ismemberof, $user, 4}" />
<h3 class="userText moderator">
<xen:username user="$user" itemprop="name" rich="true" />
<xen:if hascontent="true"><em class="userTitle" itemprop="title"><xen:contentcheck>{xen:helper userTitle, $user}</xen:contentcheck></em></xen:if>
<!-- slot: message_user_info_text -->
</h3>
<xen:elseif is="{xen:helper ismemberof, $user, 2, 5, 6}" />
<h3 class="userText mitglied">
<xen:username user="$user" itemprop="name" rich="true" />
<xen:if hascontent="true"><em class="userTitle" itemprop="title"><xen:contentcheck>{xen:helper userTitle, $user}</xen:contentcheck></em></xen:if>
<!-- slot: message_user_info_text -->
</h3>
<xen:else />
<h3 class="userText">
<!--This is a Test -->
<xen:username user="$user" itemprop="name" rich="true" />
<xen:if hascontent="true"><em class="userTitle" itemprop="title"><xen:contentcheck>{xen:helper userTitle, $user}</xen:contentcheck></em></xen:if>
<!-- slot: message_user_info_text -->
</h3>
We use essential cookies to make this site work, and optional cookies to enhance your experience.