Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
newsletter / mailing list system Details »
newsletter / mailing list system
Mod Version: 1.00, by alexp (Member) alexp is offline
Developer Last Online: Mar 2003 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.2.x Rating: (0 vote - 0 average) Installs: 9
Released: 18 Apr 2002 Last Update: Never Downloads: 0
Not Supported  

This hack allows user to opt-in to mailing lists which you, or a marketing colleague (with appropiate permissions) can create and send mail to. It uses code from the email.php script in the admin section but adds the flexibility of multiple mailing lists which users can opt-in and opt-out of.

Changes made:

1) New directory (called newsletter which can be accessed by poduct managers etc so non-admins can use the functionality

2) Changes to usergroup.php in the admin section allow you to assign newsletter priveleges to a user group from the admin CP

3) Changes to user options allow members to subscribe or unsubscribe to various mailing lists.

All necessary code and a fairly involved readme are included as attachments. You'll need direct access to your DB for this one, as you'll be setting up a couple of new tables.

I hope you find this helpful, and please don't hesitate to contact me via email (PM may take a while as I'm not here that regularly) if I can help at all. I'll do my best to offer support for the hack as quickly as possible.

Cheers,

Alex

PS .zip file is posted further down in the thread

[EDIT] If a user has permission to "cansendALLnewsletters" they will also need the lower permission of "cansendnewsletter". This is not given automatically. I suppose its a bug, but its no big deal..
[/EDIT]

[EDIT]

Instead of uploading the new full version of usergroup.php as instructed in the readme, follow the instructions in the usergroup_changes.txt file to alter this file.

With the long SQL queries, make sure that no variable names span a line break - this will cause a DB error.

[/edit]

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 18 Apr 2002, 12:05
alexp alexp is offline
 
Join Date: Jan 2002
some piccies to prove it works :bunny:
Attached Images
File Type: jpg newsletter_admin_cp.jpg (18.0 KB, 323 views)
Reply With Quote
  #3  
Old 18 Apr 2002, 12:06
alexp alexp is offline
 
Join Date: Jan 2002
.

.
Attached Images
File Type: jpg newsletter_send.jpg (32.7 KB, 263 views)
Reply With Quote
  #4  
Old 18 Apr 2002, 12:13
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
Please remove usergroup.php from the zip file and instead provide instructions to hack it. (it's against the rules to post full files of vB)
__________________
Chen Avinadav
Formerly vBulletin.org Owner and Founder

[email protected]
Reply With Quote
  #5  
Old 18 Apr 2002, 14:16
jly2klee's Avatar
jly2klee jly2klee is offline
 
Join Date: Dec 2001
Nice Hack Man! Nice idea! Will install right now!
Reply With Quote
  #6  
Old 18 Apr 2002, 14:19
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
You will also need to remove adminfunctions.php, functions.php and global.php from the sub-zip file. Sorry.
__________________
Chen Avinadav
Formerly vBulletin.org Owner and Founder

[email protected]
Reply With Quote
  #7  
Old 18 Apr 2002, 14:30
alexp alexp is offline
 
Join Date: Jan 2002
sorted. That readme's getting a bit lardy though (:




PS Chen - interesting one here - I had to repost the attachment in a different post, because when I re-posted it on the top post, it reverted to the older version.

Try it - doesn't matter if you rename, it still gives the older version (even if you delete the file first then re-edit & re-attach)

vB bug?
Attached Files
File Type: zip code.zip (12.0 KB, 90 views)

Last edited by alexp; 18 Apr 2002 at 15:16.
Reply With Quote
  #8  
Old 18 Apr 2002, 21:26
Floris's Avatar
Floris Floris is offline
 
Join Date: Jan 2002
Not a vB bug, you have to a) select 'use new attachment' and/or b) refresh your cache (with .jpg sometimes)
__________________
My community; https://omgboards.com
Reply With Quote
  #9  
Old 19 Apr 2002, 08:53
alexp alexp is offline
 
Join Date: Jan 2002
I selected "use new attachment" but the old one still appeared..

it could be our proxy cache at work though - I'll run some tests at home on localhost next week to see if I can recreate it.
Reply With Quote
  #10  
Old 20 Apr 2002, 01:33
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Real name: Mike
I have seen many threads where people ignore this rule and still posts PHP files from Vbulletin. Maybe you guys need another mod, like *cough* me *cough*

j/k, hahahahhahaha.....hah....^_^'
Reply With Quote
  #11  
Old 20 Apr 2002, 07:11
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
That post was baseless. You can see in this thread I "caught" alexp merely 2 hours after he posted the thread.
__________________
Chen Avinadav
Formerly vBulletin.org Owner and Founder

[email protected]
Reply With Quote
  #12  
Old 20 Apr 2002, 12:01
KarateKid's Avatar
KarateKid KarateKid is offline
 
Join Date: Oct 2001
Quiet a nice hack
Reply With Quote
  #13  
Old 20 Apr 2002, 12:44
Lars's Avatar
Lars Lars is offline
 
Join Date: Feb 2002
Which code in Global.php (in forum/admin or /forum?) should I change.. You can't just write lines 130-143.. Maybe I write something over that is not like your global.php.
Reply With Quote
  #14  
Old 20 Apr 2002, 13:11
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Real name: Chris Murphy, BSc
Just a Q here...

I dont want to have to go give usergroup permissions out...

Is there any way to give Specific Users access?

i.e. userid=32

Satan
Reply With Quote
  #15  
Old 21 Apr 2002, 19:02
alexp alexp is offline
 
Join Date: Jan 2002
@lars - I will go through the code at work tomorrow and replace the line numbers with "between this code and that code" - Basically the changes to Global just set a different cookie (newsletter OK instead of admin OK.)

[edit]
PS as you are copying the file into a new directory and not editing the existing file in your admin directory, why not take a clean copy from your install .zip and follow the line numbers then?
[/edit]

@hellsatan - yes that is possible, I just thought using the usegroup was a more flexible method. Hack the "get perms" section to set $getperms[cansendnewsletter] =1 if your user has an acceptable userID. You could store an array of acceptable userIDs at the top of the script. - I'll post code tomorrow if I get a chance.

@firefly - ' fair cop guv :cheeky: '

Last edited by alexp; 21 Apr 2002 at 19:15.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 04:43.

Layout Options | Width: Wide Color: