Login box

Download plugins, language packs and stuff.

Login box

Postby FI-DD » Thu Sep 28, 2006 7:48 pm

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');
Attachments
loginbox.zip
Login box
(1.11 KiB) Downloaded 784 times
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby Ramon » Fri Sep 29, 2006 7:46 am

Great FI-DD but I'm finding myself with some difficulties..



http://www.fminside.nl/



login: test

ww: test
Attachments
login.JPG
(14.18 KiB) Downloaded 420 times
Image
Ramon
 
Posts: 599
Joined: Wed Oct 12, 2005 8:51 pm
Location: Hoogeveen, NL

Postby FI-DD » Fri Sep 29, 2006 10:21 am

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.

Code: Select all
<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>
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby Heya Im Me » Tue Oct 03, 2006 3:48 am

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
Heya Im Me
 
Posts: 189
Joined: Wed Feb 01, 2006 4:06 am

Postby Ramon » Tue Nov 14, 2006 1:39 am

Should be possible. But you have to include the head.php file once. You problably did that twice.
Image
Ramon
 
Posts: 599
Joined: Wed Oct 12, 2005 8:51 pm
Location: Hoogeveen, NL

Postby FI-DD » Tue Nov 14, 2006 8:26 pm

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?
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby Ramon » Tue Nov 14, 2006 11:20 pm

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 :)
Image
Ramon
 
Posts: 599
Joined: Wed Oct 12, 2005 8:51 pm
Location: Hoogeveen, NL

Postby erlendfl » Wed Jan 17, 2007 12:14 am

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!
erlendfl
 
Posts: 50
Joined: Wed Jan 10, 2007 1:25 pm

Postby scottdallas » Fri Feb 02, 2007 4:32 pm

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 =

Code: Select all
<?php include("admin/head.php"); ?>

<?php include("admin/loginbox.php"); ?>




somewhere later in content:



Code: Select all
<?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?
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Postby scottdallas » Fri Feb 02, 2007 5:48 pm

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?
Everyday I'm tumblin http://scodal.tumblr.com
User avatar
scottdallas
 
Posts: 2209
Joined: Thu May 04, 2006 6:46 pm
Location: US

Postby Saszoo » Fri Feb 02, 2007 6:48 pm

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?
User avatar
Saszoo
 
Posts: 414
Joined: Wed Jun 07, 2006 10:34 pm
Location: Norway

Postby al3loo » Sat Aug 04, 2007 11:58 am

:) 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:
Code: Select all
   $echo = cute_lang();


so I ignore it by //

after that I had another error when I login, its in line 24:
Code: Select all
            $cmd5_password = md5x($password);



:? Its full with errors, please tell me how to fix that .. :roll:
Kind Regards,
AlEloo
al3loo
 
Posts: 65
Joined: Sat Aug 04, 2007 2:19 am

Postby FI-DD » Tue Aug 07, 2007 6:20 pm

What error messages exactly?
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Postby al3loo » Wed Aug 08, 2007 12:53 pm

Thank you I see the problem exactly from the code in loginbox.php
Code: Select all
<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 :roll: what shall I do to make it save the cookie or session, because I don't want my user do login like machine :D ..








Thanks
al3loo
 
Posts: 65
Joined: Sat Aug 04, 2007 2:19 am

Postby FI-DD » Wed Aug 15, 2007 10:16 am

Try changing all occurences of ['act'] to ['action'] in loginbox.php.
User avatar
FI-DD
Admin
 
Posts: 2971
Joined: Thu Sep 22, 2005 11:27 am
Location: Germany

Next

Return to Additional Downloads



Who is online

Users browsing this forum: No registered users and 0 guests

cron