1
dixiekun
Smarty Error!!!
  • 2012/6/7 13:32

  • dixiekun

  • Just popping in

  • Posts: 8

  • Since: 2012/6/2 6


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!

2
Anonymous
Re: Smarty Error!!!
  • 2012/6/7 14:38

  • Anonymous

  • Posts: 0

  • Since:


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

3
Mamba
Re: Smarty Error!!!
  • 2012/6/7 15:15

  • Mamba

  • Moderator

  • Posts: 11381

  • Since: 2004/4/23


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

4
dixiekun
Re: Smarty Error!!!
  • 2012/6/14 6:24

  • dixiekun

  • Just popping in

  • Posts: 8

  • Since: 2012/6/2 6


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?

:(

5
Anonymous
Re: Smarty Error!!!
  • 2012/6/14 9:07

  • Anonymous

  • Posts: 0

  • Since:


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>Startpaginaspan>a>
                                li>
                                <
li>
                                    <
a title="Wat wij leveren" href="#">Assortiment<span>Wat wij leverenspan>a>
                                li>
                                <
li>
                                    <
a title="Download" href="<{$xoops_url}>/modules/xcenter/?storyid=2">Brochures<span>Downloadspan>a>
                                li>
                                <
li>
                                    <
a title="Door ons geleverd" href="#">Projecten<span>Door ons opgeleverdspan>a>
                                li>
                                <
li>
                                    <
a title="Kies uw kleur" href="#">Doeken<span>Kies uw kleurspan>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>

6
panwac
Re: Smarty Error!!!
  • 2012/8/31 18:37

  • panwac

  • Just popping in

  • Posts: 62

  • Since: 2005/11/12


Notepad++ or WPE (PHP WebPage Editor)

Login

Who's Online

161 user(s) are online (40 user(s) are browsing Support Forums)


Members: 0


Guests: 161


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits