![]() |
Thanks for that i appreciate it, i have edited the post below, it some way towards what i want, a nice concise uniform look, easy to read.
http://www.thecodecage.com/forumz/to...tml#post207964 |
Bananalive, fantastic support, thanks for the fix!
|
Thanks for this mod!!.
I have a question. In my form I have a field with this custom form output. https://vborg.vbsupport.ru/ When the answer is blank it shows [IMG] code because this field is not compulsory, like this [IMG].[/IMG] If the field is blank I don?t want to show BBcode, how could I correct this?? |
That's too cool. After loading the xml sheet I could see clearly how it works. All I needed was an example. Thank you again.
|
Hi, Banana,
At last, got enougth time to study latest changes in your form constructor. Thanks a lot for your work. I have some proposals, may be, youll find those useful for your 3.0 version :) . 1. Processing can be switched from "form parameters" to "form actions". That will spin flexibility to the next level, and will simplify / improve coding & interface for each action. Each action can have a custom parameter & action can be added to form in the same manner, as questions. The big advantage is, that you can have several action in one time (or just skip unnecessary one). Here is actions examples: - posting
(*) Don't know what is better: to keep title & template common, or make it individual for each posting action. Probably, second method is better and simplify main form editing page. 2. "Only for guest" questions. Reason is simple: User should not care, which form to select for feedback. That's extremly significant for advertiser and payed visitors. If he is registered, then additional information is taken from profile. If not - he is asked to fill additional input fields. Solution is trivial: add flag "only for guests" for all questions. 3. Full template language support in form templates. AFAIK only macroses are supported now. But it would be useful to support <if> <else> and all internal forum variables in form templates. It seems, there are no serious barriers to do that. vBulletin have a powerful templates parser, that can be used. It's useful with proposal (2), when you can easily fix template output, depending on user permissions. 4. Please, check vulnerabilities issues - What happens, if user enter macros name in text field? Are such patterns stripped (or converted to safe style) prior to process form? 5. It's better so send Emails in HTML. Вetter look, when use several actions (make post and send email) (*) If you'll switch to "actions", it's possible to create new one "send email as HTML" :) . If each action has personal template, that's not a problem at all. 6. Don't know, if it's useful, but I'd enlarge default form description font to SIZE=2. And would remove "Form Description" from border. 7. It would be useful to have form active for user, but hidden from public list. No ideas, why you use 2 access settings in product options, but only sigle setting for each form. Parameter "who can view form in list" can solve it. 8. Date question format. Some prefer dd-mm-yy. May be, format type to this question? 9. Does "send email" support multiple addresses? (*) Useful, but not critical if multiple actions are supported. Regards, Vitaly. |
Will definately post a paypal donation for your hardwork on this mod.
Quote:
"You could use 'Form Hook: Form Start':" Code:
$form['where'] = $vbulletin->input->clean_gpc('g', 'threadid', TYPE_UNIT); I left "Threadid where Post is Created:*" blank since this would need to be dynamic. Unsure where to proceed from here. |
1 Attachment(s)
Incredible. Installed, Voted, Nominated
Awsome. so awsome its a admin feature now ;) Attachment 93875 |
whats the point of this mod ?
|
Quote:
I discover that the form is submited or not depending of the order of the variable options that I indicate in the "Thread/ PM/ Email Title: " field: Example: It's ok with "{q_1}: {q_2}" but not submit the form if I wrote "{q_2}: {q_1}" In other form it's ok with "{q_6} {q_5}" but not with "{q_5} {q_6}" :confused: :confused: What's wrong? Thank you bananlive! ;) |
Thanks for the great modification. I am just starting to use it and have two questions.
Question 1: How do I get the form results to be saved to the database? When I creating a new form I see a drop down box with the following options: PM Form to User Post New Thread Post in Thread Email Form I do not see anything that allows me to "save to database". I checked the tables after creating a form and using the form and the formresults tables is empty. Question 2: Ideally I want a user to fill out a form and submit it. When it is submitted it is posted to a thread and saved to a database. Is this possible? Thanks! |
EDIT
Got it working |
I have an idea that I think would be a useful feature.
Allow an email field for the user. A member can enter their email into an optional field and if they do then they get a duplicate confirmation to the email of the submitted form. |
Quote:
Ah...yes, if you're using it as a registration form, I guess that wouldn't work too well. :( |
What about have an option to include a checkbox that if the member checks it then the form data is sent as a confirmation to the email address on file for them.
I am using this form system for a fantasy sports game and the results go into a private topic. Some of the members would like confirmation of their votes since they can't view the private topic. |
Quote:
A2. Yes. Use the following code in Form Hook: Before Submit: PHP Code:
Quote:
Quote:
Quote:
Quote:
PHP Code:
Quote:
Form Hook: Before Submit: PHP Code:
Quote:
3. I've tried and failed to find easy way to allow <if> in form custom output 4. Shouldn't do, I'll check this 5. vbulletin mail system doesn't allow html or bbcode :( 6. You can use bbcode to do that 7. ? I don;t understand what you're saying 8. You can change that by editing form_formbit_date and: PHP Code:
PHP Code:
|
Quote:
Another good option is to import-export actions in XML. Quote:
For example, I have english contact form, rarely used. And I don't wish to show it to russian-speaking visitors, that are 99% at my site. |
Quote:
Quote:
All i would have to do is a simple template edit on the reply button and we would have reply to thread (forum based) |
Quote:
Uses Form Hook: Form Start: PHP Code:
|
Thanks for the help.
Im getting "Parse error: syntax error, unexpected $end in /home/log/public_html/beta/misc.php(97) : eval()'d code(983) : eval()'d code on line 5 " Attempted to fill the form out anyhow and it wasnt able to redirect or link to the right page. (broken link) |
Quote:
PHP Code:
|
Quote:
Quote:
Quote:
|
Quote:
|
Quote:
Quote:
|
Made a donation for you help bananna. Thanks so much.
I was able to get it to work! |
Ok, what if I had the option to PM confirmation to user instead of emailing it. How would I get it to do that and still submit to the threadid?
vBulletin's mail system must not allow formatting, but maybe the PM system would? |
Quote:
Quote:
|
Quote:
|
Could you add custom user groups into the selection?
|
Quote:
PHP Code:
Quote:
Quote:
|
Thanks bananalive for the quick response on my other questions. I have that working now.
I have another question. When customizing the Custom Form Output:, I noticed that the customized output only applies to newly created thread posts. Is it possible to get the previous posts updated so they incorporated the customized Custom Form Output? Thanks again! |
Thanks!
|
Hi,
Is it possible to organize the answers to the form questions so they are displayed in a table when the form is posted to a thread? I don't think there is a bbcode table tag. I might use HTML but do not want to turn it on for the whole forum. Plus I tried using HTML and it is displayed in the preview and looks really bad. Thanks |
Quote:
Quote:
|
v2.8 Beta has just been released (see first post), it includes the following new features:
- Added security to prevent possible use of macroses in form inputs - Guest only questions - Modify post top with macroses & bbcode - Search Form Results saved to database - Option to not show form on form list (only applicable for those who cannot edit forms) - Added rel="nofollow" to links on formlist - Increased performance by consolidating preg_replace functions |
Bananalive, i noticed you visited my forum and made a slight change to the plugin code on my top tips form....Thanks!, it's beyond the call of free support!
One question what does the && do?, i was going to delete one but ten thought better of it hence me asking. |
Quote:
if ($a & $b) if $a is true it will exec php code if ($a && $b) requires both $a and $b to be true to exec php code |
Quote:
Current rules doesn't allow to do that. For example, I have rаrely user for for english feedback, but I don't like to abuse russian-speaking users with it (those are 99% visitors of my site). I don't know, which implementation is more correct from ideological point of view:
|
Quote:
|
Thanks. Probably, I've missed that.
|
tx for the update ;)
|
All times are GMT. The time now is 11:53 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:
|