A while back, you guys helped me make a redirect which I never quite got working. Now, it's the last thing before we go live with our new site. We need the redirect to offer a different 30-day trial depending on which product they choose. The form is here;
http://vit-sandbox.com/forms/try-it/
There error I get is:
Fatal error: Call to undefined function add_filter() in /home/vitsandb/public_html/wp-content/themes/vi/gform_redirect.php on line 3...
Help!
The first few lines of the form of the gform_redirect.php file are:
<?php
add_filter('gform_pre_submission_filter_2', 'custom_redirect_url');
function custom_redirect_url($form){
$condition = RGForms::post('input_7');
if(!$condition)
return $form;
$form['confirmation']['type'] = 'redirect';
switch($condition){
case 'pdf2image':
$form['confirmation']['url'] = 'http://www.visual-integrity.com/downloads/current-pdf2image.exe';
break;
....
I can send a paste of the file or you can login and take a look. Let me know what's best. Thanks a million for your great plug-in and or your help...
jean
If someone can login and and take a look, I'd be grateful.