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)

Admin 04-20-2002 06:11 AM

That post was baseless. ;) You can see in this thread I "caught" alexp merely 2 hours after he posted the thread.

KarateKid 04-20-2002 11:01 AM

Quiet a nice hack :)

Lars 04-20-2002 11:44 AM

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.

Chris M 04-20-2002 12:11 PM

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

alexp 04-21-2002 06:02 PM

@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: '

legd723 04-29-2002 03:24 PM

Anyone had any luck with this and version 2.25 of vbulletin?

alexp 04-30-2002 10:40 AM

for some reason, $HTTP_POST_VARS['action'] doesn't seem always to work (a colleague and I both had this problem this morning whilst it worked fine yesterday :cross-eyed: )

To solve this:

in email.php, change line 15 from "if ($HTTP_POST_VARS['action']=="dosendmail") {"

to simply "if ($action=="dosendmail") {"

Now the question is, why doesn't $HTTP_POST_VARS work today when it worked yesterday and the day before that???? Very odd!

Also enclosed is a new manage.php file which allows those with newsletter admin priveleges to subscribe all users to a newsletter. Whilst this feature could be useful in some situations, remember SPAM IS BAD! You should also tell users how to unsubscribe from the list again if you choose to use this feature.


All times are GMT. The time now is 09:52 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
  • Page Generation 0.01061 seconds
  • Memory Usage 1,722KB
  • 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
  • (7)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