Author |
Message |
TheosEleos
Life Cycles Becoming CPU Cycles

Joined: Sep 18, 2003
Posts: 960
Location: Missouri
|
Posted:
Thu Dec 02, 2004 8:38 pm |
|
I have noticed that my resend email module from Raven is not working quite right now that I have CNB YA installed.
The email address won't show up and when I click 'resend' I get an error.
I know CNB YA will do this also but raven's is a bit quicker to get to. |
_________________ Only registered users can see links on this board! Get registered or login! |
|
 |
 |
sixonetonoffun
Spouse Contemplates Divorce

Joined: Jan 02, 2003
Posts: 2496
|
Posted:
Thu Dec 02, 2004 10:05 pm |
|
Not sure whats up with that. I downloaded it and changed copied a default language file to the modules/Resend_Email/ directory and editted the index.php
get_lang("$module_name");
So it could use the langs it looks for but it doesn't load beyond the title();
If I figure it out I'll post back otherwise assume I ran out of time and/or ideas.
Edit: I didn't have a temp user doh!
It looks like its getting the time in the place of check_num to me. In my test realname was blank maybe thats why. It works after I clicked modify and added the realname.
Check that once and see if it also works for you then we can tweak the code a little. |
_________________ [b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 |
|
|
 |
sixonetonoffun

|
Posted:
Thu Dec 02, 2004 10:24 pm |
|
Actually the realname isn't being saved for some unknown to me reason yet. Its a CNB YA bug again for sure. Uhg! |
|
|
|
 |
TheosEleos

|
Posted:
Thu Dec 02, 2004 10:24 pm |
|
I have a temp user and he had left his real name empty. I put in the name 'test' and that is what shows up in the email spot. |
|
|
|
 |
TheosEleos

|
Posted:
Thu Dec 02, 2004 10:26 pm |
|
Honestly, this does eliminate the use for the resend module. If that part of CNB YA was easier to get to you realy wouldn't need Raven's add on.  |
|
|
|
 |
sixonetonoffun

|
Posted:
Fri Dec 03, 2004 6:13 am |
|
We could make a admin block that went to specific areas could take a click or 2 out of the process. |
|
|
|
 |
TheosEleos

|
Posted:
Fri Dec 03, 2004 12:31 pm |
|
I use SN Admin block. Maybe I can edit that thing to work.
Maybe you guys would want to make your own site info block, mybe not. |
|
|
|
 |
sixonetonoffun

|
Posted:
Fri Dec 03, 2004 5:54 pm |
|
It would be nice to have some short cuts. |
|
|
|
 |
sixonetonoffun

|
Posted:
Fri Dec 03, 2004 7:12 pm |
|
Here are some files that should be replaced to your install that will fix the real name issues I believe. If not let me know and I'll see what I can come up with.
CNB Your Account 750 4.4.0 b2
Real Name not saving fix in this unofficial patch: http://www.netflake.com/files/patch_705_440_b2a.zip |
|
|
|
 |
sixonetonoffun

|
Posted:
Fri Dec 03, 2004 7:18 pm |
|
TheosEleos wrote: | I use SN Admin block. Maybe I can edit that thing to work.
Maybe you guys would want to make your own site info block, mybe not. |
Anyone can jump in with this one we've so much on the agenda for the next few weeks its hard to say when we'd get to it. Maybe something Simular to NavTap call it AdminNav or something just not Tap thats someone elses TM wink* |
|
|
|
 |
TheosEleos

|
Posted:
Sat Dec 04, 2004 8:36 am |
|
Don't worry about it, six. It won't kill me to navigate a few pages to look something up.  |
|
|
|
 |
sixonetonoffun

|
Posted:
Sat Dec 04, 2004 9:29 am |
|
Yeah but its a very cool idea we all get tired of navigating the extra levels of any modules admin. |
|
|
|
 |
sixonetonoffun

|
Posted:
Sun Dec 05, 2004 6:39 pm |
|
|
|
 |
sixonetonoffun

|
Posted:
Sun Dec 05, 2004 6:44 pm |
|
If you prefere the links closer together just edit cellpadding='2' cellspacing='2' around line 34:
$content .= "<table align='left' cellpadding='2' cellspacing='2' border='0' width='100%'>\n"; |
|
|
|
 |
sixonetonoffun

|
Posted:
Sun Dec 05, 2004 6:45 pm |
|
Oh and yeah I think you could easily add the content to the SN Admin block.
Just a quick cut and paste job I think. |
|
|
|
 |
TheosEleos

|
Posted:
Mon Dec 06, 2004 4:26 pm |
|
Well, I edited the index.php file in the resend email module from Raven and got it working. I just needed to add $realname to the query for the main page. |
|
|
|
 |
Stylee
New Member


Joined: Aug 15, 2003
Posts: 18
|
Posted:
Mon Dec 13, 2004 5:56 pm |
|
TheosEleos wrote: | Well, I edited the index.php file in the resend email module from Raven and got it working. I just needed to add $realname to the query for the main page. |
I just upgraded to nuke 7.5 and my beloved resend from Raven doesnt work anymore either. Will your fix...Fix my issue as well? Can I get a copy? |
|
|
|
 |
menelaos61
Worker


Joined: Nov 10, 2004
Posts: 110
|
Posted:
Mon Dec 13, 2004 7:55 pm |
|
Hi Stylee,
Basicly you can resend the email with cnbya as well.
In the cnbya admin panel (users config) go to waiting users,
and resend the mail, or validate again (does the same).
Cheers,
Richard |
|
|
|
 |
Stylee

|
Posted:
Mon Dec 13, 2004 8:13 pm |
|
menelaos61 wrote: | Hi Stylee,
Basicly you can resend the email with cnbya as well.
In the cnbya admin panel (users config) go to waiting users,
and resend the mail, or validate again (does the same).
Cheers,
Richard |
Where do I get this cnbya admin panel? |
|
|
|
 |
sixonetonoffun

|
Posted:
Mon Dec 13, 2004 10:04 pm |
|
|
|
 |
TheosEleos

|
Posted:
Tue Dec 14, 2004 5:14 pm |
|
Stylee wrote: | TheosEleos wrote: | Well, I edited the index.php file in the resend email module from Raven and got it working. I just needed to add $realname to the query for the main page. |
I just upgraded to nuke 7.5 and my beloved resend from Raven doesnt work anymore either. Will your fix...Fix my issue as well? Can I get a copy? |
Here is my current index.php for raven's resend email module. Back up your old one before using this one, please.
Code:<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
/************************************************************************/
/* Module by Gaylen Fraley */
/* http://gaylenandmargie.com/phpwebsite */
/* For use with nuke 6.5 - it may work on 6.0 though. */
/* 05/09/2003 - Released */
/* 05/18/2003 - Fixed password display in email and added hyperlink */
/* to the display to allow the Admin to activate the user */
/* right from the module. The password will now be changed */
/* when resending the email. */
/* 05/19/2003 - Added Modification facility to allow the Admin to make */
/* selected modifications to the temporary record. */
/************************************************************************/
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
if (!is_admin($admin)) die ("Access Denied");
$module_name = basename(dirname(__FILE__));
get_lang("Your_Account");
$userpage = 1;
include("header.php");
include("config.php");
OpenTable();
title("$sitename: "._USERREGLOGIN."");
extract($HTTP_POST_VARS);
if (isset($submit) && $submit = 'Resend') {
$cons = "bcdfghjklmnpqrstvwxyz";
$vocs = "aeiou";
for ($x=0; $x < 6; $x++) {
mt_srand ((double) microtime() * 1000000);
$con[$x] = substr($cons, mt_rand(0, strlen($cons)-1), 1);
$voc[$x] = substr($vocs, mt_rand(0, strlen($vocs)-1), 1);
}
$makepass = $con[0] . $voc[0] .$con[2] . $con[1] . $voc[1] . $con[3] . $voc[3] . $con[4];
$result = sql_query("select * from ".$user_prefix."_users_temp where user_id=".$rsid,$dbi);
if(!$result) die(_ERROR."<br>");
list($user_id, $username, $realname, $user_email, $user_password, $user_regdate, $check_num, $time) = sql_fetch_row($result, $dbi);
$finishlink = "$nukeurl/modules.php?name=Your_Account&op=activate&username=$username&check_num=$check_num";
$message = ""._WELCOMETO." $sitename!\n\n"._YOUUSEDEMAIL." ($user_email) "._TOREGISTER." $sitename.\n\n "._TOFINISHUSER."\n\n $finishlink\n\n "._FOLLOWINGMEM."\n\n"._UNICKNAME." $username\n"._UPASSWORD." $makepass";
$subject = ""._ACTIVATIONSUB."";
$from = "$adminmail";
$rc_email = mail($user_email, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion());
if (FALSE!==$rc_email) {
echo "The activation email for ".$username." has been sent.";
$result = sql_query("update ".$user_prefix."_users_temp set user_password='".md5($makepass)."' where user_id=".$rsid,$dbi);
echo "<form method=\"post\" action=\"modules.php?name=".$module_name."\"><input type=\"submit\" value=\"Back\"></form>";
}
else echo "An error ocurred while trying to send the email.";
}
elseif (isset($delete) && $delete = 'Delete') {
$result = sql_query("delete from ".$user_prefix."_users_temp where user_id=".$rsid,$dbi);
if(!$result) die(_ERROR."<br>");
echo "Temporary user record deleted.";
echo "<form method=\"post\" action=\"modules.php?name=".$module_name."\"><input type=\"submit\" value=\"Back\"></form>";
}
elseif (isset($update) && $update = 'Update') {
$result = sql_query("select * from ".$user_prefix."_users_temp where user_id=".$rsid,$dbi);
if(!$result) die(_ERROR."<br>");
$result = sql_query("update ".$user_prefix."_users_temp set username='".$username."', user_email='".$user_email."', user_regdate='".$user_regdate."', check_num='".$check_num."', time='".$time."' where user_id=".$rsid,$dbi);
if(!$result) die(_ERROR."<br>");
echo "Temporary user record modified.";
echo "<form method=\"post\" action=\"modules.php?name=".$module_name."\"><input type=\"submit\" value=\"Back\"></form>";
}
elseif (isset($modify) && $modify = 'Modify') {
$result = sql_query("select * from ".$user_prefix."_users_temp where user_id=".$rsid,$dbi);
if(!$result) die(_ERROR."<br>");
list($user_id, $username, $realname, $user_email, $user_password, $user_regdate, $check_num, $time) = sql_fetch_row($result, $dbi);
echo "<form method=\"post\" action=\"modules.php?name=$module_name&file=index&action=modify&rsid=$user_id\" name=\"modifyform$rsid\">";
echo '<table width="50%">';
echo '<tr><td align="right">User ID</td><td>'.$user_id.'</td></tr>';
echo '<tr><td align="right">User Name</td><td><input name="username" value="'.$username.'"></td></tr>';
echo '<tr><td align="right">User Real Name</td><input realname="realname" value"'.$realname.'"></td>';
echo '<tr><td align="right">User Email</td><td><input name="user_email" value="'.$user_email.'"></td></tr>';
echo '<tr><td align="right">User Password</td><td>'.$user_password.'</td></tr>';
echo '<tr><td align="right">User RegDate</td><td><input name="user_regdate" value="'.$user_regdate.'"></td></tr>';
echo '<tr><td align="right">CheckNum</td><td><input name="check_num" value="'.$check_num.'"></td></tr>';
echo '<tr><td align="right">Time</td><td><input name="time" value="'.$time.'"></td></tr>';
echo '<tr><td colspan=2><input type="submit" name="update" value="Update"></td></tr>';
echo '</table></form>';
}
else {
$result = sql_query("select * from ".$user_prefix."_users_temp",$dbi);
if(!$result) die(_ERROR."<br>");
while (list($user_id, $username, $realname, $user_email, $user_password, $user_regdate, $check_num, $time) = sql_fetch_row($result, $dbi)) {
$finishlink = "<a href=\"$nukeurl/modules.php?name=Your_Account&op=activate&username=$username&check_num=$check_num\" target=\"_blank\">$nukeurl/modules.php?name=Your_Account&op=activate&username=$username&check_num=$check_num</a>";
echo "<form method=\"post\" action=\"modules.php?name=$module_name&file=index&action=resend&rsid=$user_id\" name=\"resendform$rsid\">";
echo "<table><tr><td>User Name</td><td>".$username."</td></tr><tr><td>User Email</td><td>".$user_email."</td></tr><tr><td>User regDate</td><td>".$user_regdate."</td></tr><tr><td>Activation Link</td><td>".$finishlink."</td></tr><tr><td><input type=\"submit\" name=\"submit\" value=\"Resend\"> <input type=\"submit\" name=\"modify\" value=\"Modify\"> <input type=\"submit\" name=\"delete\" value=\"Delete\"></td></tr></table>";
echo "</form>";
}
}
CloseTable();
include("footer.php");
?>
|
|
|
|
|
 |
tigeru
New Member


Joined: Oct 08, 2005
Posts: 1
|
Posted:
Sat Oct 08, 2005 2:39 am |
|
This addon works well with a handful of accounts, but after a couple it becomes tedious.
Does anyone know of something already made that allows an admin to resend activation emails out to the entire temp users table in one step? |
|
|
|
 |
menelaos61

|
Posted:
Sat Oct 08, 2005 5:05 am |
|
Hi Tigeru,
Yes, I know someone who is going to code it... I am.
Actually it won't be that difficult. I also coded an 'unsuspend all' function for our upcoming release.
Thank you for the idea!
One of the main goals of CNB Your Account is to make user management easier and more intuitive, so if you have any more ideas, please let us know because any good idea might be worthwile integrating into the module.
Cheers,
Richard |
|
|
|
 |
|