vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   FORM TO FORUM/ THREAD/ PM/ EMAIL - CUSTOMIZABLE FORMS for Mod Apps, Orders, News (https://vborg.vbsupport.ru/showthread.php?t=53269)

Cyricx 05-23-2003 05:16 PM

Love this hack :)

Question, is it possible to "require" an answer? Seems you can submit without answering any of the questions. :)

Great hack, I've got so many uses for this it's limitless.

Marulatree 05-23-2003 06:41 PM

wow - imagine the possiblities - lol

Quote:

Today at 07:16 PM Cyricx said this in Post #41
Love this hack :)

Question, is it possible to "require" an answer? Seems you can submit without answering any of the questions. :)

Great hack, I've got so many uses for this it's limitless.


Intex 05-23-2003 07:03 PM

Erwin - I've now installed the hack - very nice work m8. I have a quick question.

As not every form would have all the types of questions and radio boxes etc. as you have for default - are these easy enough to remove? Also what if you wanted to add more?

Koutaru 05-23-2003 07:57 PM

Nice Erwin -- I had your contact us installed but I just might install this one instead ;)

Gaffer 05-24-2003 01:13 AM

damn it i'm getting errors.....

lets see being my luck it's a single semi colan out of place again

edit---

ok i found the error

for some reason it dont' like the fact that i have a ' in my username....

which is a little strange...

Remi 05-24-2003 02:35 AM

Hi Erwin

Great hack, thank you very much

Can I have it posted as a reply to thread No. "XX" instead of making a new thread.

I have a better use for it this way

Thanks

Erwin 05-24-2003 04:33 AM

Quote:

Today at 04:16 AM Cyricx said this in Post #41
Love this hack :)

Question, is it possible to "require" an answer? Seems you can submit without answering any of the questions. :)

Great hack, I've got so many uses for this it's limitless.


I purposely made it like that to open up the possibilites. To make answering a question compulsory, do this:

In form1.php, find:

PHP Code:

if ($action=="submit") { 

BELOW, add:

PHP Code:

if ($answer1 == "") {
    eval(
"standarderror(\"".gettemplate("formanswer")."\");");


Replace $answer1 with the answer variable you want to make compulsory. Repeat that piece of code again and again for any other answers.

Then, add a new template called "formanswer" with the contents:

Code:

You did not answer a compulsory question. Please press backspace to redo the form.
Done!

Erwin 05-24-2003 04:38 AM

Quote:

Today at 12:13 PM Gaffer said this in Post #45
damn it i'm getting errors.....

lets see being my luck it's a single semi colan out of place again

edit---

ok i found the error

for some reason it dont' like the fact that i have a ' in my username....

which is a little strange...


Yikes...

I have fixed this bug - Version 1.1 is released.

It's a small bug to fix.

To upgrade, in form1.php, find:

PHP Code:


,'$bbuserinfo[username]' 

Replace with:

PHP Code:


,'".addslashes($bbuserinfo[username])."' 

Done!

I have updated the ZIP file to version 1.1.

When downloading, make sure the PHP file says 1.1 at the top of it.

Erwin 05-24-2003 04:51 AM

Quote:

Today at 06:03 AM Intex said this in Post #43
Erwin - I've now installed the hack - very nice work m8. I have a quick question.

As not every form would have all the types of questions and radio boxes etc. as you have for default - are these easy enough to remove? Also what if you wanted to add more?


Yes, if you want to remove or add questions, just edit the form1.php file, and the "form1" template. Rename them both, and edit the variables in the PHP file. It's not hard to figure out. :) This hack is meant to be modified by the user.

Smoothie 05-24-2003 05:26 AM

For some reason, I have this form set to email me, but the email is not arriving.
PHP Code:

//ENABLE FORM TO BE EMAILED - 1 = yes, 0 = no
$formemail "1"



All times are GMT. The time now is 08:43 AM.

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.01320 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_code_printable
  • (5)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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