vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   New Posting Features - Easy Forms v4.x - Create a form or multiple forms without php or html knowledge (https://vborg.vbsupport.ru/showthread.php?t=234385)

Hendrik83 01-18-2011 02:16 PM

Hi, how can i redirect to a different url based on yes or no answer?

ErnestA 01-18-2011 06:41 PM

Is there anywhere I can see a working demo of this?

Mastar 01-18-2011 10:11 PM

I'm getting this error:

Parse error: syntax error, unexpected ':' in /home/****/public_html/forums/misc.php(89) : eval()'d code(1299) : eval()'d code on line 1

bananalive 01-19-2011 11:58 AM

Quote:

Originally Posted by Welshy2008 (Post 2150388)
Hello Bananalive,

I need some help if you'd be so kind, Please?

I have entered a username section in a "Custom" section, on a form that will be e-mailed to me.

Below are some screnshots of what it looks like (THE Field is too far over to the left and Not centered like the others, and this is what I wish to do, please)...

... And the second screenshot is of my actual code entered on the Custom input.

Please let me know where I have gone wrong and how to correct it?

Many Thanks.

Add class="textbox" before />

bananalive 01-19-2011 12:02 PM

Quote:

Originally Posted by biancolaw (Post 2150549)
This addon is the greatest. This should SO be added to the retail vbulletin suite.

One question, would you know how I could add a link to the section widget to link to the forms I create? I've tried editing the vbcms_widget_sectionnavext template and adding code in there per a post from vb.com but nothing changed in the section at all.

Are you adding html?

HTML Code:

<a href="misc.php?do=form&amp;fid=2">Link to form...</a>

bananalive 01-19-2011 12:11 PM

Quote:

Originally Posted by Vowgaming (Post 2150906)
have browsed through all 66 pages to see if there is anyway to get a custom email sent to the person after they submited a form.

Reason for this we have used a form as a application for a clan web site.
(unregstered users can fill out form)
field 4 is email address of user

what I would like is php code for vbull to emai to filed 4 (email field)

Tried using url forward option to a seperate script to send email but can not work out how to pass the email address accross
(email.php?p={q_4}) on url to forward to does not take the data

I'm not sure what you're trying to do? You can send an email out using vbmail function:
PHP Code:

vbmail($q['4'], $title$message1$from$uheaders$vbulletin->userinfo['username']); 


bananalive 01-19-2011 12:15 PM

Quote:

Originally Posted by Hendrik83 (Post 2150949)
Hi, how can i redirect to a different url based on yes or no answer?

Form Hook: Before Submit:
PHP Code:

if ($q['1']==2)
{
$form['redirecturl'] = "http://url1.com";
}
else
{
$form['redirecturl'] = "http://url2.com";


1 is the question hash

bananalive 01-19-2011 12:17 PM

Quote:

Originally Posted by Mastar (Post 2151168)
I'm getting this error:

Parse error: syntax error, unexpected ':' in /home/****/public_html/forums/misc.php(89) : eval()'d code(1299) : eval()'d code on line 1

Do you have more details?

What page?

Sarcoth 01-19-2011 08:22 PM

Bananalive, in case you missed mine, or have not gotten that far back yet:

https://vborg.vbsupport.ru/showpost....&postcount=974

Thank you.

Mastar 01-19-2011 09:05 PM

1 Attachment(s)
Quote:

Originally Posted by bananalive (Post 2151430)
Do you have more details?

What page?

I get that error above the forum on the application I created.

Also the application looks like this:


All times are GMT. The time now is 11:18 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02760 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete