PDA

View Full Version : Automatic "Send Email" Redirect


Revan
06-03-2006, 10:00 PM
Automatic "Send Email" Redirect v1.0


This seems strangely familiar, have I seen it before?
If you were around back in the 3.0 days, you might have. It's a port of my old Automatic "Send Email" Redirect hack, located here (https://vborg.vbsupport.ru/showthread.php?t=78550).

I wasn't, so what's this hack about?
What this hack does, is cache the email you are trying to send in a temporary SQL table, then instead of having a form with hidden fields and forcing you to hit submit, it reads this table at reload.

Uh yeah, that's all well and good... but why should I use it?
Do you run a large forum, and need to send emails to all your users? Do you have to set the email per batch to a low number because of PHP limitations? And most importantly; would you have liked to see the emails work their magic while you go attend other duties?
If your answer to the above questions is yes, then this hack is for you!

Uh-oh! File edits! What will it be doing to my poor poor files?
File Changes: 3 (Spread across 1 file)
Template Changes: 0
Tables Added: 1
Tables Altered: 0
SQL Queries Added: 2 (Only when it needs to read and insert the new cache)Fair enough it has file changes, but even with hooks in all the right places you would need to alter the file at least once.

So how do I get this up and running?
Simple :)
Extract the zip, import the product through the AdminCP, edit and upload the file as per the readme.
You are done :)

Will you add feature x?
What are you smoking, this hack does all it's supposed to do. If I wanted it to make coffee, I wouldn't have called it Automatic "Send Email" Redirect now would I.

Whoops, I need some help! Can you help? I noticed the "Supported" was unchecked...
I don't really have the time to support this hack extensively. I might answer the thread, I might not.
This is an as-is hack, it worked fine on my localhost and therefore it should work on your board too. Unless you try to install it on a previous version that has file differences, I won't backport it to previous 3.5 versions.

Such small a hack, such great a value! Here Revan, have some money.
I don't require donations, but they are most appreciated :)
https://vborg.vbsupport.ru/ (https://www.paypal.com/xclick/business=newrevan%40start.no&item_name=Online+ETA+Hack+Donation&no_shipping=1&return=/)
Please note that my Paypal account is Unverified, so I will not be able to accept Credit Card direct charges. Please "upload" some money to your Paypal account and send it to me from there if you wish to donate.
Thanks in advance :)

I don't have PayPal but I would like to show my support, what can I do?
Leave a nice message saying thanks and a click of the install button. Yep, that should do the trick :)

Kihon Kata
06-04-2006, 02:20 PM
Installed! Sent you a PM

tpearl5
06-04-2006, 03:08 PM
sweet, I'll def be putting this in later. I think I already have the table from the last version.

Revan
06-04-2006, 11:22 PM
The table has changed since the last version.
You can manually add the mailid column yourself or you can save hassle and drop the previous table before installing this one.

tpearl5
06-05-2006, 01:38 AM
in the one instruction I think you ment find this:
print_form_header('email', 'dosendmail');
construct_hidden_code('test', $vbulletin->GPC['test']);
construct_hidden_code('serializeduser', serialize($vbulletin->GPC['user']));
construct_hidden_code('serializedprofile', serialize($vbulletin->GPC['profile']));
construct_hidden_code('from', $vbulletin->GPC['from']);
construct_hidden_code('subject', $vbulletin->GPC['subject']);
construct_hidden_code('message', $vbulletin->GPC['message']);
construct_hidden_code('startat', $vbulletin->GPC['startat']);
construct_hidden_code('perpage', $vbulletin->GPC['perpage']);

print_submit_row($vbphrase['next_page'], 0);


;)

Revan
06-05-2006, 08:02 AM
Technically yes but it makes no difference, it redirects before that form is printed anyways.
In that respect one could say that commenting out that form at all is unneeded, but BAH to it :p

Antivirus
06-05-2006, 08:21 PM
What are you smoking, this hack does all it's supposed to do :smoke: :p :smoke:

This Hack's a nice idea Revan, I am going to keep an eye on this for the future- thanks for sharing! It's a shame though that jelsoft doesn't include more hook locations within admincp/email.php

DementedMindz
09-09-2006, 03:58 AM
would this work on vb 3.6 or do you plan on updating it?

MrD
10-29-2006, 07:17 PM
Hi,
would this work on vb 3.6 or do you plan on updating it?

works fine on 3.6.2

MrD
06-30-2007, 11:47 PM
Hi,
it doesn?t work with 3.6.7 :(