Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
HTML Email Feature Details »»
HTML Email Feature
Version: 1.00, by Logician Logician is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 05-02-2002 Last Update: Never Installs: 44
 
No support by the author.

Hiyas,

What does it do?
With this hack, your board will have "HTML email" feature.

How does it work?
After applying the hack, your users will be able to choose whether they want PLAIN TEXT emails or HTML messages and mails originated from your site will be sent accordingly. (At the moment works for PM and email notification mails). Your existing users who didnt change their mail settings will recieve the original plain texts mails, while users who asked for HTML mails will get mails in HTML format. All users can anytime change their mail settings inside User CP or by calling the new 2 links with one click that comes with the hack and update member's mail type.

What versions of vbulletin does it work with?
Hack tested with version 2.2.2, 2.2.6, 2.2.8 and 2.2.9 but I believe it will work with any versions > 2.0.3.

Any Screenshots?
See the message below

Planned Future Features:
* Hack will apply to ALL mails originated from your board (At the moment it is for PM and email notification mails)
* Your HTML mails may include compiled data from your board such as "Last X message titles", "Recent Titles from the forum you subscribed", "Last X answered/unanswered messages", "user's incoming personal events", "Incoming general events from your calender" and etc.

I plan to work on this hack only if it's considered useful and used by people. After spending a long time to code/debug/test/publish a hack, it's quite disappointing to see that 2 months later only 3-5 people used (installed) a hack. So if you use the hack, please dont forget to click INSTALL for this hack or for any hack you use!

Thank you and Enjoy..\\=^))
Logician

Show Your Support

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

Comments
  #22  
Old 10-01-2002, 08:15 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Dan Flynn
alter command denied to user: 'powerwas@localhost' for table 'user' Any idea why?
Dan as your error states, the problem you are having is related to your MYSQL user rights. You are trying to run a SQL query with a user account that does not hold "changing(alter) database" privileges.. You have to contact your host and ask "with which username and MYSQL password you should run ALTER commands", then use these info to run the SQL command..
Reply With Quote
  #23  
Old 10-01-2002, 11:32 AM
Dan Flynn's Avatar
Dan Flynn Dan Flynn is offline
 
Join Date: Nov 2001
Location: Crown Point, IN
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks I'll check into that. I'm pretty sure I have ran them before under that name!!!!
Reply With Quote
  #24  
Old 02-03-2003, 08:24 AM
ChurchMedia's Avatar
ChurchMedia ChurchMedia is offline
 
Join Date: Dec 2002
Location: Las Cruces, NM
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Another great hack!

I have the "threadstarter" hack installed, which emails forum subscribers when new threads are started. I'm trying to implement your hack into that one. It goes into the newthread.php.

Here is what I added, along with a new template, but it doesn't seem to work. It just sends out plain text. See anything wrong?

PHP Code:
// Hack: Send email notification on subscribed forums
      
if ($enableemail and $visible) {
        
$tousers=$DB_site->query("SELECT user.username,user.email
                                     FROM subscribeforum,user
                                     WHERE subscribeforum.forumid='
$forumid'
                                       AND subscribeforum.userid=user.userid
                                       AND user.userid<>'
$bbuserinfo[userid]'");
        
$forumtitle=unhtmlspecialchars($foruminfo['title']);
    
$author=unhtmlspecialchars($bbuserinfo['username']);
    
$postsubject=unhtmlspecialchars($subject);
    
$postcontents=unhtmlspecialchars($message);
        while (
$touser=$DB_site->fetch_array($tousers)) {
          
$touser['username']=unhtmlspecialchars($touser['username']);
// Logician HTML mail hack
if ($touserinfo['htmltext']==0){
// user wants plain text messages
          
eval("\$emailmsg = \"".gettemplate("email_threadstarter",1,0)."\";");
          eval(
"\$emailsubject = \"".gettemplate("emailsubject_threadstarter",1,0)."\";");

          
mail($touser['email'],$emailsubject,$emailmsg,"From: \"$bbtitle Mailer\" <$webmasteremail>");
        }
      else
//user wants HTML messages
{
eval(
"\$emailmsg = \"".gettemplate("email_threadstarter_html",1,0)."\";");
eval(
"\$emailsubject = \"".gettemplate("emailsubject_threadstarter",1,0)."\";");
mail($touser['email'],$emailsubject,$emailmsg,"From: \"$bbtitle \" <$webmasteremail>\nMIME-VERSION: 1.0\nCONTENT-TYPE: TEXT/HTML; CHARSET=iso-8859-9\nCONTENT-DISPOSITION: INLINE\n");
}
// Logician HTML mail hack
      
        
}
      }
      
// End hack 
I think I may have a } out of place...
Reply With Quote
  #25  
