Simple Machines Community Forum

General Community => Scripting Help => Aiheen aloitti: honestlee - kesäkuu 22, 2008, 02:01:55 IP

Otsikko: Novice needs help
Kirjoitti: honestlee - kesäkuu 22, 2008, 02:01:55 IP
When I click on Themes and Layout under Administration, I get this message:

Template Parse Error!
There was a problem loading the /Themes/default/Themes.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
--------------------------------------------------------------------------------


Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../Themes/default/Themes.template.php on line 722

713:             <tr class="windowbg2">
714:                <td align="center" style="padding-bottom: 1ex;">';
715:
716:    if (!$context['allow_save'])
717:       echo '
718:                   ', $txt['theme_edit_no_save'], ': ', $context['allow_save_filename'], '<br />';
719:
720:    echo '
721:                   <textarea name="entire_file" cols="80" rows="20" style="width: 96%; font-family: monospace; margin-top: 1ex; white-space: pre;" onkeyup="setPreviewTimeout();" onchange="refreshPreview(true);">', $context['entire_file'], '</textarea><br />
722:                   <input type="submit" name="submit" value="', $txt['theme_edit_save'], '"', $context['allow_save'] ? '' : ' disabled="disabled"', ',' style="margin-top: 1ex;" />723:                   <input type="button" value="', $txt['themeadmin_edit_preview'], '" onclick="refreshPreview(false);" />
724:                </td>
725:             </tr>
Otsikko: Re: Novice needs help
Kirjoitti: honestlee - kesäkuu 22, 2008, 04:09:23 IP
Apparently Line 22 is the problem. Can anyone tell me what the problem is?
Otsikko: Re: Novice needs help
Kirjoitti: Jumpmasterrt - kesäkuu 22, 2008, 04:13:52 IP
What theme are you using?

**Edit** never mind, stupid question, I didn't see it at first

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../Themes/default/Themes.template.php on line 722

Otsikko: Re: Novice needs help
Kirjoitti: honestlee - kesäkuu 22, 2008, 04:24:23 IP
I imagine its the default. As I say, I'm really a novice. When I click on themes under Admin, the above error is all I get.
Otsikko: Re: Novice needs help
Kirjoitti: Jumpmasterrt - kesäkuu 22, 2008, 04:33:28 IP
If you haven't made any changes you should be able to just upload the file again and it'll correct any errors.

Rename YOUR file to Themes.template.php to Themes.template.php~ first, then upload this file.
Otsikko: Re: Novice needs help
Kirjoitti: honestlee - kesäkuu 22, 2008, 04:54:14 IP
http://www.wordkeeping.com/smf/index.php

I haven't changed the template, that I know of. So, you're saying to find the file themes.template.php and change the name, and then upload the one you put in, and it should correct it?
Otsikko: Re: Novice needs help
Kirjoitti: Jumpmasterrt - kesäkuu 22, 2008, 05:57:09 IP
Yes. The file is located in the Themes/default folder.
Otsikko: Re: Novice needs help
Kirjoitti: honestlee - kesäkuu 22, 2008, 06:00:46 IP
Just wondering why your files has a txt on the end and not a php
Otsikko: Re: Novice needs help
Kirjoitti: Jumpmasterrt - kesäkuu 22, 2008, 06:04:43 IP
sorry, rename it to .php not .txt it's the same file. I have to change the extention at work to open it in an editor.
Otsikko: Re: Novice needs help
Kirjoitti: honestlee - kesäkuu 22, 2008, 06:19:47 IP
I'm having trouble. It won't let me rename it, it says there's already one named that even though I renamed the other one first. And it still says it's a text file.
Otsikko: Re: Novice needs help
Kirjoitti: Jumpmasterrt - kesäkuu 22, 2008, 06:46:50 IP
Ok try this one then..... same file just correctly named.
Otsikko: Re: Novice needs help
Kirjoitti: honestlee - kesäkuu 22, 2008, 06:57:36 IP
Thank you! :) It doesn't give me the error message any more! Now, what I really wanted to do is put something on the top of the page that gives a link to my home page. Also a little message about the forum. I want it where it says, News: Just Installed. How do I remove the words Just Installed and put my own little message?
Otsikko: Re: Novice needs help
Kirjoitti: Jumpmasterrt - kesäkuu 22, 2008, 07:10:04 IP
That my friend is super easy.....

Go to your admin panel and in the left colum under "Main" find "news and newsletters" and edit the one that says "Just Installed" ;)

Once you've done that let me know.
Otsikko: Re: Novice needs help
Kirjoitti: honestlee - kesäkuu 22, 2008, 07:20:04 IP
YES! It worked! Thank you so much!
Otsikko: Re: Novice needs help
Kirjoitti: Jumpmasterrt - kesäkuu 22, 2008, 08:22:31 IP
And last but not least the link for your site link....

But instead of the link for the chat, you'll put [home].... post up if you have problems

http://docs.simplemachines.org/index.php?topic=564.0