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)

sanstarr 10-04-2011 04:13 AM

1 Attachment(s)
hi - thanks for your post.

still an error:

Quote:

Warnung: require_once([path]/includes/functions_wysiwygparser.php) [function.require-once]: failed to open stream: No such file or directory in [path]/forms.php (Zeile 368)

Fatal error: require_once() [function.require]: Failed opening required 'XXX/includes/functions_wysiwygparser.php' (include_path='.:/usr/share/php:..') in XXX/forms.php on line 368
:(

maybe the problem is, that "/includes/functions_wysiwygparser.php" doesn't exist.
use vb 4.1.X an other function with the ck-editor?

EDIT:

Found a solution:

Quote:

require_once(DIR . '/includes/class_wysiwygparser.php');
$html_parser = new vB_WysiwygHtmlParser($vbulletin);
$q[$formbit[id]] = $html_parser->parse_wysiwyg_html_to_bbcode($vbulletin->GPC["message"], 0);
then the form is submit correct. but problems with formatting the text, or the bbcode - texts like:
"<br>&am p " and so on...


EDIT2

following:

$q[$formbit[id]] = $html_parser->parse_wysiwyg_html_to_bbcode($vbulletin->GPC["message"], $vbulletin->options['pt_allowhtml']);

now the submited texts seems OK!!!
with correct formating etc.

for next release it must be a query for the vb version, that this mod can work with older and newer versions (with ck oder without)

something like this:

http://svn.vbulletin.org/trac/changeset/533/branches


now testing again... :)

edit3:

my forms.php -> see attachments ;)

djbaxter 10-04-2011 01:08 PM

Quote:

Originally Posted by bananalive (Post 2252861)
More than one ckeditor per form is not currently supported, due to the coding and required structure of ckeditor. Have you tried it with just one ck editor question?

That's probably not going to work for me.

...unless I make the others multiline text fields... hmmm.

Is there any way to allow editing the TYPE of item when you edit a question so I can convert from Editor fields to multi-line text fields without haveing to reconstruct the forms?

bananalive 10-04-2011 05:35 PM

1 Attachment(s)
v4.2.8
- another edit for ckeditor

@djbaxter edit editor question (not javascript popup) then you can swap editor for multiline text box

djbaxter 10-04-2011 08:07 PM

Quote:

Originally Posted by bananalive (Post 2253210)
@djbaxter edit editor question (not javascript popup) then you can swap editor for multiline text box

I don't understand. If I edit a question in a pre-existing form, I see no option to change the type of field anywhere.

djbaxter 10-04-2011 08:34 PM

There's another problem with v4.2.8. Now when I try to save any edit to the form, it redirects me to the FAQ and the changes aren't saved.

Sunka 10-04-2011 08:51 PM

For me (first install) all is working OK.
MOD v4.2.8

djbaxter 10-04-2011 08:59 PM

Quote:

Originally Posted by djbaxter (Post 2253253)
I don't understand. If I edit a question in a pre-existing form, I see no option to change the type of field anywhere.

OK. I understand now. I disable the popup editor in Settings.

bananalive 10-05-2011 08:53 AM

Quote:

Originally Posted by djbaxter (Post 2253263)
There's another problem with v4.2.8. Now when I try to save any edit to the form, it redirects me to the FAQ and the changes aren't saved.

Have you edited any of the templates? perhaps the form_edit template? If so revert them.

chrisngrod 10-05-2011 10:34 AM

Quote:

Originally Posted by bananalive (Post 2252864)
See screenshots for setting form up

Thanks for the reply.

I'm new to Vbulletin so I didn't see that I had not marked this as installed, but I went ahead and did and gave you a 5 star rating.

Your posted method works perfectly for e-mailing the form to the email field that was setup. However, I was hoping that there was a way to set the REPLY TO field in an e-mail.

I have a form that submits to myself and a Cricket Wireless Dealer. Cricket Wireless users submit this form to have changes made on their account. I was hoping that we could hit reply to on our e-mail and have it populate with their e-mail address. My dealer sometimes forgets to copy their e-mail into that field. By default it says it comes from the e-mail address we've inputted in Vbulletin (webmaster@cricketuser.....com).

