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 01-31-2009 03:32 PM

1 Attachment(s)
Quote:

Originally Posted by Budget101 (Post 1729170)
hmmm... it didn't work, the url didn't become clickable.



Would this need to be changed as well??
PHP Code:

Line 540   $formoutput $bbcode_parser->do_parse($formoutput,false,true,true,true,true,false); 

This is line 540 from the Easy Form 1

It wouldn't show link in preview but it should in the thread created.

The bbcode parser is separate, this is no option to parse urls with it.
Quote:

Originally Posted by TheFocusElf (Post 1729242)
Is this defined in the product or a template, the width of the QUESTION column and the width of the ANSWER column?

My questions seem to take up 90% of my board's fixed width, and this parses the answer fields in many cases.

Is it possible to format it like this:

Question
Description
Answer #1
Answer #2
Maybe even putting the answers in their own definable table with a separate "style" or background color.

Most important for me, though is the width issue, right now this excellent mod looks like crap on my boards. And my forum's width is 950 pixels, so as for why it is so crunched up, I am unsure.

You can modify the width by editing one of the formbit templates.

For instance:

open template form_formbit_textfield

Find
HTML Code:

<td class="smallfont" style="vertical-align: top; font-weight: bold;">$formbit[question]
Replace
HTML Code:

<td class="smallfont" style="vertical-align: top; font-weight: bold; width: 250px;">$formbit[question]
Quote:

Originally Posted by ssslippy (Post 1729429)
Would it be hard to implement the ability to allow certain usergroups to edit a single form?

Yes I cannot think of a way to do this.
Quote:

Originally Posted by setishock (Post 1729447)
Bananalive that is perfect and thank you. Yes please let me have the xml file for that.
I will mark as installed now.

Edit: I'm not having any problems with the product itself, I just don't know how to make it work like I want it to.
I haven't figured out how to make the output clean of the questions.

You will need to change the {q_48}, etc. with the corresponding number on the imported form. See attached screenshot

bananalive 01-31-2009 03:40 PM

Quote:

Originally Posted by anuanu (Post 1730006)
First off i want to say I love this mod. I use it as a recruitment/moderator application. I was wondering if you could add a part that would "Accept/Deny" an application and add "Accepted' or "Denied" to the thread title. And when it was "Denied" it would close the thread.

Currently what I do is make a reply saying if they were denied or accepted and close the thread.

I think what you trying to achieve is beyond what the modification does. Lazyseller's idea is worth considering.
Quote:

Originally Posted by lazyseller (Post 1729947)
Currently you have the ability to submit a reply form to a set thread id.

It would be really great if we could somehow make the thread id dynamic so the whole forum can use the same form. The form would be submitted depending where the user generates the form link from.

http://www.bananalive.co.cc/misc.php?do=form&fid=10&threadid=(dynamic)

You could use 'Form Hook: Form Start':
PHP Code:

$form['where'] = $vbulletin->input->clean_gpc('g''threadid'TYPE_UNIT);
if(!
$form['where'])
{
$errormessage "Error, no threadid specified.";
eval(
'print_output("' fetch_template('STANDARD_ERROR') . '");');


Quote:

Originally Posted by Stryker412 (Post 1729914)
Thank you for all this, is there a way to make the username not editable?

Also which part of the Easy Forms plugin can I edit to make the answers font bigger?

username shouldn't be editable, check it has the code readonly="readonly" in the question

Use 'Answer BBcode' [size=+1] or something similar

Simon Lloyd 01-31-2009 04:22 PM

This is probably a difficult one to answer, but i have put a button in my post bit that eventually will link to a form (will sort out how to do this later!), what i would like to do is post the form results to a custom bbcode tag in the original (the post that the button was clicked in) post, is that possible, or if thats not possible, is it possible to post to a forum as a new (not editable by ordinary members) thread?

Big ask i know.

Simon Lloyd 01-31-2009 04:31 PM

with this:
Quote:

Thread/ PM/ Email Title:
If left blank then the Thread/ PM title will be the same as the form title. You can use the following variables in the title: {username}, {userid} and {q_*}. For {q_*} replace the question id with the *, for example to show question 1's output you would use {q_1}.

can i use {q_1} - {q_2}
So that the title may look like "My Tip - Todays Tip" ?

bananalive 01-31-2009 04:33 PM

Quote:

Originally Posted by Simon Lloyd (Post 1730070)
This is probably a difficult one to answer, but i have put a button in my post bit that eventually will link to a form (will sort out how to do this later!), what i would like to do is post the form results to a custom bbcode tag in the original (the post that the button was clicked in) post, is that possible, or if thats not possible, is it possible to post to a forum as a new (not editable by ordinary members) thread?

Big ask i know.

The button link could be something like this:
HTML Code:

<input type="button" value="Form" onclick="window.location.href='http://www.your-forum.com/misc.php?do=form&fid=4'">
If you're wanting the button to edit the thread then this modification couldn't do it. It could with a bit of tweaking reply to thread which post is in.

The alternative is possible, just make sure forum permissions are set to cannot edit posts (for ordinary members).

Quote:

Originally Posted by Simon Lloyd (Post 1730080)
with this:can i use {q_1} - {q_2}
So that the title may look like "My Tip - Todays Tip" ?

Yes

Simon Lloyd 01-31-2009 05:19 PM

Quote:

Originally Posted by bananalive (Post 1730083)
The button link could be something like this:
HTML Code:

<input type="button" value="Form" onclick="window.location.href='http://www.your-forum.com/misc.php?do=form&fid=4'">
If you're wanting the button to edit the thread then this modification couldn't do it. It could with a bit of tweaking reply to thread which post is in.

The alternative is possible, just make sure forum permissions are set to cannot edit posts (for ordinary members).



Yes

Thanks for posting back so quick!, for the last part {Q...etc great as thats what i have done, and thanks for the code for button link (i'll try to work that one out), i have set up a forum to accept the form as i thought the other would be too difficult, all i need to do now is work out how to show an icon in the post that the button was clicked in perhaps with a link behind it to the form, again not your problem as your forms work great, could you explain what the new items are for? the Form Hooks? and what can i use to put in the Custom form output?, is it possible for the vbulletin editor response to appear in a custom bbcode that i have? (it's a bit like the quote bbcode only has a custom colour and pic)

bananalive 01-31-2009 05:38 PM

Quote:

Originally Posted by Simon Lloyd (Post 1730118)
Thanks for posting back so quick!, for the last part {Q...etc great as thats what i have done, and thanks for the code for button link (i'll try to work that one out), i have set up a forum to accept the form as i thought the other would be too difficult, all i need to do now is work out how to show an icon in the post that the button was clicked in perhaps with a link behind it to the form, again not your problem as your forms work great, could you explain what the new items are for? the Form Hooks? and what can i use to put in the Custom form output?, is it possible for the vbulletin editor response to appear in a custom bbcode that i have? (it's a bit like the quote bbcode only has a custom colour and pic)

The form hooks allow you to execute php code at the beginning of the form, just after it is queried (eg. for additional permissions) and just before it is submitted (eg. to submit to multiple locations or to validate some fields).

The custom form output accepts any forum bbcode you have and also macroses, for the questions and answers.

Simon Lloyd 01-31-2009 05:50 PM

Quote:

Originally Posted by bananalive (Post 1730135)
The form hooks allow you to execute php code at the beginning of the form, just after it is queried (eg. for additional permissions) and just before it is submitted (eg. to submit to multiple locations or to validate some fields).

The custom form output accepts any forum bbcode you have and also macroses, for the questions and answers.

Well not being a coder ( i can do what i'm told but not that great at writing it!) that was a bit like dutch to me "macroses"?, i understand the acceptance of bbcode but i was looking to have just the vbulletin editor output to appear inside these tags in the thread it is sent to.

BTW, thanks for this great support!

Simon Lloyd 01-31-2009 06:03 PM

Bananlive, sorry to keep calling on your time but i created a form but it didn't create a thread title and the sections are shown right against the titles here http://www.thecodecage.com/forumz/top-tips/57075-a.html i have upgraded your account at my forum to admin so you can check the edit of the form and what i may have done wrong.

bananalive 01-31-2009 06:17 PM

Quote:

Originally Posted by Simon Lloyd (Post 1730152)
Bananlive, sorry to keep calling on your time but i created a form but it didn't create a thread title and the sections are shown right against the titles here http://www.thecodecage.com/forumz/top-tips/57075-a.html i have upgraded your account at my forum to admin so you can check the edit of the form and what i may have done wrong.

Macroses is just a number for {q_45} and {qn_6}

Uses the # numbers

For Example:

Quote:

1. What application is this for?
(Dropdown Select) #8
{q_8}

For the sections use \r\n for line breaks

New output: http://www.thecodecage.com/forumz/to...cess-test.html

If you create a post of format you want I'll try and write the custom form output for you.


All times are GMT. The time now is 05:44 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.01809 seconds
  • Memory Usage 1,794KB
  • 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
  • (4)bbcode_html_printable
  • (2)bbcode_php_printable
  • (15)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