Old 02-03-2003, 10:00 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I didn't understand why you are editing newthread.php while installing my hack? My hack does not modify newthread.php in anyway. Please check hack installations carefully, I believe you installed it incorrectly and this is why it does not work.. :knockedout:
Reply With Quote
  #26  
Old 02-03-2003, 01:10 PM
ChurchMedia's Avatar
ChurchMedia ChurchMedia is offline
 
Join Date: Dec 2002
Location: Las Cruces, NM
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Logician
I didn't understand why you are editing newthread.php while installing my hack? My hack does not modify newthread.php in anyway. Please check hack installations carefully, I believe you installed it incorrectly and this is why it does not work.. :knockedout:
This is a "hack of your hack of a hack". I'm trying to make the threadstarter hack, FOUND HERE, work the same way and send out html emails for thread starts. I also want to do it for moderators....

Your hack as described in the instructions is working perfectly. I was just wondering if you could help me with some additional modifications....
Reply With Quote
  #27  
Old 02-03-2003, 02:08 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by ChurchMedia

Your hack as described in the instructions is working perfectly. I was just wondering if you could help me with some additional modifications....
ok I see..

Give this a shot:
PHP Code:
=================================================================
      
// Hack: Send email notification on subscribed forums
      
if ($enableemail and $visible) {
        
$tousers=$DB_site->query("SELECT user.username,user.email,user.htmltext
                                     FROM subscribeforum,user
                                     WHERE subscribeforum.forumid='
$forumid'
                                       AND subscribeforum.userid=user.userid
                                       AND user.userid<>'
$bbuserinfo[userid]'");
        
$forumtitle=unhtmlspecialchars($foruminfo['title']);
    
$author=unhtmlspecialchars($bbuserinfo['username']);
    
$postsubject=unhtmlspecialchars($subject);
    
$postcontents=unhtmlspecialchars($message);
        while (
$touser=$DB_site->fetch_array($tousers)) {
          
$touser['username']=unhtmlspecialchars($touser['username']);
    
// Logician HTML mail hack
        
if ($touser['htmltext']==0){
        
// user wants plain text messages

                  
eval("\$emailmsg = \"".gettemplate("email_threadstarter",1,0)."\";");
              eval(
"\$emailsubject = \"".gettemplate("emailsubject_threadstarter",1,0)."\";");

              
mail($touser['email'],$emailsubject,$emailmsg,"From: \"$bbtitle Mailer\" <$webmasteremail>");
        }
         else
        
//user wants HTML messages
        
{
        eval(
"\$emailmsg = \"".gettemplate("email_threadstarter_html",1,0)."\";");
        eval(
"\$emailsubject = \"".gettemplate("emailsubject_threadstarter",1,0)."\";");
        
mail($touser['email'],$emailsubject,$emailmsg,"From: \"$bbtitle \" <$webmasteremail>\nMIME-VERSION: 1.0\nCONTENT-TYPE: TEXT/HTML; CHARSET=iso-8859-9\nCONTENT-DISPOSITION: INLINE\n");
        }
// Logician HTML mail hack

        
}
      }
      
// End hack
================================================================= 
Enjoy..
Reply With Quote
  #28  
Old 02-03-2003, 02:52 PM
ChurchMedia's Avatar
ChurchMedia ChurchMedia is offline
 
Join Date: Dec 2002
Location: Las Cruces, NM
Posts: 473
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Worked perfectly! I see where I messed up -- Thanks a ton!

Reply With Quote
  #29  
Old 02-20-2003, 03:00 AM
SpankMe's Avatar
SpankMe SpankMe is offline
 
Join Date: Nov 2001
Location: New Zealand
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there going to be an update for this hack for vBulletin 2.3.0 which has changed its mail code.
Reply With Quote
  #30  
Old 02-20-2003, 08:51 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Is there going to be an update for this hack for vBulletin 2.3.0 which has changed its mail code.
Nope sorry.. My access to vb.com member area has expired and I don't plan to renew it until a stable vb3 release which I'll upgrade comes up..
Reply With Quote
  #31  
Old 04-08-2003, 05:40 PM
ryancooper ryancooper is offline
 
Join Date: Jul 2002
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

will this work wit hteh email all users option in hte Admin CP. If so it is exactly what i am looking for.
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 03:17 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.04835 seconds
  • Memory Usage 2,347KB
  • Queries Executed 25 (?)
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
  • (2)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
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete