vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   New Posting Features - Form Hack (https://vborg.vbsupport.ru/showthread.php?t=126676)

fviper 02-13-2007 10:00 PM

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
$formreply = "1";
if ($dropdownanswer1 == 'Mage'){
$formreplythreadid = "43";}
if ($dropdownanswer1 == 'Warlock'){
$formreplythreadid = "34";}
if ($dropdownanswer1 == 'Warrior'){
$formreplythreadid = "41";}
if ($dropdownanswer1 == 'Rogue'){
$formreplythreadid = "42";}
if ($dropdownanswer1 == 'Priest'){
$formreplythreadid = "40";}
if ($dropdownanswer1 == 'Hunter'){
$formreplythreadid = "46";}
if ($dropdownanswer1 == 'Paladin'){
$formreplythreadid = "45";}
if ($dropdownanswer1 == 'Shaman'){
$formreplythreadid = "44";}
//EXISTING THREAD ID FOR FORM TO REPLY IN

Obviously, you would want to replace the numerics I have here with the appropriate threads to your forums. I would "assume" that posting to a forum would follow a similar pattern. As you can see, I use this form for recruiting purposes for World of Warcraft *grin*. The single quotes and the literal term of what the variable should be were the key apparently. Thanks for all the help - I hope it finds you well =)

Kiint 02-15-2007 09:53 AM

Quote:

Originally Posted by Kiint (Post 1181352)
I've been getting the following displayed on any form that has been submitted:

<!-- BEGIN TEMPLATE: applyanswers -->

and at the bottom:

<!-- END TEMPLATE: applyanswers -->

Where can I remove these so they do not show up on any post made by the form? I've been looking through the templates and plugin code but can't find them.

Please help.

Anyone have an answer to this problem?

RedGTiVR6 02-15-2007 12:46 PM

I'm interested in getting rid of those notices as well.

Also, in this part of the mod:

Code:

REDIRECT OPTIONS:
 0 - thank you message (thread, reply, pm, or email)
 1 - redirect to post (thread or reply)
 2 - redirect to thread (thread only)
 3 - redirect to forum (thread only)
 4 - redirect to editpost (thread or reply)

 Feel free to change the thank you message if you choose option 0

$redirectoption = "0";

Is it possible to have it show a note AND have it redirect? Much like the normal functionality of vBulletin, how after you post, it tells you thanks, then redirects you.

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:

Originally Posted by ChrisBaktis (Post 1079747)
I have my form posting as a thread - the members enter $normalanswer1 with the username of someone they trade with...when the form posts I want the title of the thread created to be the username of the person posting the form and $normalanswer1...

on the old version I think I did '$bbuserinfo[username] / $normalanswer1' but when I do that in the $posttitle part now the $bbuserinfo doesnt work...any suggestions?

and the answer:

Quote:

Originally Posted by R.Caldwell (Post 1079773)
this code should work just fine in the hack code itself.
PHP Code:

$posttitle "$bbuserinfo[username]"


Only, in my instance, I used the following:

PHP Code:

$posttitle "$normalanswer2"



So far, this mod has been great!

Krahl 02-15-2007 06:14 PM

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!

thalamus 02-15-2007 07:44 PM

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 :)

jacki 02-15-2007 08:16 PM

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

thalamus 02-16-2007 02:29 AM

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?

RedGTiVR6 02-16-2007 12:00 PM

Quote:

Originally Posted by Kiint (Post 1181352)
I've been getting the following displayed on any form that has been submitted:

<!-- BEGIN TEMPLATE: applyanswers -->

and at the bottom:

<!-- END TEMPLATE: applyanswers -->

Where can I remove these so they do not show up on any post made by the form? I've been looking through the templates and plugin code but can't find them.

Please help.

This is really the only thing holding me back from releasing this on our forums.

Does anyone have any insight?

upnorth 02-16-2007 01:05 PM

Hopping someone can help me with this.
I’ve 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?

blind-eddie 02-16-2007 02:41 PM

Quote:

Originally Posted by upnorth (Post 1183859)
Hopping someone can help me with this.
I’ve 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?


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.

upnorth 02-16-2007 02:50 PM

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?

blind-eddie 02-16-2007 03:38 PM

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.

upnorth 02-16-2007 04:11 PM

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?

