xoops forums

dixiekun

Just popping in
Posted on: 2012/6/7 13:32
dixiekun
dixiekun (Show more)
Just popping in
Posts: 8
Since: 2012/6/2 6
#1

Smarty Error!!!

I got this error after i made some basic changes in my theme.html file


Error : Smarty error: [in /home/presentd/public_html/themes/XDScheme/theme.html line 2]: syntax error: unrecognized tag: $xoops_langcode}">" lang="<{$xoops_langcode (Smarty_Compiler.class.php, line 446)

here's the site http://presentdaytech.com/ to see what the error looks like...

the changes i've made were just changing links like # to a live link.. and changing image file...
I simply plugin something, not doing anything with the codes..

please help..


thanks!

Anonymous

Posted on: 2012/6/7 14:38
Anonymous
Anonymous (Show more)
Posts: 0
Since:
#2

Re: Smarty Error!!!

You must have changed some more then links... What editor did you use? Using an editor like dreamweaver in design modus can ruin your theme!

Also don't change too much in one pass and make backups in between

Mamba

Moderator
Posted on: 2012/6/7 15:15
Mamba
Mamba (Show more)
Moderator
Posts: 10770
Since: 2004/4/23
#3

Re: Smarty Error!!!

If the error code is like what you showed:

$xoops_langcode}">


then you messed up the editing. Smarty tags have to be:

<{$xoops_langcode}>


with no " between } and >

As flipse said, you have to be careful how and what you're editing.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

dixiekun

Just popping in
Posted on: 2012/6/14 6:24
dixiekun
dixiekun (Show more)
Just popping in
Posts: 8
Since: 2012/6/2 6
#4

Re: Smarty Error!!!

i've just used the html editor in cpanel...

What editor do you recommend?
I don't really see why it gives error, the changes i've made were just merely replacing span words...
how do i edit this?

:(

Anonymous

Posted on: 2012/6/14 9:07
Anonymous
Anonymous (Show more)
Posts: 0
Since:
#5

Re: Smarty Error!!!

You could use a plain texteditor like notepad, it just shows code so there is no risk the theme is damaged by fancy design mode editors. Here is an example of a partly edited menu I am working on right now, the tag <{$xoops_url}> can be used to replace http://www.domain.com so you point directly to the module or module page as from the root of your site.

<div id="navigation">
                            <
ul>
                                <
li class="nav-corner">
                                    <
a title="Startpagina" href="<{$xoops_url}>">Start<span>Startpagina</span></a>
                                </
li>
                                <
li>
                                    <
a title="Wat wij leveren" href="#">Assortiment<span>Wat wij leveren</span></a>
                                </
li>
                                <
li>
                                    <
a title="Download" href="<{$xoops_url}>/modules/xcenter/?storyid=2">Brochures<span>Download</span></a>
                                </
li>
                                <
li>
                                    <
a title="Door ons geleverd" href="#">Projecten<span>Door ons opgeleverd</span></a>
                                </
li>
                                <
li>
                                    <
a title="Kies uw kleur" href="#">Doeken<span>Kies uw kleur</span></a>
                                </
li>
                                <
li>
                                    <
a title="Hebt u een vraag?" href="<{$xoops_url}>/modules/xforms/?form_id=1">Contact<span>Hebt u een vraag?</span></a>
                                </
li>
                            </
ul>
                        </
div>

panwac

Just popping in
Posted on: 2012/8/31 18:37
panwac
panwac (Show more)
Just popping in
Posts: 62
Since: 2005/11/12
#6

Re: Smarty Error!!!

Notepad++ or WPE (PHP WebPage Editor)