![]() |
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. |
I found a small bug, when writing a description i used inverted commas like: "Introduce Yourself" , on my form the output is as such: "Introduce Yourself"
Im not sure how this bug can be corrected, anyone? |
Quote:
A1. Code:
[HTML]http://www.yourmap.com/{q_*}[/HTML ] Or to have text linking: Code:
[URL="http://www.yourmap.com/{q_*}"]Click here for map[/URL ] A2. To have your answers in bold, use Custom Form Output: Code:
[B][COLOR="Red"]{q_*}[/COLOR ][/B ] |
Quote:
Are you using a custom field? |
I have added a question with date type and it's not compulsory i.e I don't have to choose any date. However, the default format for that date field is already have Jan chosen and if I don't pick any date, it will display the error and prevent me from go to other questions.
|
Quote:
2) Which template I need to edit to show the * in red. |
I've had no luck with the thumbnails but thanks for the effort and continued support. Is it possible to have the "insert image" icon added to the "field using vb editor"?
|
Is there any plan in the future to store the form data as fields in the database. It will allow the sort by column in the result table.
I've seen a couple of people asking this so it would be awesome if you can add this feature. Second, can you add a features for members to come back later to edit/update/finish their answers in the form? This will have to do with a tracking of how many forms each member submit. |
First of all, thanks for the great mod!
I'm having a bit of an issue, though, and since I'm not too well versed in PHP, I may need your help. I'm trying to work around the fact that there's no easy way to offer the user a choice of a prefix (though if there is, let me know - I tried the code you offered earlier on, but it didn't work). Anyway, I'm adding a radio selection in which the top option will include a preset prefix, and the bottom option will not include any prefix. I'm trying to use an if-else combined with a str_replace in order to add the right "prefix" (actually, it's just extra text) when the option is selected. In Form Hook: Before Submit: PHP Code:
|
Quote:
2. No. 3. You can limit how many times a user can submit the form by editing a form. |
Quote:
|
1 Attachment(s)
Quote:
TRy attached file |
1 Attachment(s)
Quote:
|
Quote:
2. Findin plugin Easy Forms Part 1: PHP Code:
PHP Code:
|
Quote:
|
Quote:
The number of times a user submits each form is recorded with v3.7 but not ability to update answers already submitted |
Quote:
|
Quote:
2) I did as told and the question now show like this PHP Code:
|
1 Attachment(s)
Quote:
2. Woops, should have been html code Find in plugin Easy Forms Part 1: PHP Code:
PHP Code:
|
bananalive,
Thanks, it works. 1) It would be nice to edit this phrase as well to show the red color. Quote:
3) The sort by column header still does not work. You mentioned about using javascript in 3.7. Is it implemented yet? Thanks for all your hard work. This is a heck of a mod. |
Quote:
How about give the user the option to delete their forms and enter a new one with updated info. Would it be able to have a Delete/Add button next to the form result table so the user can click to remove one of their form, and replace it with another. Can AJAX feature be implemented in the future? You know i'm trying to mold this into the trackitt.com feature so hope you can understand :) |
Which permission I need to give unregistered members to be able to view form and form result table but not submit form
|
Suggestion:
In the form edit, Userids: Comma seperated list of userids who have submitted the form Can we replace userid by username? That would be more useful. |
Quote:
Is there any way to use PHP to append "&prefixid=f4f" onto the end of the url that is submitted? This may allow me to use an if-else statement and, if it returns true, add the actual prefix to the thread. By the way, if there is any way you can allow users to select their own prefix, that would be a much better solution than the above. Like I said, I tried the code you offered earlier, but it didn't work. Is there any way you can add this functionality? |
Quote:
2. it's hard coded atm. 3. you'll be missing two javascript files, which are needed for javascript sort table |
Quote:
What part did you want to use ajax? |
Quote:
|
Quote:
|
Quote:
If you open template form_view find: HTML Code:
<input type="hidden" name="hiddenfield3" value="$hiddenfield3" /> HTML Code:
<input type="hidden" name="prefixid" value="f4f" /> The data is then available through $_POST[prefix] after the form is submitted. I'll have another look at my code posted earlier and find out why it didnt work for you. |
Can this been used as a forum application form, I run a closed forum but would like users to be able to apply to join.
Thanks |
Im posting this with the disclaimer of many others. I have tried searching this thread but its huge and I've had no luck at the moment so my apology if its been answered.
If it helps any I've Installed* Rated 5 Stars and Nominated as its well deserved for all 3 in my opinion. I can do anything with this. My problem is this. In the vb form options you can set it for the button to show up in your navbar which I have done. I use a custom template so what I need to do is assign the button a defined height and width along with a class for it to blend nicely with my layout. I have looked in the header and other locations that I can think of looking for anyway to add my desired values but I never see any reference of the button along side the other navbar buttons. Where do I need to be to achieve this? My sincere thanks |
All times are GMT. The time now is 07:59 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:
|