28, May 2012

access user class activation e-mail problem - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: access user class activation e-mail problem
« previous next »
Pages: [1] Print

Author Topic: access user class activation e-mail problem  (Read 1785 times)
Atari ST fan
*
Posts: 8
64 credits
Members referred : 0


« on: Apr 22, 2007, 01:43:43 pm »

The class is uploaded to my server host and seems to work, but there is a problem when the newly registered user clicks on the received e-mail to activate the request.
The URL in the e-mail is in someway duplicated . . . in other words it appears twice.
This is how the link looks in the e-mail sendt by the script:

http://vargaswhistles.com/community/access_user/community/access_user/login.php?ident=..... etc.

The correct URL should have been like this:
http://vargaswhistles.com/community/access_user/login.php?ident= ..... etc.

Why does "/community/access_user/" appear twice in the e-mail link URL?

The loginpage can be found here:
http://vargaswhistles.com/community/access_user/login.php
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Apr 22, 2007, 02:12:48 pm »

hi you need to change the pathes inside the db_config file

Atari ST fan
*
Posts: 8
64 credits
Members referred : 0


« Reply #2 on: Apr 22, 2007, 03:02:24 pm »

yes, the problem was to be found in db_config.php

// use this pathes and/or define the pathes for the "standard" pages
define("CLASS_PATH", dirname($_SERVER['PHP_SELF'])."/"); // the location where the class is executed
$sec_path = "/community/access_user/"; // a second location where the scripts should be
define("APPLICATION_PATH", $sec_path);

The error I made was replacing   ($_SERVER['PHP_SELF'])."/")   with:
($_SERVER['PHP_SELF'])."/community/access_user/")

This made the path to appear twice in the e-mail URL.

I still have a problem with the path for example.php, but I'm sure I'll get it sorted out as soon as I check all the paths in the scripts.

The access user class is one of the very few scripts that actually works,-thank you very much  :-)
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Apr 22, 2007, 03:11:12 pm »



The access user class is one of the very few scripts that actually works,-thank you very much  :-)

hehe I have more of them Cheesy

Google dot what?
*
Posts: 2
12 credits
Members referred : 0


« Reply #4 on: Apr 29, 2007, 12:17:07 am »

I really like what I see so far but can not get e-mail to work. Where are the SMTP server settings? I do not have a SMTP server running on the local host. I would like to be able to configure it to send via a remote host on the network. Can this be done?
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #5 on: Apr 29, 2007, 07:53:44 am »

I really like what I see so far but can not get e-mail to work. Where are the SMTP server settings? I do not have a SMTP server running on the local host. I would like to be able to configure it to send via a remote host on the network. Can this be done?

sure you can use the smtp server from your internet provider (if this is allowed), you need to change the php.ini file

Google dot what?
*
Posts: 2
12 credits
Members referred : 0


« Reply #6 on: Apr 30, 2007, 06:56:08 am »

Thanks, I'll give it a try.
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=6429
Tags : access user class e-mail problem URL duplicated Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: access user class activation e-mail problem
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 08:35:00 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.