topthisfact
Paragon
i was wondering if anyone know the html code line that
when members are logged in then they can see the menu/link button
when members are logged in then they can see the menu/link button
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta name="Description" content="Extreme Way of Improving your Promotion & Cash needs by Completing simple surveys & offers. Payment are made through Paypal & Promotion Methods / Tools." />
<meta name="Keywords" content="make money online,get paid to,gpt, free promotion, free gifts" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="Distribution" content="Global" />
<meta name="Robots" content="index,follow" />
<link rel="stylesheet" href="images/CoolWater.css" type="text/css" />
<? include"config.php"; ?>
<title><?=$sitename;?> - <?=$slogan;?></title>
</head>
<body>
<?
if($_GET['ref']!="")
{
$ref=strip_tags($_GET['ref']);
}
?>
<!-- wrap starts here -->
<div id="wrap">
<!--header -->
<div id="header">
<h1 id="logo-text"><a href="index.php?ref=<? print"$ref"; ?>"><?=$sitename;?></a></h1>
<p id="slogan"><?=$slogan;?></p>
<div id="header-links">
<p>
</p>
</div>
<div id="header-stats">
<?
include"mysql.php";
$getusers=mysql_query("select count(*) as cnt from users",$c);
$totalusers=mysql_fetch_array($getusers);
$totalusers=$totalusers['cnt'];
$getusers=mysql_query("select * from users",$c);
$totalmoney=0;
while($usr=mysql_fetch_array($getusers))
{
$totalmoney=$totalmoney+$usr['total_earned'];
}
$getoffers=mysql_query("select count(*) as cnt from offers where active=1",$c);
$ocnt=mysql_fetch_array($getoffers);
$ocnt=$ocnt['cnt'];
print"<p>Total Offers: $ocnt<br>Total Members: $totalusers<br>Total Earned: \$$totalmoney</p>";
?>
</div>
</div>
<!-- navigation -->
<div id="menu">
<ul>
<?
$home="";
$how="";
$signup="";
$offers="";
$friends="";
$login="";
if($page=="home")
{
$home="current";
}
else if($page=="how")
{
$how="current";
}
else if($page=="signup")
{
$signup="current";
}
else if($page=="offers")
{
$offers="current";
}
else if($page=="friends")
{
$friends="current";
}
else if($page=="login")
{
$login="current";
}
if($_SESSION['loggedin']==1)
{
include"mysql.php";
$signupbutton=" <li><a href=\"cashout.php\">Cashout</a></li>";
$logbutton=" <li><a href=\"logout.php\">Logout</a></li>";
$message="";
if($_GET['act']="changepaypal" && $_GET['paypal']!="")
{
$_GET['act']=strip_tags($_GET['act']);
$paypal=$_GET['paypal'];
$paypal=str_replace(array("<", ">"), array("<", ">"), $paypal);
mysql_query("update users set `paypal`='$paypal' where id={$_SESSION['userid']}",$c);
$message="<font color=\"red\">Paypal address updated.</font>";
}
$getuser=mysql_query("select * from users where id={$_SESSION['userid']}",$c);
$ui=mysql_fetch_array($getuser);
$ip = ($_SERVER['HTTP_X_FORWARDED_FOR'])
? $_SERVER['HTTP_X_FORWARDED_FOR']
: $_SERVER['REMOTE_ADDR'];
mysql_query("update users set `userIP`='$ip' where id={$_SESSION['userid']}",$c);
if($ui['banned']!="")
{
die("<center><font color=\"red\"><b>Your account has been banned.</b><br>Reason: {$ui['banned']}</font></center>");
}
}
else
{
$signupbutton=" <li id=\"$signup\"><a href=\"signup.php?ref=$ref\">Sign Up</a></li>";
$logbutton=" <li id=\"$login\"><a href=\"login.php?ref=$ref\">Login</a></li>";
}
?>
<li id="<?=$home;?>"><a href="index.php?ref=<? print"$ref"; ?>">Home</a></li>
<li id="<?=$offers;?>"><a href="offers.php?ref=<?=$ref;?>">Offers</a></li>
<li id="<?=$how;?>"><a href="how.php?ref=<?=$ref;?>">How it Works</a></li>
<? print"$signupbutton"; ?>
<? print"$logbutton"; ?>
</ul>
</div>
<!-- content-wrap starts here -->
<div id="content-wrap">
<div id="main">
<?
if($_SESSION['loggedin']==1 && $ui['email_verified']!=1)
{
?>
<center> <font color="red">Your email has not been verified.<br>You will not be able to cashout until you do so.</font><br><a href="verify.php">Click here to go to the email verification page</a></center>
<?
}
?>
Dasher said:Hmm, I think you can mix PHP and HTML, if we had a link that may help also.
<!-- IF S_USER_LOGGED_IN --><a href="/cashout.php">Cash out</a><!-- ENDIF -->
<!-- IF S_USER_LOGGED_IN -->
if($_SESSION['loggedin']==1)
posey said:Hee,
Yes you can, just add it like the following?
Code:<!-- IF S_USER_LOGGED_IN --><a href="/cashout.php">Cash out</a><!-- ENDIF -->
You will have to make sure that there is a cashout.php file in your phpBB root directory.
is the same asCode:<!-- IF S_USER_LOGGED_IN -->Code:if($_SESSION['loggedin']==1)
Regards,
<li class="icon-faq"><a href="{U_FAQ}" title="{L_FAQ_EXPLAIN}">{L_FAQ}</a></li>
<!-- IF S_USER_LOGGED_IN --><a href="/cashout.php">Cash out</a><!-- ENDIF -->
Since 2007, Forum Promotion has specialized in providing advertising solutions to webmasters looking to promote their communities. We pride ourselves in being the bridge that connects forum administrators, bloggers, and more.
We use essential cookies to make this site work, and optional cookies to enhance your experience.