| Author |
Message |
bprsk8r4272 Regular


Joined: Jan 23, 2007 Posts: 96 Location: Rochester, Ny
|
Posted:
Tue Mar 23, 2010 9:36 am |
|
im looking for a not logged in register bar for the top of my site like this one anyone know where i can get something like that or what to edit.
thanks, bprsk8r4272 |
|
|
|
 |
sixonetonoffun Spouse Contemplates Divorce

Joined: Jan 02, 2003 Posts: 2499
|
Posted:
Tue Mar 23, 2010 12:36 pm |
|
create or edit /includes/custom_files/custom_head.php
Put something like:
<?
if (!is_user($_COOKIE[user])) {
echo "<div>Your html message here</div>";
}
?>
Use whatever html you want to for the bar effect. |
|
|
|
 |
sixonetonoffun Spouse Contemplates Divorce

Joined: Jan 02, 2003 Posts: 2499
|
Posted:
Tue Mar 23, 2010 1:01 pm |
|
Actually this is better since the user isn't needing real authentification.
<?
if (!isset($_COOKIE[user])) {
echo "<div>Your html message here</div>";
}
?> |
|
|
|
 |
bprsk8r4272 Regular


Joined: Jan 23, 2007 Posts: 96 Location: Rochester, Ny
|
Posted:
Tue Mar 23, 2010 2:43 pm |
|
alright thanks i'll try that out |
|
|
|
 |
bprsk8r4272 Regular


Joined: Jan 23, 2007 Posts: 96 Location: Rochester, Ny
|
Posted:
Tue Mar 23, 2010 3:18 pm |
|
k i tryed it but it wont let me use the "a href" html code
btw im using phpnuke 7.6 patched 3.5 |
|
|
|
 |
sixonetonoffun Spouse Contemplates Divorce

Joined: Jan 02, 2003 Posts: 2499
|
Posted:
Tue Mar 23, 2010 3:42 pm |
|
You have to use single quotes or escape regular quotes like this
echo "<a href=/"wwwhere/">click</a>"; |
|
|
|
 |
bprsk8r4272 Regular


Joined: Jan 23, 2007 Posts: 96 Location: Rochester, Ny
|
Posted:
Tue Mar 23, 2010 7:59 pm |
|
ahh i knew i was forgetting something thanks |
|
|
|
 |
|
|
|
|