Ok, makes sense I guess.The errors are listed in the Server Error Log.
It does'n throw error when syntax is incorrect since one template can have more than one modification. Moreover, these modifications can be itself valid but using them together makes template not valid. The thing can be done for it is adding the reason of 'Applied 0 times' like 'Error occured' or 'Disabled'.
You can use Preg Replace with SearchSorry if this is a noob question, but I just purchased XenForo and installed TMS to make my own style.
If I understand correctly TMS allows you to replace templates and css files without actually replacing them.
But what if I just want to add a few CSS classes and not replace anything? The Options TMS gives me are
1) String Replace
2) Preg Replace
3) PHP Callback
I don't think any of these are suitable for just adding CSS classes, no? If I leave the Search field blank and just put my CSS classes in the Replace field, I get an error saying that I don't have a valid search string. So how can this tool help me adding stuff instead of replacing stuff?
#^.*$#s
$0
/*your added code*/
What are your search and replace values?I have a problem.
If I create a template edit for the navigation.css file, TMS will actually replace that template. After that it will say that 0 differences found. Is this a known bug? I am unable to edit my navigation.css through TMS, because it's same as going to Templates section and modifying it from there. It works for other files, but oddly not for navigation.css.
I tested the same with header.css and it works just fine. Seems like the problem exists only when editing navigation.css. Add-ons that I currently have installed are: Add User Avatar to Last Port by Waindigo, AzuCloud, Custom BBCode Manager, Find users sharing the same IP, Nodes As Tabs, TaigaChat, Template Modification System, XenPorta, Tag Me.
My search value is:What are your search and replace values?
.navTabs
{
@property "navTabs";
font-size: 11px;
background-color: @primaryDark;
padding: 0 25px;
border: 1px solid @primaryLightish;
border-bottom: 1px solid @primaryDarker;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
@property "/navTabs";
height: @headerTabHeight;
}
.navTabs
{
@property "navTabs";
font-size: 11px;
background-color: @primaryDark;
padding: 0 25px;
border: 1px solid @primaryLightish;
border-bottom: 1px solid @primaryDarker;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
/*Testing with comment if this one passes to the actual template*/
@property "/navTabs";
height: @headerTabHeight;
}
#navigation .pageContent
{
height: {xen:calc '@headerTabHeight * 2 + 2'}px;
position: relative;
}
.navTabs
{
@property "navTabs";
font-size: 11px;
background-color: @primaryDark;
padding: 0 25px;
border: 1px solid @primaryLightish;
border-bottom: 1px solid @primaryDarker;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
/*Testing with comment if this one passes to the actual template*/
@property "/navTabs";
height: @headerTabHeight;
}
.navTabs .publicTabs
{
float: left;
}
.navTabs .visitorTabs
{
float: right;
}
.navTabs .navTab
{
float: left;
white-space: nowrap;
word-wrap: normal;
<xen:if is="{$pageIsRtl}">*display: inline; *float: none; *zoom: 1;</xen:if>
}
--Omitted, because unable to post a post larger than 10000 characters.---
.navTabs
{
{xen:property navTabs}
height: {xen:property headerTabHeight};
}
.navTabs
{
@property "navTabs";
...
/*property value*/
...
@property "/navTabs";
height: @headerTabHeight;
}
@property "navTabs";
...
/*property value*/
...
@property "/navTabs";
}
.navTabs
{
@property "navTabs";
font-size: 11px;
background-color: @primaryDark;
padding: 0 25px;
border: 1px solid @primaryLightish;
border-bottom: 1px solid @primaryDarker;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
@property "/navTabs";
/*Testing with comment if this one passes to the actual template*/
height: @headerTabHeight;
}
Here's a suggestion. Can you add a feature that will let you wrap a template in a conditional using check boxes? For example, when creating a TMS modification and loading a template, could we have a section with checkboxes that have the extra conditionals we'd like to apply to the template? This was a previous suggestion I made last year: http://xenforo.com/community/threads/template-conditionals-checkbox-for-each-template.22987/How is testing? Any suggestions, reports?
It seems that such feature already exists. All disabled modes stay disabled after upgrade and export.Here's a suggestion. Can you add a feature that will let you wrap a template in a conditional using check boxes? For example, when creating a TMS modification and loading a template, could we have a section with checkboxes that have the extra conditionals we'd like to apply to the template? This was a previous suggestion I made last year: http://xenforo.com/community/threads/template-conditionals-checkbox-for-each-template.22987/
Nope.If I install this, will it mess up any current template modifications I have made or conflict with any current add ons?
Translation like every other addon. Just import phrases.After installing how is the translation file installed ?
Thanks.
Translation like every other addon. Just import phrases.
I think there were a few add ons that I installed that had an option for TMS but I didn't do them because I wasn't using this. Do I have to reinstall those?Nope.
It makes no changes to your current templates.
Import localization as language, not as addon.Just go to install addon, select file and hit install ?
Will that import it correctly to the destination addon adding that language to it ?
Thanks.
If you made changes to templates before you have to remove them (revert templates if no other edits) and reinstall those addons with enabled TMS.I think there were a few add ons that I installed that had an option for TMS but I didn't do them because I wasn't using this. Do I have to reinstall those?
We use essential cookies to make this site work, and optional cookies to enhance your experience.