Thanks again!

bananalive 10-05-2011 11:30 AM

Quote:

Originally Posted by chrisngrod (Post 2253530)
Thanks for the reply.

I'm new to Vbulletin so I didn't see that I had not marked this as installed, but I went ahead and did and gave you a 5 start rating.

Your posted method works perfectly for e-mailing the form to the email field that was setup. However, I was hoping that there was a way to set the REPLY TO field in an e-mail.

I have a form that submits to myself and a Cricket Wireless Dealer. Cricket Wireless users submit this form to have changes made on their account. I was hoping that we could hit reply to on our e-mail and have it populate with their e-mail address. My dealer sometimes forgets to copy their e-mail into that field. By default it says it comes from the e-mail address we've inputted in Vbulletin (webmaster@cricketuser.....com).

Thanks again!

Upgrade to Easy Forms v4.3.0


AdminCP -> Plugins & Products -> Add New Plugin

Create a plugin using hook: easy_forms_action_email

PHP Code:

$uheaders .= 'Reply-To: yourdealer@cricket.com' "\r\n"


djbaxter 10-05-2011 01:08 PM

Quote:

Originally Posted by bananalive (Post 2253501)
Have you edited any of the templates? perhaps the form_edit template? If so revert them.

I haven't but I do have the Quick Reply add-on. It only happens with the Ajax popup. Once I disabled that, it's fine.

Halfhidden 10-05-2011 04:57 PM

I've been searching but can't find out the answer to my questions.
I would like to create a poll that each choice has a different thumbnail next to it. The reason I ask this is because I would like to use it to allow members to vote on a photo contest.

I would need to restrict the amount of times they vote and be able to see who voted (make it public). Can this be done?
Thanks :D

chrisngrod 10-05-2011 06:02 PM

Just wanted to note that when the "Forum Submit Limit Per User" is relatively low it works.

I had some stuff setup with a limit of 20 and one user is at 21 already :-(.

I'm going to donate. Either way this has helped me a lot.

EDIT: Upgraded and then downgraded. When I tried to export a form with the new version or do some other functions it would take me to the smilies. After reverting back everything is fine again.

bananalive 10-06-2011 02:16 PM

Quote:

Originally Posted by Halfhidden (Post 2253660)
I've been searching but can't find out the answer to my questions.
I would like to create a poll that each choice has a different thumbnail next to it. The reason I ask this is because I would like to use it to allow members to vote on a photo contest.

I would need to restrict the amount of times they vote and be able to see who voted (make it public). Can this be done?
Thanks :D

Add Question -> Radio Buttons Question

The options field(s) allow bbcode, such as [img]

Settings for viewing form results are set in the admincp -> vbulletin options -> easy form settings

Edit Form -> Form Permissions -> Form Submit Limit per user -> 1

bananalive 10-06-2011 02:26 PM

Quote:

Originally Posted by chrisngrod (Post 2253679)
Just wanted to note that when the "Forum Submit Limit Per User" is relatively low it works.

I had some stuff setup with a limit of 20 and one user is at 21 already :-(.

I'm going to donate. Either way this has helped me a lot.

Hmm, not sure why this isn't working, perhaps the field has reached its length limit.


Alternative method, if you're saving results to db

Edit Form -> Form Hooks -> Form Hook: Form Start:
PHP Code:

$count_submits $vbulletin->db->query_first("SELECT COUNT(*) AS countrows FROM " TABLE_PREFIX "formresults WHERE fid = '$fid' AND userid = '".$vbulletin->userinfo['userid']."' "); 
if (
$count_submits['countrows'] > 20)
{
print_no_permission();


Quote:

EDIT: Upgraded and then downgraded. When I tried to export a form with the new version or do some other functions it would take me to the smilies. After reverting back everything is fine again.
I expect this is because your browser was using a cached version of easyforms.js. Clear browser cache or manually reload easyforms.js and it'll work.

Halfhidden 10-06-2011 02:30 PM

Quote:

Originally Posted by bananalive (Post 2253949)
Add Question -> Radio Buttons Question

The options field(s) allow bbcode, such as [img]

Settings for viewing form results are set in the admincp -> vbulletin options -> easy form settings

Edit Form -> Form Permissions -> Form Submit Limit per user -> 1


Thank you so much :D:D:D:D:D:D:D

chrisngrod 10-06-2011 02:42 PM

Quote:

Originally Posted by bananalive (Post 2253953)
Hmm, not sure why this isn't working, perhaps the field has reached its length limit.
...

I expect this is because your browser was using a cached version of easyforms.js. Clear browser cache or manually reload easyforms.js and it'll work.

You're the man! I'll try this out. Thanks.

lightshowpro 10-06-2011 04:13 PM

Hi,
Great work!
Has anyone tested this with 4.1.7?

chrisngrod 10-06-2011 04:24 PM

I'm on 4.1.7 as of this morning and everything seems to still be working. I don't use anything that requires CKEditor in the forms. Just thought that was worth noting.

dustoff99 10-07-2011 11:44 PM

For some reason, my new users who fill out the form are moved to a moderated post. It didn't before.

Recently upgraded from 4.1.3 to 4.1.6. I have a MOD installed (GlowHost - Spam-O-Matic), not sure if that could be my problem.

Basically I use the form for potential recruits for our gaming clan. I want the user to post the form unmoderated. Did something change in the settings or did I miss something?

CharlieDelta 10-08-2011 12:01 AM

Quote:

Originally Posted by dustoff99 (Post 2254496)
For some reason, my new users who fill out the form are moved to a moderated post. It didn't before.

Recently upgraded from 4.1.3 to 4.1.6. I have a MOD installed (GlowHost - Spam-O-Matic), not sure if that could be my problem.

Basically I use the form for potential recruits for our gaming clan. I want the user to post the form unmoderated. Did something change in the settings or did I miss something?

I use one of the forms for the exact same thing and this happened to me once before.
Check your forum permissions within the forum the results are being posted and ensure that you have "yes" checked for "Follow Forum Moderation Rules" for the usergroup posting the form. This should do the trick. ;)

dustoff99 10-08-2011 11:50 AM

@CharlieDelta

Nice site btw

I made the modification in the Custom Usergroup, so it was global. Now when a new user post, he will be able to without any post placed in the moderation que. If I found the place to do that just for that forum, it would do that as well is my guess.

I only want a new user to be able to post the form (recruiting post) without going to moderation and any other post to still be moderated. I just want to exempt that form. It was doing that fine until my update to 4.1.6 so I can only guess I am missing a setting either in this MOD or re look at my spam mod.

Also I am new to vB, so the learning curve is steep =]

dustoff99 10-08-2011 12:20 PM

Just found the culprit, pulled the logs from my GlowHost - Spam-O-Matic Log:

Post put under moderation based on Auto-Moderation Keywords

CharlieDelta 10-08-2011 06:42 PM

Quote:

Originally Posted by dustoff99 (Post 2254664)
Just found the culprit, pulled the logs from my GlowHost - Spam-O-Matic Log:

Post put under moderation based on Auto-Moderation Keywords

Glad to hear you figured it out. Thanks for the props.:D

Sunka 10-09-2011 04:38 AM

  • When put image or video code in Field using vBulletin editor, in output it show nothing

  • How to redirect user to post in thread after complete form? Form automaticlly create post in thread, how to redirect user after complete form to this post (in thaat moment that post is last one in topic). I try this link, but it say invalid url: http://www.pijanitvor.com/showthread.php?p=$newpost[postid]#post$newpost[postid]

  • Is it possible to have more than 5 columns in Grid option?

ry215 10-09-2011 10:41 AM

Great Hack,

I've a question: How can i add images from attachment to form result table.

Thanks in advance.

Crotan 10-09-2011 09:44 PM

Thanks for the resent updates! Working CKeditor in forms and all!

Hendrik83 10-13-2011 09:59 AM

Thanks for the update!

Installed again.

jimmycongo 10-14-2011 04:16 PM

I have a myriad of forms set up on my boards, would installing the newest version wipe out those forms? If so, how can I go about saving them before updating?

chrisngrod 10-14-2011 04:43 PM

Upgraded and downgraded here and it didn't wipe them. YMMV.

thunderclap82 10-17-2011 02:28 AM

I have attachments enabled and just upgraded to 4.3. Now suddenly I no longer have the Manage Attachments button showing. Instead its just ().

Any ideas how to fix this?

midnz 10-17-2011 07:38 AM

Quote:

Originally Posted by jimmycongo (Post 2257203)
I have a myriad of forms set up on my boards, would installing the newest version wipe out those forms? If so, how can I go about saving them before updating?

On your misc.php?do=forms page you should see links to export your forms for safekeeping.

Edit Form Delete Form Copy Form Export Form Form Results Form Results Table Form Results Poll Export Form Results to Excel

bigrover 10-20-2011 04:48 PM

First, I gotta say this is my favorite mod. The help I received in this forum to do some posting to current forums and such was phenomenal. Thank you.

I am working on an upgrade for our current site which is running vB 4.1.2 PL2 and Easy Forms 4.2.5 and am testing it all out on another server. I've installed vB 4.1.7 and Easy Forms 4.3.0, then imported the forms from my main site.

First issue -- I use the custom form output with the following info on my current site:

PHP Code:

[B]{qn_restaurant}: [SIZE=4]{qo_restaurant}[/SIZE][/B]
[
B]{qn_date}: [/B]{qo_date}
[
B]{qn_contact}: [/B]{qo_contact}
[
B]{qn_phone}: [/B]{qo_phone}
[
B]{qn_email}: [/B]{qo_email}
[
B]{qn_url}: [/B]{qo_url}
[
B]{qn_city}, {qn_state}: [/B]{qo_city}, {qo_state}
[
B]{qn_location}: [/B]{qo_location}
[
B]{qn_recommend} [/B]{qo_recommend}

[
B]{qn_comments}: [/B]
{
qo_comments}

<
vb:if condition="$q[24]!=''">[HIDE]{qo_private}[/HIDE]</vb:if> 

It works perfectly on my main site, but on the test site with the new versions, some of the questions and answers are not properly referenced if I don't use the question number instead of the reference name. Nothing I can't deal with, but it might bite others who migrate over as well.

Second issue -- The other odd issue is on several occasions during testing the browser (firefox) popped up and warned me about leaving the page when I click either the submit or preview button. It doesn't occur every time, but I haven't pinned this issue down yet.

bigrover 10-20-2011 05:48 PM

A bit more followup...

I modified the output styling to use the question numbers rather than the reference name and that isn't working correctly either.

PHP Code:

[B]{qn_29}: [SIZE=4]{qo_29}[/SIZE][/B]
[
B]{qn_31}: [/B]{qo_31}
[
B]{qn_33}: [/B]{qo_33}
[
B]{qn_34}: [/B]{qo_34}
[
B]{qn_35}: [/B]{qo_35}
[
B]{qn_36}, {qn_37}: [/B]{qo_36}, {qo_37}
[
B]{qn_38}: [/B]{qo_38}
[
B]{qn_50} [/B]{qo_50}

[
B]{qn_52}: [/B]
{
qo_52}

<
vb:if condition="$q[54]!=''">[HIDE]{qo_54}[/HIDE]</vb:if> 

The ouput places the answer to question 54 where answer 52 should be. It does not display the answer to 54. The output is shown below. The public comments question indicates it is question #52. The answer that was submitted was "just here for the view" but you can see it duplicated the result from answer 54. It looks like there are some pointer issues somewhere. I may uninstall version 4.3.0 and try 4.2.5 on vB 4.1.7 and see what happens.

Form output:
Tops
Restaurant Name: Bottom's Up
Date of Visit: right now!
Phone Number:
Email Address:
Website, or Ad:
City, State: sa, mid
Location:
Would you recommend this Restaurant? yes

Public comments:
Why isn't this fo everyone?

answer 54:
Why isn't this fo everyone?

bigrover 10-20-2011 07:16 PM

Downgrading to version 4.2.5 did not help, and in some ways made matters worse. When it imported the forms that had been modified by version 4.3.0 the question #'s all changes, as did the form id #. All of the custom formatting based on question #'s were now incorrect.

Also, the form displayed properly when selected from the forms menu, but when called through my hooks, the vBulletin editor fields are really messed up.

I'm removing 4.2.5 and going back to 4.3.0 since it knows about the CKEditor. Then I'm going to build a test form from scratch and see if my problems are coming from the export/import process.

djbaxter 10-20-2011 08:30 PM

Quote:

Originally Posted by bigrover (Post 2259427)
Second issue -- The other odd issue is on several occasions during testing the browser (firefox) popped up and warned me about leaving the page when I click either the submit or preview button. It doesn't occur every time, but I haven't pinned this issue down yet.

This is an issue with vBulletin 4.1.6 and 4.1.7, either "by design" or "a bug" depending on who you talk to. It's annoying but nothing to do with this or any other add-on.

bigrover 10-20-2011 08:33 PM

It appears my problems are related to the use of more than on vB editor field on a form. My forms have two editor fields. If I import a form created in an older version of Easy Forms, I can access both of them, but only the data from the second one is returned regardless of which method I use to access the answer. If I build a new form from scratch and add two editor field questions, the first one does not work. Specifically, most of the buttons in the editor are greyed out, and the text area will not receive the focus to text can be entered. The second editor field works as expected.

Can we no longer have more than one editor field in a form?

I'm still getting the prompt about leaving the page when I try and submit a form, regardless of whether I use Firefox or IE as the browser.

djbaxter 10-20-2011 08:45 PM

Quote:

Originally Posted by bigrover (Post 2259533)
It appears my problems are related to the use of more than on vB editor field on a form. My forms have two editor fields. If I import a form created in an older version of Easy Forms, I can access both of them, but only the data from the second one is returned regardless of which method I use to access the answer. If I build a new form from scratch and add two editor field questions, the first one does not work. Specifically, most of the buttons in the editor are greyed out, and the text area will not receive the focus to text can be entered. The second editor field works as expected.

Can we no longer have more than one editor field in a form?

I'm still getting the prompt about leaving the page when I try and submit a form, regardless of whether I use Firefox or IE as the browser.

No, unfortunately. What I had to do was convert them to multiline text fields.

bigrover 10-20-2011 09:22 PM

Quote:

Originally Posted by djbaxter (Post 2259529)
This is an issue with vBulletin 4.1.6 and 4.1.7, either "by design" or "a bug" depending on who you talk to. It's annoying but nothing to do with this or any other add-on.

Yeah, uh that's a bug and I really don't care what the programmers say. That message is intended to indicate to users that they may be accidentally leaving a site where they have entered data but not processed it. Sad to see that cropping up in this new version.

The deeper I get into an upgrade to 4.1.7, the less I am pleased with it. My production site has been compromised and I am constantly fighting spammers using it. The hosts we have used blame it on vB 4.1.2 PL2 and all want me on the latest version. So nice how they screwed up so much that most of my mods no longer function correctly.

Sorry, just venting. In programming, like medicine, the first rule should be "do no harm".

bigrover 10-20-2011 09:26 PM

Quote:

Originally Posted by djbaxter (Post 2259538)
No, unfortunately. What I had to do was convert them to multiline text fields.

I was worried that would be the solution. It is a less than perfect solution at best as I am expecting the form to return two large fields with significant formatted text that is then applied to the thread. I use the two separate editor fields so I can wrap a [HIDE] tag around on of them for enhanced membership content. Not having that is going to be sickening.

Maybe I need to look back at vB 4.2.5 patch level 4000 as a workable solution. Then I wouldn't have the spurious browser warnings and the Easy Forms 4.2.5 would work.


All times are GMT. The time now is 05:19 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.02985 seconds
  • Memory Usage 1,885KB
  • 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_php_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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