![]() |
I want to make a look up tool for part#'s using a website
I created a form asking for the part# the I used the url to redirect user and added to link the {qo_part} after the slash..but it doesnt work The url doesnt come out right...it says the {qo_part} Is what I am doing possible? |
I don't think the URL redirect keeps any values intact.
|
Quote:
Quote:
Code:
[25-Feb-2011 15:22:31] PHP Parse error: syntax error, unexpected T_STRING in /home/######/public_html/forum/misc.php(89) : eval()'d code(1071) : eval()'d code on line 1 |
Got it fixed removing the stuff the in the form hooks!
|
This is an amazing mod. Simple to use.
I had an immediate need for this on my forum last weekend and the form (a help form for a school district) and the response has been very positive and teachers are getting the help they need. Thank you! |
Updated and thank you for this mod, I love this thing for our UFC Prediction contests, it's ohhh about 10000x better than trying to make it work with a poll.
|
I was wondering if it possible to allow unregistered users to view the form, but for them to submit it they need to register to the site
|
Quote:
PHP Code:
|
Quote:
If you want to change where the $_POST data gets sent, you can specify the <form> action value. Edit Form -> Form Hook: Form Start: PHP Code:
|
1 Attachment(s)
Quote:
Import attached product file and then it should work. |
Quote:
|
Quote:
|
BA - Please clear your inbox, and would it be alright to PM you, please?
Thanks. |
Hi there - still keen to find a way to use the same form but called from multiple forums and posting back in to there. I have maybe 40 geographic forums that i am keen to use the same form in.
Thank you. |
Quote:
|
Quote:
|
Quote:
|
Having read through all 76 pages, I'm hoping someone can help.
I've installed on a test server and everything looks fine except the link to http://url/misc.php?do=forms simply shows the smilie page from FAQ. The forum isn't installed in a subdirectory (it's at the html root) and a quick look through the misc.php doesn't show any code related to do forms. I noted in the 3.6/3.8 threads that a couple of people had this issue but couldn't see a fix. It's odd when the show smilies code in misc.php is a do?=smilies and calls smiliebits Cheers Russ |
Quote:
|
Okay, I installed this mod and have a working form that posts a thread in my Book Review sub-forum. Is there a way to have the form its self displayed at the top of that forum, instead of in a link buried in the man nav menu?
|
I found how to add the form to a Sticky thread in the Book Review Form, so that could work for me if there is not a way to have it displayed at the top of the forum.
However, testing the form inside the Sticky thread has lead to some issues. 1. The form is displayed inside of a scrolling box in the post. Is there a way to get it to just show the entire form in the post? 2. I also tried to get the form to redirect the submitter to the Book Review forum. The problem is that it loads that new page inside the same scrolling box that form is in on the post in the Sticky thread. Anyway around that? Thanks for the great mod and all the help you have been giving us! |
Quote:
HTML Code:
<vb:if condition="$foruminfo['forumid']==2"> HTML Code:
<div id="above_threadlist" class="above_threadlist"> |
Thanks Dom, that worked to display the form in the forum. Is there a way to make it so that the form is shown again after they submit it? Right now if I have it set for them to see the Thank You message, it display that new page inside the box the form was in. If I set it to redirect to the forum, it also does that inside the box the form was in.
Thanks again! |
Quote:
HTML Code:
http://www.yoursite.com/forums/misc.php?do=form&fid=1&embed=1 |
Quote:
There are no errors on the page and none in the error log either but a bit of digging through my upgrade notes shows that we commented out a line in global.php because with it in vbportal refused to run. the line was: Code:
// ($hook = vBulletinHook::fetch_hook('global_start')) ? eval($hook) : false; Cheers Russ by way of PS: After disabling the 3 hacks that used the hook and uncommenting the line, vbportal is the only thing that works - everything else just returns a blank page. There is an error in the error log (at least): Code:
PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required './../global.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/global.php(350) : eval()'d code on line 49 |
Ok - after some snooping I found that the vbportal hook was the root cause of the evil as it was redirecting global.php to the wrong location.
I removed the hook and reinstalled Easy Forms but with the same result. A look in the db shows no hooks relating to Easy Forms - I presume from a look at the xml file there should be? Cheers Russ PS: I edited the xml and uploaded the hooks fine - still a couple of permission based errors but I'm getting there. |
That worked a treat Dom, thanks again.
|
Hi thanks for this -
1. Previously I have used a plugin as follows: if (in_array($forumid, array(53,9999))) { header( 'Location:/listings/misc.php?do=form&fid=8' ) ; } This linked a particular form to a particular forum and was called from newthread_form_start- presume I should be listing all of the forumids in this plugin that I want the form launched from? 2. Also, in the view form after applying the mods below against the question I just get a list of forums and can't select one? Kind of related to this, can I control what forums can be selected from (want the same as the forums that they form can be launched from in 1 above) and give them different names i.e. not show PW_Dunedin but Dunedin? Also the threadid picker which was previously using a custom question (thanks to you previously) seems to have stopped working - can't see the pick list any more for this. Other info - in the default for the formbody I had set the threadid to 'none' as the custom question then sorted that, but for the post thread I have to specify a forum - not sure if that is the issue? Thanks. Quote:
|
Quote:
PHP Code:
PHP Code for the custom question, should be: (This includes the limit to show only forums: 53,9999,34,55,66) PHP Code:
|
OK - thanks - progress here. :)
1. I have changed the plugin to launch the form from forums 53 & 65. Thanks. 2. The PHP code now shows the full forum list in the form if I don't filter - but doesn't show anything in the drop down if I restrict this. For example only including 53,65 in the array? 3. The thread prefix which is also working off a drop down doesn't show anything in the list either until I submit, then it says its missing, and then the drop down is populated. I can then select and submit - as long as the filter isn't on as per 2. The form hook before submit presently shows: $form['prefixid'] = $qo['prefix']; $forumid = $form['forumid'] = $qo['forumid']; The first row I already had for the prefix, and then added the second row now. Maybe they should be reversed? btw the PHP in the custom question for the prefix is: require_once(DIR . '/includes/functions_prefix.php'); $thisanswer = $q[$formbit[id]]; $prefix_options = fetch_prefix_html($form['forumid'], $thisanswer, true); $answer = '<select name="' . $formbit[id] . '" id="q_' . $formbit[id] . '" class="bginput">'; $answer .= '<option value="">'.$vbphrase[no_prefix_meta].'</option>'; $answer .= $prefix_options; $answer .= '</select>'; Finally, my initial test posted the thread in to the forum I launched the form (and is the default forum in the form body) from even though I selected another forum from the drop down list. I may have to do more testing re this point once a couple more of the other things are clarified. Many thanks for your help. Quote:
|
The BBCode format of forms with section headers is a little mucked up.
Sample: Quote:
There is no break between section and the question immediately following the section. I've bolded the questions above in the example. |
Curious, is there any possibility we could see the mod functional with the new official vB Mobile style?
|
Quote:
|
1 Attachment(s)
Quote:
https://vborg.vbsupport.ru/attachmen...1&d=1299687672 |
Sweet, that did the trick. Thanks bananalive you are 10 times over The Man™
|
Quote:
And then change the php of the plugin to: PHP Code:
PHP Code:
|
Thank you - this is all good. Nearly there.
My one remaining issue is to do with the drop down list of the forums in the custom question (now #1 with prefix #2 question and yes I do have a default forum to get the prefixes from) and filtering using an array. I am using: $answer = "<select name=\"$formbit[id]\" id=\"q_" . $formbit[id] . "\">"; foreach ($vbulletin->forumcache AS $forumid => $forum) { if (!in_array($qo['forumid'], array(53,9999,34,55,65))) { continue; } if ($qo['forumid']==$forumid) { $forum['selected'] = ' selected="selected"'; } $answer .= "<option value=\"$forumid\"$forum[selected]>$forum[title]</option>"; } $answer .= "</select>"; However I still don't get any values displayed - the drop down list is empty - would you mind please checking the syntax for this? (I am launching the form from forum 53 by the way) Finally - one unrelated question - is it possible to display the prefix in the custom form output - I don't see a variable name for it and wondered. Many thanks for your help. Quote:
|
Great addition to the forum .. thanks.
Question which I hope someone can with :- Creating a form as a Vendors agreement. 1/ Your Company Name .. Single line text field 2/ Vendors Agreement .. Custom 3/ Comments .. Multi-line text field 4/ Agree to agreement .. yes/no question When form is submitted, everything but the agreement is submitted but the only place I could place the agreement is in the 'custom' description box. I need that agreement submitted with the form !? Thanks |
1 Attachment(s)
I have several categories with several forms in each category.
I would like to have them display across the screen in columns instead of full screen width for each one. Can someone point me in the right direction? See attached for what I have right now. Thank you |
Quote:
|
All times are GMT. The time now is 04:28 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:
|