News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Disable Template Eval

Started by SMF Customization Team, August 09, 2009, 01:39:17 PM

Previous topic - Next topic

SMF Customization Team

Link to Mod

Disable Template Eval




Original Author: Arantor | Current Author: SMF Customization Team
Supported Languages: English, Spanish

Link To Mod | Mod Discussion | Other SMF Customization Team Mods



Summary:
In a number of cases, in support topics with an error concerning 'template eval()', the first answer from the Support Team will be to disable this.

This mod provides an easy tick-box configuration option for this in Server Settings / General (2.0), and Server Settings / Feature Configuration (1.1) - please see the screenshots attached.

Note also for bigger board users: if you're using a cache such as XCache, disabling template eval() will give you a performance boost.

Compatibility:
Compatible with SMF 1.1 & 2.0 upto RC1 (Standard Feature in 2.0 RC2 onward)

Installation Information:
The Package Manager should work in most cases, if you have problems installing please use the discussion thread as well as Manual Installation of Mods

Change Log:
Version 1.2 - October 22, 2009
! Restructured mod slightly

Version 1.1 - August 12, 2009
+ Added English British and Spanish (both _es and _latin) translations. Thanks to 130860 for the Spanish translations.

Version 1.0 - August 9, 2009
  Initial release



Copyright (c) 2015, Simple Machines, under BSD 3-Clause License.
All rights reserved.

kingkingston


babjusi


Arantor

Yeah, I didn't notice the reply here until I'd seen your other thread. Having it as an option in both 1.1 and 2.0 does make life easier :)

tyty1234

Nice mod Arantor! ;)
It certainly would help everyone when it comes to support and debugging. :D
My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

Arantor

That's precisely why I wrote it, not to mention the performance boost, but I think it'll be useful to have around :)

feline

Very good option ... thanks  ;)

Fel

busterone


Ben K

I think this should be in SMF it self, with out a mod.

Arantor

So do I, Ben K, but the team have a good reason for not including it. You and I don't know what that is... but there must have been a reason. There are other hidden settings too that can easily break a forum as well, so I'm not including those in a mod.

Blinker

Nice work Arantor.

I noticed when I installed that it detected the current state and the box was already ticked because I turned off eval a while ago.

Arantor

Thanks - yeah, it just reads the current state as it installs.

Antechinus

Quote from: Arantor on August 09, 2009, 04:58:01 PM
So do I, Ben K, but the team have a good reason for not including it. You and I don't know what that is... but there must have been a reason. There are other hidden settings too that can easily break a forum as well, so I'm not including those in a mod.
I don't know what the reason is either, but you can bet I'll be talking to the devs about it. Very handy mod. I'm definitely installing it.

Hoodie

What exactly does this do?  haven't received an error with this in it..  Also, are there any bad things that could happen with this turned off?

Arantor

Before running any theme files, SMF does a sanity check of them, which can be good for security and stability of forum, but bad for debugging. This turns off the sanity check.

Bad things: only if there are problems, but then you can see the problems better and help us help you quicker.

Also: side benefit, forum *will* go faster, especially on big boards.

Hoodie

So I won't get the template parse error anymore and it will try to load the page or is that something else?

Arantor

No, you'll still get template parse errors but it'll be a different one that we can help you fix better.

Sabre™

One of the more 'useful' mods to date.
Congrats and thanks mate :)
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


mirahalo

ok, this is the right topic for this :)

Nice mod Arantor!, if you accept translations, here is spanish_es/latin both utf8:

Help.spanish_es   Help.spanish_latin :

$helptxt['disableTemplateEval'] = 'Esta opción deshabilita la revisión que SMF realiza en los templates antes de mostrarlos al usuario. esto puede ser muy util para encontrar errores, y en algunos servidores, ayudará a incrementar el rendimiento de tu foro SMF.';

Help.spanish_es-utf8  and latin-utf8


$helptxt['disableTemplateEval'] = 'Esta opción deshabilita la revisión que SMF realiza en los templates antes de mostrarlos al usuario. esto puede ser muy util para encontrar errores, y en algunos servidores, ayudará a incrementar el rendimiento de tu foro SMF.';


ManageSettings.spanish_es spanish_latin

$txt['disableTemplateEval'] = '¿ Deshabilitar el eval template?';

utf8 version:

$txt['disableTemplateEval'] = '¿Deshabilitar el eval template?';


greetings!

Arantor

Thanks for the translation - I did see it previously (and did bookmark it for followup) but haven't had time to do so.

I'll repackage this tonight to include Spanish, many thanks!

Advertisement: