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)

Digital Jedi 11-27-2008 03:44 AM

Quote:

Originally Posted by davida500 (Post 1673427)
You have to be logged in to fill in a form, if you are not then this error is received:


PHP Code:

Fatal errorExisting data passed is not an array
Called set_existing in [path]/newthread.php(74) : eval()'d code on line 350
Called eval in [path]/newthread.php on line 74
in [path]/includes/class_dm.php on line 235 

Anyway is there a way to make it so this error disappears if you are not logged in?

Thanks.

David.

Do you have the form enabled for guests in the plugin variable settings?

davida500 11-28-2008 11:11 PM

I didnt that was the problem, thank you :D

David.

Deepdog009 12-01-2008 03:43 AM

Quote:

Originally Posted by asandhanam (Post 1666460)
Thanks for the mod. I installed it several months back and running fine. But i need to be able to use a captcha image verification with this to stop spam (been receiving a lot of spam these days). Which one would you recommend? I'm sorry if this has been answered earlier. There are lot of comments and doesn't look like i can go through all of them:)

**********************************************
asandhanam,,, I just updated one of my older mods with better integration with Form Hack...

It should slow your spammers down to a drip-drop-drip
...;)

Give it a Go...>>> Image Match <<<

Welshy2008 12-02-2008 03:02 PM

Good Evening.

Is it possible for this to be modified so that it can be pre-question by me as Admin, so that my Registered Users can fill out their details and they would show in a "POST" as apposed to a "Thread".

It would be great if it could be run from ACP By ADMIN and also reset the questions or pre-filled out fields by Admin too.

The reason I ask Is that I want to start a thread up dedication to my forum members to advertise their businesses for FREE.

Basic things like: Business Name: Business Address: Business E-mail: Areas Covoered: Exclusions: Registered Scheme Provider: etc.

Deepdog009 12-02-2008 10:51 PM

Quote:

Originally Posted by Welshy2008 (Post 1677094)
Good Evening.

Is it possible for this to be modified so that it can be pre-question by me as Admin, so that my Registered Users can fill out their details and they would show in a "POST" as apposed to a "Thread".


It would be great if it could be run from ACP By ADMIN and also reset the questions or pre-filled out fields by Admin too.

The reason I ask Is that I want to start a thread up dedication to my forum members to advertise their businesses for FREE.

Basic things like: Business Name: Business Address: Business E-mail: Areas Covoered: Exclusions: Registered Scheme Provider: etc.

**************************************************

Welshy2008,,,
ABE1 posted about an updated version of the Form Hack that uses Admin options...

PM ABE1 for more info...

davida500 12-04-2008 06:06 AM

I have been using this for a long time now, i must say it is a great mod, keep up the awesome work Abe1

designerweb 12-07-2008 01:13 PM

Will this work with 3.8?

meissenation 12-09-2008 11:46 AM

Does anyone know how to make it so that if you have it set up to reply to a thread that you can set who it is that is making the post? We have the form being submitted to a hidden forum that only Administrators have access to. While posting a reply does infact work (their replies show up as moderated/unapproved) - they can not use the attachment feature since they do not have access to that forum. I was hoping if I change it to be a specific username that has access to the administrator forum that it would then allow attachments?

Digital Jedi 12-09-2008 12:08 PM

Quote:

Originally Posted by meissenation (Post 1681585)
Does anyone know how to make it so that if you have it set up to reply to a thread that you can set who it is that is making the post? We have the form being submitted to a hidden forum that only Administrators have access to. While posting a reply does infact work (their replies show up as moderated/unapproved) - they can not use the attachment feature since they do not have access to that forum. I was hoping if I change it to be a specific username that has access to the administrator forum that it would then allow attachments?

Try customizing the forum permissions for that particular Usergroup for that particular forum. You can grant them permission to upload attachments for that area by itself as well give them the ability to post threads. I have it set up to where they can only view the thread they've posted and nothing else.

meissenation 12-09-2008 12:36 PM

D'oh - thank you sir! I left everything for Registered Users set to No under the Forum Permissions but changed the Upload Attachments to Yes and now it appears :)

Edit: Well - one step forward, but not quite there. If I make it so they can upload attachments it gives them the button for the attachments but it does not allow them to actually attach to the form. I have to make it so it goes to a forum that's off limits to Registered Users due to personal information being posted in the form (Address, phone #, email, etc) but really want them to be able to attach.

Grimbone 12-10-2008 04:59 AM

I cannot find my templates to edit anywhere at all. When i goto Style Manager -> Edit Templates nothing is listed at all under custom templates. Clearly the templates have to be somewhere because my test page is showing the form I have been working on in the Plugin PHP Code section.

http://www.legacyofthehorde.com/foru...hp?do=wow_form

The Plugin Code shows...

PHP Code:

// Name of the main template
$maintemplate "form";
// Name of the answer template
$answertemplate "formanswers"

but I cannot find the templates.

Any ideas?

WNxWakko 12-10-2008 10:10 AM

Since my upgrade to 3.7, i get an error when viewing a form that is intended for those not logged in. The error only displays if you are not logged in and yes I have the guest variable enabled.

Quote:

Fatal error: Call to undefined function fetch_registration_string() in /warriornation.net/httpdocs/Forum/newthread.php(74) : eval()'d code on line 4253
EDIT, took out all the image verification and the error is gone. However submitting forms as unregistered isnt working anymore. I get the confirmation message as if its worked, however the thread never shows up in the forum specified. Yes i have unregistered usergroup post ability enabled in it.

meissenation 12-10-2008 01:10 PM

Quote:

Originally Posted by Grimbone (Post 1682114)
I cannot find my templates to edit anywhere at all. When i goto Style Manager -> Edit Templates nothing is listed at all under custom templates. Clearly the templates have to be somewhere because my test page is showing the form I have been working on in the Plugin PHP Code section.

http://www.legacyofthehorde.com/foru...hp?do=wow_form

The Plugin Code shows...

PHP Code:

// Name of the main template
$maintemplate "form";
// Name of the answer template
$answertemplate "formanswers"

but I cannot find the templates.

Any ideas?

It's not listed under custom templates but it will be listed in the list of templates alphabetically. Scroll down to the "F" templates and you'll see it.

Digital Jedi 12-10-2008 07:54 PM

Quote:

Originally Posted by meissenation (Post 1681621)
D'oh - thank you sir! I left everything for Registered Users set to No under the Forum Permissions but changed the Upload Attachments to Yes and now it appears :)

Edit: Well - one step forward, but not quite there. If I make it so they can upload attachments it gives them the button for the attachments but it does not allow them to actually attach to the form. I have to make it so it goes to a forum that's off limits to Registered Users due to personal information being posted in the form (Address, phone #, email, etc) but really want them to be able to attach.

When you say it doesn't allow them, what does it do exactly? Does no upload form show up, or does it restrict the posting of the message upon submit? Check your Message Attachment Options as well under vBulletin Options.


Quote:

Originally Posted by Grimbone (Post 1682114)
I cannot find my templates to edit anywhere at all. When i goto Style Manager -> Edit Templates nothing is listed at all under custom templates. Clearly the templates have to be somewhere because my test page is showing the form I have been working on in the Plugin PHP Code section.

http://www.legacyofthehorde.com/foru...hp?do=wow_form

The Plugin Code shows...

PHP Code:

// Name of the main template
$maintemplate "form";
// Name of the answer template
$answertemplate "formanswers"

but I cannot find the templates.

Any ideas?

The Custom Templates list is for templates YOU create. Modifications generally put their templates, as meissenation mentioned, alphabetically in the main template listing.


Quote:

Originally Posted by WNxWakko (Post 1682279)
Since my upgrade to 3.7, i get an error when viewing a form that is intended for those not logged in. The error only displays if you are not logged in and yes I have the guest variable enabled.



EDIT, took out all the image verification and the error is gone. However submitting forms as unregistered isnt working anymore. I get the confirmation message as if its worked, however the thread never shows up in the forum specified. Yes i have unregistered usergroup post ability enabled in it.

Only other thing I can think of is to check to the forum ID variable in the plugin, as well as ENABLE FORM TO BE POSTED setting.

Grimbone 12-10-2008 08:50 PM

Thanks for point me in the right direction!

Great mod!

rhamer 12-10-2008 11:08 PM

Without sounding stupid, is there a complete idiots guide to getting this working?

I am a new forum admin, but I am a programmer (not PHP) and I am struggling to understand how this all hangs together and how to make it work.

I imported the XML file with the product manager.
I then found the plugin and edited that, although I didnt make any changes.
I figured that the PHP code was what generated the form, so I left that alone for the minute to just get something to work.

However I don't know how to get this to trigger from a forum i.e when I press the new thread button, I don't get the form.

I assume you enable it somehow for each forum.

I also don't understand the relationship between the product and the plugin. Do you use the priduct to create multiple plugins as needed? How are they named and how does the name relate to which form you want displayed in each forum?

I tried reading this entire thread, but 90 pages is beyond me making sense of it.

Any help and guidence would be most appreciated.

Cheers

Rohan

Digital Jedi 12-11-2008 04:46 AM

Quote:

Originally Posted by rhamer (Post 1682787)
Without sounding stupid, is there a complete idiots guide to getting this working?

I am a new forum admin, but I am a programmer (not PHP) and I am struggling to understand how this all hangs together and how to make it work.

I imported the XML file with the product manager.
I then found the plugin and edited that, although I didnt make any changes.
I figured that the PHP code was what generated the form, so I left that alone for the minute to just get something to work.

However I don't know how to get this to trigger from a forum i.e when I press the new thread button, I don't get the form.

I assume you enable it somehow for each forum.

I also don't understand the relationship between the product and the plugin. Do you use the priduct to create multiple plugins as needed? How are they named and how does the name relate to which form you want displayed in each forum?

I tried reading this entire thread, but 90 pages is beyond me making sense of it.

Any help and guidence would be most appreciated.

Cheers

Rohan

Most of this is explained in the supplied documentation, but basically, you only need to edit the plugin and the two templates. The $variables are defined in the plugin. If you tell the plugin that $firstname is equal to "First Name", then every instance of $firstname in the template will convert to First Name.

You don't necessarily have to do that for all text, as is shown in the example plugin, but you do need to do it for the form areas. Open the plugin again and go through the area again line by line. There's instructions all through the plugin on what does what and what needs to be configured. In fact, most, if not all of the documentation was worked into the plugin's comments.

rhamer 12-11-2008 07:15 AM

Thanks Jedi, I have now got it working.

The biggest problem I had was understanding how it worked, I didn't realise that this was a page that you linked to, that in turn took the results and posted them. I was thinking the form would appear when I clicked the "New Thread" button on a nominated forum.

I do however have a couple of questions.

How do I stop guests from using the form? i.e make the submit not work if your not logged on and
Can the formanswer template have HTML tags in it like <b></b>? I tried adding them but it just showed the tags in the result.

Cheers

Rohan

Digital Jedi 12-11-2008 11:20 AM

Quote:

Originally Posted by rhamer (Post 1682951)
Thanks Jedi, I have now got it working.

The biggest problem I had was understanding how it worked, I didn't realise that this was a page that you linked to, that in turn took the results and posted them. I was thinking the form would appear when I clicked the "New Thread" button on a nominated forum.

I do however have a couple of questions.

How do I stop guests from using the form? i.e make the submit not work if your not logged on and
Can the formanswer template have HTML tags in it like <b></b>? I tried adding them but it just showed the tags in the result.

Cheers

Rohan

It won't accept HTML, I presume, for security reasons. But you can use BBCode, as long as you keep the variables a space away for the code. At least, my experience has been that it doesn't like it if you do this: [b]$variable[/b] It only likes this:[b] $variable [/b]

Guests permissions is a variable in the plugin.

etzero 12-11-2008 06:45 PM

DJ, This is a question in referance to post #1313 where a someone asked:

Quote:

I use the forms for an application process and it is submitted into an area that only certain people have access to. The applicants cannot read the area it is submitted to but I found out that they can subscribe to the thread and be sent the replies. How can I deny anyone from subscribing in that section?
Which I think I may have found a solution to. If you could please verify or deny this I would appreciate it.

The default code looks like this:

Code:

if ($vbulletin->userinfo['autosubscribe'] != -1)
                        {
                                $newpost['emailupdate'] = $vbulletin->userinfo['autosubscribe'];
                        }
                        else
                        {
                                $newpost['emailupdate'] = 9999;
                        }

My thought is that it if changed to this it should always delete the users subscrition regardless if he was set up though the user CP.

Code:

$newpost['emailupdate'] = 9999;

By looking at functions_newpost.php, '9999' apears to be the correct value to delete any subscritions for that thread?

Code:

