vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   New Posting Features - Form Hack (https://vborg.vbsupport.ru/showthread.php?t=126676)

thalamus 02-28-2007 02:13 AM

@optrex: you have a PM - sorry, just noticed my unread PMs :o

carpzone 03-03-2007 10:37 AM

I think i'm the first whit another problem,

I installed this hack with no issue, BUT i'm not able to acces the form itself.

It always redirect me to the submit calender form, that came original with vb.

I'f i change the hook location from newthread >> newreply , thne i'm able to view the form
but after pushing the submit button. Again i 'l be redirected to the submit event to calender form.

Sombody nows whats the problem on this one ?

nirav 03-04-2007 01:33 AM

im getting Internal Server Error when try to edit hook in vb admincp!!!

any ideas?

blind-eddie 03-04-2007 02:32 AM

Not sure if many of you who own your own domain, but, within your host site cpanel, if they offer fantastico auto-installs, click on it, ...scroll down, and you will see
php form generator...works like a charm!!!! You can make forms anyway you want. Look into it.....

amac64 03-04-2007 02:43 AM

Please explain where to edit the hook and both templates? I have the same problem, I added fields and field names, but I get 3 lines of buttons before my first question.

Quote:

Originally Posted by |oR|Greg (Post 1075715)
You have to edit the hook, and both templates in order to make it work.


dutchbb 03-07-2007 03:36 PM

Quote:

Originally Posted by optrex (Post 1188511)
it does work with vbseo. make sure you have it posting to a valid forum id (have you edited the plugin?)

Of course I've edited the plugin and there is a valid ID. It always worked, I have used it for months without problems now suddenly it stopped working. I submit the review and it just isn't posted. This is the URL when the form is submitted: /showthread.php?t=

ravencr 03-08-2007 05:38 AM

Does anyone know if this mod can be incorporated into the following hacks to allow a person to post a new event using a custom designed form:

http://www.vbulletin.org:80/forum/sh...light=calendar

http://www.vbulletin.org:80/forum/sh...light=calendar

http://www.vbulletin.org:80/forum/sh...light=calendar

If not, is it possible to do? If so, anyone interested in doing it for cash?

Chris

orth 03-09-2007 03:51 AM

Very nice, we'll be using this to process character submissions to play in our gameworld.

manofphat 03-09-2007 10:03 PM

Is their anyway to change it so the permissions check doesn't just check the user's primary usergroup and checks the secondary ones as well?

Thanks

gamma912 03-09-2007 10:45 PM

Will this work for say a job website - people can submit their jobs or classifieds using this form and then it will go to a thread?

What about uploading of resumes?

Kiint 03-10-2007 07:17 AM

Quote:

Originally Posted by gamma912 (Post 1199837)
Will this work for say a job website - people can submit their jobs or classifieds using this form and then it will go to a thread?

What about uploading of resumes?

You create a form....the plugin posts the content of the form to a new post in your specified forum whenever someone uses it.

so yes, you can make a job form, people use it, the results end up in a forum. Same with resumes, you create the form, they use it, the results end up in a forum....

but you have to design the form first :):D

ravencr 03-10-2007 01:52 PM

I need a form hack to figure out the form hack. Anybody? :)

Chris

blind-eddie 03-10-2007 03:30 PM

If I shouldnt have posted this here, I am sorry, I saw no html faq area & figured ppl with form knowledge could help me out. This is my first "crude html form", but it works. I am using this on a vb site of a friend that wants this to email the form to him & re-direct applicants to another page. I have tried so many times to get the re-direct to work...I cant, as you see looking at my creation that I am not that good at html and I am in the kindergarden stage of it. Also, when submit is clicked, pop-up appears asking if its ok to send...no problem, but then another pop up appears showing somewhat the same with a blank send to box, clicking send works, and email is sent. In your mail box is shows:"Form posted from Windows Internet Explorer." not from site itself...how do I fix this? If anyone could help me set up my re-direct I would be forever in your debt.....





Code:

<html>
<div style="border: 25px ridge;">
<body>
<FONT COLOR="FFD700">
<h1 align="center">YOUR TITLE</h1>
<form action="MAILTO:YOUR EMAIL ADDRESS"method="POST"enctype="text/plain">
<p style="text-align: center;">
1.  Real Name:<br><br> <input type="text" name="1.  Real Name">
<br><br>
2.  AA Name:<br><br> <input type="textbox" name="2.  AA Name">
<br><br>
3.  Have you read the Code of Conduct and willing to abide by it at all times?<br><br>
Yes:
<input type="radio" checked="checked"name="3.  Have you read the Code of Conduct and willing to abide by it at all times?" value="yes">
<br><br>
No:
<input type="radio"name="3.  Have you read the Code of Conduct and willing to abide by it at all times?" value="No"><br><br>
4.  Are you 18 years of age or older?
<br><br>
Yes:
<input type="radio" checked="checked"name="4.  Are you 18 years of age or older?" value="Yes">
<br><br>
No:
<input type="radio"name="4.  Are you 18 years of age or older?" value="No">
<br><br>
5.  What is your AAGUID Number?<br><br>
<input type="text" name="5. What is your AAGUID Number?">
<br><br>
6.  Do you have a AAO Tracker account? <br><br>
Yes:
<input type="radio" checked="checked"name="6. Do you have a AAO Tracker account?" value="Yes">
<br><br>
No:
<input type="radio"name="6. Do you have a AAO Tracker account?" value="No">
<br><br>
7.  Link to YOUR AAO Tracker account?<br><br>
<input type="text" name="7.  Link to YOUR AAO Tracker account?">
<br><br>
8.  Are you able to donate $10.00/month?<br><br>
Yes: <input type="radio" checked="checked"name="8.  Are you able to donate $10.00/month?" value="Yes">
<br><br>
No: <input type="radio"checked="checked"name="8.  Are you able to donate $10.00/month?" value="No">
<br><br>
9.  Please list previous clans that you have been with in the past.<br><br>

<textarea cols="50" rows="14" name="9.  Please list previous clans that you have been with in the past."></textarea><br><br>


10.  Please list previous account names that you have used in the past.<br><br>


<textarea cols="50" rows="14" name="10.  Please list previous account names that you have used in the past."></textarea><br><br>


11.  Please tell us a little bit about yourself and why you want to join BlackwaterOps.<br><br>


<textarea cols="50" rows="14" name="11. Please tell us a little bit about yourself and why you want to join BlackwaterOps."></textarea><br><br>

12.  Have you ever been banned for cheating/hacking/exploiting or linked to any accounts that have been banned for cheating/hacking/exploiting?<br><br>
Yes:
<input type="radio" checked="banned"name="12. Have you ever been banned for cheating/hacking/exploiting or linked to any accounts that have been banned for cheating/hacking/exploiting?" value="Yes">
<br><br>
No:
<input type="radio"name="12. Have you ever been banned for cheating/hacking/exploiting or linked to any accounts that have been banned for cheating/hacking/exploiting?" value="No">
<br><br>
<input type="hidden" name="sendtoemail" value="YOUR EMAIL ADDRESS"><br>
<input type="submit" value="Submit"><br></p>
<input type="hidden" name="redirect" value="YOUR URL">


</FONT>
</form>


</body>
</div>
</html>
</form>

</body>
</html>



EDIT: Never mind, I figured it out.

TheMilkCarton 03-11-2007 01:57 PM

I figured out a cool method of redirecting to the post (option "1" in the Form Hack) if you're a registered user, admin, etc. but redirecting Unregistered Users to the "Thank you" message telling them that their form will be put in queue for moderation. This prevents the "Invalid Thread specified" errors if you moderate Unregistered Users form submissions and have the redirect set to "1".

1. First you need to change the Forum Permissions so that Unregistered can Post New Threads in the forum your Form Hack uses. You'll have to disable Image Verification for guests, though.. but I don't find it a problem since I don't allow Guests to post in any of my forums. Does anyone know if there is a forum-specific Image Verification hack??

2. Open up the Form Hack plugin. Set the "$redirectoption" to "1". You can also do this to 2-4, but I haven't tried it. If you do it for 2-4, make sure to change the correct "redirectoption" in the next step.

3. Find
Code:

if ($redirectoption == "1")
            {
                $vbulletin->url = 'showthread.php?' . $vbulletin->session->vars['sessionurl'] . "p=$newpost[postid]";
                eval(print_standard_redirect('redirect_postthanks'));
                exit();
            }

and replace with
Code:

if ($redirectoption == "1" AND in_array($vbulletin->userinfo['usergroupid'], array(2,5,6,7)))
            {
                $vbulletin->url = 'showthread.php?' . $vbulletin->session->vars['sessionurl'] . "p=$newpost[postid]";
                eval(print_standard_redirect('redirect_postthanks'));
                exit();
            }

You can change 2,5,6,7 to whatever Usergroup IDs you WANT to redirect to the post, thread, etc. Just make sure you exclude Unregistered users..you will get the redirect error, since the post doesn't exist because it's still in Moderation.

4. Configure the "$errormessage" to tell the Unregistered users that their submitted form has been put in queue for moderation.
Quote:

Thank you for submitting this form!
<br /><br />
If you are unregistered or not logged in this will be added to the queue for moderation. You will not see this thread until we approve it.
<br /><br />
Thank you! You may return to the forum <a href=\"http://www.YOURDOMAIN.com/forums/forumdisplay.php?f=X\">Here.</a>
If you are going to use any kind of HTML (with quotations) in your message, you must put a backward slash \ in front of each quotation mark ". Otherwise you will get parse errors. Make sure to change YOURDOMAIN, and X to the proper Forum ID.


Well I'm off to figure out how to do the "Thank You" message AND automatically redirect back to the forum now that I've gotten part way there. You can also use my method above for different reasons. It's essentially allowing you 2 redirect options instead of one. :)

shadowdancer36 03-12-2007 03:59 PM

I'm having a problem with my forms sending me an email. It only seems to do this once I log on. I set up a form to do registrations for a program training and they all got caught in a que of some sort and wasn't released until I logged in as a admin. Then all the emails were sent out at once. Have any idea why this would be?

gamma912 03-13-2007 08:18 PM

the most difficult thing is editing the template to include more fields?!

Can the developer show us snippets of code to add more of a certain type of question?

I mean where does the code for a certain question start and end? And what makes up the parts of the code? The variable what else?

tekstylez 03-14-2007 12:00 AM

you have to be kidding me.... this is the most complicated hack I have ever tried to use... How could this even be considered for MOTM???

totalc 03-14-2007 12:13 AM

I found this fairly simple to use and it works very well for a lot of stuff.

Deepdog009 03-14-2007 01:34 AM

It B kinda difficult at first, but once you understand it, it be really COOL.
I signed up for some of those Form makers on the net and never could get those suckers to do what I needed. But now that I've figured out this hack, its all gravy.

Thanks ABE;)

vien 03-15-2007 10:05 AM

Dont know why I get this error, even I did uninstall the hack.

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/vtn/public_html/forum/newthread.php(71) : eval()'d code on line 641

Now everything I click on "New thread" this error appears on the top banner. Please advise.. Thanks so much.

Abe1 03-15-2007 12:26 PM

Quote:

Originally Posted by vien (Post 1204029)
Dont know why I get this error, even I did uninstall the hack.

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/vtn/public_html/forum/newthread.php(71) : eval()'d code on line 641

Now everything I click on "New thread" this error appears on the top banner. Please advise.. Thanks so much.

No clue. Maybe you have one some other hack interfering with it.

vien 03-15-2007 01:40 PM

I used the old version 3.5 and it worked very well, dont know when I upgrade to this version, it's still work well but after I edit something and import again, the error appears, I uninstall this hack but that error still remains. When I turn off the hook on vbb setting, that error disappear, it seems to be like the error due to the product... dont know how to solve that :((

Edit: I worked out. Thanks

Deepdog009 03-15-2007 06:22 PM

Im sure I could figure out how to do it if I had hours of free time but not.

How do I change the REDIRECTION to other url to external site???

How do I add IMAGE VERIFICATION???

Thanks 4 your time...<>:)

TheMilkCarton 03-16-2007 11:43 AM

Go to Plugin Manager --> Form Hack (or if you've created duplicate form hacks, whatever you named yours)

In the PHP Plugin Code, scroll close to the bottom and find:
Code:

if ($redirectoption == "4")
        {
            $vbulletin->url = 'editpost.php?do=editpost&' . $vbulletin->session->vars['sessionurl'] . "p=$newpost[postid]";
            eval(print_standard_redirect('redirect_postthanks'));
            exit();
        }

After it, add:
Code:

if ($redirectoption == "5")
        {
            $URL="http://www.DOMAIN.com";
                header ("Location: $URL");
        }

Change domain to whatever site you want.

Now, just so you remember what option 5 does, find:
Code:

// 4 - redirect to editpost (thread or reply)
and after it, add:
Code:

// 5 - redirect to external website
Then right after that change "$redirectoption" to "5".

I wouldn't use this unless you clearly state in the form that you're redirecting them to an external site... it just seems kind of... sneaky. :) They'll also have no indication that their form was submitted successfully.

I hope you'll use this legitimately though. ;)

-----------------------
Edit: And about the image verification thing.. I'd really like that too.

I have found a cool workaround though.. you can add a question to the bottom of the form that there is only one definite answer to, use an expression to limit the input, and make the form require it to be answered, or it won't submit.

It's a little harder than the site redirect... so if you really want to know, maybe I can muster up the energy to explain it. :)

TheMilkCarton 03-16-2007 01:39 PM

OK, sorry to double post..

I am very close to getting image verification to work in the form hack.

My ONLY problem is that I don't receive an error message when entering the wrong verification code. However, it DOES know that it's the wrong code because the post doesn't enter my moderation queue. If I do enter the right code, it shows up in moderation.

So can any more experienced coders than I tell me what code handles the Image Verifcation error message?? It's supposed to pop up in the same place the Preview would if I hit "Preview Post"

Pretty please? Help? :)

amac64 03-16-2007 02:57 PM

I am having trouble with a emailed form. The email is blank. Can someone show me their code snippet that they use for emailed forms. I think it he forms and formanswer part I have a problem with.

Deepdog009 03-16-2007 09:57 PM

Good to Go MilkCarton

I saw that down there and was messing with it, but 4 the life of me I didnt get far.
Nice work around.

No, no, no... I dont redirect folks to BS links. Its internal links, Im using outsite of forum, same site.

Yeah that image verification deal would be great. I've been working on some forms and wanted to know why that wansn't added before.;)

I like this Hack because it saves me on using database form software for tracking folks. Also its easy to incorporate advanced forms.:cool:

Thanks 4 your time...<>

chickadee 03-18-2007 01:08 AM

I'm having trouble inserting more variables for the checkbox and dropdown choices. I'm adding the new variables to both Part 1 and Part 2, but when I try and access the form I get an error saying the forum is invalid.

dutchbb 03-18-2007 12:35 PM

Quote:

Originally Posted by Abe1 (Post 1204088)
No clue. Maybe you have one some other hack interfering with it.

Hello Abe, can you PLEASE tell me why it doesn't work anymore. Ihave now uninstalled/installed it over and over again but the same problem keeps coming back. The form apears, I can fill it in , but after submit nothing get's posted, there is just no thread made. And yes I have selected a forum where the thread needs to be posted in. How is this possible? I used this before for a year and it always worked , it's driving me nuts?!

PS: I'm willing to pay for personal support if you can make it work again! This is very important for our board.

TheMilkCarton 03-18-2007 02:57 PM

If anyone is experienced with coding, please check out my thread here...

I only need to figure out a few lines of code and then I can release my fix to add Image Verification to this Form Hack!

I'm only testing this in a form to post a new thread, however. I can't even guarantee that it would work to submit a PM, reply, email, etc.

stwilson 03-18-2007 04:56 PM

I have a question. Is there a way to have a form setup that emails different people based on the form data submitted? For example:

Field A:
Option 1, Option 2, Option 3

