vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   newsletter / mailing list system (https://vborg.vbsupport.ru/showthread.php?t=37586)

alexp 04-17-2002 10:00 PM

newsletter / mailing list system
 
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]

alexp 04-18-2002 11:05 AM

some piccies to prove it works :bunny:

alexp 04-18-2002 11:06 AM

.

Admin 04-18-2002 11:13 AM

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)

jly2klee 04-18-2002 01:16 PM

Nice Hack Man! Nice idea! Will install right now!

Admin 04-18-2002 01:19 PM

You will also need to remove adminfunctions.php, functions.php and global.php from the sub-zip file. Sorry.

alexp 04-18-2002 01:30 PM

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?

Floris 04-18-2002 08:26 PM

Not a vB bug, you have to a) select 'use new attachment' and/or b) refresh your cache (with .jpg sometimes)

alexp 04-19-2002 07:53 AM

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.

Velocd 04-20-2002 12:33 AM

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....^_^'


All times are GMT. The time now is 03:06 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01727 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete