The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Easy Forms - Create a form or multiple forms without php or html knowledge Details »» | |||||||||||||||||||||||||||||||||||||||||||||||
Easy Forms - Create a form or multiple forms without php or html knowledge
Developer Last Online: Nov 2023
EASY FORMS FOR vB 4.x here Easily create forms with no HTML or PHP knowledge. Questions can be made compulsory and are checked before the form is submitted. Forms can be previewed. (You can create multiple forms) Question Types:
Download Now
Screenshots
Show Your Support
|
Comments |
#1162
|
|||
|
|||
Quote:
|
#1163
|
|||
|
|||
I have made a little script for our site and thought I would share how I did it with everyone.
This will give you a directory dropdown list in your form, which we are using to choose pictures within a Directory. Get rid of the space in the opening IMG tags, had to put a space in them to show up in here. Create a Custom field in your form. In the phpcode field add the following: Code:
$answer = '<select id=" name="'.$formbit[id].'">'; $answer .= '<option>--Select Map--</option>'; $thisanswer = $q_{$formbit[id]}; $dirPath = dir('/path/to/image'); $imgArray = array(); while (($file = $dirPath->read()) !== false) { $imgArray[ ] = trim($file); } $dirPath->close(); sort($imgArray); $c = count($imgArray); for($i=0; $i<$c; $i++) { $answer .= '<option value="'.$imgArray[$i].'">'.$imgArray[$i].''; } $answer .= '</select>'; $dirPath = dir('/path/to/image'); Find in plugin Easy forms Part 1 Code:
/*($hook = vBulletinHook::fetch_hook('newthread_post_complete')) ? eval($hook) : false;*/ Code:
($hook = vBulletinHook::fetch_hook('newthread_post_complete')) ? eval($hook) : false; Code:
[IMG ]http://www.yourdomain.com/images/maps/$q[39][/IMG] Also if you wish to change the size of your images using the IMG tag then visit http://tech.mikelopez.info/2006/03/0...resize-script/, and download their script. This is how I used it: Custom Form Output Code:
[IMG ]http://www.yourdomain.com/images/imgsize.php?w=250&h=250&constrain=1&img=/path/to/images/maps/$q[39][/IMG] Again changing the domain and paths to suit. The paths are absolute, not relative. |
#1164
|
|||
|
|||
Another little hand snipped.
This will give you a dropdown list of times, in 15 min incriments. ie. 12:15pm etc.... Create a Custom field: Enter the following into your PHP Code Filed. Code:
$start = strtotime('1:00am'); $end = strtotime('11:59pm'); $answer = '<select name="'.$formbit[id].'">'; $answer .= '<option></option>'; $thisanswer = $q_{$formbit[id]}; for ($i = $start; $i <= $end; $i += 900) { $answer .= '<option value="'.date('g:i a', $i).'">'.date('g:i a', $i).''; } $answer .'</select>'; The next code I will be working on is a java based countdown timer for the frontpage of our site which will let people know how much time is left before the time is reached, compared with the time set in the VB CP. However if anyone has any ideas on this then please do share, saves re-inventing the wheel. Cheers |
#1165
|
|||
|
|||
"Can't you add it to the main page like any other module?"
No, I can make it a module but it is not visible on the "homepage" |
#1166
|
|||
|
|||
Quote:
Select 'Add/Remove From Pages' from dropdown Then you can choose which pages it is displayed on. |
#1167
|
|||
|
|||
Hi Banana!!!
I made a MAIL form... all is just right... but the "sender" mail is mine... I want the sender to be the user who´s sending the form... is that possible?... am I clear? lol |
#1168
|
|||
|
|||
Quote:
PHP Code:
|
#1169
|
|||
|
|||
Thank you so much banana!!! workin great.... your mod is EXCELENT!!!!
|
#1170
|
|||
|
|||
This has a lot of potential. I plan to modify this mod to obtain something TOTALLY DIFFERENT.
example: http://www.trackitt.com/usa-immigrat...kers/i130-i485 Question 1) Can we sort by column headers? 2) Can users go back and complete/update partial filled forms? 3) Is there anywhere the user can control the number of cases they filled? Thanks |
#1171
|
|||
|
|||
i was wondering if i have a question where someone has to put there postcode in, can i have the answer link to a URL to a map showing the postcode?
its for my classified section. other than that excellent script. clicked install.. also is it possible to highlight answers to 2x questions red and BOLD? (for example both answers should be a price!) thank you. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|