index.template.php (eval?)

Started by alado, August 04, 2008, 06:39:38 AM

Previous topic - Next topic

alado

SMF 1.1.5
Two mod's: Anti-Bot Registration Puzzles 1.2 and Hide SMF Version
In a written logs are error:
8: Use of undefined constant milagro - assumed 'milagro'
Файл: /forum/Themes/MiLaGrO/index.template.php (eval?)
Строка: 631

The file does not have such lines.

The forum saw similar mistakes, but his question has not found solutions.

Thinking the whole hour and I did not come to nothing. Help please.

Nathaniel

Well, I would recommend making posts in the relevant support threads for those mods.

You could also post your 'index.template.php' file and I could have a look at it, to try and find what the issue is.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

alado

Quote from: LHVWB on August 04, 2008, 06:41:54 AM
Well, I would recommend making posts in the relevant support threads for those mods.

You could also post your 'index.template.php' file and I could have a look at it, to try and find what the issue is.
I deleted all mods. Error is not lost.
How do you file index for viewing?

Nathaniel

When you create a post you can have attachments, you need to download your '{smf install location}/themes/{theme name}/index.template.php' file using a ftp client (see below) or your websites file manager and then upload it when you create your next post.

How do I use FTP? / What is FTP?
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

alado

Quote from: LHVWB on August 04, 2008, 07:04:12 AM
When you create a post you can have attachments, you need to download your '{smf install location}/themes/{theme name}/index.template.php' file using a ftp client (see below) or your websites file manager and then upload it when you create your next post.

How do I use FTP? / What is FTP?
OK

Nathaniel

What is the name of the custom theme that you are using?

The problem is located at this code from that file:
   // Show the [milagro] button.
   echo '<li', $current_action == 'home', '><a href="/"><span>' , $txt[milagro] , '</span></a></li>';


Replacing the above code, with the code below may fix your problem.
   // Show the [milagro] button.
   echo '<li', $current_action == 'home', '><a href="/"><span>' , $txt['milagro'] , '</span></a></li>';


I have also attached a changed copy of your 'index.template.php' file.

I am not sure what 'milagro' means, do you know what it refers to?
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

alado

Theme I made myself. I forgot to use ' in language file and index.
Thank you indicated that my mistake, tested now. All works without errors

Advertisement: