![]() |
Hi,
This works great for posting into one forum, but I'm having a problem figuring out how to get it to post to various forums depending on the value selected from the drop-down. What I am trying to achieve is this : If dropdownanswer1 = dropdownchoice1a then formforumid="59" If dropdownanswer1 = dropdownchoice1b then formforumid="26" I have about 18 different forums where this form will be used, I only have 3 in the templates for now for testing. Can't seem to figure out whether the problem lies in the hook, or whether there needs to be some template mod. Anything I try results in either a parse error or a scalar value error. Any help appreciated. Thx. PHP Code:
HTML Code:
$stylevar[htmldoctype] Code:
Letter placed by: $bbuserinfo[username] |
Usergroup Question
PHP Code:
Also, once the form is completed, I'd like to add a line at the end of the form to add them to a different "Additional Usergroup". Any help would be appreciated and I'll gladly send you $10 via paypal if you coding makes this work. Thanks, Nick |
Quote:
PHP Code:
|
Abe1,
You are good. That definitely did the trick. :) Just PM me with an email to send the Paypal donation. I did have a 2nd request in that message though, I'm guessing you missed it. Quote:
I'll put ADD_MEMBERGROUPIDS_HERE; for where I'd like to add it in my code. PHP Code:
Thanks again for your help! |
Quote:
I must have missed the 2nd part. It would take a while ot make the other thing. |
Any info on the drop-down ? This has been asked in this thread so many times (not just by me) but no answers. As I said in my post above, it works fine for posting to a single pre-defined forumid.
Would I just be best just hard-coding the template with the drop-choices and then passing the forum ID back instead of the choices ? I'm at a loss of the best way to go about this. thx. |
Abe1,
Just curious, for adding to a Membergroupids, could we just reuse the code you gave me for checking to see if someone is in a Membergroup and then instead of "print_no_permission();" -- you could instead say add that membergroupid to this user? Something like this (12 being the secondary member group I want to add the user to if they answer correctly): PHP Code:
The other thing I tried was something Amy had posted for adding to a secondary group. Sadly it gave a Fatal error: Call to a member function on a non-object in ..../newthread.php(68) : eval()'d code on line 403. I know I missed setting a variable, but just not sure what one and what to set there. PHP Code:
|
Hi, great hack, have it installed and its working except for Unregistered users. I have tested it with other usegroups and it works fine but guests form inputs simply arent processed. The thread is created but the thread does not have any content. I have set all the permissions for guests to allow them to post in the thread where the form should submit the output of the form but it just creates a thread with nothing in them except "Unregistered". Any ideas? I have set the permissions correctly, I am pretty sure. Any chance of some assistance please :)
If you look at the attachment, you will see how it looks like, all screwed up :( Thank you. |
Quote:
|
Just got this hack installed and configured for one form how I wanted it. Nice work Abe1, just what I needed!
|
I haven't heard back from Abe yet, so I'll make another offer here. I'll give a $10 donation to someone if they come up with some workable coding to add a user to a membergroup within this form. Please see my request in a previous post. I'll post in another forum for help on this if I don't see an answer here within a few days.
Post here or send me a PM if you have additional questions. Thank you! |
I have a quick question regarding the answers template.
When using vB code for formatting in the answers template you have to have spaces i.e. Code:
[b] $answer1 [/b ] Code:
[item] $normalanswer1 [/item ] |
Quote:
|
Quote:
It would be too much for me if I helped everyone make a custom form. |
ahh i undertand, thx.
|
Hi there, can the thread title have pre-defined text with variables from the form inserted to make a title that is a combination of both.
eg: I am "$formanswername" living in "$formanswerlocation" looking for "$formanswerrequest" etc. many thanks for what looks like a great hack. |
Quote:
Code:
The following error occurred when attempting to evaluate this template: |
Thanks for the great plug in!
Unfortunately, I am getting the following error: Parse error: parse error, unexpected ')' in /home/content/d/d/r/ddrcn/html/forums/newthread.php(68) : eval()'d code on line 750 I know it's just that I have an extra ")" somewhere, but I cant find where. There are only 414 lines in my newthread.php. Any suggestions would be great! |
The error says newthread.php, but that isn't where your problem is located. Look through your form, most likely on line 750.
|
Thank you Sarcoth, but my form only has 454 lines. I'm not familular with the hooks feature and how it functions, but is it possible that the two are somehow being added to eachother. If this is the case, where would I cut and paste the hook into the newthread.php to find the correct line 750?
Again, I appreciate any help! |
Quote:
|
Thanks Abe1. This hack is just what my forum needed! Thanks for writing it and for helping me to get it working!
|
Hey, this hack work with vB 3.6 ?
|
Quote:
|
I am getting this error:
Quote:
Any idea on how to fix? |
SUPERB! EXCELLENT! GREAT WORK!
I am using this for an application for my gaming clan and it's perfect! Highly customisable which is great! This has many, many uses! Quizzes, tests, applications and so much more. I will give you the link to my clan soon so you can see in action. THANK YOU! |
Quote:
i too would like to be able to put users in another user group once they hit submit....either as primary or a secondary group. Is this possible? great hack btw, we are using this for new recruits to the gaming clan...we've needed this for a year now!! Great stuff! |
Hi I have 2 forms on my site. I thought I had changed the hook name properly to allow both forms to work but something isnt working right. Can someone please explain to me exactly what I change and where I change it to ensure both forms work, Thanks so much :)
|
Quote:
If you changed other data within the form though, like the number and type of questions, you have to add or remove various data from your form plugin, the form template and the formanswers template. If you change one of these, there is a good chance you'll have to update all three. Personally, I made a copy of each and then editted them out till I got it the way I liked. |
Hi Abe.
I know. Here's another one asking for the attachment. I sure would help a lot if it would be able to attach files. I will use the form in a support function and if the user won't be able to send pictures of their problems.. then it would be a whole support function. Is it planned? Possible at all. Thank you for a extremly good job!! |
Quote:
|
Question, i have it setup to make a new thread everytime. Well if what they put into the longbox is too long it wont post the new thread. Anyway to split up the thread into multiple posts inside the thread if its too long or at least notify the user that it was too long?
Also i notice a lot people ask about how to get usernames emails etc... Maybe it should be added in an example somewhere. $bbuserinfo = $vbulletin->userinfo; then use $bbuserinfo[choose an one of the user infos below] Example $bbuserinfo[userid] or $bbuserinfo[username] etc... userid usergroupid membergroupids displaygroupid username password passworddate styleid parentemail homepage icq aim yahoo msn skype showvbcode showbirthday usertitle customtitle joindate daysprune lastvisit lastactivity lastpost posts reputation reputationlevelid timezoneoffset pmpopup avatarid avatarrevision profilepicrevision options birthday birthday_search maxposts startofweek ipaddress referrerid languageid emailstamp threadedmode autosubscribe pmtotal pmunread |
Since I use the form as a support form I want to use the same form for several forums (about 30).
As soon as the user select the add thread button in those forum you should get the forum. Sound logical, doesn't it :-) Super hack by the way!! |
just installed this, an i fully cant figure out how to put in more radio buttons for some questions and take out other defualt questions, can you refer me to a post or gimme something to work with? thanks.
|
I'm currently working on a Horde specific WoW application form. Is it alright if I posted it as my own but referenced this thread? I'm putting a lot of work into it and have already spent about 20 hours total on it.
|
Abe, first off... Awesome hack. This has taught me a lot about how vb works and how to customize a lot of different things I had never tried.
On to my problem. As you can see in my previous post, I've been working on a form. So far it's a pretty intensive, well intensive for me, form. I started with getting all the information on the page by copy and pasting code then changing the function name, value and name variables to fit the layout I needed. I then went down to the customize area and put in the questions and answers I wanted. The last part before I want to mess with any of the permissions is the template and Variables. See before I started messing with the variables, only some of my answers would come out. So I looked back and found that I was missing some information there. So I started customizing all the variables and am afraid I mesed up royaly because now... no answers show in the PM/E-mail/Thread creation. Please tell me what the heck I did wrong... I don't get it. I mimicked what you did :(. Here's the template code: Code:
<template name="formanswers" templatetype="template" date="1149082732" username="ProperMethodz" version="3.5.4"><![CDATA[$formtitle Code:
// Part 1 |
Just wondering if anyone can help me add a drop down box for the user to select which thread he wants the form to be submited to.
I really like this hack, and I can pay someone for the added support if needs be. |
Hello Everyone,
I got to start out by thanking the developer of this form, as it seems to has lots of potential. However, I am having a little problem with it's spacing and I am hoping that someone could help me out here. I just installed it on vbulletin 3.5.4 and I am getting a extra space at the top of it. The extra space is below the navbar before the form (Please see attachment). It looks like a <br> of some type needs to be removed, but I can't seem to find the code that will take out this extra space. Any help would be appreciated. Thank You, Nuguru :) |
is that hack works on vBulletin 3.6.0?
|
Nuguru, you need to go in and change to Template under 'Style'. The template is called "Form".
|
All times are GMT. The time now is 07:05 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:
|