Quote:
Originally Posted by bananalive
Create yesno option
Form Hook: Before Submit:
PHP Code:
if ($qo_{54} == $vbphrase[yes] && $complete && $vbulletin->userinfo['email']) { $formoutput = preg_replace('/(\[(.*?)\])/is', '', $formoutput); vbmail($vbulletin->userinfo['email'], $threadtitle, $formoutput); }
|
Ok, I entered the code as you posted but it didn't work so I changed the "54" to the actual # of the question. That works, it will email the votes to the users email however the layout is badly messed up. There is no formatting after it submits...everything is on one line.
Quote:
RaceWeek THUNDER EZ Form
Pole Sitter -----Pole Sitter----- Wreckers -----Wreckers----- Checkers -----Checkers----- Dominator -----Dominator----- Underachiever -----Underachiever----- Wildcard -----Wildcard----- Email Confirmation? Yes
|
This is before...
Quote:
RaceWeek THUNDER EZ Form
Pole Sitter24-Jeff Gordon Wreckers77-Sam Hornish Checkers14-Tony Stewart Dominator88-Dale Earnhardt Jr Underachiever55-Michael Waltrip Wildcard20-Joey Logano
|