thalamus 02-16-2007 04:29 PM

Quote:

Originally Posted by upnorth (Post 1183991)
K so if we go that route how can I have the form force the user to login first.

Not sure about redirecting although I know there's a vB hook somewhere that can do that... what you could do (possibly - not tested it) is, in the form hack plugin right at the top, just after:
Code:

if ($_REQUEST['do'] == $formname)
{

put:
Code:

        if (!$vbulletin->userinfo['userid'])
        {
                print_no_permission();
        }

then if you need a redirector, replace (or add to) the print_no_permission() with the hook.

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();
by removing the comment bars and amending the allowed usergroups (or removing the NOT bang and setting groups who cannot access, if that's easier).

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?

thalamus 02-16-2007 04:43 PM

Quote:

Originally Posted by RedGTiVR6 (Post 1183815)
This is really the only thing holding me back from releasing this on our forums.

Does anyone have any insight?

I would suggest this could only be in the 'form answers' template (as defined by you in the xml by the "$answertemplate" variable) that you would have created in AdminCP -> Style Manager (unless the plugin code has been amended somehow...)

bErKandD 02-16-2007 04:44 PM

woww :D very very good job.
thanx abe1...

RedGTiVR6 02-16-2007 06:50 PM

Quote:

Originally Posted by thalamus (Post 1184015)
I would suggest this could only be in the 'form answers' template (as defined by you in the xml by the "$answertemplate" variable) that you would have created in AdminCP -> Style Manager (unless the plugin code has been amended somehow...)

There's nothing in there related to it, not in the stock template and not in the modified template.

Here's my template:

Code:

$normalquestion1

$normalanswer1


$normalquestion2

$normalanswer2


$radioquestion1

$radioanswer1


$longquestion1

$longanswer1


$longquestion2

$longanswer2

That's it!

Kiint 02-16-2007 08:38 PM

I've searched through the plugin and the templates yet still cannot find out how to remove it either....

Krahl 02-16-2007 10:08 PM

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.

thalamus 02-17-2007 04:37 AM

Quote:

Originally Posted by RedGTiVR6 (Post 1184108)
There's nothing in there related to it, not in the stock template and not in the modified template.

That's it!

It *must* be in the templates; I can't see it being anywhere else. Have you searched through your templates (all styles) in vBulletin adminCP? As mentioned, it may well be in a co-related hack or plugin that's found its way through...

RedGTiVR6 02-17-2007 11:36 AM

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.

thalamus 02-17-2007 01:34 PM

Quote:

Originally Posted by thalamus (Post 1183471)
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.

OK, I finally managed a workaround to this problem (if you can call it that)... basically, I copied the build_new_post function into a separate file (for instance, includes/functions_formhack.php) and renamed the function to build_newform_post. I then commented out the relevant forum permission settings to avoid the post going into the moderation queue, then in the formhack plugin, within the "if ($_REQUEST['action'] == "submit")" braces I included a "require_once" of the functions file. The call to build the new post then went to build_newform_post. Seems to work fine...

Kiint 02-18-2007 12:36 PM

Quote:

Originally Posted by RedGTiVR6 (Post 1184507)
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.

I've found the solution, and if you are anything like me you are going to kick yourself....

Quote:

If you have the option "Add Template Name in HTML Comments" in the General Settings set to YES you get the template info in PM and emails:

<!-- BEGIN TEMPLATE: warn_pm_alert -->
Taken from this post https://vborg.vbsupport.ru/showthrea...TE#post1150078

Right, off to headbutt the wall a few times....

alternity 02-18-2007 03:06 PM

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
And says "Invalid Forum specified. If you followed a valid link, please notify the administrator".

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'.
// After, change the form name. You can't have 2 forms with the same name.

// Name of this form
$formname = "form";

if ($_REQUEST['do'] == $formname)
{

// #######################################################################
// ######################## CUSTOMIZE VARIABLES ##########################
// #######################################################################

////////////////////////////////////////////////////////////////////////////////////////////////////
////// BEGIN CUSTOMIZATION BELOW////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//VARIABLES
//Study how variables are add here to add or remove any. If you add a variable to your form, you must add it to part one and part two.
////////////////////////////////////////////////////////////////////////////////////////////////////

// Part 1
$vbulletin->input->clean_array_gpc('p', array(
'radioanswer1' => TYPE_STR,
'radioanswer2' => TYPE_STR,
'radioanswer3' => TYPE_STR,
'radioanswer4' => TYPE_STR,
'radioanswer5' => TYPE_STR,
'radioanswer6' => TYPE_STR,
'radioanswer7' => TYPE_STR,
'radioanswer8' => TYPE_STR,
'answer1' => TYPE_STR,
'answer2' => TYPE_STR,
'answer3' => TYPE_STR,
'answer4' => TYPE_STR,
'answer5' => TYPE_STR,
'longanswer1' => TYPE_STR,
'longanswer2' => TYPE_STR,
'longanswer3' => TYPE_STR,
'longanswer4' => TYPE_STR,
'longanswer5' => TYPE_STR,
'longanswer6' => TYPE_STR
));

// Part 2
$radioanswer1 = $vbulletin->GPC['radioanswer1'];
$radioanswer2 = $vbulletin->GPC['radioanswer2'];
$radioanswer3 = $vbulletin->GPC['radioanswer3'];
$radioanswer4 = $vbulletin->GPC['radioanswer4'];
$radioanswer5 = $vbulletin->GPC['radioanswer5'];
$radioanswer6 = $vbulletin->GPC['radioanswer6'];
$radioanswer7 = $vbulletin->GPC['radioanswer7'];
$radioanswer8 = $vbulletin->GPC['radioanswer8'];
$answer1 = $vbulletin->GPC['answer1'];
$answer2 = $vbulletin->GPC['answer2'];
$answer3 = $vbulletin->GPC['answer3'];
$answer4 = $vbulletin->GPC['answer4'];
$answer5 = $vbulletin->GPC['answer5'];
$longanswer1 = $vbulletin->GPC['longanswer1'];
$longanswer2 = $vbulletin->GPC['longanswer2'];
$longanswer3 = $vbulletin->GPC['longanswer3'];
$longanswer4 = $vbulletin->GPC['longanswer4'];
$longanswer5 = $vbulletin->GPC['longanswer5'];
$longanswer6 = $vbulletin->GPC['longanswer6'];

////////////////////////////////////////////////////////////////////////////////////////////////////
//USERGROUPS ALLOWED
//You can add or remove usegroups that are ALLOWED to use this form by changing the numbers below in the array.
//To enable this feature, remove the '//' before the 'if'.
////////////////////////////////////////////////////////////////////////////////////////////////////

// if (!in_array($vbulletin->userinfo['usergroupid'], array(2,6))) print_no_permission();

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//NAME OF TEMPLATES - DO THIS BIT IF YOU ARE MAKING MORE FORMS AND WANT TO USE A DIFFERENT LOOKING TEMPLATE
////////////////////////////////////////////////////////////////////////////////////////////////////

// Name of the main template
$maintemplate = "memberappcss";
// Name of the answer template
$answertemplate = "memberappcssanswers";

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//CHOOSE WHETHER YOU WANT FORM TO BE POSTED IN A NEW THREAD, NEW POLL, REPLY TO EXISITING THREAD, PMed OR EMAILED
///////////////////////////////////////////////////////////////////////////////////////////////////

//ENABLE FORM TO BE POSTED - 1 = yes, 0 = no
$formforum = "1";

//FORUM TO POST NEW THREAD IN
//You CAN make this number a variable. You can have a drop down menu or in the link like do=form&f=1. Make sure you add it the variables list.
$formforumid = "24";

//ENABLE POLL TO BE CREATED - 1 = yes, 0 = no
$formpoll = "0";
$polloption[1] = "Yes";
$polloption[2] = "No";
$polloption[3] = "Maybe";
    `                                                                                           
//Make poll public - 1 = yes, 0 = no
$pollpublic = "0";

////////////////////////////////////////////////////////////////////////////////////////////////////

//ENABLE FORM TO REPLY TO EXISTING THREAD - 1 = yes, 0 = no
$formreply = "0";

//EXISTING THREAD ID FOR FORM TO REPLY IN
$formreplythreadid = "12345";

////////////////////////////////////////////////////////////////////////////////////////////////////

//ENABLE FORM TO BE PMED (guests CANNOT use this option) - 1 = yes, 0 = no
$formpm = "0";

//USERNAME TO PM TO (separate multiple usernames with a ';')
$formpmname = "Abe";

////////////////////////////////////////////////////////////////////////////////////////////////////

//ENABLE FORM TO BE EMAILED - 1 = yes, 0 = no
$formemail = "0";

//EMAIL ADDRESS TO EMAIL TO (separate multiple usernames with a ';')
$formemailaddress = "youremail@yourforums.com";

////////////////////////////////////////////////////////////////////////////////////////////////////

//ENABLE ATTACHMENTS - 1 = yes, 0 = no
//attachments can only be used if the form is going to make a new thread or post
$allow_attachments = "0";

////////////////////////////////////////////////////////////////////////////////////////////////////



////////////////////////////////////////////////////////////////////////////////////////////////////
//REDIRECT OPTIONS:
// 0 - thank you message (thread, reply, pm, or email)
// 1 - redirect to post (thread or reply)
// 2 - redirect to thread (thread only)
// 3 - redirect to forum (thread only)
// 4 - redirect to editpost (thread or reply)
//
// Feel free to change the thank you message if you choose option 0
////////////////////////////////////////////////////////////////////////////////////////////////////

$redirectoption = "2";

$errormessage = "Thank you for submitting this form!"; //This is the thank you message

////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////
//FORCE USER TO ANSWER ALL QUESTIONS - 1 = yes, 0 = no
//If you added or deleted variables, you must edit what it checked for. Search for "$answerall ==" and edit 2 lines under it.
////////////////////////////////////////////////////////////////////////////////////////////////////

$answerall = "0";

////////////////////////////////////////////////////////////////////////////////////////////////////
//TITLE OF FORM (do not use quotation marks or you will get a parse error, besides the quotes around the whole title)
////////////////////////////////////////////////////////////////////////////////////////////////////

$formtitle = "Application";

////////////////////////////////////////////////////////////////////////////////////////////////////
//TITLE OF THREAD/POST/PM/EMAIL (do not use quotation marks in the title or you will get a parse error)
//You may use variables from the form for this.
////////////////////////////////////////////////////////////////////////////////////////////////////

$posttitle = "Test";

////////////////////////////////////////////////////////////////////////////////////////////////////
//PURPOSE OF FORM (do not use quotation marks or you will get a parse error, besides the quotes around the whole text)
////////////////////////////////////////////////////////////////////////////////////////////////////

$formpurpose = "If you wish to join The Legion's Counter-Strike Source Division you will need to fill out this application as completely as possible.  Once you have finished this form you will be redirected to the post, where you will need to wait for your sponsor to post his approval, at which point you will be added to The Legion's member list!";

$question1 = "What is your screen name:";
$explain1 = "Please enter your screen name here.";

$question2 = "What is your real name:";
$explain2 = "Please enter your real name here, this is optional and you don't need to answer if you would prefer not to.";

$question3 = "Who was your recruiter/how did you find us:";
$explain3 = "Please enter the name of the person who recruited you here or if you found us someplace else please tell us where.";

$question4 = "What is your age:";
$explain4 = "Please specify your age.  The Legion does not discriminate in any way based on your age and if your uncomforable giving this information than you don't need to.";

$question5 = "What is your xFire screen name:";
$explain5 = "Please tell us your xFire screen name.  If you do not have xFire is is extremely advised that you get it, as The Legion uses xFire for clan communication and to help judge how active members are.";

$longquestion1 = "What clan experiance do you have:";
$longexplain1 = "Please tell us about what clan's you've been in, how long you were a member, what positions you held, etc.  Feel free to be as detailed as you want.";

$longquestion2 = "What gaming experiance do you have:";
$longexplain2 = "Please tell us what games you have played over the years and your experience in them, and also what games you are currently playing.";

$longquestion3 = "What leadership positions have you held:";
$longexplain3 = "Please tell us about any leadership positions you've had and what your responsibilities were.  This can be anywhere, in a clan, at school, in a club, at work, etc.";

$longquestion4 = "Why do you want to join The Legion:";
$longexplain4 = "Please tell us why you wish to join The Legion.";

$radioquestion1 = "What kind of gamer do you consider yourself to be:";

$radiochoice1a = "Occasional gamer, I game a few times each week.";
$radiochoice1b = "Weekend warrior, I'm too busy to play during the week.";
$radiochoice1c = "Fulltime gamer, I play every day as much as possible.";

$radioquestion2 = "What is your internet speed:";

$radiochoice2a = "Dialup";
$radiochoice2b = "DSL/Cable";
$radiochoice2c = "T1/ISDN or Faster";

//////////// Division Specific Questions //////////

$longquestion5 = "What hours are you available for game play:";
$longexplain5 = "Please tell us  during which hours of the week are you usually avaliable for gaming?";

$longquestion6 = "What is your preferred weapons combination:";
$longexplain6 = "Please tell us what weapons you prefer to use when playing Counter-Strike Source.";

$radioquestion3 = "You must have a Microphone. Do you currently have one?:";

$radiochoice3a = "yes";
$radiochoice3b = "no";

$radioquestion4 = "You must have X-Fire. Do you currently have it?:";

$radiochoice4a = "yes";
$radiochoice4b = "no";

$radioquestion5 = "You must have Ventrilo. Do you currently have it?:";

$radiochoice5a = "yes";
$radiochoice5b = "no";

$radioquestion6 = "Do you understand that you will be required to attend practices:";

$radiochoice6a = "yes";
$radiochoice6b = "no";

$radioquestion7 = "Are you aware that we have a Code of Conduct?:";

$radiochoice7a = "yes";
$radiochoice7b = "no";

$radioquestion8 = "Have you read our Code of Conduct and agreed to it?:";

$radiochoice8a = "yes";
$radiochoice8b = "no";

$vbtextquestion = "Is there anything else you'd like to add?:";
$vbtextexplain = "If you have any other information you would like us to know please tell us here.";

////////////////////////////////////////////////////////////////////////////////////////////////
////// END OF CUSTOMIZATION ////////////////////////////////////////////////////////////////////

....


blind-eddie 02-18-2007 05:45 PM

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

Abe1 02-18-2007 07:01 PM

Quote:

Originally Posted by Kiint (Post 1183090)
Anyone have an answer to this problem?

Disable the option in your vb main settings not to show the template name.

mrgrimes 02-19-2007 09:42 AM

Quote:

Originally Posted by |oR|Greg (Post 1075473)
Important FYI - If you have "Guest Post Image Verification" turned on, posting to a thread will not work because the form hack doesn't integrate the Image Verification system.

This is proving a major pain for me. My forms need to be able to post to threads, but with 'Guest Post Image Verification' turned off I get ENORMOUS amounts of spam. Any suggestions as to how I could combat this?

blind-eddie 02-19-2007 01:21 PM

Yes, dont allow guest to post. Set usergroup setting for guest, not to be able to post. Make them register.

Silverstangs 02-19-2007 05:18 PM

Form installed and works fine... I'll be using it for Feedback uses.

RedGTiVR6 02-19-2007 10:54 PM

Quote:

Originally Posted by Kiint (Post 1185240)
I've found the solution...

SWEET! Thanks a million!

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.

mrgrimes 02-20-2007 06:31 AM

Quote:

Originally Posted by blind-eddie (Post 1185987)
Yes, dont allow guest to post. Set usergroup setting for guest, not to be able to post. Make them register.

My guests have to be able to post, unfortunately. I'm looking at the NoSpam! hack, which says it works with the Form Hack but I'm currently experiencing problems with it. I shall persevere though.

blind-eddie 02-20-2007 01:20 PM

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

dutchbb 02-20-2007 01:36 PM

Quote:

Originally Posted by dutchbb (Post 1176954)
The attachments are a great improvement but do you think it's possible to also include the thread rating (stars) in the form?

I'm using it as a 'write a review' form and it would be nice to have the rating included in the database instead of using static content.

???

jacki 02-20-2007 03:56 PM

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

dutchbb 02-21-2007 08:20 PM

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???

RedGTiVR6 02-21-2007 09:50 PM

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?

RedGTiVR6 02-21-2007 10:49 PM

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!

dutchbb 02-22-2007 12:43 PM

hmm ik think this doesn't work with vbseo, i keep getting 'no thread specified' when trying to post a form

optrex 02-22-2007 07:11 PM

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?


:)

The-Ensemble 02-25-2007 01:10 AM

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
  • Page Generation 0.02179 seconds
  • Memory Usage 1,943KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (9)bbcode_code_printable
  • (2)bbcode_php_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete