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)

lionelng 11-06-2007 11:31 AM

I've tried another form via the url http://www.mywebsite.com/forum/newth...?do=form&f=345, this time round with a forum ID but it seems like after i submitted the form, the form did not ended up in the correct forum.

Again it shows that it doesn't belongs to any forum and i can't delete it again because it says i don't have the permission. Really need help on this.

attroll 11-06-2007 12:25 PM

You are probably not doing it correctly. You need to put the forum ID number in the plugin not the link.
Quote:

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

lionelng 11-06-2007 01:27 PM

I've managed to fix the forum id part but can you help me to resolve the deletion of the testing threads that i have no access to as it doesn't belongs to any forums?

Thanks.

attroll 11-06-2007 04:27 PM

Quote:

Originally Posted by lionelng (Post 1376980)
I've managed to fix the forum id part but can you help me to resolve the deletion of the testing threads that i have no access to as it doesn't belongs to any forums?

Thanks.

I will send you a PM.

Brundlefly 11-07-2007 08:44 PM

Quote:

1. I'm intrested in requiring an attachment to be uploaded. Has anybody done this?
Any legs on this?

CMF 11-09-2007 01:33 PM

Hi there,
I am having some real trouble getting this to work.

I have installed it, can edit what the questions are etc and got it posting how I want it to but:
• I can't work out how to remove questions?
• I can't work out how to add questions?

There are quite a few questions I don't want - such as the radio boxes etc.
I do however want some more text box questions.

I have tried deleting the appropriate variables in part 1 and part 2, but when I go to:
HTML Code:

www.mywebsite.com/forums/newthread.php?do=form
then the form hasn't changed one bit?!

What am I doing wrong? :D

attroll 11-09-2007 04:28 PM

Quote:

Originally Posted by CMF (Post 1379035)
Hi there,
I am having some real trouble getting this to work.

I have installed it, can edit what the questions are etc and got it posting how I want it to but:
? I can't work out how to remove questions?
? I can't work out how to add questions?

There are quite a few questions I don't want - such as the radio boxes etc.
I do however want some more text box questions.

I have tried deleting the appropriate variables in part 1 and part 2, but when I go to:
HTML Code:

www.mywebsite.com/forums/newthread.php?do=form
then the form hasn't changed one bit?!

What am I doing wrong? :D

It is a simple as not including them in the template file ?form?. This file is what determines what questions the users see and have the option to answer to. If you only want to remove the radio questions then simply remove the code below in you ?form? template.

Also keep in mind that the template ?formanswers? is what gets posted to your message area or email. So you will have to edit that also.
PHP Code:

<tr>
<
td class="alt1" colspan="3">
<
b>$radioquestion1</b>
</
td>
</
tr><tr>
<
td><INPUT TYPE="radio" NAME="radioanswer1" value="$radiochoice1a"$radiochoice1a </td>
<
td><INPUT TYPE="radio" NAME="radioanswer1" value="$radiochoice1b"$radiochoice1b </td>
<
td>&nbsp;</td>
</
tr>
<
tr>
<
td class="alt1" colspan="3">
<
b>$radioquestion2</b>
</
td></tr><tr>
<
td><INPUT TYPE="radio" NAME="radioanswer2" value="$radiochoice2a"$radiochoice2a </td>
<
td><INPUT TYPE="radio" NAME="radioanswer2" value="$radiochoice2b"$radiochoice2b </td>
<
td><INPUT TYPE="radio" NAME="radioanswer2" value="$radiochoice2c"$radiochoice2c </td>
</
tr>
<
tr>
<
td class="alt1" colspan="3">
<
b>$radioquestion3</b>
</
td>
</
tr><tr>
<
td><INPUT TYPE="radio" NAME="radioanswer3" value="$radiochoice3a"$radiochoice3a </td>
<
td><INPUT TYPE="radio" NAME="radioanswer3" value="$radiochoice3b"$radiochoice3b </td>
<
td>If $radiochoice3aplease explain: <INPUT TYPE="text" NAME="radioanswer3other"></td>
</
tr


Brundlefly 11-09-2007 04:29 PM

You'll have to make changes to the two style templates (form and form_answers) to add or remove questions and actually have the questions asked in the hook.

1. Form - creates the question area
2. form_answers - used to create the email and thread
3. hook - asks the questions and creates the variables that interact with 1 and 2 above.

Any changes you make to a question in the hook (ie. question type - checkbox or question or longquestion) has to have the corresponding changes made in 1 and 2 above.

Hope this helps

Brundlefly 11-09-2007 04:34 PM

Quote:

Quote:

1. I'm intrested in requiring an attachment to be uploaded. Has anybody done this?
Any legs on this?
Attroll any thoughts on this?

attroll 11-09-2007 05:01 PM

Quote:

Originally Posted by Brundlefly (Post 1379139)
Attroll any thoughts on this?

Yes, I saw your post on this. I would not know how to doing something like that. I am just a simple mod type person that knows basic html and very little php. I can work my way around most hacks and get things figured out and do some minor changes and additions but when it come to major changes I am not to good. I do think attachments might be a nice feature to add to it. I have no reason to do this though. I don't know what purpose it would serve. There are other hacks out that that you can do this with though.


All times are GMT. The time now is 10:42 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.02458 seconds
  • Memory Usage 1,768KB
  • 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
  • (2)bbcode_html_printable
  • (1)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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