![]() |
i managed to set one form up which works wonderfully,
The problem has arrisen when i try to create another form. Ive copied the plugin and altered the form name and also created 2 new templates and linked them to the pluging but when i try and access it i get this error message Code:
Parse error: parse error, unexpected $ in /home/forum/newthread.php(71) : eval()'d code on line 863 |
Look around line 863 in the plug-in.
|
Quote:
Code:
// To add more then one form, copy this whole text, and creat a new plug-in with the hook location 'newthread_start'. Can u see any errors here? |
Hi,
has everyone run this plugin in Combination with Mystics Präfix Hack? |
I've installed this form on a few sites and it has worked perfectly. But I am trying to use a variable for the $formforumid on one.....
Code:
$formforumid = "$dropdownanswer1"; |
hi
could any one help me :surprised: i am trying to use this hack but i did not know how to use it. :confused: is there any Tutorial for changing this hack to what i want ? :surprised: how to the form name ? how to change the fields ? how to change the variables in both the form and the form answer ? thenks regards Emad Bahattab :) |
Is it possible to place the attachment somewhere in the post instead of on the bottom? A variable in formanswers for attachments would be nice :)
Great hack |
Quote:
|
I am trying to make this.
I choose a forum that the registered users can't view. I have only make this selections in the forum permissions "Can View Forum = No" and the others yes. (and of course the can post and can upload attachment permissions is set to yes). The problem is I run the form like a simple registered user, the attach table and button appears, but when I click in the button in the pop up window it says with a message that you can't post attachment. If I change this permission "Can View Forum = Yes" everything works well. The problem is that I don’t want the simple registered users see the answers and of course to downloads the attachments. How can I fix that? |
I solve it! For anyone that wants to know.
1) Ftp Server Create a copy of newattachment.php --> newattachmentmine.php 2) VBulletin Templates Create a new clone of newattachment, newpost_attachment, newpost_attachmentbit, newpost_attachment, newattachment_errormessage, newattachment_keybit, template, for example newattachmentmine, newpost_attachmentmine, newpost_attachmentbitmine, newpost_attachmentmine, newattachment_errormessagemine, newattachment_keybitmine. Into this templates replace the value newattachment.php with the new newattachmentmine.php file. 3) Form Hack PHP Replace the values newattachment.php, newpost_attachment, newpost_attachmentbit to the new one newattachmentmine.php,newpost_attachment_mine,newpost_attachmentbit_mine. 4) In this file newattachmentmine.php replace all this templates newattachment, newpost_attachment, newpost_attachmentbit, newpost_attachment, newattachment_errormessage, newattachment_keybit, with the new. Also find this code (normally in line 79) PHP Code:
PHP Code:
PHP Code:
I think maybe it’s useful for someone this trick. P.S. Be careful, because if you don’t do that correctly may you corrupt the form or the attach option of your site. |
Hello.
Where is new form field data stored if the database is unaltered? Thanks in advance. |
Quote:
|
Thanks for your reply.
Let me ask it another way... what I mean is, when the data from the new form fields is submitted, where does that data go if the database is not revised to store that data -- to a flat file? Thanks again, in advance. |
Quote:
|
Thanks again for your reply.
I guess I somehow overlooked finding 'how' the fields were added to the database when I looked at the xml file. :confused: I'm still learning this stuff... Thanks. |
thanks to ChrisBaktis for having the problems he was having, and to those who helped solve it, been having exactly the same issue, and its now fixed from reading this thread. Thanks to the original author, but you have to expect questions with every release.
|
Quote:
|
Thanks Abe, you're awesome. :)
|
I need a very simple form to email answers to the questions.
Can I make this auto complete the users username and email address and include this in the email? Like the standard Vbulletin contact us form does. Many thanks |
Great mod. But then again, so was the 3.5 version.
I'm having two problems. I am unable to send to multiple email addresses. The two addresses are separated with a ;. Only one is sent. Version 3.5 worked with multiple addresses using a ,. Both versions take a long time to send copy of the form to the email addresses. |
Quote:
Username: $bbuserinfo[username] Email address: $bbuserinfo[email] in your answer template. |
Working perfect on 3.6 and can't find bugs at the moment...(with my custom modifications done to it :D)
|
Quote:
|
Quote:
Now I realize I am getting the two emails sent to $formemailaddress. What is not happening is, I'm not getting a copy of the form sent to the user's email address. Sorry if that's confusing. When I submit the form, I should actually get 3 copies. 2 being sent to the $formemailaddress and 1 sent to the email address used on the form being submitted. In this case, me. Edit: It can take 10-15 minutes to receive the form by email. |
Great Hack. This is definitely my favorite one. It has helped me learn a lot about coding within vBulletin.
If anyone ever needs help creating forms, feel free to check out some of my examples. You are also welcomed to request additional examples. I'll be adding more as time permits. My Form Examples Thanks, Sarcoth |
Quote:
HTML Code:
<textarea id="namerecips_txt" value="$UsersValue" name="UsersValue" rows="2" cols="30" tabindex="1">$UsersValue</textarea></div> |
running 3.6.3....it works good. you do have to have some working knowledge of code/form/php to make the forms. but overall this is a great add-on!!
no problems - a couple bugs but i think they are more the limitation of vbulletin - was able to work through everything and accomplish what i needed just fine. thanks for this!! |
For some reason Unregistered users using IE cannot access my form. They can through Firefox, but not IE.
|
how can i make it possible to use $post[fieldx] variable as my $posttitle? i would really like this to work. thx
|
Quote:
When I get a chance, I will have to look that over and check out your work :) |
Quote:
|
Very cool mod...thanks!
|
is it possible to redirect this page to the "log in" page if the person isnt logged in?
|
Quote:
|
Quote:
|
Where is this "hook" located? I don't see anything with that name to follow the intructions
Quote:
|
Quote:
|
Another EXCELLENT mod. Thank you.
|
Great man!
Works like a charm here!!! Is there any way i can change the email name to the user who fills in the form? Now it's webmaster, as the form was created by the webmaster. Also, when reply-ing into a thread, webmaster is the one who posts... can that be changed too? Thanks! |
Works great! Thanks.
|
All times are GMT. The time now is 02:58 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:
|