Icy Phoenix
Old Support Topics - How Do I Check If A User Is Logged In ?
AndyGpy [ Mon 14 Jan, 2013 13:58 ]
Post subject: Re: How Do I Check If A User Is Logged In ?
MG,
Tried what you suggested and it did not work out. Still the same.
What i have now done is removed all code so that all i have is :-
alertz_VIP.php
define('IN_ICYPHOENIX', true);
if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
// Include files
include(IP_ROOT_PATH . 'common.' . PHP_EXT);
//Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
//End session management
if (!$user->data['session_logged_in'])
{
redirect(append_sid(CMS_PAGE_LOGIN . '?redirect=alertz_VIP.' . PHP_EXT, true));
exit;
}
else
// Yes they are
{
$template->assign_vars(array(
'USERNAME' => htmlspecialchars($user->data[username]),
)
);
//full_page_generation();
full_page_generation('alertz_VIP.php', , '', '');
}
and the template alertz_VIP.tpl
<style type="text/css">
<!--
.style7 {
color: #006600;
font-weight: bold;
font-size: 18px;
}
.style14 {color: #003300; font-weight: bold; }
.style16 {
color: #000066;
font-style: italic;
}
.style25 {
color: #FF0000;
font-weight: bold;
font-size: 12px;
}
.style28 {
font-size: 12px;
color: #330000;
}
.style29 {
font-size: 12px
}
.style31 {color: #003300; font-weight: bold; font-size: 16px; }
.style33 {
color: #000099;
font-weight: bold;
font-style: italic;
font-size: 18px;
}
.style34 {
color: #FF0000;
font-weight: bold;
font-size: 24px;
}
.style35 {font-size: 12px; color: #003300; }
.style36 {
color: #FF0000;
font-weight: bold;
font-size: 14px;
font-style: italic;
}
.style38 {color: #003300; font-weight: bold; font-size: 16px; font-style: italic; }
.style39 {font-size: x-small}
.style40 {color: #FF0000; font-weight: bold; font-size: xx-small; font-style: italic; }
-->
</style>
<!-- INCLUDE overall_header.tpl -->
<h1 align="center" class="style34"><blink>Scotbirds Alertz - Rare and Scarce</blink></h1>
<p align="center" class="style34 style39"> </p>
<p align="center" class="style40"> </p>
<h3 align="center" class="style14">If you have seen something unusual / rare then please call it in on -- <span class="style33">Hotline: 0333 5772473</span></h3>
<p align="center" class="style14">
<table width="90%" border="0" align="center" cellpadding="5">
<tr>
<td width="1%"><td width="5%"><td width="2%"><td width="2%"><td width="2%"><form action="alertz_VIP.php" method="GET">
<td width="2%"><td width="2%"><td width="5%"><span class="style38">Date</span><td width="3%"></td>
<td width="12%"><span class="style14">
<select name=DATE_FILTER size="1" id=DATE_FILTER onchange="this.form.submit()">
<option value="">Select </option>
<option value={DATE_FILTER}></option>
</select>
</span></td>
<td width="1%"> </td>
<td width="7%"><span class="style16"><span class="style14"><span class="style31">Region</span></span></span></td>
<td width="22%"><span class="style16"><span class="style14">
<select name=REGION_FILTER size="1" id=REGION_FILTER onchange="this.form.submit()">
<option value="">Select </option>
<option value={REGION_FILTER}></option>
</select>
</span></span></td>
<td width="1%"> </td>
<td width="8%"><span class="style16"><span class="style14"><span class="style31">Species</span></span></span></td>
<td width="10%"><span class="style16"><span class="style14">
<select name=SPECIES_FILTER size="1" id=SPECIES_FILTER onchange="this.form.submit()">
<option value="">Select </option>
<option value={SPECIES_FILTER}></option>
</select>
</span></span></td>
<td width="10%"><!-- Begin FreeButtons.org -->
<style>#web-buttons-id2nj62 a{display:block;color:transparent;} #web-buttons-id2nj62 a:hover{background-position:left bottom;}a#web-buttons-id2nj62a {display:none}</style>
<table id="web-buttons-id2nj62" width=0 cellpadding=0 cellspacing=0 border=0><tr>
<td style="padding-right:0px" title ="Reset Search">
<a href="http://www.scotbird.co.uk/Forum/alertz_VIP.php" title="Reset Search" style="background-image:url(images/bt2nj62.png);width:151px;height:34px;display:block;"><br/></a></td>
</tr></table><a id="web-buttons-id2nj62a"></a>
<!-- End FreeButtons.org --></td>
</table>
<p> </p>
<table width="870" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#99CC99">
<tr>
<th width="178" class="style31" scope="col">Region</th>
<th width="184" class="style31" scope="col">Species</th>
<th width="96" class="style31" scope="col">Date</th>
<th width="96" class="style31" scope="col">Time</th>
<th width = "304" class="style31" scope="col">Comments</th>
</tr>
<!-- BEGIN alerts -->
<tr>
<th class="style7 style29" scope="col">{alerts.REGION}</th>
<th class="style25" scope="col">{alerts.SPECIES}</th>
<th class="style35" scope="col">{alerts.DATE} </th>
<th scope="col"><span class="style35">{alerts.TIME} </span></th>
<th scope="col"><span class="style28">{alerts.COMMENTS} </span></th>
</tr>
<!-- END alerts -->
</table>
<p align="center" class="style14"> </p>
<!-- INCLUDE overall_footer.tpl -->
using any user to login gets the same results
A -- i am logged into website already and click on the link to this page, i get faced with the log in screen, once i log in a second time i can access this page
B -- I am NOT logged in and browse to this page direct, i get asked to login then it goes to the page
User - test
password - test
website -
HERE
Link called alertz only appears once a user is logged in and can be found up near the header logo.
Any suggestions
mort [ Mon 14 Jan, 2013 14:18 ]
Post subject: Re: How Do I Check If A User Is Logged In ?
Just one - Turn on error reporting when you do these things. ;)
'USERNAME' => htmlspecialchars($user->data[username]),
And it would have probably said something like "Undefined CONSTANT"
data[username]), != data['username']), :lol:
Well I hope that's the problem. :mricy:
AndyGpy [ Mon 14 Jan, 2013 15:59 ]
Post subject: Re: How Do I Check If A User Is Logged In ?
Changed
data[username]
to
data['username']
still the same
mort [ Mon 14 Jan, 2013 21:34 ]
Post subject: Re: How Do I Check If A User Is Logged In ?
You're not setting cookies and the test account thinks I'm an Admin?
ACP
CMS
Home
Profile
Forum
Without cookies, you can't log sessions.
Can I suggest that you upgrade this again and go through one thing at a time as you are modding it, because somewhere you are killing it. :(
Here's a couple of tools that just saved my life - :lol:
Put them at the top of index.php ? and and keep that page in the browser while you play in another window. ;)
foreach($_SESSION as $key => $value) {
echo 'Current session variable ' . $key . ' is: ' . $value . '<br />';
}
print_r($_COOKIE);
AndyGpy [ Wed 16 Jan, 2013 22:26 ]
Post subject: Re: How Do I Check If A User Is Logged In ?
Right guys,
getting closer i think.
i know the alertz.php and the .tpl files are okay the problem lies when i am logged in and click on the link to go to the alertz page it forgets about the session ID and kicks me to the log in screen.
THe link i have in the header sectiion is
<a href="{FULL_SITE_PATH}/alertz_VIP.php" class="invert">Alertz</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
how can i get it so the session ID is kept like any other link i have ?
I am sure i have cookies on, as i have set cookie path etc.
mort [ Wed 16 Jan, 2013 23:10 ]
Post subject: Re: How Do I Check If A User Is Logged In ?
I am sure i have cookies on, as i have set cookie path etc.
Andy, you were not setting SESSIONS on anything, anywhere - Cookies either :(
And the fact that you have set a cookie path, means nothing if cookies are not being created.
Even without cookies - SESSIONS normally handles the user-security.
You have neither.
Go to your browser (if it's not fixed) and check if there are any current cookies or sessions for your site.
AndyGpy [ Thu 17 Jan, 2013 08:09 ]
Post subject: Re: How Do I Check If A User Is Logged In ?
ok Mort in Icy terms how to i set sessions then as i thought
//Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
//End session management
created the session ?
regards
mort [ Thu 17 Jan, 2013 08:28 ]
Post subject: Re: How Do I Check If A User Is Logged In ?
Not IP - - :P
But as an example.
You query the DB for the information.
$row = $db->fetch_row($sql);
if($row['activation_key'] == "0"){
$_SESSION['username'] = $username;
$_SESSION['userid'] = $row['userid'];
$_SESSION['website'] = $row['website'];
$_SESSION['blog_level'] = $row['blog_level'];
$_SESSION['lang'] = $row['user_lang'];
$_SESSION['user_flag'] = $row['user_flag'];
$_SESSION['user_style'] = $row['user_style'];
$_SESSION['user_session_time'] = $row['user_session_time'];
Then start the session in a "Global" file by adding:
At the top of the file.
Would be a function that collects all the users data. If they are logged in.?
That too - would need to be at the top of every file the user has access to.
Because if it's not S_LOGGED_IN or S_LOGGED-OUT Means nothing. :mricy:
AndyGpy [ Thu 17 Jan, 2013 11:06 ]
Post subject: Re: How Do I Check If A User Is Logged In ?
Could you perhaps give me an example based on what i am trying to achieve, i am not a PHP developer, i am a VB man and learning as i go with PHP
mort [ Thu 17 Jan, 2013 12:18 ]
Post subject: Re: How Do I Check If A User Is Logged In ?
Could you perhaps give me an example based on what i am trying to achieve, i am not a PHP developer, i am a VB man and learning as i go with PHP
I hate to be blunt, but by using GPL/GNU software you are expected to sort these things yourself. If it was an Icy Phoenix problem that would be different. But it's not.
Consider this - After you - There's someone else - Then someone else again. So somewhere the free ride on other people's time has to have a line drawn under it. And I've just drawn the line under mine on this subject.
Some time ago I was told this at Coppermine:
Quote:
If you can't fix it, then learn how to do it, or pay someone who can.
And that's what GPL/GNU is - Or you can just wait until someone else wants to be involved some more.
AndyGpy [ Thu 17 Jan, 2013 12:39 ]
Post subject: Re: How Do I Check If A User Is Logged In ?
Mort
The purpose of the forum that i am led to beleive is for more experienceed members to help others where they can, that way they game experience and can then offer to help others.
If that is your attitude towards support, ie pay for it then, i had already PM'ed MG asking and fully prepared to pay.
I have looked at several other pages profile.php, memberlist.php etc looking on how the session id is retained and cannot figure it out hence the reason i am asking for support.
As explained i am fully up for learning and i am a long way from being a PHP developer.
You keep going on about sessions and cookies, now lets explore that further.
I have taken profile.php, which we all know works wonderfully. I create a link to it in my header and when clicked the session ID is lost and you are asked to log in.
Perhaps now you can understand my frustration. I am using the code as shown by MG in his tutorials but i am still having problems, ask for support and basically getting told to pay for such.
I too , like you am a VIP and i dont have any issue supporting this site as i have recieved support from it myself in the past but now im basically being told fix it yourself.
regards
mort [ Thu 17 Jan, 2013 14:39 ]
Post subject: Re: How Do I Check If A User Is Logged In ?
You don't take enough care Andy.
This all works for me - - Ten minutes.
And please DON'T change anything until you test it.
<?php
define('IN_ICYPHOENIX', true);
if (!defined('IP_ROOT_PATH')) define('IP_ROOT_PATH', './');
if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1));
// Include files
include(IP_ROOT_PATH . 'common.' . PHP_EXT);
//Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
//End session management
if (!$user->data['session_logged_in'])
{
redirect(append_sid(CMS_PAGE_LOGIN . '?redirect=alertz_VIP.' . PHP_EXT, true));
exit;
}
else
// Yes they are
{
$template->assign_vars(array(
'USERNAME' => htmlspecialchars($user->data[username]),
)
);
//full_page_generation();
full_page_generation('alertz_VIP.tpl', '', '');
}
?>
<style type="text/css">
<!--
.style7 {
color: #006600;
font-weight: bold;
font-size: 18px;
}
.style14 {color: #003300; font-weight: bold; }
.style16 {
color: #000066;
font-style: italic;
}
.style25 {
color: #FF0000;
font-weight: bold;
font-size: 12px;
}
.style28 {
font-size: 12px;
color: #330000;
}
.style29 {
font-size: 12px
}
.style31 {color: #003300; font-weight: bold; font-size: 16px; }
.style33 {
color: #000099;
font-weight: bold;
font-style: italic;
font-size: 18px;
}
.style34 {
color: #FF0000;
font-weight: bold;
font-size: 24px;
}
.style35 {font-size: 12px; color: #003300; }
.style36 {
color: #FF0000;
font-weight: bold;
font-size: 14px;
font-style: italic;
}
.style38 {color: #003300; font-weight: bold; font-size: 16px; font-style: italic; }
.style39 {font-size: x-small}
.style40 {color: #FF0000; font-weight: bold; font-size: xx-small; font-style: italic; }
-->
</style>
<!-- INCLUDE overall_header.tpl -->
<h1 align="center" class="style34"><blink>Scotbirds Alertz - Rare and Scarce</blink></h1>
<p align="center" class="style34 style39"> </p>
<p align="center" class="style40"> </p>
<h3 align="center" class="style14">If you have seen something unusual / rare then please call it in on -- <span class="style33">Hotline: 0333 5772473</span></h3>
<p align="center" class="style14">
<table width="90%" border="0" align="center" cellpadding="5">
<tr>
<td width="1%"><td width="5%"><td width="2%"><td width="2%"><td width="2%"><form action="alertz_VIP.php" method="GET">
<td width="2%"><td width="2%"><td width="5%"><span class="style38">Date</span><td width="3%"></td>
<td width="12%"><span class="style14">
<select name=DATE_FILTER size="1" id=DATE_FILTER onchange="this.form.submit()">
<option value="">Select </option>
<option value={DATE_FILTER}></option>
</select>
</span></td>
<td width="1%"> </td>
<td width="7%"><span class="style16"><span class="style14"><span class="style31">Region</span></span></span></td>
<td width="22%"><span class="style16"><span class="style14">
<select name=REGION_FILTER size="1" id=REGION_FILTER onchange="this.form.submit()">
<option value="">Select </option>
<option value={REGION_FILTER}></option>
</select>
</span></span></td>
<td width="1%"> </td>
<td width="8%"><span class="style16"><span class="style14"><span class="style31">Species</span></span></span></td>
<td width="10%"><span class="style16"><span class="style14">
<select name=SPECIES_FILTER size="1" id=SPECIES_FILTER onchange="this.form.submit()">
<option value="">Select </option>
<option value={SPECIES_FILTER}></option>
</select>
</span></span></td>
<td width="10%"><!-- Begin FreeButtons.org -->
<style>#web-buttons-id2nj62 a{display:block;color:transparent;} #web-buttons-id2nj62 a:hover{background-position:left bottom;}a#web-buttons-id2nj62a {display:none}</style>
<table id="web-buttons-id2nj62" width=0 cellpadding=0 cellspacing=0 border=0><tr>
<td style="padding-right:0px" title ="Reset Search">
<a href="http://www.scotbird.co.uk/Forum/alertz_VIP.php" title="Reset Search" style="background-image:url(images/bt2nj62.png);width:151px;height:34px;display:block;"><br/></a></td>
</tr></table><a id="web-buttons-id2nj62a"></a>
<!-- End FreeButtons.org --></td>
</table>
<p> </p>
<table width="870" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#99CC99">
<tr>
<th width="178" class="style31" scope="col">Region</th>
<th width="184" class="style31" scope="col">Species</th>
<th width="96" class="style31" scope="col">Date</th>
<th width="96" class="style31" scope="col">Time</th>
<th width = "304" class="style31" scope="col">Comments</th>
</tr>
<!-- BEGIN alerts -->
<tr>
<th class="style7 style29" scope="col">{alerts.REGION}</th>
<th class="style25" scope="col">{alerts.SPECIES}</th>
<th class="style35" scope="col">{alerts.DATE} </th>
<th scope="col"><span class="style35">{alerts.TIME} </span></th>
<th scope="col"><span class="style28">{alerts.COMMENTS} </span></th>
</tr>
<!-- END alerts -->
</table>
<p align="center" class="style14"> </p>
<!-- INCLUDE overall_footer.tpl -->
AndyGpy [ Thu 17 Jan, 2013 15:17 ]
Post subject: Re: How Do I Check If A User Is Logged In ?
Mort,
I have done as you asked,
Content Encoding Error
The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.
Please contact the web site owners to inform them of this problem.
i am using firefox
regards
Informpro [ Thu 17 Jan, 2013 16:05 ]
Post subject: Re: How Do I Check If A User Is Logged In ?
Disable gzip encoding
AndyGpy [ Thu 17 Jan, 2013 17:22 ]
Post subject: Re: How Do I Check If A User Is Logged In ?
thanks informpro thats fixed that but i still have original problem double login for anything i access of my menu in my header
if i manual type in
www.scotbird.co.uk/scotforum/alertz...xxxxxxxxxxxxxxx xxxxxxxx being the SID i am currently logged in with i get to the page.
If i type in
www.scotbird.co.uk/scotforum/alertz_VIP.php i get shoved to the login page
My Overall Header.tpl file is below
<!-- IF S_LOFI -->
<!-- IF S_LOFI_BOTS -->
<!-- INCLUDE ../common/lofi/bots/lofi_bots_header.tpl -->
<!-- ELSE -->
<!-- INCLUDE ../common/lofi/lofi_header.tpl -->
<!-- ENDIF -->
<!-- ELSE -->
{DOCTYPE_HTML}
<head>
<!-- INCLUDE overall_inc_header.tpl -->
{EXTRA_CSS_JS}
<!-- IF S_HEADER_DROPDOWN -->
<script type="text/javascript">
/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
//Contents for menu 1
var menu1 = new Array();
menu1[0] = '<br /><div class="center-block-text"> <form action="{FULL_SITE_PATH}{U_SEARCH}" method="post"><input name="search_keywords" type="text" class="post" style="width: 150px;" /> <input type="submit" class="mainoption" value="{L_SEARCH}" /> <br /><\/form><\/div>';
menu1[1] = ' <a href="{FULL_SITE_PATH}{U_SEARCH}" title="{L_SEARCH_EXPLAIN}">{L_ADV_SEARCH}<\/a>';
//Contents for menu 2
var menu2 = new Array();
menu2[0] = '<a href="{FULL_SITE_PATH}{U_SEARCH_NEW}" title="{L_SEARCH_NEW}">{L_SEARCH_NEW2}<\/a>';
menu2[1] = '{L_DISPLAY_UNREAD}';
menu2[2] = '{L_DISPLAY_MARKED}';
menu2[3] = '{L_DISPLAY_PERMANENT}';
var menuwidth = '180px'; //default menu width
var disappeardelay = 250; //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick = "no"; //hide menu when user clicks within menu?
/////No further editing needed
if (ie4 || ns6)
{
document.write('<div id="dropmenudiv" class="row1" style="visibility: hidden; width:' + menuwidth + ';" onmouseover="clearhidemenu();" onmouseout="dynamichide(event);"><\/div>');
}
</script>
<script type="text/javascript" src="{FULL_SITE_PATH}{T_COMMON_TPL_PATH}js/ddmenu.js"></script>
<script type="text/javascript">
if (hidemenu_onclick == "yes")
{
document.onclick = hidemenu;
}
</script>
<!-- ENDIF -->
</head>
<body>
<div id="logo-img"><a href="{FULL_SITE_PATH}{U_PORTAL}" title="{L_HOME}"><img src="{FULL_SITE_PATH}{SITELOGO}" alt="{L_HOME}" title="{L_HOME}" /></a></div>
<?php
$domainname = basename($_SERVER['SCRIPT_NAME'], '.' . PHP_EXT);
IF (strstr($domainname,'newsletter')){
?>
</p>
<tr>
<td width="100%" class="forum-buttons" colspan="3">
<a href="{FULL_SITE_PATH}{U_PORTAL}">Home</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}/newsletter2.php">Nov 2008</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}/newsletter3.php">Apr 2009</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- IF not S_LOGGED_IN -->
<a href="{FULL_SITE_PATH}{U_REGISTER}">{L_REGISTER}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ENDIF -->
<a href="{FULL_SITE_PATH}{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT2}</a>
</td>
</tr>
<?php
}
ELSEIF (basename($_SERVER['SCRIPT_NAME'], '.' . PHP_EXT) == 'tickindex'){
?>
<tr>
<td width="100%" class="forum-buttons" colspan="3">
<a href="{FULL_SITE_PATH}{U_PORTAL}" class="invert">{L_HOME}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}/tickindex.php" class="invert">Personal List</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}/tickleaderboard.php" class="invert">Leaderboard</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- IF not S_LOGGED_IN -->
<a href="{FULL_SITE_PATH}{U_REGISTER}" class="invert">{L_REGISTER}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ENDIF -->
<a href="{FULL_SITE_PATH}{U_LOGIN_LOGOUT}" class="invert">{L_LOGIN_LOGOUT2}</a>
</td>
</tr>
<?php
}
ELSEIF (basename($_SERVER['SCRIPT_NAME'], '.' . PHP_EXT) == 'tickleaderboard'){
?>
<tr>
<td width="100%" class="forum-buttons" colspan="3">
<a href="{FULL_SITE_PATH}{U_PORTAL}" class="invert">{L_HOME}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}/tickindex.php" class="invert">Personal List</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}/tickleaderboard.php" class="invert">Leaderboard</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- IF not S_LOGGED_IN -->
<a href="{FULL_SITE_PATH}{U_REGISTER}" class="invert">{L_REGISTER}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ENDIF -->
<a href="{FULL_SITE_PATH}{U_LOGIN_LOGOUT}" class="invert">{L_LOGIN_LOGOUT2}</a>
</td>
</tr>
<?php
}
ELSEIF (basename($_SERVER['SCRIPT_NAME'], '.' . PHP_EXT) == 'index'){
?>
<tr>
<td width="100%" class="forum-buttons" colspan="3"><a href="{FULL_SITE_PATH}{U_PORTAL}" class="invert">{L_HOME}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}{U_INDEX}" class="invert">{L_INDEX}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- BEGIN switch_upi2db_off -->
<a href="{FULL_SITE_PATH}{U_SEARCH_NEW}" class="invert">{L_NEW2}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- END switch_upi2db_off -->
<a href="{FULL_SITE_PATH}/album.php" class="invert">Gallery</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- IF S_LOGGED_IN -->
<a href="{FULL_SITE_PATH}/newsletter.php" class="invert">ESSE Project</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}/alertz_VIP.php" class="invert">Alertz</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}/tickindex.php" class="invert">TickLists</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}{U_PROFILE}" class="invert">{L_PROFILE}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ENDIF -->
<!-- IF S_HEADER_DROPDOWN -->
<a href="{FULL_SITE_PATH}{U_SEARCH}" onMouseOver="dropdownmenu(this,event,menu1,'250px')" onMouseOut="delayhidemenu()" class="invert">{L_SEARCH}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ELSE -->
<a href="{FULL_SITE_PATH}{U_SEARCH}" class="invert">{L_SEARCH}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ENDIF -->
<!-- IF not S_LOGGED_IN -->
<a href="{FULL_SITE_PATH}{U_REGISTER}" class="invert">{L_REGISTER}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ENDIF -->
<a href="{FULL_SITE_PATH}{U_LOGIN_LOGOUT}" class="invert">{L_LOGIN_LOGOUT2}</a> </td>
</tr>
<?php
}
ELSEIF (basename($_SERVER['SCRIPT_NAME'], '.' . PHP_EXT) == 'album'){
?>
<tr>
<td width="100%" class="forum-buttons" colspan="3"><a href="{FULL_SITE_PATH}{U_PORTAL}" class="invert">{L_HOME}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}{U_INDEX}" class="invert">{L_INDEX}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- BEGIN switch_upi2db_off -->
<a href="{FULL_SITE_PATH}{U_SEARCH_NEW}" class="invert">{L_NEW2}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- END switch_upi2db_off -->
<a href="{FULL_SITE_PATH}/album.php" class="invert">Gallery</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- IF S_LOGGED_IN -->
<a href="{FULL_SITE_PATH}/newsletter.php" class="invert">ESSE Project</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}/alertz_VIP.php" class="invert">Alertz</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}/tickindex.php" class="invert">TickLists</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}{U_PROFILE}" class="invert">{L_PROFILE}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ENDIF -->
<!-- IF S_HEADER_DROPDOWN -->
<a href="{FULL_SITE_PATH}{U_SEARCH}" onMouseOver="dropdownmenu(this,event,menu1,'250px')" onMouseOut="delayhidemenu()" class="invert">{L_SEARCH}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ELSE -->
<a href="{FULL_SITE_PATH}{U_SEARCH}" class="invert">{L_SEARCH}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ENDIF -->
<!-- IF not S_LOGGED_IN -->
<a href="{FULL_SITE_PATH}{U_REGISTER}" class="invert">{L_REGISTER}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ENDIF -->
<a href="{FULL_SITE_PATH}{U_LOGIN_LOGOUT}" class="invert">{L_LOGIN_LOGOUT2}</a> </td>
</tr>
<?php
}
ELSEIF (basename($_SERVER['SCRIPT_NAME'], '.' . PHP_EXT) == 'viewtopic'){
?>
<tr>
<td width="100%" class="forum-buttons" colspan="3"><a href="{FULL_SITE_PATH}{U_PORTAL}" class="invert">{L_HOME}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}{U_INDEX}" class="invert">{L_INDEX}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- BEGIN switch_upi2db_off -->
<a href="{FULL_SITE_PATH}{U_SEARCH_NEW}" class="invert">{L_NEW2}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- END switch_upi2db_off -->
<a href="{FULL_SITE_PATH}/album.php" class="invert">Gallery</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- IF S_LOGGED_IN -->
<a href="{FULL_SITE_PATH}/newsletter.php" class="invert">ESSE Project</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}/alertz_VIP.php" class="invert">Alertz</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}/tickindex.php" class="invert">TickLists</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}{U_PROFILE}" class="invert">{L_PROFILE}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ENDIF -->
<!-- IF S_HEADER_DROPDOWN -->
<a href="{FULL_SITE_PATH}{U_SEARCH}" onMouseOver="dropdownmenu(this,event,menu1,'250px')" onMouseOut="delayhidemenu()" class="invert">{L_SEARCH}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ELSE -->
<a href="{FULL_SITE_PATH}{U_SEARCH}" class="invert">{L_SEARCH}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ENDIF -->
<!-- IF not S_LOGGED_IN -->
<a href="{FULL_SITE_PATH}{U_REGISTER}" class="invert">{L_REGISTER}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ENDIF -->
<a href="{FULL_SITE_PATH}{U_LOGIN_LOGOUT}" class="invert">{L_LOGIN_LOGOUT2}</a> </td>
</tr>
<?php
}
ELSEIF (basename($_SERVER['SCRIPT_NAME'], '.' . PHP_EXT) == 'viewforum'){
?>
<tr>
<td width="100%" class="forum-buttons" colspan="3"><a href="{FULL_SITE_PATH}{U_PORTAL}" class="invert">{L_HOME}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}{U_INDEX}" class="invert">{L_INDEX}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- BEGIN switch_upi2db_off -->
<a href="{FULL_SITE_PATH}{U_SEARCH_NEW}" class="invert">{L_NEW2}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- END switch_upi2db_off -->
<a href="{FULL_SITE_PATH}/album.php" class="invert">Gallery</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- IF S_LOGGED_IN -->
<a href="{FULL_SITE_PATH}/newsletter.php" class="invert">ESSE Project</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}/alertz_VIP.php" class="invert">Alertz</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}/tickindex.php" class="invert">TickLists</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}{U_PROFILE}" class="invert">{L_PROFILE}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ENDIF -->
<!-- IF S_HEADER_DROPDOWN -->
<a href="{FULL_SITE_PATH}{U_SEARCH}" onMouseOver="dropdownmenu(this,event,menu1,'250px')" onMouseOut="delayhidemenu()" class="invert">{L_SEARCH}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ELSE -->
<a href="{FULL_SITE_PATH}{U_SEARCH}" class="invert">{L_SEARCH}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ENDIF -->
<!-- IF not S_LOGGED_IN -->
<a href="{FULL_SITE_PATH}{U_REGISTER}" class="invert">{L_REGISTER}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ENDIF -->
<a href="{FULL_SITE_PATH}{U_LOGIN_LOGOUT}" class="invert">{L_LOGIN_LOGOUT2}</a> </td>
</tr>
<?php
}
ELSEIF (basename($_SERVER['SCRIPT_NAME'], '.' . PHP_EXT) == 'forum'){
?>
<tr>
<td width="100%" class="forum-buttons" colspan="3"><a href="{FULL_SITE_PATH}{U_PORTAL}" class="invert">{L_HOME}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}{U_INDEX}" class="invert">{L_INDEX}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- BEGIN switch_upi2db_off -->
<a href="{FULL_SITE_PATH}{U_SEARCH_NEW}" class="invert">{L_NEW2}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- END switch_upi2db_off -->
<a href="{FULL_SITE_PATH}/album.php" class="invert">Gallery</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- IF S_LOGGED_IN -->
<a href="{FULL_SITE_PATH}/newsletter.php" class="invert">ESSE Project</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}/alertz_VIP.php" class="invert">Alertz</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}/tickindex.php" class="invert">TickLists</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}{U_PROFILE}" class="invert">{L_PROFILE}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ENDIF -->
<!-- IF S_HEADER_DROPDOWN -->
<a href="{FULL_SITE_PATH}{U_SEARCH}" onMouseOver="dropdownmenu(this,event,menu1,'250px')" onMouseOut="delayhidemenu()" class="invert">{L_SEARCH}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ELSE -->
<a href="{FULL_SITE_PATH}{U_SEARCH}" class="invert">{L_SEARCH}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ENDIF -->
<!-- IF not S_LOGGED_IN -->
<a href="{FULL_SITE_PATH}{U_REGISTER}" class="invert">{L_REGISTER}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ENDIF -->
<a href="{FULL_SITE_PATH}{U_LOGIN_LOGOUT}" class="invert">{L_LOGIN_LOGOUT2}</a> </td>
</tr>
<?php
}
ELSEIF (basename($_SERVER['SCRIPT_NAME'], '.' . PHP_EXT) == 'album_cat'){
?>
<tr>
<td width="100%" class="forum-buttons" colspan="3"><a href="{FULL_SITE_PATH}{U_PORTAL}" class="invert">{L_HOME}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}{U_INDEX}" class="invert">{L_INDEX}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- BEGIN switch_upi2db_off -->
<a href="{FULL_SITE_PATH}{U_SEARCH_NEW}" class="invert">{L_NEW2}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- END switch_upi2db_off -->
<a href="{FULL_SITE_PATH}/album.php" class="invert">Gallery</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- IF S_LOGGED_IN -->
<a href="{FULL_SITE_PATH}/newsletter.php" class="invert">ESSE Project</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}/alertz_VIP.php" class="invert">Alertz</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}/tickindex.php" class="invert">TickLists</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}{U_PROFILE}" class="invert">{L_PROFILE}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ENDIF -->
<!-- IF S_HEADER_DROPDOWN -->
<a href="{FULL_SITE_PATH}{U_SEARCH}" onMouseOver="dropdownmenu(this,event,menu1,'250px')" onMouseOut="delayhidemenu()" class="invert">{L_SEARCH}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ELSE -->
<a href="{FULL_SITE_PATH}{U_SEARCH}" class="invert">{L_SEARCH}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ENDIF -->
<!-- IF not S_LOGGED_IN -->
<a href="{FULL_SITE_PATH}{U_REGISTER}" class="invert">{L_REGISTER}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ENDIF -->
<a href="{FULL_SITE_PATH}{U_LOGIN_LOGOUT}" class="invert">{L_LOGIN_LOGOUT2}</a> </td>
</tr>
<?php
}
ELSEIF (basename($_SERVER['SCRIPT_NAME'], '.' . PHP_EXT) == 'alertz_VIP'){
?>
<tr>
<td width="100%" class="forum-buttons" colspan="3"><a href="{FULL_SITE_PATH}{U_PORTAL}" class="invert">{L_HOME}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}{U_INDEX}" class="invert">{L_INDEX}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- BEGIN switch_upi2db_off -->
<a href="{FULL_SITE_PATH}{U_SEARCH_NEW}" class="invert">{L_NEW2}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- END switch_upi2db_off -->
<a href="{FULL_SITE_PATH}/album.php" class="invert">Gallery</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- IF S_LOGGED_IN -->
<a href="{FULL_SITE_PATH}/newsletter.php" class="invert">ESSE Project</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}/alertz_VIP.php" class="invert">Alertz</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}/tickindex.php" class="invert">TickLists</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}{U_PROFILE}" class="invert">{L_PROFILE}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ENDIF -->
<!-- IF S_HEADER_DROPDOWN -->
<a href="{FULL_SITE_PATH}{U_SEARCH}" onMouseOver="dropdownmenu(this,event,menu1,'250px')" onMouseOut="delayhidemenu()" class="invert">{L_SEARCH}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ELSE -->
<a href="{FULL_SITE_PATH}{U_SEARCH}" class="invert">{L_SEARCH}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ENDIF -->
<!-- IF not S_LOGGED_IN -->
<a href="{FULL_SITE_PATH}{U_REGISTER}" class="invert">{L_REGISTER}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ENDIF -->
<a href="{FULL_SITE_PATH}{U_LOGIN_LOGOUT}" class="invert">{L_LOGIN_LOGOUT2}</a> </td>
</tr>
<?php
}
ELSEIF (basename($_SERVER['SCRIPT_NAME'], '.' . PHP_EXT) == 'index'){
?>
<tr>
<td width="100%" class="forum-buttons" colspan="3">
<a href="{FULL_SITE_PATH}{U_PORTAL}">{L_HOME}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<a href="{FULL_SITE_PATH}{U_INDEX}">1{L_INDEX}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- BEGIN switch_upi2db_off -->
<a href="{FULL_SITE_PATH}{U_SEARCH_NEW}">{L_NEW2}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- END switch_upi2db_off -->
<!-- BEGIN switch_upi2db_on -->
<span style="vertical-align:top;">{L_POSTS}: </span><a href="{FULL_SITE_PATH}{U_SEARCH_NEW}">{L_NEW2}</a><span style="vertical-align:top;"> • </span>{L_DISPLAY_U}<span style="vertical-align:top;"> • </span>{L_DISPLAY_M}<span style="vertical-align:top;"> • </span>{L_DISPLAY_P} <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- END switch_upi2db_on -->
<!-- IF S_LOGGED_IN -->
<a href="{FULL_SITE_PATH}{U_PROFILE}">{L_PROFILE}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ENDIF -->
<!-- IF S_HEADER_DROPDOWN -->
<a href="{FULL_SITE_PATH}{U_SEARCH}" onMouseOver="dropdownmenu(this,event,menu1,'250px')" onMouseOut="delayhidemenu()">{L_SEARCH}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ELSE -->
<a href="{FULL_SITE_PATH}{U_SEARCH}">{L_SEARCH}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ENDIF -->
<a href="{FULL_SITE_PATH}{U_FAQ}">{L_FAQ}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- IF not S_LOGGED_IN -->
<a href="{FULL_SITE_PATH}{U_REGISTER}">{L_REGISTER}</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
<!-- ENDIF -->
<a href="{FULL_SITE_PATH}{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT2}</a>
</td>
</tr>
<!-- ENDIF -->
<!-- BEGIN switch_lw_user_logged_in -->
<tr>
<td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> {L_LW_EXPIRE_REMINDER}</span></td>
</tr>
<!-- END switch_lw_user_logged_in -->
<?php
}
?>
<div id="global-wrapper">
<span><a name="top"></a></span>
{TOP_HTML_BLOCK}
<!-- IF GH_BLOCK --><!-- BEGIN gheader_blocks_row -->{gheader_blocks_row.CMS_BLOCK}<!-- END gheader_blocks_row --><!-- ENDIF -->
<!-- IF PROFILE_VIEW --><script type="text/javascript">window.open('{U_PROFILE_VIEW}','_blank','height=800,width=250,resizable=yes');</script><!-- ENDIF -->
{PAGE_BEGIN}
<table id="forumtable" cellspacing="0" cellpadding="0">
<!-- IF GT_BLOCK -->
<tr><td width="100%" colspan="3"><!-- BEGIN ghtop_blocks_row -->{ghtop_blocks_row.CMS_BLOCK}<!-- END ghtop_blocks_row --></td></tr>
<!-- ENDIF -->
<tr>
<td width="100%" colspan="3" valign="top">
<div id="top_logo">
<table class="" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="left" height="100%" valign="middle">
<!-- IF GL_BLOCK -->
<!-- BEGIN ghleft_blocks_row -->{ghleft_blocks_row.OUTPUT}<!-- END ghleft_blocks_row -->
<!-- ELSE -->
<!-- ENDIF -->
</td>
<td align="center" valign="middle"><!-- IF S_HEADER_BANNER --><center><br />{HEADER_BANNER_CODE}</center><!-- ELSE --> <!-- ENDIF --></td>
<td align="right" valign="middle">
<!-- <div class="sitedes"><h1>{SITENAME}</h1><h2>{SITE_DESCRIPTION}</h2></div> -->
<!-- IF GR_BLOCK -->
<!-- BEGIN ghright_blocks_row -->{ghright_blocks_row.OUTPUT}<!-- END ghright_blocks_row -->
<!-- ELSE -->
<!-- IF S_LOGGED_IN --> <!-- ELSE --> <!-- ENDIF -->
<!-- ENDIF -->
</td>
</tr>
</table>
</div>
</td>
</tr>
<!-- IF S_PAGE_NAV --><tr><td width="100%" colspan="3"><div style="margin-left: 7px; margin-right: 7px;"><!-- INCLUDE breadcrumbs_main.tpl --></div></td></tr><!-- ENDIF -->
<!-- INCLUDE overall_inc_body.tpl -->
<!-- ENDIF -->
is my overal header
mort [ Thu 17 Jan, 2013 19:20 ]
Post subject: Re: How Do I Check If A User Is Logged In ?
Please Do another fresh Upgrade and ensure that IP is working correctly before you add anything.
And it probably explains why you never found these Mistakes that you made, because something else is screwed up as well.
full_page_generation('alertz_VIP.
php', , '', '');
Mighty Gorgon [ Thu 17 Jan, 2013 19:31 ]
Post subject: Re: How Do I Check If A User Is Logged In ?
Right guys,
getting closer i think.
i know the alertz.php and the .tpl files are okay the problem lies when i am logged in and click on the link to go to the alertz page it forgets about the session ID and kicks me to the log in screen.
THe link i have in the header sectiion is
<a href="{FULL_SITE_PATH}/alertz_VIP.php" class="invert">Alertz</a> <img src="{FULL_SITE_PATH}{IMG_MENU_SEP}" alt="" />
how can i get it so the session ID is kept like any other link i have ?
I am sure i have cookies on, as i have set cookie path etc.
This fully explains what the problem is.
The solution is easy... you need to append sid to the url.
Do what
mort suggested on adding append_sid on redirect, and then this part...
You should define the URL as a var in PHP, maybe in page_header function, something like this:
'U_ALERTZ_VIP' => append_sid('alertz_VIP.' . PHP_EXT),
And then use the var int TPL like this:
<a href="{FULL_SITE_PATH}{U_ALERTZ_VIP}" class="invert">Alertz</a>
And your issue should be gone forever... let me know...
mort [ Thu 17 Jan, 2013 20:08 ]
Post subject: Re: How Do I Check If A User Is Logged In ?
I don't know MG, he says he's got cookies turned on and yet nothing is being set. Because it worked for me as is and I never even "Set" cookies on this XAMPP install - just the default install and it works fine. :mricy:
And for Andy's benefit.
Even without sessions, you need to check things instead of assuming that something is working. Because this is what you should be getting without appending the sid.
As I POINTED OUT to you before. You are getting nothing?
Quote:
You should define the URL as a var in PHP, maybe in page_header function, something like this:
Actually - Put it in templates/default/default.cfg along with its cousins at the bottom. ;)
AndyGpy [ Thu 17 Jan, 2013 22:37 ]
Post subject: Re: How Do I Check If A User Is Logged In ?
Mort --
full_page_generation('alertz_VIP.php', , '', ''); was a typo, if you had checked it prior to informing me you would have seen it went to .tpl page. lol
MG --
:drink_02: :drink_02: :thanks:
Mort -- no disrespect, but people like me who are trying to learn can be put of sometime by the way you came over earlier. All worked out in the end
Many thanks to both you and MG.
now i need to do that for all my links that are like that one.
regards
mort [ Thu 17 Jan, 2013 23:15 ]
Post subject: Re: How Do I Check If A User Is Logged In ?
Mort --
full_page_generation('alertz_VIP.php', , '', ''); was a typo, if you had checked it prior to informing me you would have seen it went to .tpl page. lol
I made it a .tpl file when I tested it.
I quoted exactly what YOU WROTE! It's no good saying afterwards "It was a typo" when you post it and say This is what I've GOT!.
Quote:
alertz_VIP.php
//full_page_generation();
full_page_generation('alertz_VIP.php', , '', '');
and the template alertz_VIP.tpl
Quote:
can be put of sometime by the way you came over earlier
Yeah, well that's too bad - Because you were all over the place with this, and you say you were frustrated. ?
AndyGpy [ Fri 18 Jan, 2013 07:41 ]
Post subject: Re: How Do I Check If A User Is Logged In ?
Not getting into an Argument Mort but look at my 7th post on this topic --
else
// Yes they are
{
....My code is in here...
full_page_generation('alertz_VIP.tpl', '', '', '');
}
and further down in the posts.
Anyway all is good.
mort [ Fri 18 Jan, 2013 09:13 ]
Post subject: Re: How Do I Check If A User Is Logged In ?
Not getting into an Argument Mort but look at my 7th post on this topic --
And WHY would I take script from your seventh post when you supposedly posted an updated version here. Well after the post that you refer too. ?
Why don't I go back to last month - - - Same thing?
http://www.icyphoenix.com/viewtopic.php?p=58012#p58012
I downloaded what anyone would assume to be the latest - filed it - tested it - found errors, and now you tell me I should have used an earlier script.
It's up to you to make sure that the latest scripts you post are a true reflection of where you are up to.
As I said, you were all over the place.
AndyGpy [ Fri 18 Jan, 2013 13:41 ]
Post subject: Re: [SOLVED] How Do I Check If A User Is Logged In ?
why you so agressive ?
mort [ Sat 19 Jan, 2013 00:31 ]
Post subject: Re: How Do I Check If A User Is Logged In ?
I'm not aggressive Andy,
But I think you deserve an answer to your question.
Early on I went to your site and determined that you had neither sessions working on that page or cookies set for the whole board.
You say you did have cookies set. Well, my FF says you didn't, and if you had and were absolutely sure that cookies were set ON then you would have a problem somewhere else.
Did you test it - Probably No.
I gave you some tools to put in the header of any global file to test both sessions and cookies, and that would have determined whether or not cookies and sessions were actually working (Turned On).
Did you test it - Probably No.
Because if you had done that, it would have determined the cookie-status, and maybe you just didn't have them turned on after all. Because if they were turned on your MOD would have worked under Cookie(Sessions), and your next question would have been.
Why does this MOD work with cookies and not with sessions.?
To which the answer would have been obvious.
But you persisted with posting your script and asking why it's not working, so I put myself out to download it - file it - and test it. And found errors. But according to you I should have downloaded an earlier script that apparently didn't contain errors.
That's your fault, not mine.
When the script I checked didn't work for you, I again went back to your site and found that cookies were still not turned on and posted some pictures of it here.
Did you test if cookies were set - Probably No.
You boast about how you fixed someone else's MOD for your own purpose to get it to work with Icy Phoenix, and contravene the very licence that you obtained it under.
You also suggest that people should be here to make themselves available to help those who are less experienced - We are - But it's not a one-way street.
And finally, you also worked outside the guidelines of any logical diagnostics in helping to resolve the problem, by not testing your end of it, and by expecting people to simply fall on the answer to the problem.
I not aggressive Andy - Pissed Off would be a better term to use.
AndyGpy [ Sat 19 Jan, 2013 12:57 ]
Post subject: Re: [SOLVED] How Do I Check If A User Is Logged In ?
Trying to provoke me into an arguement wont get one, one thing i would like to comment to in regards to your reply is:-
You boast about how you fixed someone else's MOD for your own purpose to get it to work with Icy Phoenix, and contravene the very licence that you obtained it under.
Never modded anyones MOD for my own purpose, all I have published is my own.
Mort -- Chill out, as i said i am learning as i go.
mort [ Sat 23 Mar, 2013 15:07 ]
Post subject: Re: [SOLVED] How Do I Check If A User Is Logged In ?
Never modified anyone's MOD for my own purpose, all I have published is my own.
You still miss the point. :(
Icyphoenix is licenced under the GPL, so you can use it and distribute it, for free, as long as the code and the modifications you make
remain public.
However, if you do improve the source code,
or add new features, we would be very happy to hear from you and include it in future releases either by adding it to the core files or as a modification.
Please do take the time to read the GPL licence - and if you don't understand it - Get someone who does to explain it to you. Because contributing the things you make by using someone else's GPL code is what keeps GPL alive.
But the one thing that does strike me as odd is that you profess to have written this modification to operate under Icy Phoenix, and it uses VB mark-up for the html?
But maybe that's intentional on your part to simplify things as Icy Phoenix mark-up can be a tad hard to follow at times :roll:
Anyway, I'll have to give this subject a miss as I have to go and report a "Lost Puppy" on a VB site - Nothing fancy - Just the "Time of day sighted, the location, direction headed, colour of its
feathers fur and any other relevant details that will help the owner to locate it or possibly be reunited with it.
:lol: