Hello i recently attempted to install the WelcomePM capability into my phpnuke site. After i did a temp sign up and loged in as a user the "Your_account" main page says i have a new message. But when i go check my inbox their is nothing their. Any idea where i might have made a flaw in the installing of this very usefull and nice script? I run phpnuke 7.7 as well as autotheme lite .8 and nukeSentinel.
ya their is nothing saying anything about error. If you want i can send you the code i changed and see if i did something wrong or paste the code here or you can sign up on site and see for yourself.
[b]This is the code that i added to the the bottom of the lang-english.php but right before the ?>:[/b]
// START - Send PM On User Register
/* Change the text 'Raven' in define("_PRIVMSGS_FROM_USERNAME","Raven"); to the name of the user that you want the Welcome message PM to be FROM
*/
global $sitename, $adminmail;
define("_MYSQL_ERROR","Unable to update %s table - MySQL said: ");
define("_PRIVMSGS_FROM_USERNAME","IGL Administration");
define("_REGISTER_PM_SUBJECT","Welcome to $sitename");
define("_REGISTER_PM","Hello!<br /><br />Welcome to $sitename. <br /><br />We hope you enjoy your time at this site! <br /><br />Feel free to join in and share with others or start your own discussion! <br /><br />Before posting please take time to read <a href=\"http://ravenphpscripts.com/postp41533.html\" title=\"Welcome to $sitename - Read Me First\">[b]this welcome message[/b]</a><br /><br />~Enjoy!<br />$sitename Staff");
// END - Send PM On User Register
far as i can see thats exactly how its suppose to be, i do not know why its not working because the PM utility does function i have successfully cent pm's already.
Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
Posted:
Sun Jul 10, 2005 11:17 am
Please restore the header/comment block to this code. By stripping it out you have removed the credits . That is specifically stated in the header
License : GNU/GPL - Use it, modify it, but please respect the Credits
This is the code that i added to the the bottom of the lang-english.php but right before the ?>:
Code:
// START - Send PM On User Register
/* Change the text 'Raven' in define("_PRIVMSGS_FROM_USERNAME","Raven"); to the name of the user that you want the Welcome message PM to be FROM
*/
global $sitename, $adminmail;
define("_MYSQL_ERROR","Unable to update %s table - MySQL said: ");
define("_PRIVMSGS_FROM_USERNAME","IGL Administration");
define("_REGISTER_PM_SUBJECT","Welcome to $sitename");
define("_REGISTER_PM","Hello!<br /><br />Welcome to $sitename. <br /><br />We hope you enjoy your time at this site! <br /><br />Feel free to join in and share with others or start your own discussion! <br /><br />Before posting please take time to read <a href=\"http://ravenphpscripts.com/postp41533.html\" title=\"Welcome to $sitename - Read Me First\">[b]this welcome message[/b]</a><br /><br />~Enjoy!<br />$sitename Staff");
// END - Send PM On User Register
Far as i can see thats exactly how its suppose to be, i do not know why its not working because the PM utility does function i have successfully sent pm's already.
Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
Posted:
Sun Jul 10, 2005 1:39 pm
Please post your _bbprivmsgs and _bbprivmsgs_text schema. Also, you say there are no errors in your error log. Make sure that in .htaccess you have the following line
Field Type Attributes Null Default Extra Action
privmsgs_id mediumint(8) UNSIGNED No auto_increment
privmsgs_type tinyint(4) No 0
privmsgs_subject varchar(255) No 0
privmsgs_from_userid mediumint(8) No 0
privmsgs_to_userid mediumint(8) No 0
privmsgs_date int(11) No 0
privmsgs_ip varchar(8) No
privmsgs_enable_bbcode tinyint(1) No 1
privmsgs_enable_html tinyint(1) No 0
privmsgs_enable_smilies tinyint(1) No 1
privmsgs_attach_sig tinyint(1) No 1
When i went to go and browse this it did show the welcome messages and the test pm i tried
Here is the _bbprivmsgs_text structure:
Code:
Field Type Attributes Null Default Extra Action
privmsgs_text_id mediumint(8) UNSIGNED No 0
privmsgs_bbcode_uid varchar(10) No 0
privmsgs_text text Yes NULL
This too showed the message the actual text of the pm
This is all i have in my .htaccess file:
Code:
Options All -Indexes
DirectoryIndex index.php index.htm index.html
# -------------------------------------------
# Start of NukeSentinel(tm) admin.php Auth
# -------------------------------------------
<Files .ftaccess>
deny from all
</Files>
<Files .staccess>
deny from all
</Files>
<Files admin.php>
<Limit GET POST PUT>
require valid-user
</Limit>
AuthName "Restricted"
AuthType Basic
AuthUserFile /path/to/your/.staccess
</Files>
# -------------------------------------------
# Start of NukeSentinel(tm) DENY FROM area
# -------------------------------------------
Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
Posted:
Sun Jul 10, 2005 1:59 pm
Well, add that line to .htaccess. So now I'm confused. If the 2 tables are showing the additions, why do you say it isn't there? Check the value of privmsgs_to_userid and verify that it is the user_id of the person you are logged in as.
It looks to me like somehow the db isn't getting the new user id when an account is activated and is just using 0 by default when it sends the WelcomePM, so user doesnt ever actually recieve the actually PM.
Tried it their is no change if anything it messes up a little when users clicks on the confirmation e-mail. it works like orginal way. which is still not working hehe.
Yeah still no change. Do you or can u recommend another program maybe even a module that does the same type or sort of thing, either within pm or here. Either way thanks for your support and assistance.
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