| Author |
Message |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
Login box |
|
With the help of this login box you or your visitors can stay logged in.
This is quite usefull when only registered users are allowed to leave a comment because they don't have to type in their password everytime they comment.
When logging in using this login box you have to login once again if you want to use the admin panel.
Installation:- Copy loginbox.php to your main CuteNews.RU folder
- Put this at the beginning of your news page: include('path_to_cute/loginbox.php');
- Put this where you want to show the login box in your news page: include('path_to_cute/loginbox.php');
| Description: |
|
 Download |
| Filename: |
loginbox.zip |
| Filesize: |
1.11 KB |
| Downloaded: |
474 Time(s) |
|
|
| Thu Sep 28, 2006 7:48 pm |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
Ramon
Joined: 12 Oct 2005 Posts: 462 Location: Hoogeveen, NL |
|
|
| Fri Sep 29, 2006 7:46 am |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
|
Well, even though I stay logged in on the demo page (u/p: commenter/commenter) it's not working as expected, sorry.
I suggest you put a form to your page with links to the admin panel.
 |  | <form method="post" action="path_to_cute/index.php" target="blank">
<input type="text" name="username">
<input type="password" name="password">
<input type="submit" value="Login">
<input type="hidden" name="action" value="dologin">
</form> |
|
|
| Fri Sep 29, 2006 10:21 am |
|
 |
Heya Im Me
Joined: 01 Feb 2006 Posts: 189
|
|
|
|
I'm getting an error that reads:
Warning: Cannot modify header information - headers already sent by (plugins/latest_comments.php:137) in /cutenews/loginbox.php on line 61
Warning: Cannot modify header information - headers already sent by (plugins/latest_comments.php:137) in /cutenews/loginbox.php on line 67
I'm currently using latest comments plugin and the login box plugin on the same page, is this not at all possible? I mean it logs me in and still shows the recent comments but at the top of the page those errors appear. Can I get rid of them some how?
Thanks for any help! (Note: THANK YOU SO MUCH FOR MAKING THIS LOGIN BOX!!!!!!!!! I have been dying for this modification since I first started using CuteNews.ru a long whiles back)
-HIM
|
|
| Tue Oct 03, 2006 3:48 am |
|
 |
Ramon
Joined: 12 Oct 2005 Posts: 462 Location: Hoogeveen, NL |
|
|
|
Should be possible. But you have to include the head.php file once. You problably did that twice.
_________________
 |
|
| Tue Nov 14, 2006 1:39 am |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
|
Ramon,
I just logged in on your page using test/test and it's working. I was even logged in your forum. I doubt you are achieving this with the help of my plugin. So what did you do to get this working?
|
|
| Tue Nov 14, 2006 8:26 pm |
|
 |
Ramon
Joined: 12 Oct 2005 Posts: 462 Location: Hoogeveen, NL |
|
|
|
I just use my forum member_database for posting on the website.. The login you see is not attached to my cutenews.ru database..
Here's the trick, I have disabled that only members can post comments, when making a comment you are not allowed to fill in a name, but with a global i get the name which you are logged in with at the forums. For staff members I also have made an account on the cutenews.ru database with the same name, so they will get a password box when they trie to make a comment.
Hope i've been clear at this, hard to explain. If you wan't to I let you view the cutenews.ru admin, so you can see what I have done 
_________________
 |
|
| Tue Nov 14, 2006 11:20 pm |
|
 |
erlendfl
Joined: 10 Jan 2007 Posts: 21
|
|
|
|
Hey Ramon!
Can you explain this a little more in detail? This would have been awesome for my page http://engelsk-fotball.net, do you think it will work on an phpbb2-forum too?
Thanks in advance!
|
|
| Wed Jan 17, 2007 12:14 am |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1843 Location: US |
|
|
|
I'm getting this error when I try to log in with a user and pass:
Warning: Cannot modify header information - headers already sent by (output started at /home/content/s/c/o/scodal/html/embedtube/index.php:5) in /home/content/s/c/o/scodal/html/embedtube/admin/loginbox.php on line 55
I have it like this:
header.php =
 |  | <?php include("admin/head.php"); ?>
<?php include("admin/loginbox.php"); ?> |
somewhere later in content:
 |  | <?php include("admin/loginbox.php"); ?> |
This is correct isn't it? Do you have any idea what I can check to figure out how to fix this?
Also, how do I create a 'log out' button that directs them back to the sites index.php?
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Fri Feb 02, 2007 4:32 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1843 Location: US |
|
|
|
Actually, I figured out how to stop generating that error.. but 2 things I'd like in conjunction with this:
1) Log out button
2) A way to include a members list somewhere?
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Fri Feb 02, 2007 5:48 pm |
|
 |
Saszoo

Joined: 07 Jun 2006 Posts: 409 Location: Norway |
|
|
|
Yes, a memberlist would be nice. And especially if the names would link to what they have selected as homepage. Maybe even a feature that only shows members that has registrered themselves with a homepage?
_________________ My cute.ru site |
|
| Fri Feb 02, 2007 6:48 pm |
|
 |
al3loo
Joined: 04 Aug 2007 Posts: 60
|
|
|
|
I'm a new member so hello everyone!
I'm getting error in this LoginBox, first when I loading index.php it gives me error in line 14:
 |  | $echo = cute_lang(); |
so I ignore it by //
after that I had another error when I login, its in line 24:
 |  | $cmd5_password = md5x($password); |
Its full with errors, please tell me how to fix that ..
Kind Regards,
AlEloo
|
|
| Sat Aug 04, 2007 11:58 am |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
|
What error messages exactly?
|
|
| Tue Aug 07, 2007 6:20 pm |
|
 |
al3loo
Joined: 04 Aug 2007 Posts: 60
|
|
|
|
Thank you I see the problem exactly from the code in loginbox.php
 |  | <input type="hidden" name="act" value="dologin"> |
Just with change the name="act" to name="action" it will work, but its not save the cookie. It must to be login every move I made in my page what shall I do to make it save the cookie or session, because I don't want my user do login like machine ..
Thanks
|
|
| Wed Aug 08, 2007 12:53 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
|
Try changing all occurences of ['act'] to ['action'] in loginbox.php.
|
|
| Wed Aug 15, 2007 10:16 am |
|
 |
|