vb.org Archive

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

Dogtank 03-16-2010 08:23 AM

Quote:

Originally Posted by steve71 (Post 2004575)
Update the (q_*) tags to coincide with duplicate forms.
If the original form had q_1 to pull up a field...on the duplicate form q_1 could now be q_15

This will result in the error "Please complete message and subject fields"
You will have to update each individual form that you copy or import.

Hey mate,

Thanks for the response however I did check and all the questions mirrored identically so my {q_*} etc should still have worked. Regardless however I did try and just update the 'Thread/PM/Email Title' area. In my situation I just added 'Private {q_1} {q_2} {q_3} and that seems to be working fine.

So whilst questions were in order, you were definately on to something at least, thanks for your help!

UFPlanets 03-16-2010 01:22 PM

Fantastic to receive this mod for my upgraded forums!
Thanks a million!
Full 5 Star Rating!

Selcor 03-17-2010 12:21 AM

When I send the form says:
Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in [path]/misc.php(89) : eval()'d code on line 116

And he shows me: http://img11.imageshack.us/img11/4133/capsd.png

I think the problem is in the (Field using vBulletin editor) #21

Bobbo 03-18-2010 08:12 PM

It looks like this mod will be very useful. Thanks Bananalive!

Does anyone have any suggestions for how I would go about getting some VB session table content to display in the Thread/PM/Email Title? For example, my Vbulletin is heavily integrated with my CRM system and I've got some custom content that is stored in my sessions table. What would be ideal is if I could take the value from one of the session columns and include it in an email title.

I've tried adding $example to the Email Title, and then in the form hook added $example = $vbulletin->session->vars['customcolumnname']; but the data isnt being passed. Any thoughts? Thanks!

jdj 03-19-2010 04:24 PM

Just looking at this mod....would this mod be suitable for logging people wanting to come along to a small conference? Collecting names addresses etc. letting people choose options as to what they want to attend and telling them how much they have to pay for each option?

JJ

bananalive 03-22-2010 06:54 PM

Quote:

Originally Posted by jdj (Post 2006577)
Just looking at this mod....would this mod be suitable for logging people wanting to come along to a small conference? Collecting names addresses etc. letting people choose options as to what they want to attend and telling them how much they have to pay for each option?

JJ

Yes you could

bananalive 03-22-2010 06:57 PM

Quote:

Originally Posted by Bobbo (Post 2006059)
It looks like this mod will be very useful. Thanks Bananalive!

Does anyone have any suggestions for how I would go about getting some VB session table content to display in the Thread/PM/Email Title? For example, my Vbulletin is heavily integrated with my CRM system and I've got some custom content that is stored in my sessions table. What would be ideal is if I could take the value from one of the session columns and include it in an email title.

I've tried adding $example to the Email Title, and then in the form hook added $example = $vbulletin->session->vars['customcolumnname']; but the data isnt being passed. Any thoughts? Thanks!

php variables not parsed for security in form titles

Instead specify the title in the Form Hook

Form Hook: Before Submit
PHP Code:

$threadtitle "Text before " $vbulletin->session->vars['customcolumnname'] . " and text after"


bananalive 03-22-2010 07:00 PM

Quote:

Originally Posted by Selcor (Post 2005139)
When I send the form says:
Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in [path]/misc.php(89) : eval()'d code on line 116

And he shows me: http://img11.imageshack.us/img11/4133/capsd.png

I think the problem is in the (Field using vBulletin editor) #21

Have you tried deleting that question and seeing if the error goes away?

I think it will most likely be due to incorrect formatting of single line text question's regular expression

nocte 03-22-2010 10:12 PM

I have a JavaScript problem: i can't delte a question. When I click on "Delete Question" nothing happens..

Edit: i have uploaded the js file to the wrong server..

nocte 03-22-2010 11:15 PM

Is there a way to edit the new thread button for specific forums, so that the users see the form when they try to create a new thread. And is there a way to redirect the users to the newly created thread, when they submit the form?

your24hourstore 03-23-2010 11:43 AM

Wow this is great but i dont know how to make it work really.

I need an xml file of a form with multiple questions to pick apart.
not sure about hooks.... can someone help me out ?

Bobbo 03-23-2010 02:58 PM

Quote:

Originally Posted by bananalive (Post 2008311)
php variables not parsed for security in form titles

