Author |
Message |
dargah
New Member


Joined: Oct 25, 2005
Posts: 4
|
Posted:
Fri Feb 24, 2006 12:36 pm |
|
Hi all
I just found this nice script " send pm on user register " in downloads section , This was exactly what I was looking for. but I have a problem to make it work.
on the manual says :
Code:#-----[ OPEN ]------------------------------------------
#
modules/Your_Account/index.php
#
#-----[ FIND ]------------------------------------------
#
function activate
#
#-----[ THEN FIND ]------------------------------------------
#
$db->sql_query("DELETE FROM ".$user_prefix."_users_temp WHERE username='$username' AND check_num='$check_num'");
include("header.php");
title(""._ACTIVATIONYES."");
OpenTable();
#
#-----[ AFTER, ADD ]------------------------------------------
|
unfortunately on Index.php i don't have this function and cods but on \modules\Your_Account\public\ i have a Activate.php which i fount similar cods to above cods
Code: $username = trim(check_html($username, 'nohtml'));
$check_num = trim(check_html($check_num, 'nohtml'));
$result = $db->sql_query("SELECT * FROM ".$user_prefix."_users_temp WHERE username='$username' AND check_num='$check_num'");
if ($db->sql_numrows($result) == 1) {
$row = $db->sql_fetchrow($result);
$lv = time();
include("header.php");
title(_PERSONALINFO);
OpenTable();
|
I replaced you code from manual after this cod but it's not working, nothing happened even no errors to follow
it seems to me i replaced it in wrong place but I couldn't find any other place ...
can you guys help out please I don't know what to do else
I use phpnuke 7.8
Tank you in Advance |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Fri Feb 24, 2006 10:51 pm |
|
There is no public folder in phpNuke v7.8. You are using some other nuke version or a different Your_Account module. |
|
|
|
 |
jaded
Theme Guru

Joined: Nov 01, 2003
Posts: 1006
|
Posted:
Sat Feb 25, 2006 6:54 am |
|
|
|
 |
dargah

|
Posted:
Sat Feb 25, 2006 11:04 am |
|
Thanks for respond
I do have Public folder in "Your_Account" majol and I do have a lot of files inside of that but as Raven said my nuke it's not Standard English so maybe they have made some changes on that.
but here is some Copyright information about module
--------------------------------------------------------------------------------
Module's Name: CNB Your Account
Module's Version: 4.4.0 b2
Release Date: -- Nov 2004
License: Modifications - Copyright © 2000-2004 Comunidade PHP Nuke Brasil
Author's Name: Comunidade PHP Nuke Brasil
--------------------------------------------------------------------------------
Thank you. |
Last edited by dargah on Fri Mar 10, 2006 10:32 am; edited 2 times in total |
|
|
 |
Raven

|
Posted:
Sat Feb 25, 2006 11:08 am |
|
I am moving this to the CNBYA forum  |
|
|
|
 |
dargah

|
Posted:
Sat Feb 25, 2006 11:21 pm |
|
Sorry I posted in wrong forum , I'm pretty new
guys ..now we know the module, is that mean we can find out where those code has to go ??
Thank You |
|
|
|
 |
dargah

|
Posted:
Mon Mar 06, 2006 9:53 pm |
|
guys can i have some help please  |
|
|
|
 |
Raven

|
Posted:
Fri Mar 10, 2006 3:16 pm |
|
<bump> Can anyone who uses CNBYA Help this user? |
|
|
|
 |
Nomad
Client

Joined: Jan 21, 2006
Posts: 87
Location: Arizona
|
Posted:
Fri Mar 10, 2006 11:40 pm |
|
Please add me to the list.....I would also like to add this feature, but dont know how to code it for the cnbya mod.
thanks in advance |
_________________ Nomad!~! |
|
|
 |
srhh
Involved


Joined: Dec 27, 2005
Posts: 296
|
Posted:
Thu Apr 13, 2006 11:56 pm |
|
I read here that the new release of CNBYA will have this option available within the module itself. YAY! There is a thread at the very top of this subforum that describes all the new features the new version will have and the integrated user registration PM function was one of them. |
|
|
|
 |
craigmack
Hangin' Around

Joined: Jan 07, 2006
Posts: 35
|
Posted:
Thu Apr 20, 2006 2:58 pm |
|
|
|
 |
|