Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-16-2002, 08:52 AM
Massiel Massiel is offline
 
Join Date: Feb 2002
Location: Australia
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

a php script for a newsletter? I want to add the newsletter feature to my site, but I don't know how to do it or where to find a good script, does anyone have any suggestions?
Reply With Quote
  #2  
Old 02-16-2002, 09:06 AM
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Location: The Netherlands
Posts: 1,149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm using this simple newsletter on my site @ lesane-crooks.com.

To install:

Edit letter.php and letter.html and then upload all the 3 files and point the users to the letter.html and voila.

If you are searching more advanched newsletters then you should check here.
Attached Files
File Type: zip newsletter.zip (3.2 KB, 17 views)
Reply With Quote
  #3  
Old 02-16-2002, 09:29 AM
Massiel Massiel is offline
 
Join Date: Feb 2002
Location: Australia
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you so much Lesane, that was great info! I am going to look into it and see how I go...
Reply With Quote
  #4  
Old 02-16-2002, 02:01 PM
Massiel Massiel is offline
 
Join Date: Feb 2002
Location: Australia
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I took a look at the newsletter you are using Lesane, what is the subscribers.txt for? Where do you get to type the actual newsletter? I am not familiar with how newsletters works at all... thanks in advance
Reply With Quote
  #5  
Old 02-17-2002, 10:34 AM
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Location: The Netherlands
Posts: 1,149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

subscribers.txt is the file that holds all the subscribers, all the emails.

When you opened letter.php then by the config you had the option to enter your own password. If you filled there for example vbulletin then you can reach the field where you have 2 type the newsletter like this:

letter.php?pw=vbulletin

After that you come to a page where you can type the subject and the body of the newsletter.

Good luck
Reply With Quote
  #6  
Old 02-17-2002, 01:29 PM
Massiel Massiel is offline
 
Join Date: Feb 2002
Location: Australia
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lesane I was just trying it.... It is really cool, however I get the following messages after subscribing

Warning: fopen("subscribers.txt","a+") - Permission denied in /home/bigjozzy/public_html/newsletter/letter.php on line 82

Warning: Supplied argument is not a valid File-Handle resource in /home/bigjozzy/public_html/newsletter/letter.php on line 84

Warning: Supplied argument is not a valid File-Handle resource in /home/bigjozzy/public_html/newsletter/letter.php on line 85

Thank you for subscribing to the mailing list, a confirmation email is on his way! administrator@dietsupporters.com

I checked the subscribers.txt after subscribing 2 email addresses and nothing was there.... I also tried sending a newsletter and it said it sent it but I did not get anything hehe

Any ideas of what is wrong?
Reply With Quote
  #7  
Old 02-17-2002, 01:37 PM
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Location: The Netherlands
Posts: 1,149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i forgot to say that you have to chmod the file subscribers.txt to 777.

If you are using wsftp then you can chmod subscribers.txt by right click on the file and choose for "chmod(UNIX)" and there you select everything and click on ok.

Chmod to 777 means that you give permissions to write to the file, if u didnt do that u receive errors like u had below.
Reply With Quote
  #8  
Old 02-17-2002, 01:42 PM
Massiel Massiel is offline
 
Join Date: Feb 2002
Location: Australia
Posts: 166
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you Lesane!! works like a charm, thanks for your patience and kindness!
Reply With Quote
  #9  
Old 02-17-2002, 02:03 PM
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Location: The Netherlands
Posts: 1,149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your welcome
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 04:59 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04005 seconds
  • Memory Usage 2,253KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete