roScripts forum

Wordpress Script Generator
Easily write your own wordpress plugins!
www.wpsecrets.com

Learn Simple PHP
Learn PHP with these simple videos!
www.simplephp.com

PLR Poster
Post hundreds of articles to your wordpress blog(s) at a time!
www.softwarefactoryinc.com/blog-software


Go Back   roScripts forum > General > roScripts related discussions

roScripts related discussions If there's anything that you hate, love or wish seing please say it here.

Reply
 
Thread Tools Display Modes
Old 11-20-2007, 12:47 AM   #1 (permalink)
ajn24
Junior Member
 
Join Date: Nov 2007
Posts: 18
Rep Power: 0 ajn24 is on a distinguished road
Default Login Script v1.2 Activaiton Link Error!

Ok i'm having a slight problem with the newest login script. Everything runs smoothly right up until the point that the user checks their inbox and clicks on the activation link. If you want to see what im talking about try the registration process at: www.x360gamerz.com

here is the error:
404 Not Found

The requested URL /login/confirm.php?ID=3&key=RCX8ejQ0jUsA9KIWuJdl5JLhoX4Bu zGo does not exist.


All help is appreciated!!!
ajn24 is offline   Reply With Quote
Sponsored Ads   #1.5
Sponsored posting
 
 
Join Date: The beginning
Posts: lots
Sponsored by...

WM Media - Sell Your Website at above market prices!
Adbot is online  
Old 11-20-2007, 03:28 AM   #2 (permalink)
roScripts
Administrator
 
roScripts's Avatar
 
Join Date: May 2007
Location: Bucharest
Posts: 649
Rep Power: 10 roScripts is on a distinguished road
Default Re: Login Script v1.2 Activaiton Link Error!

Line 27 in register.php.

Change:

PHP Code:
$message "Dear ".$row->Username.", this is your activation link to join our website. In order to confirm your membership please click on the following link: <a href=\"" APPLICATION_URL "confirm.php?ID=" $row->ID "&key=" $row->Random_key "\">" APPLICATION_URL "confirm.php?ID=" $row->ID "&key=" $row->Random_key "</a> <br /><br />Thank you for joining"

to:


PHP Code:
$message "Dear ".$row->Username.", this is your activation link to join our website. In order to confirm your membership please click on the following link: <a href=\"" APPLICATION_URL "confirm.php?ID=" $row->ID "&key=" $row->Random_key "\">" APPLICATION_URL "confirm.php?ID=" $row->ID "&key=" $row->Random_key "</a>"
__________________
Give a man a fish and you feed him for a day. Teach him how to fish and you feed him for a lifetime.
roScripts is offline   Reply With Quote
Old 11-20-2007, 04:24 AM   #3 (permalink)
ajn24
Junior Member
 
Join Date: Nov 2007
Posts: 18
Rep Power: 0 ajn24 is on a distinguished road
Default Re: Login Script v1.2 Activaiton Link Error!

got that all fixed but i dont understand the whole checklogin() thing. I have all of my login files on /php/login/ and then i have a page that is under vids/video.php and i want to protect it. how would i do that?

Last edited by ajn24 : 11-20-2007 at 04:29 AM.
ajn24 is offline   Reply With Quote
Old 11-20-2007, 04:53 AM   #4 (permalink)
ajn24
Junior Member
 
Join Date: Nov 2007
Posts: 18
Rep Power: 0 ajn24 is on a distinguished road
Default Re: Login Script v1.2 Activaiton Link Error!

When i dropped the lines
<?php
session_start();
checkLogin('1 2');
?>

at the beginning of my video.php page..which is located at http://www.x360gamerz.com/vids/videos.php it gave me this error: Fatal error: Call to undefined function checklogin() in /home/xthrsixz/public_html/vids/videos.php on line 3

how do i fix this?
ajn24 is offline   Reply With Quote
Old 11-20-2007, 09:06 AM   #5 (permalink)
roScripts
Administrator
 
roScripts's Avatar
 
Join Date: May 2007
Location: Bucharest
Posts: 649
Rep Power: 10 roScripts is on a distinguished road
Default Re: Login Script v1.2 Activaiton Link Error!

You must includes settings.php ( require ( 'settings.php' ) ) in order to use functions (such as checklogin ) that are defined in those files.
PHP Code:
<?php
    
require ('../login/settings.php');
    
session_start();  
    
checkLogin('1 2');
?>
__________________
Give a man a fish and you feed him for a day. Teach him how to fish and you feed him for a lifetime.
roScripts is offline   Reply With Quote
Old 11-20-2007, 02:15 PM   #6 (permalink)
ajn24
Junior Member
 
Join Date: Nov 2007
Posts: 18
Rep Power: 0 ajn24 is on a distinguished road
Default Re: Login Script v1.2 Activaiton Link Error!

i put these lines in at the top of my videos.php:

<?php
require ('./php/login/settings.php');
session_start();
checkLogin('1 2');
?>

All it did was make a wierd link at the top of the page. Any other suggestions RoScripts? B/C i have no idea what to do.
ajn24 is offline   Reply With Quote
Old 11-21-2007, 02:55 PM   #7 (permalink)
gamekoto
Junior Member
 
Join Date: Nov 2007
Posts: 10
Rep Power: 0 gamekoto is on a distinguished road
Default Re: Login Script v1.2 Activaiton Link Error!

i guess what roscript was trying to say was you must put the exact path on where the settings.php is located..

i mean, if you have your settings.php on your public_html folder then include public_html to the path..

^_^
gamekoto is offline   Reply With Quote
Old 11-21-2007, 08:04 PM   #8 (permalink)
roScripts
Administrator
 
roScripts's Avatar
 
Join Date: May 2007
Location: Bucharest
Posts: 649
Rep Power: 10 roScripts is on a distinguished road
Default Re: Login Script v1.2 Activaiton Link Error!

checklogin already starts the session.

PHP Code:
 <?php
    
require ('./php/login/settings.php');
    
checkLogin('1 2');
?>
the code is complete.

Your problem however, states that you're not including settings.php correctly.

'./php/login/settings.php'
- Is this the correct path?
__________________
Give a man a fish and you feed him for a day. Teach him how to fish and you feed him for a lifetime.
roScripts is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Link Exchange Partner chris Link building 1 10-09-2008 08:50 AM
activation e-mail link doesn't work francoisxi PHP 21 02-22-2008 08:19 PM
Jewelry link exchange Madison Link building 0 01-16-2008 09:01 AM
error in login script Fatal Error: chris roScripts related discussions 2 11-18-2007 08:42 PM
Best link building technique danii Link building 6 11-14-2007 06:17 PM



All times are GMT. The time now is 01:02 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.