Instead specify the title in the Form Hook

Form Hook: Before Submit
PHP Code:

$threadtitle "Text before " $vbulletin->session->vars['customcolumnname'] . " and text after"



This works great. Thanks!

Now, life would be complete if I could figure out how to add an attachment to a submitted email form. :-D

Bobbo

bananalive 03-23-2010 08:17 PM

Quote:

Originally Posted by harleyparts (Post 2008701)
Wow this is great but i dont know how to make it work really.

I need an xml file of a form with multiple questions to pick apart.
not sure about hooks.... can someone help me out ?

The hooks are for exec'ing additional php code. Not needed for most people

bananalive 03-23-2010 08:20 PM

Quote:

Originally Posted by nocte (Post 2008464)
Is there a way to edit the new thread button for specific forums, so that the users see the form when they try to create a new thread. And is there a way to redirect the users to the newly created thread, when they submit the form?

Try this modification:

https://vborg.vbsupport.ru/showthread.php?t=231363

chesterano 03-23-2010 11:03 PM

is there anyway of the check for similar thread before posting?

Thanks! It is really a good & handy mod.

Selcor 03-24-2010 04:49 PM

Quote:

Originally Posted by bananalive (Post 2008313)
Have you tried deleting that question and seeing if the error goes away?

I think it will most likely be due to incorrect formatting of single line text question's regular expression

Thanks!.

Another question, is there a way to predefine the location of the post resulting from the form, by means of some question or option?.

your24hourstore 03-25-2010 05:10 PM

Quote:

Originally Posted by Dubi (Post 1997833)
Works like a charm :)

Thanks a lot for your support :up:

hunm doesnt work for me, are you useing that plugin force thread closed with this code DUBI?

betts02 03-25-2010 09:13 PM

I have had this installed for a while now and i must say foe me its the best mod ever.

I m using this in 4 ways on my site and the things you can do with it are great.

So many thanks for this mod

your24hourstore 03-26-2010 03:14 AM

its sweet for sure, but i have found a few bugs that are discussed elsewhere , The thing I'm getting now is, when you copy a form then you must edit it , but even when you do it wont work says you must add subject and topic or something like that its been mentioned before in here. anyways there is that but what i find is as you make forms and i need a lot of them , they stack sequentially on top of each other, so i copy ed 50 and then found i couldn't use them now when you go to make a new form you must start out at{q_1} and I'm at like {q_500} but really only have maybe 20 answers, but because i deleted them it now starts at higher numbers.

I was wondering if you can clear the data_tables or something, not even sure if thats what the deal is but I don't really have that many answers yet it thinks i do ...LOL

what I really need is a way to not need so many forms. if i had one that could choose a state from the drop down question then when its selected actually post it to that states thread I wouldn't need 51 forms :> sigh

if i uninstall it then reinstall it will the q_1 be back at q_1 and not q_500 ?

Bobbo 03-26-2010 12:46 PM

Has anyone else noticed how messed up it looks when you try and edit questions when using Internet Explorer 8?

Scratch that... Bananalive posted a workaround in post #66 of this thread. Must have missed it the first time I read the thread.

Thanks.

WNxWakko 03-26-2010 04:14 PM

How do I create a custom dropdown that pulls the same options from a custom profile dropdown. For example field42 is an option in a members profile to select a game and I want the data from this same field42 to appear in a custom dropdown in this form?

Budget101 03-26-2010 09:11 PM

In Form > Form Name > Form Edit > Create Section > Enter Description >

When I enter BBcode in the short description (particularly ) , then click save and view the form, the bbcode is completely ignored and everything is in bold.

How do I fix that?

bananalive 03-28-2010 01:48 PM

Quote:

Originally Posted by Budget101 (Post 2010788)
In Form > Form Name > Form Edit > Create Section > Enter Description >

When I enter BBcode in the short description (particularly ) , then click save and view the form, the bbcode is completely ignored and everything is in bold.

How do I fix that?

I've changed the layout of Section in v4.0.4, update and then see if you still have same problem.

bananalive 03-28-2010 01:50 PM

Quote:

Originally Posted by harleyparts (Post 2010364)
its sweet for sure, but i have found a few bugs that are discussed elsewhere , The thing I'm getting now is, when you copy a form then you must edit it , but even when you do it wont work says you must add subject and topic or something like that its been mentioned before in here. anyways there is that but what i find is as you make forms and i need a lot of them , they stack sequentially on top of each other, so i copy ed 50 and then found i couldn't use them now when you go to make a new form you must start out at{q_1} and I'm at like {q_500} but really only have maybe 20 answers, but because i deleted them it now starts at higher numbers.

I was wondering if you can clear the data_tables or something, not even sure if thats what the deal is but I don't really have that many answers yet it thinks i do ...LOL

what I really need is a way to not need so many forms. if i had one that could choose a state from the drop down question then when its selected actually post it to that states thread I wouldn't need 51 forms :> sigh

if i uninstall it then reinstall it will the q_1 be back at q_1 and not q_500 ?

I'm going to add an option in next version where you can specify name for field, like field1 then you would be able to use {q_field1} and that would not need changing if you copied forms.

your24hourstore 03-28-2010 02:33 PM

Quote:

Originally Posted by bananalive (Post 2011614)
I'm going to add an option in next version where you can specify name for field, like field1 then you would be able to use {q_field1} and that would not need changing if you copied forms.

Oh man that would be sweet, thanks a bunch o bananalive:)

installing new version now

your24hourstore 03-28-2010 02:43 PM

Quote:

Userids
Comma seperated list of userids who have submitted the form
this part of the script , what if 1000's of people submitted the script would it wrap or is there a way to take this part out or disable it so it doesn't show who submitted the form ?

just wondering

thanks a bunch :up:

sose 03-28-2010 02:51 PM

@bananalive Any chance you could give me some tips on the form post I made on page 19? I love the mod and this would push it to full functionality. Gladly donate.

Cadellin 03-28-2010 03:32 PM

How would I go about changing the date format to the British DD/MM/YYYY?

Thanks

bananalive 03-28-2010 04:23 PM

Quote:

Originally Posted by Cadellin (Post 2011675)
How would I go about changing the date format to the British DD/MM/YYYY?

Thanks

Edit Date Question -> Date Format

bananalive 03-28-2010 04:24 PM

Quote:

Originally Posted by sose (Post 2000656)
Can you recommend a way to have a single line with 5 inputs? I am trying to migrate an excel spreadsheet into a form. I have a screen shot of what I am trying to imitate.

https://vborg.vbsupport.ru/external/2010/03/12.png

Quote:

Originally Posted by sose (Post 2011655)
@bananalive Any chance you could give me some tips on the form post I made on page 19? I love the mod and this would push it to full functionality. Gladly donate.

Sorry I don't understand what you are trying to do :confused:

bananalive 03-28-2010 04:30 PM

1 Attachment(s)
Quote:

Originally Posted by harleyparts (Post 2011648)
this part of the script , what if 1000's of people submitted the script would it wrap or is there a way to take this part out or disable it so it doesn't show who submitted the form ?

just wondering

thanks a bunch :up:

  1. import (upgrade) attached Easy Forms product file
  2. Add the following php code to Form Hook: Before Submit:
    PHP Code:

    $disabled_updateuserids true


sose 03-28-2010 04:42 PM

Quote:

Originally Posted by bananalive (Post 2011709)
Sorry I don't understand what you are trying to do :confused:

What I want to do, for example under stone type, would be to have a single line of drop down or text boxes where the input and output could closely match a spreadsheet. Basically a table for input that was 8 rows down and 5 columns across.

Also, I would like to know if the data that you use for creating the graphs could actual go into a DB table that can later be used for SQL queries.

your24hourstore 03-29-2010 12:13 PM

Quote:

Originally Posted by bananalive (Post 1969150)
How can I Re-direct/ force users to submit form when they click new thread?
  1. Create plugin newthread_start
    PHP Code:

    if (in_array($forumid, array(1,2,3)))

          
    header'Location: http://www.your-site.com/forum/misc.php?do=form&fid=1' ) ; 
     } 

    Change 1,2,3 for appropriate forumids.

I want to implement this bananalive, but not sure how, would i have to make this into a xml and import it as a plugin or, does this go in hook area?, also i have a lot more forums that i want to force and i have modified the code is this right

PHP Code:

if (in_array($forumid, array(58,59,60,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108)))))))))))))))))))))))))))))))))))))))))))))))))))

      
header'Location: http://www.harleydavidsonpartsforum.comforum/misc.php?do=form&fid=1' ) ;  
 } 

