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)

RedGTiVR6 07-16-2008 03:05 AM

Quote:

Originally Posted by Deepdog009 (Post 1337121)
PHP Code:

////////////////////////////////////////////////////////////////////////////////////////////////////
//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.
if ($dropdownanswer2 == "Title here")
        {
            
$formforumid "11";
        }
if (
$dropdownanswer2 == "Title here 1")
        {
            
$formforumid "5";
        }
if (
$dropdownanswer2 == "Title here 2")
        {
            
$formforumid "17";
        }
if (
$dropdownanswer2 == "Title here 3")
        {
            
$formforumid "9";
        }
if (
$dropdownanswer2 == "Title here 4")
        {
            
$formforumid "32";
        }

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

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


POSTING 2 FORUMS ??????????????????????????????????

Many ways, but this may help U

For some strange reason, this prevents the attachment feature from showing on the form.

Any ideas why that might happen?

BlueBulletRL 07-16-2008 03:07 AM

I'm having trouble making it work when I click new thread in my 2 forsale forums to the forum. I have put in the variables. I'm not sure if the form works yet because I can't get the form to link to when I hit new thread. Is this something I'm missing in the setup?

RedGTiVR6 07-16-2008 03:14 AM

this modification doesn't touch the new thread button. To do that, you need a separate modification.

Abe1 created a modification that would do this already. Just check his profile for that.

ccplim 07-16-2008 03:15 AM

Quote:

Originally Posted by BlueBulletRL (Post 1576487)
I'm having trouble making it work when I click new thread in my 2 forsale forums to the forum. I have put in the variables. I'm not sure if the form works yet because I can't get the form to link to when I hit new thread. Is this something I'm missing in the setup?

I believed this should help solve your problem :)

BlueBulletRL 07-16-2008 03:35 AM

Thank yoU!

Stryker412 07-16-2008 12:16 PM

Ok thanks for the tip about the templates, that was what I was missing. Now I want to add a question for the following.

Birthday (3 separate drop down boxes next to each other on the same line, can this be auto filled like the forum name?)

Edit: Ok I've added drop downs for State/Province but I've already used a-z & aa-zz so what can I use next? Can I just keep going aaa-zzz or should I switch to numbers?

How can I make sections separate on the form? I want to have a section for personal info, gaming, info, then a longanswer box for final comments.

I also tested the forum and filled in every question, yet when I go to preview it said I didn't answer all the questions.

RedGTiVR6 07-17-2008 08:15 PM

I'd keep using letters.

As for the answers, did you ad them to the answer template as well?

No ideas on the separate section other than perhaps creating multiple forms.

MoMan 07-18-2008 01:01 AM

I almost got everything to work on vBulletin 3.7.2, but there are two things that are bugging me which I'll have to get to work before using the form on my site:

1. Can the form have a field through which users can choose a custom thread title?
2. If the forum to which you try linking the form requires thread prefixes, no new threads can be posted through the form. How would I got about having the form automatically add a prefix, or select a prefix based on a radio button choice or dropdown?

RedGTiVR6 07-18-2008 02:03 AM

To get the form to have a thread title which is essentially a field, just change $posttitle = $whateveransweryouwant ($answer1 or $longanswer1 or $dropdownanswer1, etc.)

Same as above.

For instance, on our forum, the thread title is generated as the following:

$posttitle = "$dropdownanswer2 - $dropdownanswer1 - $answer2";

MoMan 07-18-2008 11:34 AM

Quote:

Originally Posted by RedGTiVR6 (Post 1578124)
To get the form to have a thread title which is essentially a field, just change $posttitle = $whateveransweryouwant ($answer1 or $longanswer1 or $dropdownanswer1, etc.)

Same as above.

For instance, on our forum, the thread title is generated as the following:

$posttitle = "$dropdownanswer2 - $dropdownanswer1 - $answer2";

Thanks a lot for the reply!

Do you also happen to know what the vBulletin variable for prefixes is?


All times are GMT. The time now is 04:04 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.02661 seconds
  • Memory Usage 1,755KB
  • 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
  • (1)bbcode_php_printable
  • (3)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