vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   New Posting Features - Easy Forms - Create a form or multiple forms without php or html knowledge (https://vborg.vbsupport.ru/showthread.php?t=201097)

pursuited 02-05-2009 01:50 AM

Great addon!

I have a question I am not too good on the php part, but what would I put in the form start to prevent users from filling the form out who does not have 200 posts?

Thank you!

bananalive 02-05-2009 09:34 AM

Quote:

Originally Posted by pursuited (Post 1734803)
Great addon!

I have a question I am not too good on the php part, but what would I put in the form start to prevent users from filling the form out who does not have 200 posts?

Thank you!

Form Hook: Form Start:

PHP Code:

if($vbulletin->userinfo['posts'] < 200)
{
$errormessage "You need 200 posts to use this form.";
eval(
'print_output("' fetch_template('STANDARD_ERROR') . '");');



nelson.cabral 02-05-2009 01:27 PM

Hi !
I installed the plugin, but I cannot access the page misc.php?do=forms
Is there something to do after the installation to enable the product?

Answered : I should have read more carefully the description... Sorry for annoyance

nelson.cabral 02-05-2009 01:38 PM

When choosing the action "post to thread" or "post to new thread", is it possible to set the destination thread and/or the destination forum as a form argument?

bananalive 02-05-2009 01:59 PM

Quote:

Originally Posted by nelson.cabral (Post 1735162)
When choosing the action "post to thread" or "post to new thread", is it possible to set the destination thread and/or the destination forum as a form argument?

Yes use the form output complete hook.

PHP Code:

$form[where] = $q_{1}; 

(Replace 1 with appropriate # of the question)

nelson.cabral 02-05-2009 02:11 PM

Wow that was quick! Thank you!
If I want to set the list of all threads in a specific forum as a dropdown question items, is it also possible?

EDIT : more generally is it possible to generate forms choices with php?

bananalive 02-05-2009 02:19 PM

Quote:

Originally Posted by nelson.cabral (Post 1735190)
Wow that was quick! Thank you!
If I want to set the list of all threads in a specific forum as a dropdown question items, is it also possible?

Custom Question

php code:
PHP Code:

$answer '<select name="'.$formbit[id].'">';
$answer .= '<option></option>';
$thisanswer $q_{$formbit[id]};
$threads $db->query_read("SELECT * FROM " TABLE_PREFIX "thread
WHERE forumid = '10' 
ORDER BY title ASC"
);
    while(
$row $db->fetch_array($threads)) {
$answer .= '<option value="'.$row[threadid].'"';
if (
$row[threadid] == $thisanswer) {
$answer .= 'selected="selected"';
}
$answer .= '>'.$row[title].'</option>';
}
$answer .= '</select>'

(Change forumid = '10' to the forumid you want)

Quote:

EDIT : more generally is it possible to generate forms choices with php?
What do you mean?

nelson.cabral 02-05-2009 02:26 PM

You just answered my second question, I meant generate dropdown items with php (so that i can access database).

Is it possible to link questions? Ie. in a first dropdown list select a forum and in a second one select a thread in that forum?

TheFocusElf 02-05-2009 03:58 PM

Ban, the latest update is fabublous, my LAST question would be VBACMPS integration, survey of the month, for instance. Does it exist? Has anyone had success?

Copying the form elements and using as an HTML code has rendered FAIL for me so far!

Thanks in advance!

ssslippy 02-05-2009 05:35 PM

How do we search?


All times are GMT. The time now is 03:47 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.02184 seconds
  • Memory Usage 1,753KB
  • 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_php_printable
  • (4)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