View Single Post
  #6  
Old 20th April 2009, 19:15
raefor's Avatar
raefor raefor is offline
Senior Member
 
Join Date: Mar 2008
United States
Posts: 90
Default
Quote:
Originally Posted by thereal View Post
THANKS!!!
How can I make so that the login box only is visable when you're not logged in, like tbdev?
you can try this

first find this code in index :

PHP Code:
if ($SHOUTBOX)
{
begin_frame("" SHOUTBOX ""center);
echo 
'<IFRAME name="shout_frame" src="'.$SITEURL.'/ttshout.php" frameborder="0" marginheight="0" marginwidth="0" width="95%" height="210" scrolling="no" align="middle"></IFRAME>';
end_frame();

before the code add :

PHP Code:
if ($LOGGEDINONLY){
    if (!
$CURUSER){
 echo 
"<BR><BR><b><CENTER>write what ever you want<br>disable - need to login first</CENTER><BR><BR>";
    }else{ 
after
PHP Code:
end_frame(); } 
add this :
PHP Code:
}

sorry no box to put code in

Last edited by Fynnon; 20th April 2009 at 19:53. Reason: use [php] or [code] tags
Reply With Quote
The Following User Says Thank You to raefor For This Useful Post:
thereal (20th April 2009)