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)

bananalive 03-24-2009 05:43 PM

1 Attachment(s)
Quote:

Originally Posted by CPOWA (Post 1775929)
I can't get past the following form error (first thumbnail). I believe everything is coded correctly, but I must be missing something. Any idea what I'm doing wrong? Other than the questions on the form everything else is set to default. I'm using Ver: 3.3

EDIT: Just tested it with text in the: "Thread/ PM/ Email Title:" field verses {q_10} and it posted. http://www.usfcralliance.org/forums/f173/test-731/

Hmmm... Changed the "Thread/ PM/ Email Title:" to Sponsored By: {q_10} and the thread posted with only Sponsored By: in the title.

You're probably not using the correct question hash. See circle number in attachment

CPOWA 03-24-2009 09:14 PM

Quote:

Originally Posted by bananalive (Post 1776001)
You're probably not using the correct question hash. See circle number in attachment

That was it! I was using the Q# variable. Thanks Bananalive. :) This is an awesome product! :up:

Nominated!

subvertbeats 03-24-2009 11:46 PM

thanks bananalive!

Any idea how to achieve this per form (some forms are specifically for a site outside of the forums and other are for the forums themselves)

PS: currently using a conditional in the header, footer and navbar templates to remove them globally for misc.php.

Quote:

Originally Posted by bananalive (Post 1775813)
Find in Plugin: Easy Forms Part 1:
PHP Code:

    eval('$html = "' fetch_template('form_view') . '";');
    
$canviewformlist unserialize($vbulletin->options['canviewformlist']);
    if (!
$canviewformlist OR !is_member_of($vbulletin->userinfo$canviewformlist))
    {
        
$navbits construct_navbits(array(
            
'' => construct_phrase($vbphrase['view_form'], $form['title'])
        ));
    }
    else
    {
        
$navbits construct_navbits(array(
            
'misc.php?do=forms' $vbulletin->session->vars['sessionurl_q'] => construct_phrase($vbphrase['forms']),
            
'' => construct_phrase($vbphrase['view_form'], $form['title'])
        ));
    }
    eval(
'$navbar = "' fetch_template('navbar') . '";');
    eval(
'print_output("' fetch_template('shell_blank') . '");'); 

Replace:
PHP Code:

    eval('print_output("' fetch_template('form_view') . '");'); 



anuanu 03-25-2009 01:49 AM

Not sure if this was brought up already or not but when i make a question and have the character "&" in it. It outputs when someone is filling it out as this: "&"

FW FH-K?ln 03-25-2009 11:44 AM

1 Attachment(s)
We have a problem with this mod.

First: it's a awesome mod

Second: When we create a form, we set sections for a better view. We don't fill anything in the descriptions, but when it post the form in a thread, it set us this result:

Anmeldung zur Erstifahrt im SS2009(form title)Persönliche Angaben(section)Matrikelnummer(question)

How we can change it to

form title

section

question

?

bananalive 03-25-2009 01:56 PM

Quote:

Originally Posted by FW FH-K?ln (Post 1776589)
We have a problem with this mod.

First: it's a awesome mod

Second: When we create a form, we set sections for a better view. We don't fill anything in the descriptions, but when it post the form in a thread, it set us this result:

Anmeldung zur Erstifahrt im SS2009(form title)Pers?nliche Angaben(section)Matrikelnummer(question)

How we can change it to

form title

section

question

?

Add \r\n at the end of the bbcode for sections, questions, etc.

bananalive 03-25-2009 01:57 PM

Quote:

Originally Posted by anuanu (Post 1776350)
Not sure if this was brought up already or not but when i make a question and have the character "&" in it. It outputs when someone is filling it out as this: "&"

I'll look into this

bananalive 03-25-2009 01:58 PM

Quote:

Originally Posted by subvertbeats (Post 1776275)
thanks bananalive!

Any idea how to achieve this per form (some forms are specifically for a site outside of the forums and other are for the forums themselves)

PS: currently using a conditional in the header, footer and navbar templates to remove them globally for misc.php.


Find in Plugin: Easy Forms Part 1:

PHP Code:

        eval('$html = "' fetch_template('form_view') . '";');
        
$canviewformlist unserialize($vbulletin->options['canviewformlist']);
        if (!
$canviewformlist OR !is_member_of($vbulletin->userinfo$canviewformlist))
        {
            
$navbits construct_navbits(array(
                
'' => construct_phrase($vbphrase['view_form'], $form['title'])
            ));
        }
        else
        {
            
$navbits construct_navbits(array(
                
'misc.php?do=forms' $vbulletin->session->vars['sessionurl_q'] => construct_phrase($vbphrase['forms']),
                
'' => construct_phrase($vbphrase['view_form'], $form['title'])
            ));
        }
        eval(
'$navbar = "' fetch_template('navbar') . '";');
        eval(
'print_output("' fetch_template('shell_blank') . '");'); 

Replace:

PHP Code:

if (!$noheader)
{
        eval(
'$html = "' fetch_template('form_view') . '";');
        
$canviewformlist unserialize($vbulletin->options['canviewformlist']);
        if (!
$canviewformlist OR !is_member_of($vbulletin->userinfo$canviewformlist))
        {
            
$navbits construct_navbits(array(
                
'' => construct_phrase($vbphrase['view_form'], $form['title'])
            ));
        }
        else
        {
            
$navbits construct_navbits(array(
                
'misc.php?do=forms' $vbulletin->session->vars['sessionurl_q'] => construct_phrase($vbphrase['forms']),
                
'' => construct_phrase($vbphrase['view_form'], $form['title'])
            ));
        }
        eval(
'$navbar = "' fetch_template('navbar') . '";');
        eval(
'print_output("' fetch_template('shell_blank') . '");');
}
else
{
        eval(
'print_output("' fetch_template('form_view') . '");'); 


Form Hook: Form Start:
PHP Code:

$noheader true


Altered 03-25-2009 02:09 PM

Quote:

Originally Posted by bananalive (Post 1775067)

This fixed my problem with posts being moderated, thank you!!

bananalive 03-25-2009 02:30 PM

1 Attachment(s)
Quote:

Originally Posted by anuanu (Post 1776350)
Not sure if this was brought up already or not but when i make a question and have the character "&" in it. It outputs when someone is filling it out as this: "&"

Import attached file
Re-save question


All times are GMT. The time now is 10:03 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.02273 seconds
  • Memory Usage 1,789KB
  • 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
  • (5)bbcode_php_printable
  • (8)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