Skip to content
WJunction - Webmaster Forum

[WCDDL] Send Confirmation Email

Status
Not open for further replies.
If they are not interested on the email to confirm the submittions why send him?
By default are yes.
21m66hd.png

submit form.
find
PHP:
<input type="submit" value="Submit Downloads" />
after add
PHP:
<input type="checkbox" name="confemail" /> I Dont want to receive the confirmation email.
WCDDL Modules/wcddl_submail.php
Find
PHP:
$modEnabled = true;
After add
PHP:
$confemail = $_POST['confemail'];
Find
PHP:
if($modEnabled)
Change to:
PHP:
if($modEnabled && !isset($confemail))
DDLCMS
Find submitted.php
PHP:
$email = $_POST['email'];
        }
        $c->open();
change to
PHP:
            $email = $_POST['email'];
            $confemail = $_POST['confemail'];
        }
        $c->open();
PHP:
if($enableAutoResponder == 1)
Change to:
PHP:
if($enableAutoResponder == 1 && !isset($confemail))
 

6 comments

nice one, I needed something like this for ddl0 :)

[slide=200]http://imgcentre.com/img/uploads/big/8bf0c592ed.png[/slide]

Tested and working. Thanks!
 
Yes this should be standard on ddl sites.
Be nice if more sites adhere to this, and also the autosubmiters.

Code to autosubmiters (not tested)
PHP:
$compile = "sname={$_POST['sname']}&surl={$_POST['surl']}&email={$_POST['email']}";
Change to
PHP:
$compile = "sname={$_POST['sname']}&surl={$_POST['surl']}&email={$_POST['email']}&confemail={$_POST['confemail']}";
PHP:
  <td colspan="4"><br />&nbsp; <input type="submit" value="Submit Downloads" style="width: 216px; cursor:pointer; height:30px;" /></td>
change to:
PHP:
  <td colspan="4"><br />&nbsp; <input type="submit" value="Submit Downloads" style="width: 216px; cursor:pointer; height:30px;" /> <input type="checkbox" name="confemail" /> I Dont want to receive the confirmation email. </td>
 
Status
Not open for further replies.

About the author

J
Active Member · Joined
192
Messages
21
Reactions
18
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom