Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
Email Templates Details »»
Email Templates
Version: 1.00, by pimpery pimpery is offline
Developer Last Online: Aug 2006 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 03-13-2005 Last Update: 03-13-2005 Installs: 9
DB Changes
 
No support by the author.

This hack allows you to create and edit templates that can be used to send emails to users.

Basically, you can create as many templates as you want, then use them later on to send an email to a user.

Currently there's one variable you can use in your templates:
$username

The $username variable will be replaced with the user you are sending the email to.

This hack can be used to make a set of templates for different things:
for example:
youve been doing some bad stuff...
you won a contest...
you have been promoted..
etc..

Screenies will be posted soon. Zip file with install script and readme attached.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-13-2005, 11:40 PM
sirbutts sirbutts is offline
 
Join Date: Sep 2004
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

another great hack! thanks pimpery, i just installed it, quick install too, only 1 min

question: are you going to add other replacement variables?
i have some ideas for replacement vars:
time when the email iss sent
admins name, who is sending the email
bulletin board title

also have an idea!:
make a way so u can save all your templates to a specially formatted txt file.
also make a way, so you can restore them
this way, people can exchange templates (they can use the $bbtitle replacement var too, if you add it in)

great job man, and please do my ideas !!
Reply With Quote
  #3  
Old 03-13-2005, 11:42 PM
babolo babolo is offline
 
Join Date: May 2004
Location: California
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmmm... interesting
Reply With Quote
  #4  
Old 03-13-2005, 11:42 PM
sirbutts sirbutts is offline
 
Join Date: Sep 2004
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sirbutts
another great hack! thanks pimpery, i just installed it, quick install too, only 1 min

question: are you going to add other replacement variables?
i have some ideas for replacement vars:
time when the email iss sent
admins name, who is sending the email
bulletin board title

also have an idea!:
make a way so u can save all your templates to a specially formatted txt file.
also make a way, so you can restore them
this way, people can exchange templates (they can use the $bbtitle replacement var too, if you add it in)

great job man, and please do my ideas !!
and smack me for double posting, but itd be nice if you could also make it so you can use commas to seperate userids/usernames, to send multiple emails at the same time!
or maybe, u press a button and it adds that username/id to the list, kinda like the vbulletin attachment type thing?
Reply With Quote
  #5  
Old 03-14-2005, 12:08 AM
pimpery pimpery is offline
 
Join Date: Nov 2004
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sirbutts
and smack me for double posting, but itd be nice if you could also make it so you can use commas to seperate userids/usernames, to send multiple emails at the same time!
or maybe, u press a button and it adds that username/id to the list, kinda like the vbulletin attachment type thing?
sirbutts, all the things you said sound good. ill try to add them as soon as possible.
Reply With Quote
  #6  
Old 03-14-2005, 12:34 AM
Jolten Jolten is offline
 
Join Date: Mar 2004
Posts: 749
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this pimpery... guess I'll release my style at vbtemplates now.

If these are the same files, there's a little typo in the installer script. It refers to the Accordian BB code manager.

Also the text area width at 120 columns are far too large. I ended up reducing them to 80 columns instead.

Also for anyone that's interested..

It by default sets the "from" and "Reply to" to your email address as given in your profile. If you'd rather send from a general account such as admin or webmaster

find (around line 136):
PHP Code:
$headers .= "From: ".$bbuserinfo['email']."\r\nReply-To: ".$bbuserinfo['email']."\r\n"
And replace
PHP Code:
".$bbuserinfo['email']." 
with the email address you'd like things to be send from.

also the html option doesn't work.
Reply With Quote
  #7  
Old 03-14-2005, 01:36 AM
pimpery pimpery is offline
 
Join Date: Nov 2004
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jolten
Thanks for this pimpery... guess I'll release my style at vbtemplates now.

If these are the same files, there's a little typo in the installer script. It refers to the Accordian BB code manager.

Also the text area width at 120 columns are far too large. I ended up reducing them to 80 columns instead.

Also for anyone that's interested..

It by default sets the "from" and "Reply to" to your email address as given in your profile. If you'd rather send from a general account such as admin or webmaster

find (around line 136):
PHP Code:
$headers .= "From: ".$bbuserinfo['email']."\r\nReply-To: ".$bbuserinfo['email']."\r\n"
And replace
PHP Code:
".$bbuserinfo['email']." 
with the email address you'd like things to be send from.

also the html option doesn't work.
jolten, the html option does work
Reply With Quote
  #8  
Old 03-14-2005, 03:14 AM
pimpery pimpery is offline
 
Join Date: Nov 2004
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by pimpery
jolten, the html option does work
ok list of options to come:
an array you can place your replacement vars in. you can have as many as you want
for the send email page: a dropdown of all users, and usergroups
if you let go while on an option, it will add that user, or all the users from the usergroup, to the list of users the email will be sent to
the html box, will also be bound to the templates, as if its the msg or subject.
when a template is selected, the html box will become checked, or not checked, depending on which way the box was, when the template was saved.

everything will be turned into functions so you can call these functions in other scripts to send mass mails, and do other cool things!
Reply With Quote
  #9  
Old 03-14-2005, 03:21 AM
Jolten Jolten is offline
 
Join Date: Mar 2004
Posts: 749
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well.. html option doesn't do squat here. No biggie. I just removed it from the code since it didn't do anything. Just letting you know.
Reply With Quote
  #10  
Old 02-16-2006, 01:10 AM
d4v3r5 d4v3r5 is offline
 
Join Date: Dec 2002
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this worked great for vb3.0 any chance of this getting updated for 3.5?
Reply With Quote
Reply

Thread Tools

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 01:39 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.04861 seconds
  • Memory Usage 2,295KB
  • Queries Executed 24 (?)
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
  • (4)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete