vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Forms Hack (https://vborg.vbsupport.ru/showthread.php?t=93970)

Mepher 10-10-2005 12:30 PM

PHP Code:

 $foruminfo verify_id('forum'901); 

Im assuming thats what you meant. 9 being the id of the other forum I wanted to post it to.

Quote:

Fatal error: Only variables can be passed by reference in /home/heroesfa/public_html/newthread.php(68) : eval()'d code on line 254
Thats the error im getting.

plubius 10-10-2005 01:24 PM

Could someone post exactly what you need to do to make more than one form? I know you need to copy the hook and change the name of the form in the first line of the code, but what about the line of code that deals with the templates.

Quote:

////////////////////////////////////////////////////////////////////////////////////////////////////
//NAME OF TEMPLATES - DO THIS BIT IF YOU ARE MAKING MORE FORMS
////////////////////////////////////////////////////////////////////////////////////////////////////

// Name of the main template
$maintemplate = "form";
// Name of the answer template
$answertemplate = "formanswers";
What goes here?

If my new form has modapp in the first line what would I put here?

silurius 10-10-2005 03:37 PM

Quote:

Originally Posted by Abe1
Quote:

Originally Posted by silurius
...I seemed to have done something wrong and my forums will not load up the form no matter what. This is even after uninstalling the product, making sure it was not listed in product/plugin/styles, clearing my cache and reinstalling it again.

"Sorry! This forum is not accepting new posts." <- get this on DEFAULT installation now

What could I be missing?

It means the settings for the forum you want to post the thread in, dont allow you to post.

You sure there couldn't be another cause? I re-checked the permissions for the forum in question, and the form is definitely pointing to that.

Mepher 10-10-2005 05:00 PM

I got it working. Added the lines you said and changed $formforumid to $formforumid2 and just added that variable. Works great.

Is there an easy way to get a forum id? I assumed the ids just went in numerical order but they are ordered by when they were created. Had to do some quessing to get my the forumid right. Even though its listed last it was created before many others so the id numbers are strange. Maybe its just something im not seeing.

RMS-Chef 10-10-2005 06:26 PM

Quote:

Originally Posted by Mepher
I got it working. Added the lines you said and changed $formforumid to $formforumid2 and just added that variable. Works great.

Is there an easy way to get a forum id? I assumed the ids just went in numerical order but they are ordered by when they were created. Had to do some quessing to get my the forumid right. Even though its listed last it was created before many others so the id numbers are strange. Maybe its just something im not seeing.

Just hover your mouse over the forum in question and look at your browser status bar for the link.....or click the forum and look at the URL.

You will see:
Code:

?f={FORUMID#}
{FORUMID#} = the forum id

Mepher 10-10-2005 07:02 PM

Lol thanks RMS-Chef, now I feel like a total idiot =) I don't know why I didn't just think of that in the first place. I was kinda expecting it to display the forum ids in the Forum Management. /shrug.

silurius 10-10-2005 07:51 PM

So anyone have any idea I might be getting "Sorry! This forum is not accepting new posts." when the forum in question has no posting restrictions whatsoever?

WNxWakko 10-10-2005 11:32 PM

How can I make the Questions Bold or colored when its submitted into the thread?

RMS-Chef 10-11-2005 12:44 AM

Quote:

Originally Posted by WNxWakko
How can I make the Questions Bold or colored when its submitted into the thread?

You can use vBcode in your answer template.
There is one thing mentioned above, make sure there is a space after the last opening tag and before the first closing tag. Otherwise I think you get an error when you try to save the template.

An example taken from one of my answer templates:

HTML Code:

[center][u][b][size=5] $subjecttitleans [/size][/b][/u][/center]

$longanswer1

[center] _____________________________________________ [/center]

[b] $subjectdate [/b]: $subjectdateans
[b] $subjectlocation [/b]: $subjectlocationans
[b] $filesize [/b]: $filesizeans
[b] $fileruntime [/b]: $fileruntimeans
[b] $fileformat [/b]: $fileformatans

[center] _____________________________________________

[u][b][size=5] $longquestion2 [/size][/b][/u][/center]

$longanswer2

[center] _____________________________________________

[u][b][size=5] $longquestion3 [/size][/b][/u][/center]

$longanswer3


silurius 10-11-2005 12:55 AM

Quote:

Originally Posted by silurius
So anyone have any idea I might be getting "Sorry! This forum is not accepting new posts." when the forum in question has no posting restrictions whatsoever?

Er...anyone...?

WNxWakko 10-11-2005 12:59 AM

ah thankyou, worked perfect. I was trying it before but kept getting the error. I can see now it was the space that was needed.

RMS-Chef 10-11-2005 12:59 AM

Quote:

Originally Posted by silurius
Er...anyone...?

Have you made sure that all groups you want posting are listed in the config area of the plugin code under:

//USERGROUPS ALLOWED

And double check you have the proper forumID.

silurius 10-11-2005 01:16 AM

Quote:

Originally Posted by RMS-Chef
Quote:

Originally Posted by silurius
Er...anyone...?

Have you made sure that all groups you want posting are listed in the config area of the plugin code under:

//USERGROUPS ALLOWED

And double check you have the proper forumID.

Yep, and yep. :ermm:

silurius 10-11-2005 05:39 PM

Sorry to keep bumping this. Still wondering if there is anything else I should look at here.

SirJonathan 10-12-2005 12:09 AM

Hey guys!

I'm having a rather finicky issue.. I'm using this form for a 'membership application' on my message board. Recently, I've had a few members apply, their post get added to the database, but never show up in the right forum. Normally, when someone applies, their post gets added to the "new members" forum, without any trouble. Recently, a member joined, filled out the application, submitted it, and it never showed up in the "new members" forum. If you view the member's profile, it shows that they have one post and if you do a search, you can view their application just fine.

Any ideas why some of the posts are not showing up in the proper forum? I've just done another test of the system and it works just fine. Any thoughts on why some are slipping through?

Thanks guys! :)

-Jonathan

Mr Chad 10-12-2005 01:12 PM

This is a great hack but what would be even better is if, you could make a hack that does this:

When a member registers and fills out the required info and clicks submit it will automaticly creat a thread w/ his/her info named welcome X.

silurius 10-12-2005 03:36 PM

Quote:

Originally Posted by chatbum
This is a great hack but what would be even better is if, you could make a hack that does this:

When a member registers and fills out the required info and clicks submit it will automaticly creat a thread w/ his/her info named welcome X.

Chatbum, I believe this is what you are looking for.

I hate to whine, but I am really struggling with this hack for some reason. Can anyone work with me? I've checked the above suggestions a few times, and I have to wonder if there is something else I'm overlooking. (Have a go-live in a few days and I made the mistake of putting this form on the critical path).

vanayr 10-13-2005 11:38 PM

Is there a way to put check boxes in this?

-Chris

bhxtyrant 10-16-2005 02:26 AM

Hey guys,I was wondering is there a way to intergrate this with vBadvanced CMPS?

mtha 10-16-2005 06:00 AM

Quote:

Originally Posted by silurius
So anyone have any idea I might be getting "Sorry! This forum is not accepting new posts." when the forum in question has no posting restrictions whatsoever?

I get the same error, it ask for a value f=xx for input. dont know why, and I havent got enough time to work on it. anyway, do a trick do=form&f=1 will work

silurius 10-17-2005 08:54 PM

Quote:

Originally Posted by mtha
I get the same error, it ask for a value f=xx for input. dont know why, and I havent got enough time to work on it. anyway, do a trick do=form&f=1 will work

I can get the form to display now, with the above, but cannot get the results to post ('Sorry! This forum is not accepting new posts.'). Tried outputting to various forums with wide open permissions.

Question about the advice about posting results to multiple forums or threads - what's the strategy here if we want to enable them to upload attachments (which are they taken to, if it works).

Also curious about this (or any other options, dropdown would be nice):

Quote:

Originally Posted by vanayr
Is there a way to put check boxes in this?


Sezmarone 10-18-2005 11:53 AM

Has anyone found out how to use this with unregistered guest?

I really like this but, don't seem to have much support!

Mastar 10-19-2005 03:42 AM

This is my error: Parse error: parse error, unexpected T_STRING in /downunder/newthread.php(68) : eval()'d code on line 134



This is my Link: http://www.***.com/newthread.php?do=Mod/Super Mod Application Form

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

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

////////////////////////////////////////////////////////////////////////////////////////////////////
//USERGROUPS ALLOWED
//You can add or remove usegroups that are ALLOWED to use this form by changing the numbers below in the array.
//You may remove this feature by adding a '//' 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
////////////////////////////////////////////////////////////////////////////////////////////////////

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

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

////////////////////////////////////////////////////////////////////////////////////////////////////
//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
$formforumid = "2";

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

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

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

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

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

//ENABLE FORM TO BE PMED - 1 = yes, 0 = no
$formpm = "1";

//USERNAME TO PM TO
$formpmname = LEGEND;

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

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

//EMAIL ADDRESS TO EMAIL TO
$formemailaddress = LEGEND@comcast.net;

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

////////////////////////////////////////////////////////////////////////////////////////////////////
//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 to upload attachments (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
////////////////////////////////////////////////////////////////////////////////////////////////////

$answerall = "1";

////////////////////////////////////////////////////////////////////////////////////////////////////
//TITLE OF FORM (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////

$formtitle = Mod/Super Mod Application Form;

////////////////////////////////////////////////////////////////////////////////////////////////////
//TITLE OF THREAD/POST/PM/EMAIL (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////

$posttitle = MOD/SUPER MOD APPLICATION;

////////////////////////////////////////////////////////////////////////////////////////////////////
//PURPOSE OF FORM (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////

$formpurpose = The purpose of this form is to allow you to apply for Staff positions.;

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

////////////////////////////////////////////////////////////////////////////////////////////////////
//NORMAL INPUT BOX : QUESTION 1 (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////

$normalquestion1 = Which Position are you applying for?;

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

////////////////////////////////////////////////////////////////////////////////////////////////////
//RADIO BOX CHOICES : QUESTION 1 (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////

$radioquestion1 = Choose one of the following;

// The following choices must NOT have quotation marks
$radiochoice1a = Mod;
$radiochoice1b = Super Mod;

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

////////////////////////////////////////////////////////////////////////////////////////////////////
//RADIO BOX CHOICES : QUESTION 2 (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////

$radioquestion2 = Where you ever a Mod/Super Mod before?;

// The following choices must NOT have quotation marks
$radiochoice2a = Yes;
$radiochoice2b = No;

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

////////////////////////////////////////////////////////////////////////////////////////////////////
//RADIO BOX CHOICES : QUESTION 3 (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////

$radioquestion3 = Have you tested before?;

// The following choices must NOT have quotation marks
$radiochoice3a = yes;
$radiochoice3b = no;

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

////////////////////////////////////////////////////////////////////////////////////////////////////
//QUESTION 1 (do not use quotation marks or you will get a parse error)
$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)
$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)
$question3 = What is your msn messenger ID?;
$explain3 = Please enter your ID here.;

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

////////////////////////////////////////////////////////////////////////////////////////////////////
//LONG TEXT AREA INPUT: QUESTION 1 (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////

$longquestion1 = Please give a little info about you experience.;
$longexplain1 = for example, What you have tested and what sites have you tested for before, do you make graphics etc.;

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

Abe1 10-20-2005 12:25 AM

Quote:

Originally Posted by Mastar
This is my error: Parse error: parse error, unexpected T_STRING in /downunder/newthread.php(68) : eval()'d code on line 134



This is my Link: http://www.***.com/newthread.php?do=Mod/Super Mod Application Form

You can't have a '/' in a link. get rid of it and see what happens.

Mastar 10-20-2005 02:22 AM

This is that error I get:
Parse error: parse error, unexpected T_STRING in /home/thebedrock/domains/thebedrocktavern.com/public_html/Taverndownunder/newthread.php(68) : eval()'d code on line 128

This is what I edited:
Code:

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

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

////////////////////////////////////////////////////////////////////////////////////////////////////
//USERGROUPS ALLOWED
//You can add or remove usegroups that are ALLOWED to use this form by changing the numbers below in the array.
//You may remove this feature by adding a '//' 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
////////////////////////////////////////////////////////////////////////////////////////////////////

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

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

////////////////////////////////////////////////////////////////////////////////////////////////////
//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
$formforumid = "2";

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

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

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

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

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

//ENABLE FORM TO BE PMED - 1 = yes, 0 = no
$formpm = "1";

//USERNAME TO PM TO
$formpmname = "Abe";

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

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

//EMAIL ADDRESS TO EMAIL TO
$formemailaddress = "youremail@yourforums.com";

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

////////////////////////////////////////////////////////////////////////////////////////////////////
//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 to upload attachments (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
////////////////////////////////////////////////////////////////////////////////////////////////////

$answerall = "1";

////////////////////////////////////////////////////////////////////////////////////////////////////
//TITLE OF FORM (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////

$formtitle = STAFF APPLICATION FORM;
";

////////////////////////////////////////////////////////////////////////////////////////////////////
//TITLE OF THREAD/POST/PM/EMAIL (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////

$posttitle = STAFF APPLICATION;

////////////////////////////////////////////////////////////////////////////////////////////////////
//PURPOSE OF FORM (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////

$formpurpose = The purpose of this form is to allow you to apply for Staff positions.;

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

////////////////////////////////////////////////////////////////////////////////////////////////////
//NORMAL INPUT BOX : QUESTION 1 (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////

$normalquestion1 = Which Position are you applying for?;

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

////////////////////////////////////////////////////////////////////////////////////////////////////
//RADIO BOX CHOICES : QUESTION 1 (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////

$radioquestion1 = "Choose one of the following choices";

// The following choices must NOT have quotation marks
$radiochoice1a = Mod;
$radiochoice1b = Super Mod;

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

////////////////////////////////////////////////////////////////////////////////////////////////////
//RADIO BOX CHOICES : QUESTION 2 (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////

$radioquestion2 = Where you ever a Mod/Super Mod before?;

// The following choices must NOT have quotation marks
$radiochoice2a = Yes;
$radiochoice2b = No;


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

////////////////////////////////////////////////////////////////////////////////////////////////////
//RADIO BOX CHOICES : QUESTION 3 (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////

$radioquestion3 = Are you experienced in any area in the Forum?;

// The following choices must NOT have quotation marks
$radiochoice3a = "yes";
$radiochoice3b = "no";

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

////////////////////////////////////////////////////////////////////////////////////////////////////
//QUESTION 1 (do not use quotation marks or you will get a parse error)
$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)
$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)
$question3 = "What is your Msn Messenger ID?";
$explain3 = "Please enter it here!.";

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

////////////////////////////////////////////////////////////////////////////////////////////////////
//LONG TEXT AREA INPUT: QUESTION 1 (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////

$longquestion1 = "Please state what area in the forum suites you best and any sites did you staff for before.";
$longexplain1 = "For example, a bit about your experience in this area.";

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


Abe1 10-20-2005 06:33 AM

Quote:

Originally Posted by Mastar
This is that error I get:
Parse error: parse error, unexpected T_STRING in /home/thebedrock/domains/thebedrocktavern.com/public_html/Taverndownunder/newthread.php(68) : eval()'d code on line 128

I see the error. You have a lot of things not in quotes.

eg.
You have:
$formtitle = STAFF APPLICATION FORM;
";

should be
$formtitle = "STAFF APPLICATION FORM";


you have:
$posttitle = STAFF APPLICATION;

should be:
$posttitle = "STAFF APPLICATION";

Mastar 10-20-2005 12:32 PM

In the istaructions for the hack it said to remove the quotations.

Abe1 10-20-2005 01:42 PM

Quote:

Originally Posted by Mastar
In the istaructions for the hack it said to remove the quotations.

Can you show me where?

silurius 10-20-2005 03:14 PM

Quote:

Originally Posted by Abe1
Quote:

Originally Posted by Mastar
In the istaructions for the hack it said to remove the quotations.

Can you show me where?

Here -

Quote:

//QUESTION 1 (do not use quotation marks or you will get a parse error)
$question1 = "What is your name?";
$explain1 = "Please enter your real name here.";
I was initially confused but left them, after noticing that it worked with them.

