![]() |
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 :-/
|
All times are GMT. The time now is 09:14 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:
|