![]() |
Hey All,
I've seen several people ask how to get the dropdown menus to determine what thread to respond to using this hack. I "think" I figured it out after much cussing lol... I wound up NOT having to declare any new variables, and NOT having to modify the "form" template. All I did was pretty much what I had been working on previously, but called it slightly differently since the calls I was making were causing SQL to panic because of the array usage. Here's the code if you're interested: Replace the $formreplythreadid = "XX"; (in the Form Plugin - NOT the template) with: Code:
//ENABLE FORM TO REPLY TO EXISTING THREAD - 1 = yes, 0 = no |
Quote:
|
I'm interested in getting rid of those notices as well.
Also, in this part of the mod: Code:
REDIRECT OPTIONS: Anyone? Another issue I'm having is that this mod is creating a bunch of threads with the same title. How would I go about pulling the title of the thread from a text box that the user fills out in the form? EDIT: so I figured there's got to be a way to do this. If I create a question that asks the user to give a basic description of the bug they have found in the software I might be able to pull the answer to that question and have it be the title to the thread. I've created the question, but how do I have it call that answer to name the thread? EDIT2: Found the answer after reading through the thread: Quote:
Quote:
PHP Code:
So far, this mod has been great! |
I love the mod. It's working perfectly for what I needed.
One quick question though.. how do I keep all of the choices in a checkbox "checked" when it posts? It allows more than one option to be checked but still only sends the first choice. Installed! |
I can't see anywhere the issue of these forms going into the moderation queue being resolved, or even a pointer as to why this happens when the forum and usergourp permissions have been set accordingly.
Another question I have... is there a way of being able to define the user that actually makes the post (in the event of unregistered guests being able to complet the form) - at least that way the problem of moderation may be cured. A Captcha device would be good too :) Apart from that, a great mod - excellent :) |
Hi
I set this form before and all forms are received me and when my super moderators write reply that form their message number are rising.But after my update forum version, even though I send reply that form viewing number get higher but reply number still 0. When I enter the form I can see the replies. Screen Shot 1 - http://img527.imageshack.us/img527/7943/40914909to6.gif 2 - http://img259.imageshack.us/img259/7732/98835333bh5.gif |
Well, in asnwer to my previous, I've managed to hack the plugin file to accept vBulletin's own image recognition Captcha system that is being used on the current Contact Us form (sendmessage.php). The image recognition is a 'must have' for my site, and it's the only way I can get this form to work with unregistered users.
However, with those same users, I'm still having a real problem with the Moderation, though... I've allowed the users to post in the preset forum permissions, I've even tried to send values through the $threadinfo array (specifically ['visible'] = '1') into the build_new_post function from the plugin file, all to no avail. Could I be missing something really obvious here? |
Quote:
Does anyone have any insight? |
Hopping someone can help me with this.
Ive customized a form and have everything working accept it seems that the person submitting the form needs to be logged into the forum. Is there any way that anyone regardless of whether they are logged in or not can submit? |
Quote:
You would have to give all guest in admincp/usergroups/usergroup manager/unregistered not logged in/edit rights to post in forums. This form hack is more or less a thread and when a person fills it out it shows as new post. |
Thanks blind-eddie
I hate to give this kind of access to the forum I'm having this submitted into...do you think there would be a way to setup a new user account that I could hard code into this hack. That way I can limit the user account setting within vB so that it only has access to this one forum. Hard coding the user setting might be a bit of a security risk but my forum is hosted on an intranet so I'm no worried that the employees in my company will be hacking my site. Do you think this could be done easily? |
Dont get me to lying.....Your first question was easy, your second one is a lil tougher....I have it set up for only registered user who are logged in can post on any forum, thus reducing spam. My opion to you is that I wouldnt want anyone to fill out a form unless they were registered,to ensure they are who they are.
|
K so if we go that route how can I have the form force the user to login first.
i.e. if the user enters "http://www.myforum.org/forum/newthread.php?do=form" they're currently taken to the form regardless of whether they are logged in. If they're not logged in and fill out the form and hit submit they are given no indication that their post has not gone through. So what I would like to do is some how check that the user is logged in when they first get to this page and if they are not, force them to login first...make sense? |
Quote:
Code:
if ($_REQUEST['do'] == $formname) Code:
if (!$vbulletin->userinfo['userid']) Alternatively you can amend this line in the plugin code: Code:
// if (!in_array($vbulletin->userinfo['usergroupid'], array(2,5,6,7))) print_no_permission(); Setting the post to be from a defined user is, from what I can tell, far more difficult, as the call to build_new_post() picks up the current user's id (whether a member or not). Anyone found out how to circumvent the posts (from unregd users) going into the Moderation queue yet? |
Quote:
|
woww :D very very good job.
thanx abe1... |
Quote:
Here's my template: Code:
$normalquestion1 |
I've searched through the plugin and the templates yet still cannot find out how to remove it either....
|
Why don't the two of you compare installed hacks and plugins? Perhaps you can find a common vein which might lead to being able to track it down more easily.
Sorry I couldn't be more help than that, but it's a potential start - at least until one of the more capable coders comes along to shed some light. |
Quote:
|
I've used the search feature that's built into the AdminCP to search all templates.
I've searched for the following in all templates: applyanswers begin template end template <!-- BEGIN TEMPLATE: applyanswers --> <!-- END TEMPLATE: applyanswers --> Nothing comes up. That's searching through all of the templates and all of the styles. I was getting these lines even before I modified the hack. I installed it and immediately tested it. |
Quote:
|
Quote:
Quote:
Right, off to headbutt the wall a few times.... |
I cannot get a form I've created to show up. When I try to access it vB gives me the following error:
Code:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/www/web2/web/newthread.php(71) : eval()'d code on line 39 I've looked over my code but I can't figure out what is wrong for the life of me. Any help would be extremely appreciated :). EDIT: Found the error! I didn't put a comma after declaring one of my datatypes. I've corrected the code below to show that. However, now I have a different error message and still says the Invalid Forum specified error. The new error seems to be coming from the script part, which doesn't make sense because I haven't touched it at all. Here's the error: Code:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/www/web2/web/newthread.php(71) : eval()'d code on line 278 Code:
// To add more then one form, copy this whole text, and creat a new plug-in with the hook location 'newthread_start'. |
I see some of your problem, Find all instances of ?:";
get rid of : That will stop some if not all errors. EDIT: I also deleted all :....didnt work...Give me a min.... THis is line 278 $_REQUEST['action'] = "form"; It must say stay the same |
Quote:
|
Quote:
|
Yes, dont allow guest to post. Set usergroup setting for guest, not to be able to post. Make them register.
|
Form installed and works fine... I'll be using it for Feedback uses.
|
Quote:
I didn't even know that was an option to set! All fixed now! Now I'm going to move on to making the 'New Thread' button in the forums where the forms will be posted, lead directly to the form, instead of a new thread. |
Quote:
|
I get no spam at all, all guest must register to post or fill out an app. How do you know who they are if you dont make them register. You have there ip, also only people who register and take the time to fill out there reg info are going to do what it is they came to you for, your form hack.....JMO....makem register, it will stop most if not all spam. Good luck
|
Quote:
|
is there anybody help me?
I set this form before and all forms are received me and when my super moderators write reply that form their message number are rising.But after my update forum version, even though I send reply that form viewing number get higher but reply number still 0. When I enter the form I can see the replies. Screen Shot 1 - http://img527.imageshack.us/img527/7943/40914909to6.gif 2 - http://img259.imageshack.us/img259/7732/98835333bh5.gif |
Strange it always worked and now I'm suddenly getting an error; after I submit the review it shows the message: 'no thread specified' could it be because of the upgrade to 3.6.4???
|
For some reason, on a new template that I've created, the attachment area on the initial form page, isn't centered on the bottom of the page any more.
I've tried comparing the code to another form that has the module positioned correctly, but no dice. Any ideas? |
ACK!
Now I'm running into a new issue, and I can't track it down. I've uploaded a new form. I hooked it to 'newthread_start'. I've created two new templates for this new form, and I've called them in the new form as well. When this form is activated and I try to access it, I get an error telling me that an invalid forum was specified. While this fom is activated, and I try to access any other form that I've created, I get the same error - that an invalid forum was specified. If I diable this newest form, I'm able to access the other forms without a problem. I get an error about the syntax in newthread.php. Any help would be greatly appreciated! |
hmm ik think this doesn't work with vbseo, i keep getting 'no thread specified' when trying to post a form
|
it does work with vbseo. make sure you have it posting to a valid forum id (have you edited the plugin?)
How do you get the CAPTCHA to work please? :) |
I wanted to know if its possible to put the form in a custom php file? example form.php?do=form1
can this be easily done or does it have to be for newthread.php? |
All times are GMT. The time now is 09:31 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:
|