![]() |
newsletter (ezmlm) integration
Hello,
this is a really small hack, very basic. It's the first I released too, certainly not the first I have done. ;) It's so not rocket science or advanced l33t PHP code hacking. But since I didn't really find the same hack on the site, I guess it qualifies. Preface: We have Qmail running, and since we (ab)use Qmail a lot, we run ezmlm with it. Very nice combo, if I may add. ;) Anyways, ezmlm handles the subscription via email. You send an email to listname-subscribe@whatever.domain.tld and the user recieves an email asking to confirm it (double opt-in style). So I guess it really works with any listmanager that does the subscription via email request and confirm. So, I had to write this in order to enable users to sign up for our newsletter on registration. Here we go: Create a file called "register_subscribe.php" in your forum's home directory. Put the following PHP code in it: PHP Code:
You can remove the comments for the other mail() function and adjust it with your email address, if you feel like it. Starting it off, it can be pretty useful to track who makes use of it, and who doesn't. Next step is to go into your control panel, then "Templates", "Modify" and "Expand..." the list. Find "Registration Templates" and edit "registeradult". I added the following lines: Code:
<tr> Code:
<tr> Now, let's go into register.php. Assuming that you didn't edit the file before (and that you run vBulletin 2.3.2), you should find the following piece of code on line 476: PHP Code:
PHP Code:
Not being able to register for the board for whatever reason, but still getting the message to confirm list subscription might confuse users. If you know what I mean. :D So yay! That should be it. :banana: You may change all variables used, you can even put the file into another directory or whatever. Please do not complain that it doesn't work after you changed everything. The hack *should* work with any version of vBulletin. The line number may be different though, but I guess you can figure it out. I won't have any screenshots right now, maybe later. If you guys need anything, let me know, I'll try to respond to each post in time - if possible. Have fun, Till |
plz put your hack as txt or php file so that un-licensed users cant use it...
or so one of the mods will tell you ;) |
Quote:
I'll do so if one of the moderators will require me to do so. |
Here it is.
I'll disclose a link and more info when the project is online (and we launched it). :) |
The reason is not so that non-licensed users cannot get it, although you should never put the instructions into the hack database for that purpose. The purpose is so that people can download it and have a copy on their machine so they can re-install it when they upgrade:
Quote:
|
Quote:
Cheers, Till |
Quote:
Also you should add some screen shots. |
Quote:
|
Quote:
Though its nice to put it in a txt file to make it more organized.:) |
All times are GMT. The time now is 11:17 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:
|