The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#722
|
|||
|
|||
OK if I can get this answered I think I will be able to go from there once I see how the code is changed... First I want my form only to be filled out by registered users SO that when they open the form their username is automatically placed in the subject bar. Then when they submit their app and it directs to the selected forum, we can see who the app is from via the subject line. I would also like to add a one other answer from the form to the subject line but I think if I see how to added the username I can figure out how to do the second part.
Ex: Membership Application: [username] <answer1> |
#723
|
||||
|
||||
Quote:
|
#724
|
|||
|
|||
Like this? I've tried putting it right after Membership App and get errors.. This way errors out too..
PHP Code:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/xxx/public_html/forums/newthread.php(68) : eval()'d code on line 151 |
#725
|
|||
|
|||
I dont think you are following what im asking for....$bbuserinfo [username] is going to be the person that is actually filling out and submitting the form. As it is now I do use that already - I use it so the form logs ME as one of the traders.
this is part of my Answer form PHP Code:
what I want to do is have a link in a post - when I click that link I want the form to assign $normalanswer1 as the person who's post I just clicked the link from. I cant see how $bbuserinfo[username] will do that. The form is (as it is) will not assign $normalanswer1 as the name of the author of the post. I dont know how else to explain it. |
#726
|
||||
|
||||
Quote:
|
#727
|
||||
|
||||
Quote:
|
#728
|
|||
|
|||
I run a trading site....what I want to do is have a link in all the posts that you click that will take you to the form. This form is how we post trades.
the postbit would have this 'Post A Trade With Member X' - Member X would be the username of the person who made that post...(i have this setup) - now when you click that link it takes you to the form and makes Member X one of the variables. Im trying to avoid members having to type in the person they are trading with...just figured it would be easier that if they clicked the link in member x's post that member x would become one of the variiables - this would prevent members not typing in the actual username and it would eliminate typing mistakes for the person you are trading with. |
#729
|
||||
|
||||
Quote:
Request tha the poster put the userid of the other person in the form also. Then, make a url tag in the answer template using the userid. |
#730
|
|||
|
|||
im looking for this to be done automaticly - it would actually be more work for a member to look up a members user id then input it...
Im looking for this to be automated but it doesnt appear to be a way to do it. |
#731
|
||||
|
||||
Can this hack be used to create forms that are located outside vBulletin (eg on a page on a different website)? (Sorry if this has been asked before: I thought I'd seen a similar post but I've searched through this thread and can't find anything.)
|
#732
|
|||
|
|||
Ok I want to start over again... Same type of thing though. This time the user will open up the "Membership Application" and they will fill out the form.
The default forum title when they open the form is "Membership Application". What I would like to have happen is when they hit the submit form button, I would like the forum title to change to "Membership Application: <question2> <question1>" So if they answered question1 with Submarine and question2 with Yellow, the new subject line when submitted would read, Membership Application: Yellow Submarine (doable?) |
#733
|
||||
|
||||
Quote:
|
#734
|
||||
|
||||
Just to clarify: this means I can't use take the content of an external form and post it into vBulletin using this hack?
|
#735
|
||||
|
||||
Quote:
|
#736
|
||||
|
||||
Yes, but can it be tweaked so that the info can be added to vB from a form hosted elsewhere? Currently the form itself has to be located in a thread within vBulletin; I would like to be able to put the form in a news item of an external page but for the results to be posted to a thread within vBulletin.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|