Abe1 10-20-2005 05:59 PM

Quote:

Originally Posted by silurius
Here -



I was initially confused but left them, after noticing that it worked with them.

It means dont ADD quotations to the question and explaination. The Quotes around them are needed.

Mastar 10-20-2005 07:01 PM

Thank you very much for you replies, one last question: What would I put in the address bar to get to the forum? I did it for vb3.09 and I had no problems.


http://www.mysite.com/newthread.php?...PLICATION FORM

I didn't get any errors this time but I get this:

Invalid Forum specified. If you followed a valid link, please notify the administrator

what would I put there, the '$posttitle =' or the '$formtitle ='?

Abe1 10-20-2005 07:03 PM

Quote:

Originally Posted by Mastar
Thank you very much for you replies, one last question: What would I put in the address bar to get to the forum? I did it for vb3.09 and I had no problems.


http://www.mysite.com/newthread.php?do=STAFF APPLICATION FORM

User underscores '_' when naming the form. Dont use spaces.

Mastar 10-20-2005 07:09 PM

Never mine I got it working
Thanks ABE1 for you support!
This is the first time I got support for a hack that was giving me trouble.

Abe1 10-20-2005 07:09 PM

Quote:

Originally Posted by Mastar
Never mine I got it working
Thanks ABE1 for you support!
This is the first time I got support for a hack that was giving me trouble.

Your very welcome.

silurius 10-20-2005 10:45 PM

Hi Abe,

Not sure if you saw my question above. Your help last week was great, but my testing was incomplete and it appears that my form is not able to post to my forum. I can get the form to display now, but when I send I get 'Sorry! This forum is not accepting new posts.' Tried outputting to various forums with wide open permissions, no luck.

Abe1 10-21-2005 01:29 AM

Quote:

Originally Posted by silurius
Hi Abe,

Not sure if you saw my question above. Your help last week was great, but my testing was incomplete and it appears that my form is not able to post to my forum. I can get the form to display now, but when I send I get 'Sorry! This forum is not accepting new posts.' Tried outputting to various forums with wide open permissions, no luck.

What happend if you disable all other hacks that use the newthread page? Try finiding out which one coses the probelm.

Bobbo 10-21-2005 04:10 AM

I had been running Erwins form on 3.0.7 until I recently upgraded to 3.5 and installed this. Looks great so far, however I'm experiencing two problems.

The first. E-mails dont seem to be coming through. ***(I resolved the email issue)

I do have :
Code:

$formemail = "1";

//EMAIL ADDRESS TO EMAIL TO
$formemailaddress = "myname@my.net";

It doesn't seem to mail though. I am getting mail from the system for other features, so I know the mail end is working in general. Any thoughts on where to begin to look?



The second item is on having multiple forms. I need a litttle clarification as I'm new to the plug ins, etc. My forms & templates all contain different types and numbers of questions, etc. Do I need to duplicate the original product-form_hack.xml, make changes to it, and import it as a plug in for each of my forms? (and if so, which specific changes need to be made to the .xml file)

Or do I simply create multiple hooks off the original product-form_hack.xml which I imported?

I have tried both methods. When I have more than one active, the end result is that viewing the form shows a blank white page. Deactivating all except a single hook allows for that form to display properly. What am I missing? ***(I resolved this issue as well. I made a stupid typo in the plug in variable section, doh!)


Thanks for the help! This rocks! :-D

murrtex 10-24-2005 02:13 PM

super hack..but i have some problems.
i installed that and i did /newthread.php?do=form i fill that ..and sent..but where is that thread..i can see from topxstat and when i push "Generic form" it says no access permission..

what sould i do?

okkkeeyy

i solved..thanks

so,,how can we do the multiple forms ?

Suzie 10-26-2005 12:43 AM

I am getting a completely blank page, no errors nothing at all on the page. Any idea why?

Abe1 10-26-2005 10:58 PM

Quote:

Originally Posted by Suzie
I am getting a completely blank page, no errors nothing at all on the page. Any idea why?

Nope.


All times are GMT. The time now is 02:25 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.01743 seconds
  • Memory Usage 1,930KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (25)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