1
growe
Smarty Problem
  • 2007/2/5 17:26

  • growe

  • Just popping in

  • Posts: 10

  • Since: 2006/11/19


I am very new at this so please excuse my ignorance.

Here is some code I have...

<!-- USER NAVIGATION BAR START -->
<
div id="navbar">
    <
table cellspacing="0" cellpadding="0" id="menu1" class="NavMenu">
        <
tr>
            <{if 
$xoops_isuser == 1}>
                <
td>
                    <
class="button" href="javascript:void(0)"><{$smarty.const._MA_NAV_ACTIONS}></a>
                        <
div class="section">
                            <
class="item" href="<{$xoops_url}>/user.php"><{$smarty.const._MA_NAV_VIEWACCOUNT}></a>
                            <
class="item" href="<{$xoops_url}>/edituser.php"><{$smarty.const._MA_NAV_EDITACCOUNT}></a>
                            <
class="item" href="<{$xoops_url}>/notifications.php"><{$smarty.const._MA_NAV_NOTIFICATIONS}></a>
                            <
class="item" href="<{$xoops_url}>/user.php?op=logout"><{$smarty.const._MA_NAV_LOGOUT}></a>
                            <{if 
$xoops_isadmin}>
                                <
class="item" href="<{$xoops_url}>/admin.php"><{$smarty.const._MA_NAV_ADMINISTRATION}></a>
                            <{/if}>
                        </
div>
                </
td>
            <{else}>
                <
td id="date"
                    <{
$smarty.now|date_format:"%A, %e %B %Y"}>
                </
td>
            <{/if}>
                <
td id="search">
                    <
form style="margin: 0px;" action="<{$xoops_url}>/search.php" method="get">
                        <
input type="text" name="query" size="14" />
                        <
input type="hidden" name="action" value="results" />
                        <
input class="formButton" type="submit" value="Site Search" />
                        <{if 
$smarty.const.modid 1}>
                            <
input type="hidden" name="mids[]" value="<{$smarty.const.modid}>" />
                        <{/if}>
                    </
form>
                </
td>
        </
tr>
    </
table>
</
div>


I have 2 problems with it...

When I am not logged in the date/time is displayed; however, it is wrong. In fact every time you reload the page a different random date/time is displayed.

Also, when I am logged in, the date/time is replaced with a menu bar; however, the variable name is displayed instead of the variable.

The site it is installed on is...http://RoweFarms.com
Feel free to create a test profile if you need to see what I'm talking about.

The code supplied comes from the "cleanblue" theme. I have not changed it at all.

Thanks in advance for your help.

Glenn

Login

Who's Online

204 user(s) are online (127 user(s) are browsing Support Forums)


Members: 0


Guests: 204


more...

Donat-O-Meter

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

Latest GitHub Commits