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)

TCattitude 12-24-2005 08:35 PM

How to make this mod work with Psionic Vision's "adv editing options"?.
With the two hacks installed, forms not finish... and don't do anything at all (not email sent, no thread created, no reply to thread, nothing). When disable the product "adv editing options", the formshack do their work again without flaw.

Any clue?
Please.

Abe1 12-24-2005 09:38 PM

Quote:

Originally Posted by tommyxv
I want to add a drop down for all 50 states.... what variable do i use after i use all 26 letters?

EX:

$dropdownchoice6z = "Georgia";

use $dropdownchoice6aa

WNxWakko 12-24-2005 10:11 PM

You do realize, you dont even need any of that complex coding for a dropdown selector.

Ive been making dropdowns on this form since he first released this.

For example on your form template all you do is this,

<select name="answer3">
<option selected></option>
<option>cows</option>
<option>rabbits</option>
<option>dogs</option>
<option>cats</option>
</select>

Just make sure the name of the dropdown is called answer1, answer2, answer3 and so on.

steven s 12-26-2005 02:16 PM

This is terrific.
I am using it as an event registration form.
By creating additional profile fields users don't need to enter repetitive information.
I created a separate edit profile page. Then save it using the profile.php script. The person goes to the form and enters more info that is unique only to the one event.

Not sure if there is an easier way.

One snag. The form is sent to a specific email address but I need a copy also send to the person submitting the form $bbuserinfo[email], if that is correct?
Is it possible to send to two email addresses? If so, how?

I'd also like to have the form sent by PM to the user.
What if he/she has PM turned off?

Abe1 12-26-2005 02:20 PM

Quote:

Originally Posted by 1996 328ti
This is terrific.
I am using it as an event registration form.
By creating additional profile fields users don't need to enter repetitive information.
I created a separate edit profile page. Then save it using the profile.php script. The person goes to the form and enters more info that is unique only to the one event.

Not sure if there is an easier way.

One snag. The form is sent to a specific email address but I need a copy also send to the person submitting the form $bbuserinfo[email], if that is correct?
Is it possible to send to two email addresses? If so, how?

I'd also like to have the form sent by PM to the user.
What if he/she has PM turned off?

Go look at the plugin where the actual code is to send an email. double that line and change the email where to go to $vbulletin->userinfo['email']

steven s 12-26-2005 02:32 PM

Quote:

Originally Posted by Abe1
Go look at the plugin where the actual code is to send an email. double that line and change the email where to go to $vbulletin->userinfo['email']

YES!
So I can probably do the same to PM the user.
Thanks!

I Love NY too and miss it greatly. :disappointed:

Abe1 12-26-2005 02:34 PM

Quote:

Originally Posted by 1996 328ti
YES!
So I can probably to the same to PM the user.
Thanks!

I Love NY too and miss it greatly. :disappointed:

PM will be alittle harder. There is some info prossesing before. You should copy the whole section and edit where needed.

steven s 12-26-2005 02:42 PM

Quote:

Originally Posted by Abe1
PM will be alittle harder. There is some info prossesing before. You should copy the whole section and edit where needed.

Actually it was pretty easy since I only need the PM sent to the user.

//USERNAME TO PM TO
//$formpmname = "Abe";
$formpmname = $vbulletin->userinfo['username'];
This is great. :banana:

Edit: If user does not have PM checked I get this
Fatal error: Unable to proceed with save while $errors array is not empty in class vb_datamanager_pm in /includes/class_dm.php on line 758

gael11 12-26-2005 03:38 PM

Hello

I'd like to modify the look of the template:
Code:

<template name="formanswers" templatetype="template" date="1133965917" username="Abe" version="3.5.2"><![CDATA[$formtitle
$bbuserinfo[username]

$normalquestion1
$normalanswer1

$radioquestion1
$radioanswer1

$radioquestion2
$radioanswer2

$radioquestion3
$radioanswer3
$radioanswer3other

$question1
$answer1

$question2
$answer2

$question3
$answer3

$dropdownquestion1
$dropdownanswer1

-----------------------------------------------------
$longquestion1

$longanswer1

------------------------------------------------------
$vbtextquestion

$vbtextanswer

------------------------------------------------------]]></template>

In fact I'd want to make bold the title of the questions for example. The html code seems to not work. How can I modify the look ?
Thanks for your helm ;)

WNxWakko 12-26-2005 06:08 PM

Quote:

Originally Posted by gael11
In fact I'd want to make bold the title of the questions for example. The html code seems to not work. How can I modify the look ?
Thanks for your helm ;)

Very simple. You use VB code. Notice how there is a space before and after the variable. That space is what makes it work. If you dont put the space before and after, it wont work

Bold and Colors are not the actual code, had to change it or the board woudlnt show you it.


[Bold][colors=darkorange] $question1 [/COLORs][/Bold]
$answer1


All times are GMT. The time now is 08:57 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.01908 seconds
  • Memory Usage 1,751KB
  • 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_code_printable
  • (6)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