![]() |
Quote:
Next goto MAIN Template and adddddddd that new dropdown there also...>>> Use your own code or template code to add... 3 dropdowns below in code HTML Code:
<TABLE width="100%"><TR> |
Quote:
Add to proper location... 'dropdownanswer4' => TYPE_STR, $dropdownanswer4 = $vbulletin->GPC['dropdownanswer4]; HTML Code:
// Part 1 Lower Plugin code area...> questions...> HTML Code:
//////////////////////////////////////////////////////////////////////////////////////////////////// Good Luck;) |
Thanks a lot for taking the time to explain that Deepdog009, but I don't think it answers my question (if it does, then I don't understand it).
For example, say you wanted a form to post news in your forum. There are 3 different forums which represent the catergories the for news. They are Sport, Weather and Other - each of which are different forums. Basically, depending on what you select in the drop down box will determine which forum the news is posted in to. I hope that makes more sense. :) |
RayW what you be asking requires some code modifications. Im good with CSS and HTML but at this time Im still reading and learning on PHP, Perl and Java.
ABE1 can help you better. Take a peek in the earlier posts and maybe theres something there that might help U. Good Luck |
No worries, thanks a lot.
Cheers! :) |
Ok, I've been trying to nut this out based on what others have posted in the thread.
Basically, I want a drop down box which defines what forum the news will be posted too. I have the following: Code:
//FORUM TO POST NEW THREAD IN Code:
//////////////////////////////////////////////////////////////////////////////////////////////////// Code:
<select name="dropdownanswer1"> Could someone offer some advice. I'm assuming the problem lies in the above somewhere; maybe!! :confused: THanks! |
HEY!!!! I figured it out. I just noticed that <select name="dropdownforum1"> should be <select name="dropdownanswer1">.
I will post the finished product once I have fine tuned it. :) EDIT: I've updated the code above so it should work fine now. |
U da Man RayW:up:
Yes please post your outcome when finished. If statements seem easy until you place them. But eventually hard work and patience will prevail. Cya :) |
Hey guys, maybe I missed it, I also ran a search. Is there way to set this up so you can select a post icon, and not have it be blank when it posts the topic? I was trying to figure out a way to do it, but I kept breaking the code. Any ideas would be great. Thanks!
|
I'm looking for some guidance in formatting the answer template so that I can control the way the finished post looks. Is there any way to use conditionals in the answer template?
For example I have $question1 $checkboxAnswer1_1 $checkboxAnswer1_2 $checkboxAnswer1_3 If only the first checkbox is selected on the form then the $checkboxAnswer1_2 and $checkboxAnswer1_3 put spaces in the final post. I'd like to do something like if ($checkboxAnswer1_2==""){ echo ""; } That way I can eliminate the spaces? Any ideas? |
As with any area that allows for user input, does this hack validate input in any way?
I just want to make sure it is secure enough so that the average user cannot exploit it. If not, is there a way to integrate validation to make it more secure? Thanks |
You can use some JavaScript and expressions to limit input in any of the boxes. I've done this so that a certain box can only have numbers input into it. You could essentially use this as a NoSpam! type mod. Then you can modify your form plugin so that ALL the fields must be answered.
Or you can wait until I finalize my Image Verification add-on... which is looking pretty dismal right now. :( I just don't have time to test every little thing, and I certainly won't support it when/if I do release it. I may see if Abe1 would like to take what I've done and test it and incorporate it right into the actual form hack. Not sure if he's interested though. |
Quote:
Did you succeed? I'm interested by your search ;) |
Thanks 2 ABE1 file I have inserted IMAGE VERIFICATION...
I have created two forms of IMAGE VERIFICATION 2 use with this HACK... check my sig for more info... Good Luck...;) Thanks again 4 dis Hack ABE1 im learning about forms. |
Quote:
I still learning this stuff, Im sure ABE1 can do this with his eyes closed, but hes a busy man. I will take a look and see if I can help... Check with RayW, he has made some progress in this area... |
Hello All,
In fact I wish to know if it is possible to let people post the form in any of the existing forums. To do so, they should be able to select the forum in a dropdown list looking like the "Forum Jump" list. Would this be possible? And first off all, would it also possible to let users choose the name of the filled form when posted? For example the form type would be displayed like a prefix and the user would complete this prefix by a name written in a mandatory field... Thanks for your help :) |
I am having a problem with the form hack. I am receiving a error
Code:
Invalid Forum specified. If you followed a valid link, please notify the administrator |
Quote:
It is exactly what I've got running on my forums at the moment, only with a few extra forums added. |
Quote:
Quote:
You may be able to work it out using what I have posted here (it is back on the previous page about half way down as well). If you give your checkboxes values ($checkbox1a, $checkbox1b, $checkbox1c, for example) and apply those values to what I have written, you would be pretty close to fixing your problem I reckon. You may need to make 1 or two other tiny changes to make it function correctly. I wish I could help more! :) |
Quote:
Hello rayw, Thanks for your answer, but when you say Quote:
Quote:
But your answer here should mean "all is ok now", I guess :) |
I posted a message directly below the one with code in it stating that the problem had been fixed. I've also updated the code so yes, everything should work fine now. It wasn't very clear though, sorry. :(
|
No, no rayw, don't be sorry, I may have read all this to fast.
Anyway, thank you very much for your work and help I'll give a try to it this evening :) |
Well, rayw... I've a slight change to do.
In fact, I have a lot of forums and su-forums. All these may change time to time, so I would need this tweak to be easy to manage. My idea would be to use the forumjump template to improve that product. Something like this, where when clicked on, would post the thread in : PHP Code:
|
How do you send an e-mail out to a group with the contents of the form?
|
Quote:
I don't see why it wouldn't work and all the code looks ok (but I'm no programmer either - still learning as said above). All you can do is give it a go and see what happens. You seem to know more about this stuff then me anyway! :p |
Hey rayw,
I don't think I know more than you: I just copied the forumjump code. But I don't think, this could work as these link are not designed to save posts but just to jump to... Maybe some coder around here may help us... |
im totally clueless trying to customize my own form, can anyone help me via PM ?????
im trying to add several $normalquestion .....but do i just add $normalquestion2 it does not show up, etc HELP! |
Quote:
Maybe the link has one letter wrong. Good Luck;) |
Quote:
Check form names Check form answer area Check main form and verify that its got the correct html that will show all boxes or message areas. HTML Code:
// Part 1 Good Luck!:) |
HTML Code:
$formtitle HTML Code:
<tr> |
I have a flash form and sends data via email. Would anyone know of a way to make a post in the forums by using the data sent by a flash form?
Part of my email.php PHP Code:
|
Error: Invalid Forum specified. My url is correct for sure.
When I install the custom form it takes down the unmodified original form, displaying the same error. The theme was also edited, but since the custom plugin made both forms crash it is the root of the problem, no? I can produce the template code if needed. Any help would be greatly appreciated, especially after 3 nights of failure. Plugin: Code:
<plugin active="1" executionorder="4"> |
I like this hack alot. But us there anyway to delete the text box at the bottom of the page (Im talking about the text box that you use to reply to a thread).
|
Quote:
Thats in the Form template in your "Styles and Templates. |
I added a if statement.
It will either show the bbuser[email] or a text input for them to add a email address. this works great, shows in the post, and in the PM. Also the email you set in the hook sends like it should. But I also want to send an email to the user that same form. Any idea how? |
Quote:
|
Quote:
Good luck:cool: |
Can someone give me a hand? I am trying to add some more fields to this form. Under "normal question 1" I would like to add a few more questions. here is what I did but had no luck. What do I need to do to get these fields to show up?
// Part 1 $vbulletin->input->clean_array_gpc('p', array( 'normalanswer1' => TYPE_STR, 'normalanswer2' => TYPE_STR, (I added) // Part 2 $normalanswer1 = $vbulletin->GPC['normalanswer1']; $normalanswer2 = $vbulletin->GPC['normalanswer2']; (I added) $normalquestion1 = "What is your Character's Name"; $normalquestion2 = "Character's Race"; (I added) I have allot more questions that I would like to add. What am I missimg? |
Quote:
"form" template Look for: [/code] <tr> <td class="alt1" valign="middle"> <b>$question2</b>:<br /> $explain2</td> <td class="alt1" valign="middle" colspan="2"> <input type="text" size="30" value="$answer2" name="answer2" /></td> </tr>[/code] And adjust as needed. Or copy that and change the "$normalquestion2" Same goes for the answer2 values. |
Quote:
I would like to put a link to the thread in the email. how do I do that? |
All times are GMT. The time now is 07:25 PM. |
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:
|