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"


Smoothie 05-24-2003 05:49 AM

Not posting to a forum either....
PHP Code:

//ENABLE FORM TO BE POSTED - 1 = yes, 0 = no
$formforum "1";

//FORUM TO POST NEW THREAD IN
$formforumid "65"


Erwin 05-24-2003 06:17 AM

Smoothie, your forum always has problems with my hacks for some reason. :)

Anyone else with the same problems? The hack works fine for me here at my own private forums.

Smoothie, try and see if the hack works without any modifications - it should. Make sure you edit the email address variable. And you have installed the templates.

Smoothie 05-24-2003 06:28 AM

Some good news, I'm getting the PM. :) Yes Erwin, all templates are correctly added.

Cyricx 05-24-2003 06:51 AM

Thanks for the modification Erwin :)

I have it posting to a forum with no problems at all. Tested it pretty heavy before we took it "live" :)

Great hack!

Smoothie 05-24-2003 06:57 AM

Uploaded all new files and templates, ver 1.1. Posting to forums, getting PM's, no email.

Erwin 05-24-2003 07:42 AM

Quote:

Today at 05:57 PM Smoothie said this in Post #55
Uploaded all new files and templates, ver 1.1. Posting to forums, getting PM's, no email.

I am an idiot. To fix this, find in form1.php:

PHP Code:

    if ($formmemail == "1") { 

Notice the wrong spelling - the 2 "m"'s? Change it to:

PHP Code:

    if ($formemail == "1") { 

It should work now...

For people using an older version of vB, change "vbmail" to "mail".

Anyway, I have updated the version to version 1.2 to fix this mistake. Apologies to all...

Smoothie 05-24-2003 07:47 AM

LOL, ok. Now I know its not just my forum that has this problem. Thanks Erwin.

Gaffer 05-24-2003 07:47 AM

goodies i got it working the way i want and working right....

great hack Erwin

SouledOut 05-24-2003 02:36 PM

Thanks man. I can't help to think that maybe I helped a tad to inspire this mod since I requested one like this :p. Already I can think of 5 uses of this for a hosting company:

1) Hosting Apps (have it in a forum to have archived, or if you need a group decision, and to tell who took care of it and when)
2) To Report a Jerkoff Member
3) Report an inactive site
4) Request something else (domain, etc.)
5) Submit a support problem

My co-owned hosting network is being revamped this summer, and this will definitly help us, and it'll be alot easier for me when I get my site up and working and have requests for layouts or forum layouts.

corsacrazy 05-24-2003 05:36 PM

thanks 4 the fixes lol

corsacrazy 05-24-2003 05:46 PM

ermmmmm

Fatal error: Call to undefined function: vbmail() in /home/virtual/site52/fst/var/www/html/forums/feature.php on line 191
:s

Remi 05-24-2003 06:26 PM

Quote:

Today at 04:35 AM Remi said this in Post #46
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


Can some one please tell me how can I send the form as a reply to a thread instead of making a new thread.

This could be so abvious to some of you but it is so complicated for me :D

Crazy Pete 05-24-2003 07:51 PM

Would it be easy to submit this form to more than 1 person via PM? Let's say for example I had a custom usergroup, and I wanted the form submission to go to all members of that particular group via PM. What would I need to change?

PixelFx 05-24-2003 09:32 PM

... going for forum/form for now, will try and finish version for vbhome :)

Smoothie 05-24-2003 10:34 PM

Quote:

Today at 02:46 PM corsacrazy said this in Post #61
ermmmmm

Fatal error: Call to undefined function: vbmail() in /home/virtual/site52/fst/var/www/html/forums/feature.php on line 191
:s

Quote:

For people using an older version of vB, change "vbmail" to "mail".

Crazy Pete 05-25-2003 04:15 AM

Still wondering how to get this to PM a certain usergroup, rather than just one person. I'm sure it's probably just editing or adding one or two lines, but...I can't figure it out.

Koutaru 05-25-2003 04:42 AM

Is there a way to create an error if they do not fill in all the fields?

Cyricx 05-25-2003 04:10 PM

Koutaru - Check out post 47

Koutaru 05-25-2003 05:52 PM

Thanks Cyricx -- (I had a problem with it earlier but I think I've fixed it)

Intex 05-26-2003 06:43 PM

Erwin - just thought I'd say thx. for a really nice piece of work. I've created a whole load of different forms for my site each with completely different layouts / question types.

An extremely useful and customisable hack :cool:. Congrats.

Crazy Pete 05-28-2003 03:22 AM

Can someone please tell me how I can get this to PM a certain usergroup rather than just one person? I'd really appreciate it as I have a great idea for a use for this hack. Thanks!

Crazy Pete 05-28-2003 04:38 AM

Nevermind, think I got it. We'll see if it works the way I think it will though.

brendanlim 05-28-2003 08:24 PM

How can I change the title of the thread that I post? Or make it so that it is $threadtitle or something? :(

Mr. Brian 05-28-2003 09:10 PM

Nice piece of work..

Might install this if I have the time to do so.

Erwin 05-28-2003 09:31 PM

Another good use - a form for members to submit Quizzes for the Quiz hack - I'm using mine like that - quizzes get PMed to my quiz moderator. :)

Koutaru 05-29-2003 02:51 AM

Quote:

Today at 05:31 PM Erwin said this in Post #75
Another good use - a form for members to submit Quizzes for the Quiz hack - I'm using mine like that - quizzes get PMed to my quiz moderator. :)

[high]* Koutaru raises eyebrows
[/high]

Not a bad idea

nymyth 06-03-2003 01:00 AM

sup, when i tried this, it wont send to my mail, it sends to my pm and my forum but its all blank......im runnin 2.2.9.....do know what the problem is.....yeah i have all the templates up

Peace

Koutaru 06-03-2003 01:02 AM

did you change vbmail to mail? Double check your settings. If all else fails, post your settings here

nymyth 06-03-2003 01:16 AM

vbmail to mail, i dont follow??

Peace

Koutaru 06-03-2003 01:19 AM

Quote:

For people using an older version of vB, change "vbmail" to "mail".


All times are GMT. The time now is 04:18 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.01313 seconds
  • Memory Usage 1,828KB
  • 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
  • (8)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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