Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Login box
Goto page 1, 2, 3  Next
 
Reply to topic    Forum Index » Additional Downloads View previous topic
View next topic
Login box
Author Message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Login box Reply with quote
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');





loginbox.zip
 Description:
Login box

Download
 Filename:  loginbox.zip
 Filesize:  1.11 KB
 Downloaded:  474 Time(s)

Thu Sep 28, 2006 7:48 pm View user's profile Send private message
Guest








Please login to hide the ads.

Ramon



Joined: 12 Oct 2005
Posts: 462
Location: Hoogeveen, NL

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



http://www.fminside.nl/



login: test

ww: test



login.JPG
 Description:

Download
 Filename:  login.JPG
 Filesize:  14.18 KB
 Downloaded:  248 Time(s)


_________________
Fri Sep 29, 2006 7:46 am View user's profile Send private message Visit poster's website
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
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:
<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 View user's profile Send private message
Heya Im Me



Joined: 01 Feb 2006
Posts: 189

Post Reply with quote
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 View user's profile Send private message
Ramon



Joined: 12 Oct 2005
Posts: 462
Location: Hoogeveen, NL

Post Reply with quote
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 View user's profile Send private message Visit poster's website
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
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 View user's profile Send private message
Ramon



Joined: 12 Oct 2005
Posts: 462
Location: Hoogeveen, NL

Post Reply with quote
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 Smile

_________________
Tue Nov 14, 2006 11:20 pm View user's profile Send private message Visit poster's website
erlendfl



Joined: 10 Jan 2007
Posts: 21

Post Reply with quote
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 View user's profile Send private message
scottdallas



Joined: 04 May 2006
Posts: 1843
Location: US

Post Reply with quote
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:
<?php include("admin/head.php"); ?>

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




somewhere later in content:



Code:
<?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 Smile
last update: 07-22-08: 8:30 pm
Fri Feb 02, 2007 4:32 pm View user's profile Send private message Visit poster's website AIM Address
scottdallas



Joined: 04 May 2006
Posts: 1843
Location: US

Post Reply with quote
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 Smile
last update: 07-22-08: 8:30 pm
Fri Feb 02, 2007 5:48 pm View user's profile Send private message Visit poster's website AIM Address
Saszoo



Joined: 07 Jun 2006
Posts: 409
Location: Norway

Post Reply with quote
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 View user's profile Send private message Visit poster's website
al3loo



Joined: 04 Aug 2007
Posts: 60

Post Reply with quote
Smile 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:
   $echo = cute_lang();


so I ignore it by //

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



Confused Its full with errors, please tell me how to fix that .. Rolling Eyes
Kind Regards,
AlEloo

Sat Aug 04, 2007 11:58 am View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
What error messages exactly?
Tue Aug 07, 2007 6:20 pm View user's profile Send private message
al3loo



Joined: 04 Aug 2007
Posts: 60

Post Reply with quote
Thank you I see the problem exactly from the code in loginbox.php
Code:
<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 Rolling Eyes what shall I do to make it save the cookie or session, because I don't want my user do login like machine Very Happy ..








Thanks

Wed Aug 08, 2007 12:53 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
Try changing all occurences of ['act'] to ['action'] in loginbox.php.
Wed Aug 15, 2007 10:16 am View user's profile Send private message
Display posts from previous:    
Reply to topic    Forum Index » Additional Downloads All times are GMT + 1 Hour
Goto page 1, 2, 3  Next
Page 1 of 3

 
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.