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)

Hellraider 01-07-2006 02:16 PM

Some kind of small "bug" (wrong explaintext on gender choose):

In product-XML search for:

Code:

<td class="alt1" valign="middle">
<b>$dropdownquestion1</b>:<br />
$explain3</td>

REPLACE with:

Code:

<td class="alt1" valign="middle">
<b>$dropdownquestion1</b>:<br />
</td>


Gripemaster 01-07-2006 03:27 PM

Quote:

Originally Posted by Gripemaster
*Clicks Install*

Thank you! EXCELLENT hack! :)

My only question, being somewhat new to this, how exactly do I go about doing a second form? How is it created to differ from the first one?

*Bump*

:nervous:

Abe1 01-07-2006 09:18 PM

Quote:

Originally Posted by Hellraider
Some kind of small "bug" (wrong explaintext on gender choose):

In product-XML search for:

Code:

<td class="alt1" valign="middle">
<b>$dropdownquestion1</b>:<br />
$explain3</td>

REPLACE with:

Code:

<td class="alt1" valign="middle">
<b>$dropdownquestion1</b>:<br />
</td>


Thanks. Removed for next version.

Puntoboy 01-08-2006 08:41 PM

can someone help me with this? i can't get it to work one bit.

D.Ilyin 01-09-2006 06:31 AM

Quote:

Originally Posted by Puntoboy
can someone help me with this? i can't get it to work one bit.

help whith what?

D.Ilyin 01-09-2006 06:37 AM

Quote:

Originally Posted by onkel.joi
I have a small question. Is it possible to remove question from the final thread if the answer was not given? For example: What is your name?: ____________
The answer is not give for this, so I want in the final thread not to have that question, but if in the other thread user would answer that question it should appear in the final thread. Hopefully I did not get everybody confused. Thanks

In formanswers you must find you question for example you have:
Code:

$question1
$answer1

and replace whith
Code:

<if condition="$answer1">
$question1
$answer1
</if>

for me it's work's ;)

Puntoboy 01-09-2006 08:23 AM

Quote:

Originally Posted by Puntoboy
can't get this to work, its not displaying correctly and i've set it so it emails me the completed for but thats blank when i recieve it.

with this.

i can't get the forum to work.

the bottom field should be a payment field.

http://www.puntosports.co.uk/forums/...do=Application

D.Ilyin 01-09-2006 10:46 AM

Quote:

Originally Posted by Puntoboy
Quote:

can't get this to work, its not displaying correctly and i've set it so it emails me the completed for but thats blank when i recieve it.
with this.

i can't get the forum to work.

the bottom field should be a payment field.

http://www.puntosports.co.uk/forums/...do=Application

try to attach you full changed plugin.xml
but u should change this
Code:

if ($_REQUEST['action'] == '')
{
  $_REQUEST['action'] = "form";
}

to this
Code:

if ($_REQUEST['action'] == '')
{
  $_REQUEST['action'] = "Application";
}

and
Code:

if ($_REQUEST['action'] == 'form')
{
                          // set message box width to usercp size
                        $stylevar['messagewidth'] = $stylevar['messagewidth_usercp'];
                        $dontusewysiwyg = 1;
                        $editorid = construct_edit_toolbar();

to this
Code:

if ($_REQUEST['action'] == 'Application')
{
                          // set message box width to usercp size
                        $stylevar['messagewidth'] = $stylevar['messagewidth_usercp'];
                        $dontusewysiwyg = 1;
                        $editorid = construct_edit_toolbar();


D.Ilyin 01-09-2006 11:55 AM

Quote:

Originally Posted by bluesteel
Quote:

Originally Posted by bluesteel
Great hack Abe1. Having some fun with it,but now I'm stuck
I don't know if this is possible, but in the answers, can a conditional be set somewhere that show an image depending on what the $radioanswer1 answer is?

ie if radioanswer 1 = Yes, show image 1
else
show image 2

if you know what I mean lolCan
anybody help me please?

u must try as i wrote above. something like this (if i undestanded you :)):
Code:

<if condition="$gendernanswer == 1">
[img]http://yoursite.ru/male.gif[ /img] --- without spaces
<else />
[img]http://yoursite.ru/female.gif[ /img] --- without spaces
</if>


naqalone 01-10-2006 10:17 PM

Many thanks for this hack. It's great!

I have one question. How can I add a textbox,a button browse and a button attach to add a attachment to the form.


All times are GMT. The time now is 07:46 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.01974 seconds
  • Memory Usage 1,754KB
  • 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
  • (11)bbcode_code_printable
  • (9)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