// ### DO THREAD SUBSCRIPTION ###
        if ($vbulletin->userinfo['userid'] != 0)
        {
                require_once(DIR . '/includes/functions_misc.php');
                $post['emailupdate'] = verify_subscription_choice($post['emailupdate'], $vbulletin->userinfo, 9999);

                ($hook = vBulletinHook::fetch_hook('newpost_subscribe')) ? eval($hook) : false;

                if (!$threadinfo['issubscribed'] AND $post['emailupdate'] != 9999)
                { // user is not subscribed to this thread so insert it
                        /*insert query*/
                        $vbulletin->db->query_write("INSERT IGNORE INTO " . TABLE_PREFIX . "subscribethread (userid, threadid, emailupdate, folderid, canview)
                                        VALUES (" . $vbulletin->userinfo['userid'] . ", $threadinfo[threadid], $post[emailupdate], $post[folderid], 1)");
                }
                else
                { // User is subscribed, see if they changed the settings for this thread
                        if ($post['emailupdate'] == 9999)
                        {        // Remove this subscription, user chose 'No Subscription'

                                $vbulletin->db->query_write("DELETE FROM " . TABLE_PREFIX . "subscribethread WHERE threadid = $threadinfo[threadid] AND userid = " . $vbulletin->userinfo['userid']);
                        }
                        else if ($threadinfo['emailupdate'] != $post['emailupdate'] OR $threadinfo['folderid'] != $post['folderid'])
                        {
                                // User changed the settings so update the current record
                                /*insert query*/
                                $vbulletin->db->query_write("REPLACE INTO " . TABLE_PREFIX . "subscribethread (userid, threadid, emailupdate, folderid, canview)
                                        VALUES (" . $vbulletin->userinfo['userid'] . ", $threadinfo[threadid], $post[emailupdate], $post[folderid], 1)");
                        }
                }
        }

It seems counter intuitive as I would have guessed a value of ‘0’ would remove subscriptions.

8dayssooner 12-12-2008 10:11 PM

I've just edited my form, and now i get the error message
Quote:

Parse error: syntax error, unexpected T_STRING in /mnt/web2/33/89/51544289/htdocs/forums/newthread.php(71) : eval()'d code on line 888
Line 71 of newthread.php refers to
Quote:

($hook = vBulletinHook::fetch_hook('newthread_start')) ? eval($hook) : false;
and the error message dissapears when i disable form hack... is there anyone who could support me with this on 3.6?

Help would be much appreciated as i'm trying to use this as a Nominations form for a board awards!

Many thanks in advance!

Mike

WNxWakko 12-13-2008 01:58 PM

Quote:

Originally Posted by Digital Jedi (Post 1682683)

Only other thing I can think of is to check to the forum ID variable in the plugin, as well as ENABLE FORM TO BE POSTED setting.

None of that has changed. Ive been using these forms for 2 years and they have always worked. They do work if your logged into an account, the issue is if you are unregistered, the form never creates the thread even though you get the confirmation message. The forum ID is correct because it works right if im logged in.

The only change ive made after the upgrade to 3.7.x is adding the security input code bit. Outside of that, nothing has changed. I suspect something is different for unregistered users from 3.6 to 3.7

xTerMn8R 12-14-2008 12:17 AM

Anyone get tables to work in the answer Template?

I can get my Bold to show in the PM's using the bbcode [B]space{varible}space[B/]

But when I export them or look at the e-mails each line has the BBcode tags and that looks like crap. Am I doing something wrong here. Also does anyone know of a hack to allow you to print PM's

Thanks,
Tom

2dub 12-15-2008 06:47 PM

I just got this to work after many hours of trying to get it to work. I wish it were editable in vB options.

It is a great hack once you figure it out.

Digital Jedi 12-16-2008 02:59 AM

Quote:

Originally Posted by etzero (Post 1683326)
DJ, This is a question in referance to post #1313 where a someone asked:



Which I think I may have found a solution to. If you could please verify or deny this I would appreciate it.

The default code looks like this:

Code:

if ($vbulletin->userinfo['autosubscribe'] != -1)
            {
                $newpost['emailupdate'] = $vbulletin->userinfo['autosubscribe'];
            }
            else
            {
                $newpost['emailupdate'] = 9999;
            }

My thought is that it if changed to this it should always delete the users subscrition regardless if he was set up though the user CP.

Code:

$newpost['emailupdate'] = 9999;

By looking at functions_newpost.php, '9999' apears to be the correct value to delete any subscritions for that thread?

Code:

// ### DO THREAD SUBSCRIPTION ###
    if ($vbulletin->userinfo['userid'] != 0)
    {
        require_once(DIR . '/includes/functions_misc.php');
        $post['emailupdate'] = verify_subscription_choice($post['emailupdate'], $vbulletin->userinfo, 9999);
 
        ($hook = vBulletinHook::fetch_hook('newpost_subscribe')) ? eval($hook) : false;
 
        if (!$threadinfo['issubscribed'] AND $post['emailupdate'] != 9999)
        { // user is not subscribed to this thread so insert it
            /*insert query*/
            $vbulletin->db->query_write("INSERT IGNORE INTO " . TABLE_PREFIX . "subscribethread (userid, threadid, emailupdate, folderid, canview)
                    VALUES (" . $vbulletin->userinfo['userid'] . ", $threadinfo[threadid], $post[emailupdate], $post[folderid], 1)");
        }
        else
        { // User is subscribed, see if they changed the settings for this thread
            if ($post['emailupdate'] == 9999)
            {    // Remove this subscription, user chose 'No Subscription'
                $vbulletin->db->query_write("DELETE FROM " . TABLE_PREFIX . "subscribethread WHERE threadid = $threadinfo[threadid] AND userid = " . $vbulletin->userinfo['userid']);
            }
            else if ($threadinfo['emailupdate'] != $post['emailupdate'] OR $threadinfo['folderid'] != $post['folderid'])
            {
                // User changed the settings so update the current record
                /*insert query*/
                $vbulletin->db->query_write("REPLACE INTO " . TABLE_PREFIX . "subscribethread (userid, threadid, emailupdate, folderid, canview)
                    VALUES (" . $vbulletin->userinfo['userid'] . ", $threadinfo[threadid], $post[emailupdate], $post[folderid], 1)");
            }
        }
    }

It seems counter intuitive as I would have guessed a value of ?0? would remove subscriptions.

That's probably just a little beyond my current level of understanding right now. But my gut is telling me that your on the right track. Is this not going to try to remove the subscription before the user is actually subscribed?

j_86 12-16-2008 02:41 PM

I attach a slightly cleaner, indented copy of the standard form template (with the 3.6 security token fix applied (Form Hack 4.1)).

I find it easier to use with clear indentation.

Digital Jedi 12-20-2008 04:32 AM

Looks like I'm running into the Invalid Forum specified message myself now. The URL doesn't append with a thread ID. I see for most people it "fixed itself" when that happened. Any one ever figure out how that actually happened? I just copy and pasted a working Form Hack plugin from my demo board and it's working fine there. Just doesn't seem to work on a new install.

bluesoul 12-29-2008 02:38 AM

Sorry, I couldn't find a good search string, but how does one update the script to work with 3.7.4?

wacodep 01-02-2009 12:49 PM

Searched through the thread, but to no avail.

The Form Hack is working fine, the message is being posted to the hidden forum correctly, yada blah etc.

The problem is with manage attachments. While it DOES show the link on the form to "Attach Files", when you click the button labeled "Manage Attachments", the new window pops up, but then the users get the "No Permissions" message. I can see it fine as admin.

The hack results ARE being posted to a "hidden" forum just fine (sans the attachment, obviously).

Permissions for the usergroups (for the user attempting to add attachments) ARE set to allow attachments and allow posting to the otherwise hidden forum (but no permission to view).

This worked fine with the previous version of the Form Hack under vB 3.5. I'm now using Form Hack 4.1 under vB 3.7.4.

Any suggestions would be appreciated.

Trek 01-06-2009 03:23 AM

I have this all working pretty good, it looks great and almost does what I want.

It posts to a forum as it should, but:

I want this forum to be locked down from posting new posts any way other than through the Form Hack.

I want those who have created threads using Form Hack to be able to edit and reply to their own posts, but no others.

Everyone should be able to view the posts.

Most of this is doable through the permissions, the problem seems to be making it so people can only post through FormHack to the forum (I don't want a bunch of non-standard templated messages posted there).

I've looked through the threads, but with 90 pages, I didn't see everything. Did a few searches, but couldn't find the answer either.

Thanks for any help!

Kwikms 01-06-2009 05:42 AM

@Trek - https://vborg.vbsupport.ru/showthread.php?t=102923

Works with 3.7.x as well.

Sawa Dee SohL 01-08-2009 05:36 PM

hi, I'm trying to set this Mod up for Reviews and Guides that are submitted to my site...

Is there a way that once they fill out the form, the form is posted - in a different format? For example some fields they fill out, will not show - and some fields they fill out, will show in different spots on the form (after accepted)

Example here

You see 'Title of Review' - is different then the title of post - can the 'Title of review' = thread title?

---

I'm also curious as to how to set this up, so the form itself once accepted - posts onto a Custom page created.

If possible can someone PM, or add me to MSN who's willing to help me... I'd really appreciate it!!

msn: skullz.r.us@hotmail.com

life is boost 01-09-2009 06:19 AM

hey guys,

Has anyone gotten attachments to work with this? we are on 3.7.1 and never see the attachment panel under the message body. we have this form set to post in a forum. we also have the forum set to allow attachments. I even installed an unedited form and still no attachments. any help is greatly appreciated.

Digital Jedi 01-09-2009 04:27 PM

Do you have the attachment option enabled in the plugin? It should be showing up wherever you put the attachment variable in the form template. The default example looks like this:

Code:

<if condition="$attachmentoption">
<tr>
<td class="alt1" colspan="3" align="center">
<div style="width:$stylevar[formwidth]" align="$stylevar[left]">$attachmentoption</div>
</td>
</tr>
</if>


davida500 01-09-2009 08:48 PM

Someone please help me, i already have 3 forms running, and i seem to be getting an error when i enable this new one, i get this error on all my currently active forms too when i active this one form, and they all stop working.

Please help!

David.

Code:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/ibgwssph/public_html/forums/newthread.php(74) : eval()'d code on line 1126

davida500 01-09-2009 08:50 PM

And here is the code


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 = "privateforum";

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

// #######################################################################
// ######################## 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(
'answer1' => TYPE_STR,
'answer2' => TYPE_STR,
'answer3' => TYPE_STR,
'answer4' => TYPE_STR,
'answer5' => TYPE_STR,
'longanswer1' => TYPE_STR
'longanswer2' => TYPE_STR
));

// Part 2
$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'];

////////////////////////////////////////////////////////////////////////////////////////////////////
//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,5,6,7))) 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 = "privateforum";
// Name of the answer template
$answertemplate = "privateforumanswers";

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

////////////////////////////////////////////////////////////////////////////////////////////////////
//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 = "17";

//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 = "0";

$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 = "Private Forum Request";

////////////////////////////////////////////////////////////////////////////////////////////////////
//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 = "$Private Forum Request";

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

$formpurpose = "The purpose of this form is to allow you to submit a form, and this form will be made into a thread in a particular forum, or be PMed to a moderator or be emailed to a moderator.";

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


//QUESTION 1 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text)
$question1 = "What is your name?";
$explain1 = "Please enter your real name here.";

//QUESTION 2 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text)
$question2 = "What is your email?";
$explain2 = "Please enter your real email here.";

//QUESTION 3 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text)
$question3 = "What is your website?";
$explain3 = "Please enter your URL here.";

//QUESTION 4 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text)
$question4 = "What is your website?";
$explain4 = "Please enter your URL here.";

//QUESTION 5 (do not use quotation marks or you will get a parse error, besides the quotes around the whole text)
$question5 = "What is your website?";
$explain5 = "Please enter your URL here.";



$longquestion1 = "Please write down a paragraph about yourself.";
$longexplain1 = "For example, a bit about your experience in this area.";


$longquestion2 = "Please write down a paragraph about yourself.";
$longexplain2 = "For example, a bit about your experience in this area.";



////////////////////////////////////////////////////////////////////////////////////////////////
////// END OF CUSTOMIZATION ////////////////////////////////////////////////////////////////////
/////  DO NOT CHANGE BELOW UNLESS YOU KNOW WHAT YOU ARE DOING!!! ////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////

And just so you know, i havent touched anything below this....

David.

ilanyon 01-13-2009 08:07 AM

PLS DELETE REFERENCE.... I FOUND THE ANSWER IN PREVIOUS POSTS....MY APOLOGIES


Hi all,
I wonder if someone might be able to assist...

Once the form has been completed and the submit button is clicked, the following error message appears:

Quote:

Your submission could not be processed because a security token was missing or mismatched.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.
Any ideas would very much be appreciated!

Regards,

Ian

Bman200 01-15-2009 01:38 AM

Am sorry but am blind, where do I edit the form?

Digital Jedi 01-15-2009 04:18 AM

Quote:

Originally Posted by Bman200 (Post 1712816)
Am sorry but am blind, where do I edit the form?

You edit the plugin. Instructions on what does what are commented into the plugin.

serkangul 01-17-2009 06:42 PM

Hello . I, uniform, joint, box, add, want, . How do I do .


All times are GMT. The time now is 10:33 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.02935 seconds
  • Memory Usage 1,947KB
  • 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
  • (4)bbcode_php_printable
  • (18)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