![]() |
Very nice, thanks for this mod.
|
This modification has a major Bug:
PHP Code:
Also, why don't you just use phrases for the subject and body text? Would make it a lot easier and language independant :) |
Update and Security fix:
v1.2:
|
Awesome! Great work!! Thanks for the fix.
|
New Bug: Version 1.2 will cause a fatal PHP error if build_user_subscription() is called more then due to redefined functions.
A few suggestions PHP Code:
PHP Code:
PHP Code:
Use build_datastore() instead. PHP Code:
|
Quote:
Can you please elaborate on the v1.2 bug, I don't quite understand how to prevent what you're saying. Any help here would be appreciated. Will be remembering this and implementing it in the next update. Once again, tons of thanks =] |
Update is coming, so hang loose! :)
|
v1.5:
|
Quote:
On hook paidsub_build you are defininig two functions - slw_serial() and slw_unserial(). Now, if method build_user_subscription() is being called several times within one script run, this will cause a fatal error as you the functions are already defined when the plugin is called the second time - which will halt script execution. Also, I don't understand why you are using custom serialize functions anyway :) Instead of $db->fetch_array($db->query_read()), $db->query_first is easier. I also suggest to use phrases instead of the datastore item - this is the standard way to do such things (PM;/E-Mail Notifications). Finally, having hardcoded text in PHP scripts is deprecated. |
Quote:
About $db->query_first(), never knew what it did but now I do, so thanks =] As for phrases, we wanted to offer the user a more personal and seamless experience, where they only have to use our control panel to change their settings. I understand that this isn't the standard way of doing things, but it seems to offer a better experience, which is what we're all about. Maybe I could code it to use phrases, create my own phrase group, and have a link pointed to that phrase group. I'll look into this, unless you have some suggestions. Thanks again for the help, I'm still getting the hang of vB's system, and you've helped a lot! EDIT The reason I'm using these functions, is because a serialize() or unserialize() fails if there is an apostrophe in the data. I don't know why, it's weird, because in our vbMailer mod, this doesn't occur. I don't have any idea why. |
All times are GMT. The time now is 04:53 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|