News:

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

Main Menu

Enhanced Quick reply 1.1.10 Probs

Started by Surferbird, October 30, 2009, 07:45:35 PM

Previous topic - Next topic

Surferbird

What is wrong, did it manually as described but get parse error like this
Template Parse Error!
Ongelma ladatessa /Themes/default/Display.template.php teema- tai kielitiedostoa. Tarkista koodi ja yritä uudelleen - muista, yksittäiset lainausmerkit (') on usein suojattava heittomerkillä (\). Nähdäksesi tarkemmat virheeseen johtaneet tiedot PHPsta, yritä suoraan tiedostosta.

Haluat varmaan yrittää päivittää sivun tai käyttää oletusteemaa.

Parse error: syntax error, unexpected '<' in .../Themes/default/Display.template.php on line 748

739: </div>
740: </div></div>';
741: }
742:
743: }
744: if ($context['show_spellchecking'])
745: echo '
746: <form action="', $scripturl, '?action=spellcheck" method="post" accept-charset="', $context['character_set'], '" name="spell_form" id="spell_form" target="spellWindow"><input type="hidden" name="spellstring" value="" /></form>';
747: }

748: <a href="javascript:moreSmileys();">[', $txt['more_smileys'], ']</a>';

749: }
750:
751: // If there are additional smileys then ensure we provide the javascript for them.
752: if (!empty($context['smileys']['popup']))
.:: Always something to ask - always grateful for assistance ::.

Antechinus


Surferbird

Do you mean in row 748 here: echo' <a href="javascript:moreSmileys();">[', $txt['more_smileys'], ']</a>';
If wrong, can you put an model where exactly the echo' should be?

Tanks for helping :)


Quote from: Antechinus on October 30, 2009, 07:53:48 PM
You need an echo' before the <
.:: Always something to ask - always grateful for assistance ::.


Surferbird

#4
I'm confused??
BTW changed to english language.
What's wrong, it moves the parse error to other line like:

Template Parse Error!
There was a problem loading the /Themes/default/Display.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 '}' in .../Themes/default/Display.template.php on line 749

740: </div></div>';
741: }
742: }
743: if ($context['show_spellchecking'])
744: echo '
745: <form action="', $scripturl, '?action=spellcheck" method="post" accept-charset="', $context['character_set'], '" name="spell_form" id="spell_form" target="spellWindow"><input type="hidden" name="spellstring" value="" /></form>';
746: }
747:
748: echo' <a href="javascript:moreSmileys();">[', $txt['more_smileys'], ']</a>';

749: }

750:
751: // If there are additional smileys then ensure we provide the javascript for them.
752: if (!empty($context['smileys']['popup']))
753: {

.:: Always something to ask - always grateful for assistance ::.

Antechinus

Check your brackets. It looks like you have an extra closing bracket stuck in there.

Surferbird

#6
Is it in 742...i have to ask because im not experienced with coding.

When removed in line 742 got another line parse error in 809...i dont understand, could you take a look at my file?

Here is whole Display.template.php

.:: Always something to ask - always grateful for assistance ::.

Surferbird

This is solved, i hade forget to copy part of text to Display.template.php :(

Thanks for your help!
.:: Always something to ask - always grateful for assistance ::.

Advertisement: