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-12-2009 02:07 PM

Quote:

Originally Posted by valendono (Post 1709710)
I duno this bugs or not.. after submit question in form



but that not redirected

Cheers, I'll fix that in next release.

Dax IX 01-12-2009 07:35 PM

Quote:

Originally Posted by bananalive (Post 1709642)
Edit Plugin: Easy Forms AutoInsert Links

Replace all
PHP Code:

if ($vbulletin->options['easy_forms_navbar'] && $vbulletin->options['canviewformlist'] && in_array($vbulletin->userinfo['usergroupid'], unserialize($vbulletin->options['canviewformlist']))) { $ef_navbar_link "<td class=\"vbmenu_control\"><a href=\"".$vbulletin->options['bburl']."/misc.php$session[sessionurl_q]?do=forms\">$vbphrase[forms]</a></td>";
eval(
'$template_hook[navbar_buttons_left] .= $ef_navbar_link;'); }
if (
$vbulletin->options['easy_forms_quicklinks'] && $vbulletin->options['canviewformlist'] && in_array($vbulletin->userinfo['usergroupid'], unserialize($vbulletin->options['canviewformlist']))) { $ef_quicklinks "<tr><td class=\"vbmenu_option\"><a href=\"".$vbulletin->options['bburl']."/misc.php$session[sessionurl_q]?do=forms\">$vbphrase[forms]</a></td></tr>"
eval(
'$template_hook[navbar_quick_links_menu_pos4] .= $ef_quicklinks;'); } 



That's excellent! Thank you. :) I was going about it all wrong. :o

metalguy639 01-13-2009 12:35 AM

Quote:

Originally Posted by bananalive (Post 1708438)

I'm creating a help file, attached which should help you. The default code goes through each option and depending on the question type creates the form answer.

Thanks, I'm pretty sure I can work with this.

valendono 01-13-2009 01:54 AM

ok.. group problem on edit / create form

I give right to supermod but he have the supermod in additional group not general. But he cant create the form. But if I put his general group is supermod, he can create or edit form now.

And about "create form" links.. can u hide it only for "allowed group" ?

hope you can fix this.

Thanks.

lowey 01-13-2009 11:16 AM

Excellent product, thank you! :)

One minor issue though: how can I remove the formatting from the formoutput? Can't find it in the templates.

Thanks! :)

Edit: Alright, I found and "fixed" it in the product. Thanks anyway! :D

Haenk 01-13-2009 11:57 AM

Quote:

Originally Posted by lowey (Post 1710833)
Excellent product, thank you! :)

One minor issue though: how can I remove the formatting from the formoutput? Can't find it in the templates.

Thanks! :)

Edit: Alright, I found and "fixed" it in the product. Thanks anyway! :D

please tell me how or where you found it

designerweb 01-13-2009 01:21 PM

Awesome Mod - Much easier then the other one.

Very importnat before we install.

Does this allow us to upload an image and save all this data to the database
so we can call it up in other parts of the site?

bananalive 01-13-2009 01:42 PM

Quote:

Originally Posted by designerweb (Post 1710936)
Awesome Mod - Much easier then the other one.

Very importnat before we install.

Does this allow us to upload an image and save all this data to the database
so we can call it up in other parts of the site?

You can create forms with option to upload attachments. Form data can be saved in new thread, post in thread, email or pm.

bananalive 01-13-2009 01:58 PM

Quote:

Originally Posted by valendono (Post 1710460)
ok.. group problem on edit / create form

I give right to supermod but he have the supermod in additional group not general. But he cant create the form. But if I put his general group is supermod, he can create or edit form now.

Usergroup permissions are based on primary usergroup. However, I've changed this now (permissions will check primary & secondary usergroups) and it will be included in the next release.
Quote:

Originally Posted by valendono (Post 1710460)
And about "create form" links.. can u hide it only for "allowed group" ?

hope you can fix this.

Thanks.

Yep, i'll add that in next version.

bananalive 01-13-2009 02:06 PM

Quote:

Originally Posted by Haenk (Post 1710866)
please tell me how or where you found it

It's in plugin: Easy Forms

You'll be looking for anything which looks like this
PHP Code:

$formoutput .= "[INDENT][I]" . ($q_{$formbit[id]} ? " " $q_{$formbit[id]} . " " "-") . "[/I][/INDENT]\r\n"

p.s. all changes made to plugins are lost upon upgrading/ importing the product.

lazyseller 01-13-2009 02:23 PM

Kudos on this mod its alot better than when i first installed it.

How do i remove my form title from the thread? I only want the questions.

My suggestion for the next release is to add a action called "redirect to thread" and redirect to "post". The thank you message is annoying reminds me of phpbb

I also tried the custom macros layout but some of my answers are not displaying for some odd reason.

designerweb 01-13-2009 03:33 PM

Ahh I see. I sent you a PM on an issue. Please check.

bananalive 01-13-2009 03:38 PM

Quote:

Originally Posted by lazyseller (Post 1711003)
Kudos on this mod its alot better than when i first installed it.

How do i remove my form title from the thread? I only want the questions.

Open up plugin: Easy Forms

Find and delete:
PHP Code:

$formoutput "[CENTER][B][SIZE=5][COLOR=Black]" $form[title] . "[/COLOR][/SIZE][/B][/CENTER]\r\n\r\n"


bananalive 01-13-2009 03:39 PM

Quote:

Originally Posted by lazyseller (Post 1711003)
I also tried the custom macros layout but some of my answers are not displaying for some odd reason.

What question type are they?

Budget101 01-13-2009 06:00 PM

How can I make the Submitted Form Title be the First Question listed in the form:

For example, if the Form is called Big Zoo.
The first question is: Enter Animal Name.
Answer Submitted: Monkey

When the form is submitted, I want the Submitted Answer (in this example, Monkey) to show in the subject line of the thread that posts, rather than having 50 posts with the same subject, "Big Zoo".

TIA!

I tried using {q_1} - but that returned the following error message:

Please complete both the subject and message fields

Even with ALL fields completed.

bananalive 01-13-2009 07:50 PM

1 Attachment(s)
Quote:

Originally Posted by Budget101 (Post 1711220)
How can I make the Submitted Form Title be the First Question listed in the form:

For example, if the Form is called Big Zoo.
The first question is: Enter Animal Name.
Answer Submitted: Monkey

When the form is submitted, I want the Submitted Answer (in this example, Monkey) to show in the subject line of the thread that posts, rather than having 50 posts with the same subject, "Big Zoo".

TIA!

I tried using {q_1} - but that returned the following error message:

Please complete both the subject and message fields

Even with ALL fields completed.

What kind of question is it? dropdown select/ single line input...

Also check you are using the correct question number - it's the number after the # as circled in the attached screenshot

dmknights 01-13-2009 11:06 PM

*Installed*
Works Perfect

ssslippy 01-13-2009 11:47 PM

Code:

Fatal error:  Call to undefined function construct_attachment_add_js() in forums/misc.php(100) : eval()'d code on line 1180
Attachments seem to be failing

bananalive 01-14-2009 02:46 PM

Quote:

Originally Posted by ssslippy (Post 1711550)
Code:

Fatal error:  Call to undefined function construct_attachment_add_js() in forums/misc.php(100) : eval()'d code on line 1180
Attachments seem to be failing

What page?

What vb version are you using?

ssslippy 01-14-2009 05:36 PM

Version 3.8 I get that error when hitting preview. If I hit submit the forms go through but the attachment does not appear. Also note I am using file attachment storage not db storage of attachments. Also I am using xcache not sure if that effects attachments though.

gamerscms 01-14-2009 06:53 PM

An other great hack from banana :)

Just a quick question how would i go about changing the colour of the form text from to my own colour.

thanks

jiffylb1 01-14-2009 07:04 PM

awsome just awsome love it...
what a great mod thanks a million needed it so bad

lowey 01-15-2009 08:46 AM

Fantastic Hack, but I can't get attachments to appear in forms output to threads. Is there a way? Thank you! :)

bananalive 01-15-2009 02:42 PM

Quote:

Originally Posted by ssslippy (Post 1712340)
Version 3.8 I get that error when hitting preview. If I hit submit the forms go through but the attachment does not appear. Also note I am using file attachment storage not db storage of attachments. Also I am using xcache not sure if that effects attachments though.

Odd it works fine for me on vb 3.8 :confused:

I'll look into it.

Have you changed any of the templates, if you have revert them.

bananalive 01-15-2009 02:43 PM

Quote:

Originally Posted by gamerscms (Post 1712403)
An other great hack from banana :)

Just a quick question how would i go about changing the colour of the form text from to my own colour.

thanks

It's not that easy atm, I'll make it easier in next version.

To Change Questions Colour
Open plugin: Easy Forms

Find and change this line with bbcode:
PHP Code:

            $formoutput .= "[b]" $formbit['question'] . "[/b]\r\n"

Maybe change to
PHP Code:

            $formoutput .= "[color=red][b]" $formbit['question'] . "[/b][/color]\r\n"

To change the Answer Colour
Open plugin: Easy Forms

Look for and change lines LIKE this with bbcode:
PHP Code:

$formoutput .= "[indent][i]" . ($q_{$formbit[id]} ? " " $q_{$formbit[id]} . " " "-") . "[/i]\r\n"


bananalive 01-15-2009 02:52 PM

1 Attachment(s)
Pre-Release v2.1

- Fixed issue with resizing poll options on edit form
- Form list only shows in navbar/ quick links if user has permission to view form list
- Form list only contains forms user has permission to view (unless user can edit form)
- Create Form link only shows for users with permissions to create forms
- Fixed missing <tr> tabs around Create new form
- Usergroup permissions changed to allow permissions through secondary usergroups
- Change bbcode for questions and answers easily in plugin
- Change null value easily, needed to stop bbcode messing up (default '-' )

gamerscms 01-15-2009 03:03 PM

Thanks for the update m8 :) where do you edit the BBcode?

bananalive 01-15-2009 03:06 PM

Quote:

Originally Posted by gamerscms (Post 1713468)
Thanks for the update m8 :) where do you edit the BBcode?

Plugin: Easy Forms

PHP Code:

$preqbbcode "[INDENT][I]";
        
$postqbbcode "[/I][/INDENT]\r\n"

The \r\n is the syntax for a new line.

gamerscms 01-15-2009 03:10 PM

Ok cool, but there would be a problem you cant use HEX colours only the BB colours.

i need #888888 colour

any ideas.

EDIT: To much code to look for that line as there is a lot of code the same in the plugin, any chance you could add a option to change colour in the admin.

cheers

bananalive 01-15-2009 03:18 PM

Quote:

Originally Posted by gamerscms (Post 1713476)
Ok cool, but there would be a problem you cant use HEX colours only the BB colours.

i need #888888 colour

any ideas.

EDIT: To much code to look for that line as there is a lot of code in the plugin, any chance you could add a option to change colour in the admin.

cheers

Put color tags inside the indent tag

PHP Code:

$preqbbcode "[INDENT][color=#888888][I]";
$postqbbcode "[/I][/color][/INDENT]\r\n"

use ctrl+f to search for line

gamerscms 01-15-2009 04:15 PM

Thanks a lot banana for the great support.

gamerscms 01-15-2009 04:26 PM

It does not seem to be changing the colour here is the code i have added.

PHP Code:

$formoutput .= "[color=#888888] [B]" $formbit['question'] . "[/B] [/color]\r\n" 

and also getting the following error:
Code:

Fatal error: Maximum execution time of 30 seconds exceeded in /home/sites/xboxhive.co.uk/public_html/forums/admincp/plugin.php on line 528
Any ideas?

thanks

bananalive 01-15-2009 05:28 PM

Quote:

Originally Posted by gamerscms (Post 1713556)
It does not seem to be changing the colour here is the code i have added.

PHP Code:

$formoutput .= "[color=#888888] [B]" $formbit['question'] . "[/B] [/color]\r\n" 


This will only change the colour of the question in the thread/ post/ pm which the form creates. To change colour of the question in the form itself you will need to add bbcode in the actual question via edit form.
Quote:

Originally Posted by gamerscms (Post 1713556)
and also getting the following error:
Code:

Fatal error: Maximum execution time of 30 seconds exceeded in /home/sites/xboxhive.co.uk/public_html/forums/admincp/plugin.php on line 528
Any ideas?

thanks

how many questions have you got in your form?

akvaryumforum 01-15-2009 05:34 PM

Form deletion is not work. It is auto redirect to the forumhome when try to delete the form.

bananalive 01-15-2009 06:00 PM

Quote:

Originally Posted by akvaryumforum (Post 1713649)
Form deletion is not work. It is auto redirect to the forumhome when try to delete the form.

Have you got javascript enabled?

akvaryumforum 01-15-2009 06:15 PM

Yes javascript enabled.

bananalive 01-15-2009 06:21 PM

Quote:

Originally Posted by akvaryumforum (Post 1713687)
Yes javascript enabled.

try v2.1

akvaryumforum 01-15-2009 06:33 PM

I try v2.1. Now it is redirect to the forumhome but differintly it links to http://www.akvaryumforum.com/forum/?do=deleteform&fid=2 adress. misc.php part is missing in the adress.

Edit: To delete the form i must edit the link http://www.akvaryumforum.com/forum/m...leteform&fid=2 like this.

bananalive 01-15-2009 06:52 PM

1 Attachment(s)
Quote:

Originally Posted by akvaryumforum (Post 1713704)
I try v2.1. Now it is redirect to the forumhome but differintly it links to http://www.akvaryumforum.com/forum/?do=deleteform&fid=2 adress. misc.php part is missing in the adress.

Edit: To delete the form i must edit the link http://www.akvaryumforum.com/forum/m...leteform&fid=2 like this.

Fixed in attached file

gamerscms 01-15-2009 07:14 PM

Quote:

Originally Posted by bananalive (Post 1713638)
how many questions have you got in your form?

I have 9 in it.

Im not to sure on this colour change :(


All times are GMT. The time now is 05:56 PM.

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.02639 seconds
  • Memory Usage 1,869KB
  • 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_code_printable
  • (10)bbcode_php_printable
  • (22)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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