Welcome to the Unofficial Help Forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Illori

Pages: 1 ... 12 13 [14] 15
1.1.* Coding Questions / Re: Disabling template eval FAQ
« on: April 23, 2012, 03:53:43 PM »
because of the mods we have installed here ;)

and that code is a bit complicated as it works on both 1.1.1* and 2.0.*.

2.0.* Graphics and Theme Questions / Re: More Stats
« on: April 22, 2012, 06:28:07 AM »
ah sorry, did the code on windows where caps does not matter vs a linux server where it does.

2.0.* Support / Re: canonical url
« on: April 22, 2012, 06:27:27 AM »
nope, it does not make any difference, i have done nothing about SEO and for certain terms i am on the first page already on google. just let things happen. if you want help with SEO go elsewhere as you will not get further help with it here.

2.0.* Support / Re: Robots.txt needed
« on: April 22, 2012, 06:26:34 AM »
it is not really in your control what the search engines do, if you think about it. the search engines have not told us what they look for how they rank websites. so just let things go and if you become more popular then you will go up in the search again.

2.0.* Graphics and Theme Questions / Re: More Stats
« on: April 21, 2012, 07:15:28 PM »
try something like

Code: [Select]
<a href="' . $scripturl . '?action=stats"><img src="' . $themeurl . 'themes/default/images/board.gif "/></a>' : '', '
Code: (find) [Select]
global $context, $settings, $options, $txt, $scripturl, $modSettings;
Code: (replace) [Select]
global $context, $settings, $options, $txt, $scripturl, $modSettings, $themeurl;in your boardindex.template.php

2.0.* Graphics and Theme Questions / Re: More Stats
« on: April 21, 2012, 04:53:15 PM »
do you have an image already selected for this use? if so give a url to the location of the image and i can look into the replacement for you.

2.0.* Support / Re: Robots.txt needed
« on: April 21, 2012, 04:08:21 PM »
i would say trash the robots.txt file unless you are willing to learn how to make one correctly, and just let things happen as i said before SEO is a joke and not worth your time.

2.0.* Support / Re: canonical url
« on: April 21, 2012, 04:07:36 PM »
i have not seen that issue, and IMO it is a waste of time to try to fix it, the search engines are smart enough to know what url to use.

also the url you posted there is not the url to this forum.

2.0.* Support / Re: canonical url
« on: April 21, 2012, 02:59:05 PM »
what exact error? also most of the SEO stuff is useless your forum will get picked up anyway if you do nothing.

2.0.* Support / Re: Robots.txt needed
« on: April 21, 2012, 02:58:12 PM »
by having

User-agent: Googlebot-Image
Disallow: /

you are blocking the whole bot so the rest of the text does not matter, read up on what robots.txt actually is and how to use it.

2.0.* Support / Re: Robots.txt needed
« on: April 21, 2012, 06:46:03 AM »
are you trying to block the bots? if so you will block some with that. you should read for more information about robots.txt.

FAQ / FAQ license
« on: April 17, 2012, 04:16:42 PM »
the FAQ's in this board are under the

Creative Commons Attribution-ShareAlike 3.0 Unported License.

FAQ / Permissions per board
« on: April 17, 2012, 03:56:19 PM »
In SMF you can have permissions for each board, so different groups can do different things. this can be useful for a board that you want users to be able to reply but not post new topics.

You would first need to enable local permissions for the board, if using 1.1.1* or in 2.0
Admin -> Permissions -> Edit Profiles -> add new name and create the profile then edit it, and then assign to a board when you edit the board.

In 1.1.1* you need to enable local permissions
admin -> permissions -> settings enable advanced by-board permissions

Then you can set the board to use local permissions under the permissions by board tab. Then you can click on the board name to add/change the permissions for each group, these permissions would only apply to this one board. for each board that requires custom permissions you would need to set them manually for each board. In 2.0 you can reuse a permission profile in multiple boards.

There are some pre-made profiles available which you can see in 1.1.1* when you edit the boards permissions in the drop down "apply pre-defined permission profile" and in 2.0 they are shown when you go to admin -> permissions -> edit profiles, those you cant change permissions are the default profiles. These pre-made profiles do not include permissions for any mods that you may have installed, so you should verify that the permissions are correct, it may be easier to create the custom profile instead of using the pre-made so you are sure what permissions are given to your users.

The following links may be useful to read as a follow up to this:
Permission Profiles
Understanding Permissions

FAQ / Post Count Groups and their Permissions
« on: April 17, 2012, 03:49:59 PM »
In both 2.0 and 1.1.1* you can have permissions for each of the post count based groups. They can be enabled by Admin -> Permissions -> Settings -> Enable permissions for post count based groups

Once you have done this you need to remember the post count groups also inherit permissions from their main group, which for many users would be the regular members group even if you dont see that the user is in a primary membergroup. 

FAQ / Errors in the error log ending with EVAL
« on: April 17, 2012, 03:47:43 PM »
For error messages that end in EVAL you need to disable template evaluation. In 2.0 this is a default feature

Admin -> Server Settings -> Disable evaluation of templates
Then post any new error messages without eval in them

In 1.1.1* you need to install a mod first then you can disable the evaluation

You would need this mod installed then to disable the template evaluation, admin -> server settings -> feature configuration -> Disable evaluation of templates?

Once you have disabled the template evaluation you will be able to view the exact file and line number that is causing the error the next time you do the action that was causing the issue. Once you get the new error message without eval in it, you can post that and we can try to help you resolve the problem.

If you can not access your forum due to the eval error, you can run this query in phpmyadmin to disable template eval and get the full error message

Code: [Select]
REPLACE INTO smf_settings VALUES ('disableTemplateEval', 1);
Or you can use the following script, or the attachment, to disable template eval, put the script in the same folder as your settings.php file, this script works for both 1.1.1* and 2.0.*

Code: [Select]
 * Disable Template Evaluation
 * @file ./disable_eval.php
 * @author Matthew Kerle <>
 * @copyright Matthew Kerle, 2012
 * @license
 * @version 1.1.0
$disable_eval = new DisableTemplateEval;
protected $db$settings;
public function __construct()
protected function smfSettings()
global $db_type$db_server$db_user;
global $db_passwd$db_prefix;
if (!file_exists('Settings.php')) {
if (file_exists('../Settings.php'))
$path '../Settings.php';
exit('Sorry, you must place this file in the same directory as SMF\'s Setting.php file.');
$path 'Settings.php';
if (isset($db_type) && $db_type != 'mysql')
exit('Sorry, this script currently only supports MySQL.');
$this->settings = array(
'db_server' => $db_server,
'db_name' => $db_name,
'db_user' => $db_user,
'db_pass' => $db_passwd,
'db_prefix' => $db_prefix
return true;
protected function connectDatabase()
$this->db mysql_connect($this->settings['db_server'], $this->settings['db_user'], $this->settings['db_pass']);
if (!$this->db)
exit('Sorry, we were unable to connect to your database via the SMF Configuration Settings.');
mysql_select_db($this->settings['db_name'], $this->db);
protected function setEval()
mysql_query('REPLACE INTO ' $this->settings['db_prefix'] . 'settings (variable, value) VALUES("disableTemplateEval", 1)'$this->db);
exit ('Template Eval Successfully Disabled!');
protected function closeDatabase()

Pages: 1 ... 12 13 [14] 15