Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Login from every page

 
Reply to topic    Forum Index » Suggestions View previous topic
View next topic
Login from every page
Author Message
RAMMSTEIN12



Joined: 06 May 2007
Posts: 29
Location: Greece

Post Login from every page Reply with quote
It would lnice to have the login page in all pages and when a user make the login the script will show something else.

like:









member loged in







member not logedin











i used this but don't work (works only in a template)

Code:


[if-logged]

Add news link.

see comments

and loggout link

Help someone

[/if-logged]







 [not-logged]

<table border="0" cellspacing="0" cellpadding="1">

 <form name="login" action="<?=$PHP_SELF; ?>" method="post" onsubmit="return process_form(this)">

  <tr>

   <td width="80"><?=$echo['username']; ?>

   <td><input tabindex="1" type="text" name="username" value="<?=$lastusername; ?>" style="width:100">

  <tr>

   <td><?=$echo['password']; ?>

   <td><input type="password" name="password" style="width:100">

  <tr>

   <td>

   <td><input accesskey="s" type="submit" style="width:134;" value="<?=$echo['login']; ?>"> or <a href="http://down66.com/d/index.php?do=register">register</a>?

  <tr>

   <td align="center" colspan="3"><?=$result; ?></td>

 <input type="hidden" name="action" value="dologin">

 </tr></form>

</table>

[/not-logged].




lofgein.jpg
 Description:

Download
 Filename:  lofgein.jpg
 Filesize:  19.51 KB
 Downloaded:  83 Time(s)


_________________
MAKE CUTENEWS BETTER



my cutenews site: www.Down66.com

Last edited by RAMMSTEIN12 on Fri May 11, 2007 11:03 am; edited 2 times in total
Thu May 10, 2007 8:11 pm View user's profile Send private message Visit poster's website
Guest








Please login to hide the ads.

Dr.Twister



Joined: 23 Apr 2007
Posts: 55

Post Reply with quote
Try putting something like this on the first line of your page. Replace PATH with the path to your cutenews install.



Code:
<?php include("PATH-TO-CUTENEWSRU/head.php"); ?>

Fri May 11, 2007 2:56 am View user's profile Send private message Visit poster's website
RAMMSTEIN12



Joined: 06 May 2007
Posts: 29
Location: Greece

Post no Reply with quote
Dr.Twister wrote:
Try putting something like this on the first line of your page. Replace PATH with the path to your cutenews install.



Code:
<?php include("PATH-TO-CUTENEWSRU/head.php"); ?>




You don't understand me.

i am updating my topic.

thank you

_________________
MAKE CUTENEWS BETTER



my cutenews site: www.Down66.com
Fri May 11, 2007 11:05 am View user's profile Send private message Visit poster's website
Dr.Twister



Joined: 23 Apr 2007
Posts: 55

Post Reply with quote
I understand.



Make sure you include the head.php file inside of your cutenews directory at the top of your php pages. Then add the global codes for if logged in.



Check this link out for better directions.



http://english.cutenews.ru/forum/if-logged-and-login-box-t593.html#3190
Fri May 11, 2007 1:14 pm View user's profile Send private message Visit poster's website
Display posts from previous:    
Reply to topic    Forum Index » Suggestions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.