![]() |
Quote:
|
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].'">'; $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. |
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'); 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 |
"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" |
Quote:
Select 'Add/Remove From Pages' from dropdown Then you can choose which pages it is displayed on. |
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 |
Quote:
PHP Code:
|
Thank you so much banana!!! workin great.... your mod is EXCELENT!!!!
|
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 |
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. |
All times are GMT. The time now is 09:02 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:
|