PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
srhh
Involved
Involved


Joined: Dec 27, 2005
Posts: 296

PostPosted: Tue Oct 10, 2006 4:06 pm Reply with quote Back to top

I just installed the NSN Mailing list. I try to sign up for a list, then click on the validation link it send to my e-mail. I get a page saying "The link is not valid!"
Any ideas?


Last edited by srhh on Thu Oct 19, 2006 11:10 pm; edited 1 time in total
View user's profile Send private message
srhh
Involved
Involved


Joined: Dec 27, 2005
Posts: 296

PostPosted: Tue Oct 10, 2006 4:13 pm Reply with quote Back to top

I just checked my database and the information is getting to the database, it just isn't validating and thus doesn't show me as a subscriber.
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 4887

PostPosted: Tue Oct 10, 2006 8:18 pm Reply with quote Back to top

Are you tapped (i.e. using a URL rewriting scheme)?
View user's profile Send private message
srhh
Involved
Involved


Joined: Dec 27, 2005
Posts: 296

PostPosted: Tue Oct 10, 2006 8:39 pm Reply with quote Back to top

I would have to say 'no' cuz I have no idea what that is. Smile

I do vaguly remember something about URL rewriting when I installed Gallery. I think it said to turn it off.
Maybe I'm confused.
Wait, no scratch that. I'm definatly confused.

Wink
View user's profile Send private message
srhh
Involved
Involved


Joined: Dec 27, 2005
Posts: 296

PostPosted: Tue Oct 10, 2006 8:41 pm Reply with quote Back to top

I'm on RN 2.02.02, btw.
View user's profile Send private message
srhh
Involved
Involved


Joined: Dec 27, 2005
Posts: 296

PostPosted: Tue Oct 10, 2006 8:45 pm Reply with quote Back to top

Ooo, I think I'm onto something. I don't think the clicky-URL in the email is being formated right. Here is the URL I got:
Only registered users can see links on this board!
Get registered or login to the forums!


Now if you look, there are two of "/" after the .com/nukesite
I took out the extra / and I still get the invalid link error.
View user's profile Send private message
srhh
Involved
Involved


Joined: Dec 27, 2005
Posts: 296

PostPosted: Thu Oct 19, 2006 1:23 pm Reply with quote Back to top

*bump*

Anyone? I reformated my $nukeurl so there wasn't that extra "\" and still no go. Also tried re-uploaded and re-installing to.

So here is the code from modules/Mailing_List/public/MLAction.php that first puts together the confirmation URL
Code:

$pagetitle = " - "._ML_TITLE." ".$ml_config['version_number'];
include("header.php");
title(_ML_TITLE." ".$ml_config['version_number']);
OpenTable();
if(!preg_match("/@/", $email)) {
  echo "<center><b>"._ML_ERROR_INVALID."</b></center><br>";
  echo "<center>"._GOBACK."</center>";
} elseif($sub == 'sub') {
  $mid = $db->sql_numrows($db->sql_query("SELECT * FROM `".$prefix."_nsnml_users` WHERE `email`='$email' AND `lid`='$lid'"));
  if($mid > 0) {
    echo "<center><b>"._ML_ERROR_ALREADY."</b></center><br>";
    echo "<center>"._GOBACK."</center>";
  } else {
    srand ((double)microtime()*1000000);
    $mycode = rand();
    $joined = time();
    $query = "INSERT INTO `".$prefix."_nsnml_users` VALUES (NULL, '$lid', '$email', '0', '$type', '$mycode', '$joined')";
    if(!$db->sql_query($query)) {
      $result = $db->sql_error($query);
      echo "<center><b>".$result['code'].": ".$result['message']."</b></center>\n";
    } else {
      $buildlink = "$nukeurl/modules.php?name=$module_name&op=MLActivate&email=$email&lid=$lid&check=$mycode";
      mail($email, _ML_SUBSCRIPTION, _ML_CONFIGTEXT."\n\n$buildlink", "From: $adminmail");
      echo "<center><b>"._ML_CONFIRSENT."</b></center><br>";
      echo "<center>"._GOBACK."</center>";
    }

I'm getting the confirmation e-mail and URL correctly. (I compared it with another functioning Mailing List system)
and here is the code from modules/Mailing_List/MLActivate.php:
Code:

$pagetitle = " - "._ML_TITLE." ".$ml_config['version_number'];
include("header.php");
title(_ML_TITLE." ".$ml_config['version_number']);
OpenTable();
$query2 = "UPDATE `".$prefix."_nsnml_users` SET `active`='1', `act_key`='0', `joined`='".time()."' WHERE `email`='$email' AND `lid`='$lid'";
$result = $db->sql_query("SELECT * FROM `".$prefix."_nsnml_users` WHERE `email`='$email' AND `act_key`='$check' AND `lid`='$lid'");
if($db->sql_numrows($result) != 1) {
  echo "<center><b>"._ML_ERROR_SUBLINK."</b></center>";
} elseif(!$db->sql_query($query2)) {
   $result = $db->sql_error($query);
   echo "<center><b>".$result['code'].": ".$result['message']."</b></center>\n";
} else {
  $result = $db->sql_query("SELECT * FROM `".$prefix."_nsnml_lists` WHERE `lid`='$lid'");
  $list_info = $db->sql_fetchrow($result);
  echo "<center><b>"._ML_MAIN."</b>: ".$list_info['title']."<br>\n";
  echo "<b>"._ML_SUBCOMPLETED."</b></center>";
}
CloseTable();
include("footer.php");

My feeling is the problem is from the MLActivate.php and the fact I'm on a subdomain, but just can't track it down.
View user's profile Send private message
srhh
Involved
Involved


Joined: Dec 27, 2005
Posts: 296

PostPosted: Thu Oct 19, 2006 1:32 pm Reply with quote Back to top

I like trying to figure things out, so in MLActivate.php, this is what is calling up the invalid link error, right?
Code:

if($db->sql_numrows($result) != 1) {
  echo "<center><b>"._ML_ERROR_SUBLINK."</b></center>";


But I'm stuck on what ever that means. It's not reading the database correctly ?
View user's profile Send private message
srhh
Involved
Involved


Joined: Dec 27, 2005
Posts: 296

PostPosted: Thu Oct 19, 2006 11:09 pm Reply with quote Back to top

Interesting.
It works now.

I de-activated an add-on module that I guess was causing conflicts.
In the words of the immortal Rodney King, Why can't we all just get along?
Wink
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum