![]() |
Quote:
PHP Code:
|
Any progress yet on why I cant get an unregistered user to be able to use the form?
|
Quote:
|
Hi
Thanks for all the work on this. We have a working version of your hack working well on our test forum, however I'd like to have 2 forms. I have read other posts and spent some time experimenting to try and come up with the answer, with no luck. What exactly would I change, or do to the file so that I can have more than one form. Thanks again |
Quote:
|
Thanks for the help, I got it to work.
I thought I'd just post this for future reference: Heres how I got 2 forms to work on the same board: Copied the file and renamed it Edit the line in the hack PHP Code:
Change the title - Makes your life easier when you have more than one form Find: PHP Code:
PHP Code:
http://www.yourboard.com/forum/newth...do=anotherform (or whatever your formname is) |
Is there any possibility to change the name of the new thread, so that the name of the user who filles in the form is part of the name of the thread?
I want to use this hack to make an introduction Interview, for every new member. And the name of the new Thread schould sometihing like "<username>´s Interview". |
Quote:
|
Is there a way to add the attachment feature to this?
Also similar question as above, but Id like the answer of question one to appear as the title, is that possible? |
ok I tried what you told him,
$formtitle = "$user[userid]"; Is that the right spot? Cause it didnt work |
Quote:
|
That didnt work either.
$formtitle = "$vbulletin->userinfo[username] Justice Appeal"; output was, Array[username] Justice Appeal |
Quote:
$bbuserinfo = $vbulletin->userinfo; $formtitle = "$bbuserinfo[username] Justice Appeal"; |
yeah it worked. Thank you. Um now my other question. How do I pull the answer of question 1 to the title also, and is attachments possible or to complicated?
|
Quote:
You can add the $answer1 varible to the title. |
im confused on the attachment part. option to transfer? did get the question working thanks.
|
Quote:
|
ah, so it will only work after submitting the form.
|
Quote:
|
I have another nutty question :) sorry. I have the banner mod installed which allows me to add images or html to put a banner in a forum. Is is possibly for me to put this code into this html box so the form shows up at the top of this forum. If so how would I make this work?
|
Quote:
|
Quote:
Thank you, great Hack! |
i don't really understand what this hack do...
|
Question for you Abe1 when I edit the hook and remove radio choices and add more text questions do I edit the hook to below:
$vbulletin->input->clean_array_gpc('p', array( 'normalanswer1' => STR, 'normalanswer2' => STR, 'normalanswer3' => STR, 'normalanswer4' => STR, 'normalanswer5' => STR, 'longanswer1' => STR, 'longanswer2' => STR, 'action' => STR )); $normalanswer1 =& $vbulletin->GPC['normalanswer1']; $normalanswer2 =& $vbulletin->GPC['normalanswer2']; $normalanswer3 =& $vbulletin->GPC['normalanswer3']; $normalanswer4 =& $vbulletin->GPC['normalanswer4']; $normalanswer5 =& $vbulletin->GPC['normalanswer5']; $longanswer1 =& $vbulletin->GPC['longanswer1']; $longanswer2 =& $vbulletin->GPC['longanswer2'];?? Because I can only get it to show normalanswer1 & longanswer1. |
Quote:
|
They are in the template that's what I don't understand why only two is showing.
|
Quote:
|
Yes they are correctly in the template form.
|
Abe is it possible to have the form post to 2 seperate forums? I have it all set up and working with a custom form. It posts to a single forum fine but I would like it to generate 2 seperate posts in different forums.
|
Quote:
Im not sure what you mean? I did try copying the form template info into the banner html header box, but it just displayed all the boxes and code. |
Hi (waves) ya me again :) I do have another question. How can I make the required fields not for all but only for certain questions?
|
Quote:
Look for: Code:
if ($answerall == "1") Code:
$answer1 == '' OR $answer2 == '' OR $answer3 == ..........etc. Of course make sure you set that you want answers to be required in the upper part plugin. ;) |
Thank you all for your assistance with my needy needs. I appriciate it. There is still a couple things I want this to do, but most have been resolved so thanks.
|
Is there any way you can ger the User's Username included IN the name of the Thread you create with the form.
|
Quote:
|
Argh, this is a great concept but having a heck of a time with the customization of it. Still, I should not be complaining.
Main issue at the moment is, I seemed to have done something wrong and my forums will not load up the form no matter what. This is even after uninstalling the product, making sure it was not listed in product/plugin/styles, clearing my cache and reinstalling it again. "Sorry! This forum is not accepting new posts." <- get this on DEFAULT installation now What could I be missing? |
Quote:
|
Abe, reposting this from a page back.
Quote:
|
Quote:
PHP Code:
PHP Code:
|
Nice, thanks for the fast reply Abe.
|
All times are GMT. The time now is 02:25 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|