![]() |
Quote:
|
Quote:
PHP Code:
|
Can you please make
Quote:
Thank you! |
Quote:
PHP Code:
Then, here is the code I am using to move a user to a new usergroup: PHP Code:
|
Thank you, bananalive. This is a great mod. :up:
Is there an obvious location where the form id is displayed? I am interested so I can manage the redirect location for my newthread_form_complete plugin. I also would like to see some method of autocomplete of a field through comparison to a database field such as username. Sounds like some AJAX and Javascripting would be involved, not unlike what is happening during a vB user registration when it is checking the length and content of the new username while it is being entered. |
The form ID is always included in the URL...
|
How can I adjust the forum destination for the form results dynamically? Specifically, I want to recognize the forum I am in when I make the call to the form 'http://www.your-site.com/forum/misc.php?do=form&fid=1'. I am using the plugin example below and adjusted the array to the custom forum. It correctly loaded the form rather than the standard post editor, but it saved the results into the destination forum coded in the form (forum #2), and not the current forum where it was launched. Can I override that behavior?
Create vBulletin Plugin with hook location newthread_form_complete PHP Code: if (in_array($forumid, array(3))) { header( 'Location: http://www.your-site.com/forum/misc.php?do=form&fid=1' ) ; } Originally Posted by StagKill View Post |
I am getting the following error from the Form Hook: Before Submit:
Unable to add cookies, header already sent. File: /home/yoursite.org/public_html/forums/misc.php(89) : eval()'d code(491) : eval()'d code Line: 1 The code I entered is: $form[forumid] = forumid I am trying to get the form to go to the current forum where the user clicked on the link to go to the form. What am I doing wrong? *** On a separate thought, does the misc.php accept an argument containing the forumid, like the newthread.php? I could pass the forumid at the time the form is called if it does. |
In a word, perfect, thank you. :)
|
Still looking for a tip/hint as to how I can make a form submit twice to 2 different locations :) Been playing around with it myself but I can't get it to work :-/
|
Need help, I havent been able to figure out how to allow user to choose which forum they want to post the question to.
In short : There is just one form that the user uses, and in that form, he chooses from a drop down which forum he should post the question to. How would I be able to achieve this. Any help will be great! |
Quote:
|
Quote:
The following is an example of correct php: PHP Code:
|
hey banana,been using easyforms a while and love it
just lately though I tried using the question variables for the form output the form output should be {q_1} Review for {q_2} by {username} {q_1} being a game name and {q_2} being the platform,so the output should read something like "mass effect 2 review for PC by bigj85" but only the username variable is working so I get "Review for by bigj85" am I doing something wrong here? I'm having the forms output sent to a forum as their own thread btw |
Is this great mod been confirmed as working on an upgrade from 4.0.5 and 4.0.6, Please?
|
Quote:
Quote:
Personally, I recommend using reference name within the question (like gamename) and then doing {q_gamename} instead, but that's up to you. |
Quote:
|
Quote:
ahhhh thanks Sarcoth that did the trick :) |
I am unable to affect the destination of the form results with the code you corrected below in the form hook before submit location. The form always goes to the destination specified in the "Forumid where Thread is posted:" location. In my case I have a main category (forum 1), a main forum (forum 2) and a review forum (forum 3). I even tried setting "Forumid where Thread is posted:" to the main category. I didn't get an error, but the form results did not appear in either forum. Not sure where it went. I'm not getting an error message anymore, but neither am I able to redirect the form output.
Per your comments in post #651 I also tried the forum assignment without the single quotes surrounding the target forum with no change in behavior. PHP Code:
Quote:
|
Quote:
PHP Code:
|
OK, that did get the message into forum #3, but the posting updated the forum statistics on the forums display page for both forum #2 and forum #3, including the title of the post, the user and the posting date & time stamp. Forum #2 now shows 11 threads but when you open it there are only 10. Forum #2 is the forum specified as the destination in the form itself, and it is being over-ridden to send the form to #3.
If you would like to hack around on my box to see what is going on, send me a PM. |
Hello!
My database already contains 300 inputs with 10 columns each. Speed of generating new exports decreased dramticaly, but im planning that database will be thousends of inputs for next few years. Is there any solves of such problem? May be prepare export file not on demand but by schedule? |
Quote:
PHP Code:
|
Quote:
If they are not, then you could stop the bbcode parsing, which should speed up process. |
Quote:
The problem is, even "Form Results" where I can edit database, generating too long, and each new entry making this time longer. May be split on pages "Form Results" and @From Results table". But "Form results Poll" and "Export to Excel" will still generating too long and hang up server. May be option "ondemand-real-time/schedule" is better? |
Hey Bananalive- this is about my 3-4th request without a single reply so I guess I need to keep trying.
Can you please assist with making Quote:
Greatly appreciate the help. |
Hey banana I tried adding this to my 4.0.6 and it seems like a great plugin but when I try to click on it from a tab from an addition tab plugin, I get an error code that says:
(Message) "Error, this form does not exist." Do you have any idea why it says I'm getting an error that the form I made doesn't exist or have you seen that problem before? Thanks |
This looks like a great idea, but I've got no idea how this works!
Is there a help file or tutorial or fully explained example someplace? |
The code you posted below worked. Now I need to figure out how to store the current forum when the form is called, then apply it in this script. I'm going to do some looking for a variable that may contain this information, then figure out how to store it and retrieve it when needed. If anyone has any suggestions I would greatly appreciate it.
I do have to say I really like this script, particularly the ability to format the output as desired with conditional statements based on the form data. It works great. Thanks Bananalive, good work. Bchertov, I managed to figure this out mainly by reading through all the pages of this thread, then installing it on a development site and just hacking out a form and watching what happened. Quote:
|
Quote:
|
@ Laric - I've seen the answer to this on another page. I even provided a link to it on this page (15).
|
I have a small issue, I was able to export my form from my vb3 install to our new vb4 install. Everything works great except there's an issue with the drop down questions. The box with the options are very narrow and the full text cannot be seen.
|
Quote:
thanks in advance |
Quote:
|
For some reason all form results are gone. I get: Error, this form does not have any results stored in the database.
I checked in the database, and yes, the "formresults" table is empty. I checked moderators log for product "Easy Forms", and it didn't contain any data. So, moderators actions don't get logged? |
Might be considered a weird question but...
Is there any way to implement a "time it took to complete" function for a form, that would then be shown at some point on the submission? |
Quote:
No, Easy Forms does not create any logs. |
Quote:
Quote:
|
Quote:
Edit: just realised i have not released v4.1.7 yet... so I will now. |
Hi - this is neat. Thanks. Can I use the same form across multiple forums? Or do I have to copy in to each forum. I was hoping a user could select from a predefined list??
|
All times are GMT. The time now is 04:14 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:
|