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)

WNxWakko 10-08-2005 04:06 AM

Hi (waves) ya me again :) I do have another question. How can I make the required fields not for all but only for certain questions?

RMS-Chef 10-08-2005 04:14 AM

Quote:

Originally Posted by WNxWakko
Hi (waves) ya me again :) I do have another question. How can I make the required fields not for all but only for certain questions?

Look in the plugin code not too far below the end of the variables setup.
Look for:
Code:

  if ($answerall == "1")
A couple lines under that you will see the question variables listed in a format something like:
Code:

$answer1 == '' OR $answer2 == '' OR $answer3 == ..........etc.
Just remove the answers you do not want to be required and add in any custom ones that you do want answered.

Of course make sure you set that you want answers to be required in the upper part plugin. ;)

WNxWakko 10-09-2005 01:08 AM

Thank you all for your assistance with my needy needs. I appriciate it. There is still a couple things I want this to do, but most have been resolved so thanks.

Alteran Ancient 10-09-2005 02:49 PM

Is there any way you can ger the User's Username included IN the name of the Thread you create with the form.

Abe1 10-09-2005 08:06 PM

Quote:

Originally Posted by Cycloneflame
Is there any way you can ger the User's Username included IN the name of the Thread you create with the form.

Look back a few posts.

silurius 10-10-2005 03:56 AM

Argh, this is a great concept but having a heck of a time with the customization of it. Still, I should not be complaining.

Main issue at the moment is, 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?

Abe1 10-10-2005 05:02 AM

Quote:

Originally Posted by silurius
Argh, this is a great concept but having a heck of a time with the customization of it. Still, I should not be complaining.

Main issue at the moment is, 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.

Mepher 10-10-2005 10:43 AM

Abe, reposting this from a page back.

Quote:

Originally Posted by Mepher
Abe is it possible to have the form post to 2 seperate forums? I have it all set up and working with a custom form. It posts to a single forum fine but I would like it to generate 2 seperate posts in different forums.


Abe1 10-10-2005 12:10 PM

Quote:

Originally Posted by Mepher
Abe, reposting this from a page back.

Find this:
PHP Code:

build_new_post('thread'$foruminfo, array(), array(), $newpost$errors); 

add after:
PHP Code:

$foruminfo verify_id('forum'$formforumid01);
$forumperms fetch_permissions($foruminfo[forumid]);
build_new_post('thread'$foruminfo, array(), array(), $newpost$errors); 

Replace on the first line '$formforumid' with the other forumid you want to post in.

Mepher 10-10-2005 12:14 PM

Nice, thanks for the fast reply Abe.


All times are GMT. The time now is 12:41 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.01827 seconds
  • Memory Usage 1,746KB
  • 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_code_printable
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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