any help from anyone would be appreciated just not sure about this part of the explination
PHP Code:

[*]Create plugin newthread_start 


Bobbo 03-29-2010 03:19 PM

BananaLive,

First, thanks again for this mod. It's very flexible and provides value in many different scenarios. Your efforts are greatly appreciated!

I have a question thats more of a programming question. Not a mod bug or anything. I'm trying to figure out how I could make a custom question, which happens to be a select option drop down menu, retain it's value when performing a preview on a form.

So for example, I have a question that queries a sql database and builds a drop down list of data with the first choice selected 'New RQST' as the default. You make your choice, let's say it's 'RQST 109'. When I click preview, my preview looks great. However on the original form listed below, where you can make edits, the custom field has defaulted to 'New RQST'.

Does anyone know of some sort of technique that I could use to detect we're in preview to retain the selection?

Many Thanks.

Bobbo

bananalive 03-29-2010 05:11 PM

Quote:

Originally Posted by Bobbo (Post 2012312)
BananaLive,

First, thanks again for this mod. It's very flexible and provides value in many different scenarios. Your efforts are greatly appreciated!

I have a question thats more of a programming question. Not a mod bug or anything. I'm trying to figure out how I could make a custom question, which happens to be a select option drop down menu, retain it's value when performing a preview on a form.

So for example, I have a question that queries a sql database and builds a drop down list of data with the first choice selected 'New RQST' as the default. You make your choice, let's say it's 'RQST 109'. When I click preview, my preview looks great. However on the original form listed below, where you can make edits, the custom field has defaulted to 'New RQST'.

Does anyone know of some sort of technique that I could use to detect we're in preview to retain the selection?

Many Thanks.

Bobbo

Add to the bottom of your php code for that question:
PHP Code:

$search ">".$formbit['value']."<";
$replace " selected=\"selected\">".$formbit['value']."<";
$answer str_replace($search$replace$answer); 


bananalive 03-29-2010 05:16 PM

Quote:

Originally Posted by harleyparts (Post 2012206)
I want to implement this bananalive, but not sure how, would i have to make this into a xml and import it as a plugin or, does this go in hook area?, also i have a lot more forums that i want to force and i have modified the code is this right

PHP Code:

if (in_array($forumid, array(58,59,60,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108)))))))))))))))))))))))))))))))))))))))))))))))))))

      
header'Location: http://www.harleydavidsonpartsforum.comforum/misc.php?do=form&fid=1' ) ;  
 } 

any help from anyone would be appreciated just not sure about this part of the explination
PHP Code:

[*]Create plugin newthread_start 


Create a vBulletin plugin in AdminCP using hook 'newthread_start' with following php code

PHP Code:

if (in_array($forumid, array(58,59,60,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108)))

      
header'Location: http://www.harleydavidsonpartsforum.comforum/misc.php?do=form&fid=1' ) ;  
 } 


lovefords 03-29-2010 05:30 PM

This really is a good product. It is easy to use.
If anyone wants to see a live example
http://forum.love-fords.org/ > VIN INFO > ASK LOVEFORDS

John

bananalive 03-29-2010 05:49 PM

Quote:

Originally Posted by sose (Post 2011714)
What I want to do, for example under stone type, would be to have a single line of drop down or text boxes where the input and output could closely match a spreadsheet. Basically a table for input that was 8 rows down and 5 columns across.

Also, I would like to know if the data that you use for creating the graphs could actual go into a DB table that can later be used for SQL queries.

No sorry that isn't possible with this modification.

your24hourstore 03-29-2010 10:05 PM

Quote:

Originally Posted by bananalive (Post 2012362)
Create a vBulletin plugin in AdminCP using hook 'newthread_start' with following php code

PHP Code:

if (in_array($forumid, array(58,59,60,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108)))

      
header'Location: http://www.harleydavidsonpartsforum.comforum/misc.php?do=form&fid=1' ) ;  
 } 


that is kool I got it working, after taking forum out i run directory right off root
that is so dang kool. thanks man

got any unmm timetables on that new version with the kool new field code in it :up:

your24hourstore 03-29-2010 10:10 PM

406 is installed


All times are GMT. The time now is 12:48 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.03227 seconds
  • Memory Usage 1,911KB
  • 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_php_printable
  • (23)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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