If a user submits the form with Option 1 (from Field A) selected then the form results get emailed to a set group of emails. If another user submits the form with Option 2 (from Field A) the form results get emailed to a different set group of emails.

Is that possible with this MOD?

Abe1 03-18-2007 08:07 PM

Quote:

Originally Posted by dutchbb (Post 1206332)
Hello Abe, can you PLEASE tell me why it doesn't work anymore. Ihave now uninstalled/installed it over and over again but the same problem keeps coming back. The form apears, I can fill it in , but after submit nothing get's posted, there is just no thread made. And yes I have selected a forum where the thread needs to be posted in. How is this possible? I used this before for a year and it always worked , it's driving me nuts?!

PS: I'm willing to pay for personal support if you can make it work again! This is very important for our board.

Check to make sure the user has permission to post in that thread.

dutchbb 03-19-2007 06:55 PM

Thanks for the reply and yes I'm sure because I tried it as an administrator. It's not posted IN a thread but posted AS a thread in a selected forum. I can provide access if needed so you can check my settings. Please let me know.

Deepdog009 03-21-2007 01:21 AM

Gotts some forms to add, but need permission from ABE1...

Maybe it might help those of us that dont have the time to create um...

I will upload if its OK...?

Thanks 4 this,,, L8ter:up:

Abe1 03-21-2007 01:52 AM

Quote:

Originally Posted by Deepdog009 (Post 1208477)
Gotts some forms to add, but need permission from ABE1...

Maybe it might help those of us that dont have the time to create um...

I will upload if its OK...?

Thanks 4 this,,, L8ter:up:

Sue. Upload what ever you want.

stwilson 03-21-2007 03:25 AM

Quote:

Originally Posted by stwilson (Post 1206574)
I have a question. Is there a way to have a form setup that emails different people based on the form data submitted? For example:

Field A:
Option 1, Option 2, Option 3

If a user submits the form with Option 1 (from Field A) selected then the form results get emailed to a set group of emails. If another user submits the form with Option 2 (from Field A) the form results get emailed to a different set group of emails.

Is that possible with this MOD?

Abe?????

TheMilkCarton 03-21-2007 07:06 AM

Abe,

Do you know what I'm missing for Image Verification in your form hack? I've asked here and have another thread over in Programming Discussion. If I could get it figured out I would really like to release it to you so that you can update your hack to use Image Verification for Unregistered users.

Like I said before, I just need it to SHOW that the form has been rejected. Everything works though.. it just doesn't tell you. :) Right now I'm using a very large disclaimer above the code box that warns unregistered users that they should triple check what they've typed in, because they won't know if it's been submitted for sure or not.

This is a terrible solution though, because a lot of people will have doubts and try submitting it twice.. a nightmare from a moderation standpoint.

Abe1 03-21-2007 12:16 PM

Quote:

Originally Posted by stwilson (Post 1208532)
Abe?????

I'm sure it's possible but I can't work on it for you.

Abe1 03-21-2007 12:17 PM

Quote:

Originally Posted by TheMilkCarton (Post 1208597)
Abe,

Do you know what I'm missing for Image Verification in your form hack? I've asked here and have another thread over in Programming Discussion. If I could get it figured out I would really like to release it to you so that you can update your hack to use Image Verification for Unregistered users.

Like I said before, I just need it to SHOW that the form has been rejected. Everything works though.. it just doesn't tell you. :) Right now I'm using a very large disclaimer above the code box that warns unregistered users that they should triple check what they've typed in, because they won't know if it's been submitted for sure or not.

This is a terrible solution though, because a lot of people will have doubts and try submitting it twice.. a nightmare from a moderation standpoint.

No time now to take a look at it.

TheMilkCarton 03-21-2007 01:10 PM

That's fine. :)

Because I got it working!! Haha. I still need to test it out when using it to PM, Email, Reply to a post, etc. I've only tested it out on starting a new thread. Doing that will take a while because I'll need to copy the form at least once (as to not ruin my working copy :) ) and then go in and change all the settings.


All times are GMT. The time now is 09:31 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.01902 seconds
  • Memory Usage 1,890KB
  • 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
  • (7)bbcode_code_printable
  • (11)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
  • (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