english 
Thread Options  Search this Thread  
Post: #1
20-12-2006 18:33 PM (This post was last modified: 20-12-2006 18:34 PM by stan)
stan


Joined: 17-11-2006
Posts: 245
Country: Isla de Muerte
Male stan is Offline now
Menu help
hi,
i m desiging new menu for my site i hv removed the default XAM's menu.
But the problem is menu is even visible to users who has not logged in.
 


here is my where i hv put my code
CODE:
<tr><td class="outer" align="center">
<table class="main" width="400"��cellspacing="0" cellpadding="1" border="0">
<td align="center"��class="navigation" align="center">
<? if ($CURUSER)��?>
<center>
<script type="text/javascript" src="data.js"></script></center></td>

<tr>
<? if (!$CURUSER) { ?>
<td align="center" class="navigation">
<a href=login.php>Login</a> / <a href=signup.php>Signup</a>
</td>


i want it to be visible to only the users who hv logged in. i hv tried placing $CURUSER above but i m getting error and any clue how to mk tht top border black.
thank you.

Post: #2
20-12-2006 19:27 PM
xam
Team Leader


Joined: 01-02-2006
Posts: 11,515
Country: Belgium
Awards:  
Male xam is Offline now
Menu help
Re-post your code without abnormal chars.

Post: #3
20-12-2006 21:09 PM (This post was last modified: 20-12-2006 21:50 PM by xam)
stan


Joined: 17-11-2006
Posts: 245
Country: Isla de Muerte
Male stan is Offline now
Menu help
sory for tht junck char but i dont know from where did they come from
here is the code
PHP:
<!------------- MENU ------------------------------------------------------------------------>
<tr><td class="outer" align="center">
<table class="main" width="400"  cellspacing="0" cellpadding="1" border="0">
<td align="center"  class="navigation" align="center">
<? if ($CURUSER)  ?>
<center>
<script type="text/javascript" src="data.js"></script></center></td>

<tr>
<? if (!$CURUSER) { ?>
<td align="center" class="navigation">
<a href=login.php>Login</a> / <a href=signup.php>Signup</a>
</td>


Post: #4
20-12-2006 21:52 PM (This post was last modified: 20-12-2006 21:53 PM by xam)
xam
Team Leader


Joined: 01-02-2006
Posts: 11,515
Country: Belgium
Awards:  
Male xam is Offline now
Menu help
try this
PHP:
<!------------- MENU ------------------------------------------------------------------------>
<tr><td class="outer" align="center">
<table class="main" width="400"  cellspacing="0" cellpadding="1" border="0">
<td align="center"  class="navigation" align="center">
<? if ($CURUSER) { ?>
<center>
<script type="text/javascript" src="data.js"></script></center></td>
<? } ?>
<tr>
<? if (!$CURUSER) { ?>
<td align="center" class="navigation">
<a href=login.php>Login</a> / <a href=signup.php>Signup</a>
</td>
<?
}
?>


The way is:

....

....

Post: #5
21-12-2006 06:44 AM (This post was last modified: 21-12-2006 07:12 AM by stan)
stan


Joined: 17-11-2006
Posts: 245
Country: Isla de Muerte
Male stan is Offline now
Menu help
THANKS A LOT

Post: #6
21-12-2006 14:25 PM
andrepcg


Joined: 01-12-2006
Posts: 17
Country: Portugal
Male andrepcg is Offline now
Menu help
how can I do another menu for TS v1.3.9? I can't find the old one...

Post: #7
21-12-2006 14:54 PM
Nitrox


Joined: 11-11-2006
Posts: 157
Country: Latvia
Male Nitrox is Offline now
Menu help
There is another cool menu scripts!!
http://www.dhtmlgoodies.com/index.html?page=menuScripts

Post: #8
18-03-2007 09:47 AM
Kevvan


Joined: 18-03-2007
Posts: 2
Country: Sweden
Male Kevvan is Offline now
Menu help
Where to put that i cant find it ?

Quick Reply
Decrease Size
Increase Size
Insert bold text Insert italic text Insert underlined text Align text to the left Align text to the centerr Align text to the right Justify text Insert quoted text Code Insert formatted PHP code Insert formatted SQL code
Colors
Insert hyperlink Insert image Insert email address
Smilies
Insert hidden text



Forum Jump: