1
n01un0
Hazard Theme error with 2.2.6
  • 2008/1/26 5:03

  • n01un0

  • Quite a regular

  • Posts: 253

  • Since: 2005/10/9


I tried using both the Hazard and Hazard_Full theme's on another site with 2.2.6 and im getting a dead page (mostly blank) and this message:

Error [Xoops]: Smarty error: [in hazard_full/userbar.html line 10]: syntax error: unrecognized tag 'xoInboxCount' (Smarty_Compiler.class.php, line 566) in file class/smarty/Smarty.class.php line 1084


Any clue what I need to do to fix this?

2
Will_H
Re: Hazard Theme error with 2.2.6
  • 2008/1/26 14:20

  • Will_H

  • Friend of XOOPS

  • Posts: 1786

  • Since: 2004/10/10


hmm, well.

replace
<{if !$xoops_isuser}>
            <
form method="post" action="<{$xoops_url}>/user.php?op=login">
                <{
$smarty.const._LOGIN}><br />
                <
input name="uname" type="text" /><br /><input name="pass" type="password" /><br />
                <
input type="hidden" name="xoops_redirect" value="<{$smarty.server.REQUEST_URI}>" />
                <
button type="submit"><img src="<{$xoops_url}>/themes/<{$xoops_theme}>/icons/login.png" alt="<{$smarty.const._LOGIN}>" /></button>
            <
a href="<{$xoops_url}>/register.php" class="register">Register</a>
        </
form>
        <{else}>
            <{
xoInboxCount assign=pmcount}>
            <
a href="<{$xoops_url}>/viewpmsg.php">
            <{if 
$pmcount}>
                <
img src="<{$xoops_url}>/themes/<{$xoops_theme}>/icons/inbox-full.png" alt="Inbox (<{$pmcount}>)" title="You have <{$pmcount}> unread messages" />
            <{else}>
                <
img src="<{$xoops_url}>/themes/<{$xoops_theme}>/icons/inbox.png" alt="Inbox" title="Show your inbox content" />
            <{/if}>
            </
a>                
            <
a href="<{$xoops_url}>/user.php"><img src="<{$xoops_url}>/themes/<{$xoops_theme}>/icons/profile.png" alt="My profile" title="View your profile" /></a>
            <{if 
$xoops_isadmin}>
            <
a href="<{$xoops_url}>/admin.php"><img src="<{$xoops_url}>/themes/<{$xoops_theme}>/icons/configuration.png" alt="Admin" title="Display site administration" /></a>
            <{/if}>
            <
a href="<{$xoops_url}>/user.php?op=logout"><img src="<{$xoops_url}>/themes/<{$xoops_theme}>/icons/logout.png" alt="Logout" title="Click to logout" /></a>
        <
br /><br />
        
Hello, <{$xoops_uname}><br />Welcome to <a href="<{$xoops_url}>"><{$xoops_sitename}></a>! 
        <{/if}>


with
<{if !$xoops_isuser}>
            <
form method="post" action="<{$xoops_url}>/user.php?op=login">
                <{
$smarty.const._LOGIN}><br />
                <
input name="uname" type="text" /><br /><input name="pass" type="password" /><br />
                <
input type="hidden" name="xoops_redirect" value="<{$smarty.server.REQUEST_URI}>" />
                <
button type="submit"><img src="<{$xoops_url}>/themes/<{$xoops_theme}>/icons/login.png" alt="<{$smarty.const._LOGIN}>" /></button>
            <
a href="<{$xoops_url}>/register.php" class="register">Register</a>
        </
form>
        <{else}>
            <{if 
$msgcount 0}> 
                <
a href="<{$xoops_url}>/viewpmsg.php"><img src="<{$xoops_url}>/themes/<{$xoops_theme}>/icons/inbox-full.png" alt="Inbox (<{$msgount}>)" title="You have <{$msgcount}> unread messages" /></a>
            <{else}>
                <
a href="<{$xoops_url}>/viewpmsg.php"><img src="<{$xoops_url}>/themes/<{$xoops_theme}>/icons/inbox.png" alt="Inbox" title="Show your inbox content" /></a>
            <{/if}>
            <
a href="<{$xoops_url}>/user.php"><img src="<{$xoops_url}>/themes/<{$xoops_theme}>/icons/profile.png" alt="My profile" title="View your profile" /></a>
            <{if 
$xoops_isadmin}>
            <
a href="<{$xoops_url}>/admin.php"><img src="<{$xoops_url}>/themes/<{$xoops_theme}>/icons/configuration.png" alt="Admin" title="Display site administration" /></a>
            <{/if}>
            <
a href="<{$xoops_url}>/user.php?op=logout"><img src="<{$xoops_url}>/themes/<{$xoops_theme}>/icons/logout.png" alt="Logout" title="Click to logout" /></a>
        <
br /><br />
        
Hello, <{$xoops_uname}><br />Welcome to <a href="<{$xoops_url}>"><{$xoops_sitename}></a>! 
        <{/if}>


HTH.

3
n01un0
Re: Hazard Theme error with 2.2.6
  • 2008/1/26 16:28

  • n01un0

  • Quite a regular

  • Posts: 253

  • Since: 2005/10/9


THANKS WILL, YOUR THE MAN!! THAT FIXED IT!

Login

Who's Online

143 user(s) are online (90 user(s) are browsing Support Forums)


Members: 0


Guests: 143


more...

Donat-O-Meter

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

Latest GitHub Commits