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)

Crotan 06-15-2011 07:54 PM

Quote:

Originally Posted by gr8whtd0pe (Post 2207836)
I had to change mine to a multi-line text box. :(

Quote:

Originally Posted by Shadow09 (Post 2207965)
Same here... Disabled til fix.

Yea i guess we could could go back to the multi line text box, but having the vb editor would be ideal. Hoping for a fix soon!

David Hodgkins 06-17-2011 04:20 PM

re: 4.1.4 incompatability:

I was hoping to install this today. Please let us know the timing of the fix.

bananalive 06-18-2011 06:37 PM

1 Attachment(s)
Attached version should work with vBulletin v4.1.4 (with the new vBulletin editor)

Installation
  1. Import in product file to admincp. (allow overwrite)
  2. No further edits required.

Hendrik83 06-18-2011 06:48 PM

Thanks for the update!

Not working on my forum...

thetgc 06-18-2011 07:05 PM

Quote:

Originally Posted by Hendrik83 (Post 2209550)
Thanks for the update!

Not working on my forum...

+1, updated mine but still not working :(

David Hodgkins 06-18-2011 11:55 PM

Quote:

Originally Posted by Hendrik83 (Post 2209550)
Thanks for the update!

Not working on my forum...


First of all, thank you for jumping on this fix.

I'm going to wait for someone to post a successful install before I attempt this.

Mine will be a first-time install so I'd prefer it go in clean...

:)

ascroft 06-19-2011 01:24 AM

Hi there. I have finally got round to making the change to launch the form for more locations and in my plugin I have the following context, but it doesn't launch the easy form - just the basic std post. Do I have the syntax wrong?

Many thanks.

if (in_array($forumid, array(158,160,161,162,163,165,167,168,169,170,172, 174,175,177,179,181,61,182,183 ,184,186,188,190,191,193,56,194,195,197)))
{
header( 'Location:/listings/misc.php?do=form&fid=1' ) ;
}

btw, in the custom question on the form, I have the following (don't think it is related) You advised me on this to be able to order the forums in the drop down list the way I wanted.

$newarray = array(
158 => $vbulletin->forumcache['158'],
160 => $vbulletin->forumcache['160'],
161 => $vbulletin->forumcache['161'],
162 => $vbulletin->forumcache['162'],
163 => $vbulletin->forumcache['163'],
165 => $vbulletin->forumcache['165'],
167 => $vbulletin->forumcache['167'],
168 => $vbulletin->forumcache['168'],
169 => $vbulletin->forumcache['169'],
170 => $vbulletin->forumcache['170'],
172 => $vbulletin->forumcache['172'],
174 => $vbulletin->forumcache['174'],
175 => $vbulletin->forumcache['175'],
177 => $vbulletin->forumcache['177'],
179 => $vbulletin->forumcache['179'],
181 => $vbulletin->forumcache['181'],
61 => $vbulletin->forumcache['61'],
182 => $vbulletin->forumcache['182'],
183 => $vbulletin->forumcache['183'],
184 => $vbulletin->forumcache['184'],
186 => $vbulletin->forumcache['186'],
188 => $vbulletin->forumcache['188'],
190 => $vbulletin->forumcache['190'],
191 => $vbulletin->forumcache['191'],
193 => $vbulletin->forumcache['193'],
56 => $vbulletin->forumcache['56'],
194 => $vbulletin->forumcache['194'],
195 => $vbulletin->forumcache['195'],
197 => $vbulletin->forumcache['197'],
);
$answer = "<select name=\"$formbit[id]\" id=\"q_" . $formbit[id] . "\">";
foreach ($newarray AS $forumid => $forum)
{
if ($qo['forumid']==$forumid)
{
$forum['selected'] = ' selected="selected"';
}
$answer .= "<option value=\"$forumid\"$forum[selected]>$forum[title]</option>";
}
$answer .= "</select>";

deverill2010 06-19-2011 06:51 AM

Will this be fixed soon? As I need the form for a quiz very soon :(

bananalive 06-19-2011 08:31 AM

Quote:

Originally Posted by thetgc (Post 2209556)
+1, updated mine but still not working :(

Quote:

Originally Posted by deverill2010 (Post 2209759)
Will this be fixed soon? As I need the form for a quiz very soon :(


What isn't working for you? Do you get an error message? What browser are you using?

Which page is it? 'viewing form'?

Tested on vbulletin v4.1.4 in Chrome browser and it's working for me

bananalive 06-19-2011 08:39 AM

Quote:

Originally Posted by ascroft (Post 2209687)
Hi there. I have finally got round to making the change to launch the form for more locations and in my plugin I have the following context, but it doesn't launch the easy form - just the basic std post. Do I have the syntax wrong?

Many thanks.

if (in_array($forumid, array(158,160,161,162,163,165,167,168,169,170,172, 174,175,177,179,181,61,182,183,184,186,188,190,191 ,193,56,194,195,197)))
{
header( 'Location:/listings/misc.php?do=form&fid=1' ) ;
}

btw, in the custom question on the form, I have the following (don't think it is related) You advised me on this to be able to order the forums in the drop down list the way I wanted.

$newarray = array(
158 => $vbulletin->forumcache['158'],
160 => $vbulletin->forumcache['160'],
161 => $vbulletin->forumcache['161'],
162 => $vbulletin->forumcache['162'],
163 => $vbulletin->forumcache['163'],
165 => $vbulletin->forumcache['165'],
167 => $vbulletin->forumcache['167'],
168 => $vbulletin->forumcache['168'],
169 => $vbulletin->forumcache['169'],
170 => $vbulletin->forumcache['170'],
172 => $vbulletin->forumcache['172'],
174 => $vbulletin->forumcache['174'],
175 => $vbulletin->forumcache['175'],
177 => $vbulletin->forumcache['177'],
179 => $vbulletin->forumcache['179'],
181 => $vbulletin->forumcache['181'],
61 => $vbulletin->forumcache['61'],
182 => $vbulletin->forumcache['182'],
183 => $vbulletin->forumcache['183'],
184 => $vbulletin->forumcache['184'],
186 => $vbulletin->forumcache['186'],
188 => $vbulletin->forumcache['188'],
190 => $vbulletin->forumcache['190'],
191 => $vbulletin->forumcache['191'],
193 => $vbulletin->forumcache['193'],
56 => $vbulletin->forumcache['56'],
194 => $vbulletin->forumcache['194'],
195 => $vbulletin->forumcache['195'],
197 => $vbulletin->forumcache['197'],
);
$answer = "<select name=\"$formbit[id]\" id=\"q_" . $formbit[id] . "\">";
foreach ($newarray AS $forumid => $forum)
{
if ($qo['forumid']==$forumid)
{
$forum['selected'] = ' selected="selected"';
}
$answer .= "<option value=\"$forumid\"$forum[selected]>$forum[title]</option>";
}
$answer .= "</select>";

Put a space after Location:

e.g.

PHP Code:

if (in_array($forumid, array(158,160,161,162,163,165,167,168,169,170,172,174,175,177,179,181,61,182,183 ,184,186,188,190,191,193,56,194,195,197)))
{
  
header('Location: /listings/misc.php?do=form&fid=1'); 



Hendrik83 06-19-2011 09:19 AM

1 Attachment(s)
Quote:

Originally Posted by bananalive (Post 2209780)
What isn't working for you? Do you get an error message? What browser are you using?

Which page is it? 'viewing form'?

Tested on vbulletin v4.1.4 in Chrome browser and it's working for me

Just overwritten with the new version.
And no template edits.

On chrome.

Attachment 130181

bananalive 06-19-2011 10:03 AM

1 Attachment(s)
vBulletin v4.1.4, try attached file for ckeditor

Let me know whether this version is working or not.

Hendrik83 06-19-2011 11:45 AM

Not working same result.

Markus79 06-19-2011 12:02 PM

Quote:

Originally Posted by Hendrik83 (Post 2209831)
Not working same result.


same 4 me

thetgc 06-19-2011 07:17 PM

same on firefox

HolyKiller 06-19-2011 09:14 PM

Feature request: Create thread in section based on answer

Descripton:
In one forum, you have 5 sub-forums and 1 Form. In the form are several questions and one of them is radiobutton / dropdown select question. Based on the choice, a new thread is created in specific sub-forum.

Example:
Sub-Forums
-> Blue
-> Red
-> Green
-> Black

Question:
What color is your <whatever>:

Answers:
Black, Red, Green, Black <-- user choose "Black" in radiobutton question

Result:
New thread is created in sub-forum "Black"

And something similiar for prefixes will be nice too. I mean .. "Set prefix based on answer". So for example:

Question:
What is the type of your report?

Answers:
Global bug, Missing "thing", Connection problem, Other <-- user choose "Connection problem"

Result:
New thread is created with prefix "Conenction"

Ofcourse the prefixes will be based on already created and predefined prefixes in specific forum, so for each answer i can assign existing prefix.

Shadow09 06-20-2011 06:54 AM

Quote:

Originally Posted by Hendrik83 (Post 2209831)
Not working same result.

Using your fix.

Hendrik83 06-20-2011 05:43 PM

Clean install also not working.

No errors. :confused:

http://img41.imageshack.us/img41/230...0c6b311483.png

Nocturnal222 06-22-2011 02:26 AM

Everything is good and works awesome, just one problem... no matter how i try i can't make it send a FORM result to e-mail. So if anyone can help or tell me how to do it i'll be thankful.

David Hodgkins 06-22-2011 05:28 PM

Quote:

Originally Posted by Nocturnal222 (Post 2211146)
Everything is good and works awesome, just one problem... no matter how i try i can't make it send a FORM result to e-mail. So if anyone can help or tell me how to do it i'll be thankful.

What version of the vBulletin are you using? I'm still holding off installing, as I don't see anywhere above where it says it works now with 4.1.4...

:)

Welshy2008 06-22-2011 05:45 PM

BA,

I would appreciate your help...

When I upgraded to 4.1.3 - my pluggins disappeared (the ones that I did to change the standard reply text to text of my choice).

The other pluggin was to redirect the user to my form which would then be submitted a post in a specified thread.

I have redone the "renaming of the reply tab text" pluggin and that works. BUT, the one that redirects the user to my form (before it submits as a post) is not working.

I am now using vBSEO 3.6.0 too, and I have also tried this with the vBSEO off, but still no joy.

Can you have a look at the code that I am using and possibly tell me where I have gone wrong please?

I have the following:

Code:

Product:  Easy Forms

Hook Location:  newreply_form_start
 
Title:  Easy Forms Reply Button

Execution Order: 5

Plugin PHP Code: 
if (in_array($threadinfo[threadid], array(ThreadID1)))

header('Location: http://www.myforumaddress.com/misc.php?do=form&fid=1') ; 
}
if (in_array($threadinfo[threadid], array(ThreadID2)))

header('Location: http://www.myforumaddress.com/misc.php?do=form&fid=2') ; 
}

Plugin is Active:  Yes


Many Thanks,
Welshy.


PS: All the permissions appear to be set correctly.

HolyKiller 06-23-2011 01:41 PM

Quote:

Originally Posted by David Hodgkins (Post 2211417)
What version of the vBulletin are you using? I'm still holding off installing, as I don't see anywhere above where it says it works now with 4.1.4...

:)

I'm using vB 4.1.4 and i didn't catch any error. :)

bananalive 06-23-2011 02:10 PM

Quote:

Originally Posted by Welshy2008 (Post 2211421)
BA,

I would appreciate your help...

When I upgraded to 4.1.3 - my pluggins disappeared (the ones that I did to change the standard reply text to text of my choice).

The other pluggin was to redirect the user to my form which would then be submitted a post in a specified thread.

I have redone the "renaming of the reply tab text" pluggin and that works. BUT, the one that redirects the user to my form (before it submits as a post) is not working.

I am now using vBSEO 3.6.0 too, and I have also tried this with the vBSEO off, but still no joy.

Can you have a look at the code that I am using and possibly tell me where I have gone wrong please?

I have the following:

Code:

Product:  Easy Forms

Hook Location:  newreply_form_start
 
Title:  Easy Forms Reply Button

Execution Order: 5

Plugin PHP Code: 
if (in_array($threadinfo[threadid], array(ThreadID1)))

header('Location: http://www.myforumaddress.com/misc.php?do=form&fid=1') ; 
}
if (in_array($threadinfo[threadid], array(ThreadID2)))

header('Location: http://www.myforumaddress.com/misc.php?do=form&fid=2') ; 
}

Plugin is Active:  Yes


Many Thanks,
Welshy.


PS: All the permissions appear to be set correctly.

Line:


PHP Code:

if (in_array($threadinfo[threadid], array(ThreadID1))) 

should be


PHP Code:

if (in_array($threadinfo[threadid], array(1))) 


Hendrik83 06-23-2011 03:22 PM

Why is the update not working for some of us?

There is no editor and i updated to the latest version.

David Hodgkins 06-23-2011 08:08 PM

Quote:

Originally Posted by Hendrik83 (Post 2211815)
Why is the update not working for some of us?

There is no editor and i updated to the latest version.

BananaLive, I installed this and haven't tested the editor, but the rest of it appears to be working well. Thanks!

I do have a question though. Is there a way to allow attachments when routing to a post, instead of just to a thread? And is there a way to include the attachments in PM and email routing?

Thanks again. I'll be busy tonight adding forms to my forum!

:)

Crotan 06-23-2011 10:28 PM

Quote:

Originally Posted by Hendrik83 (Post 2211815)
Why is the update not working for some of us?

There is no editor and i updated to the latest version.

I don't think the CKeditor is working for anyone in this mod, those who say it is working are probably just talking about the overall mod

David Hodgkins 06-23-2011 10:46 PM

Quote:

Originally Posted by Crotan (Post 2211959)
I don't think the CKeditor is working for anyone in this mod, those who say it is working are probably just talking about the overall mod

Actually, I just had this installed today and had them apply the patch in post #1372. I can add the editor and have it show up on my form. I'm sorry, I haven't done a full test yet, and might not get to it until this evening. But it does show up after I add it...

HTH, More testing later tonight...

:)

bananalive 06-23-2011 11:23 PM

The ckeditor seems to work for some users but not others, I've not yet found source of error.

dai-kun 06-23-2011 11:52 PM

Loading a page with a form I get this on my error report
PHP Code:

[19:49:56.311n.wrap_x_tags is null http://site.com/forum/clientscript/ckeditor/ckeditor.js?t=A7HG4HT&v=414:136 

The editor doesn't show up, I only see the smilies.
I using v4.2.7

ascroft 06-24-2011 10:03 AM

Hi there - hmmm. This doesn't still seem to work still.

I tried a new test form, linked to a forum and it doesn't seem to launch either.

But then I played around with what plug ins I have for newthread_formstart (think this is what I should be using for this rather than newthreadstart?)

I can launch the test form from the test forum if I have no other plugins using newthread_formstart but I have 4 (3 I need plus the test 1) as I have three different forms be launched from three different array sets of forums.



Mark.


Quote:

Originally Posted by bananalive (Post 2209781)
Put a space after Location:

e.g.

PHP Code:

if (in_array($forumid, array(158,160,161,162,163,165,167,168,169,170,172,174,175,177,179,181,61,182,183 ,184,186,188,190,191,193,56,194,195,197)))
{
  
header('Location: /listings/misc.php?do=form&fid=1'); 




Nocturnal222 06-25-2011 07:37 AM

Quote:

Originally Posted by David Hodgkins (Post 2211417)
What version of the vBulletin are you using? I'm still holding off installing, as I don't see anywhere above where it says it works now with 4.1.4...

:)

4.1.4 and works fine just the e-mail form result is not working.

HolyKiller 06-25-2011 12:00 PM

2 bananalive: It is possible to add a way to "TAG" thread by choosed answer on question?

BTW: more feature req ;)

S S0DEN 06-26-2011 02:58 AM

4.1.4 - Installed update but the editor does not work on test.

S S0DEN 06-26-2011 03:12 AM

How would I edit the title Forms in the Navbar? Also I would like to change the destination URL when the user clicks the Navbar link to the actual form and not the list of forms. Version 4.1.4

autostick 06-26-2011 09:27 PM

This is exactly what I need, thank you so much for making it so easy to install. I now see the Easy Form options in my user CP. However, I don't have a link in my forum quick links, and can not figure out where in the forum I can find the form editor. Where do I go, or what do I do next to start building a form? If this is a silly question or is already covered my apologies. I am a relative neophyte to vBulletin so please point me in the right direction if you can. Thanks a bunch.
:confused:

helwoe 07-02-2011 08:58 PM

Thank you bananalive for the multi select code.

helwoe 07-02-2011 10:27 PM

Sorry for the double post.

Thank you very much Bananalive for the multi-select code!
I found if I use more than one custom question with this code, the extra questions show up as double drop downs side by side instead of just one drop down each.

PHP Code:

$answer .= '<select name="'.$formbit[id].'[]" multiple="multiple" size="4">';
$answer .= '<option></option>';
$thisanswer explode(',',$qo[$formbit[id]]);
$members $db->query_read("SELECT * FROM " TABLE_PREFIX "user
WHERE membergroupids LIKE \"%17%\"
ORDER BY username ASC"
);
    while(
$row $db->fetch_array($members)) {
$answer .= '<option value="'.$row[username].'"';
if (
in_array($row[username], $thisanswer)) {
$answer .= 'selected="selected"';
}
$answer .= '>'.$row[username].'</option>';
}
$answer .= '</select>'


autostick 07-03-2011 02:25 AM

Installed Easy Forms in just ten minutes. Excellent user interface. This mod is truly outstanding.

Question: Is there a way to put a PAYPAL button at the end of the form? I have people renewing memberships via the form, and would like to let them pay immediately.

Thanks to Bananalive for really great work. http://www.carforums.net/images/smilies/bananna3.gif

ascroft 07-06-2011 07:32 AM

Hi there Dom.

The refresh of what was the last post in a forum using a plugin seems to have stopped working probably due to another change I made using arrays to have the thread prefix working. The move itself to the correct forum is fine but not the forum details update - keen to have this working again. (think it is at the bottom of the code below)

We added a plugin that moved the thread to the correct forum (newthread_post_complete) and it has the following:

if ($fid == 1)
{
$forumid = $q['forumid'];
$dataman =& datamanager_init('Thread', $vbulletin, ERRTYPE_ARRAY, 'threadpost');
$dataman->set_existing($threadinfo);
$dataman->setr('forumid', $forumid);
$dataman->pre_save();
if (count($dataman->errors) > 0)
{
foreach ($errors as $error)
{
$errorss .= $error. "<br />";
}
$errormessage = "Form failed to submit. The following error(s) occured: <br /> ".$errorss;
eval(standard_error($errormessage));
}
else
{
$dataman->save();
$foruminfo = fetch_foruminfo($forumid);
$threadinfo = fetch_threadinfo($newpost['threadid']);
mark_thread_read($threadinfo, $foruminfo, $vbulletin->userinfo['userid'], TIMENOW);
build_thread_counters($newpost['threadid']);
build_forum_counters($forumid);
}
}

I have pasted below the code for the custom question from the form that I think is related:

$newarray = array(
158 => $vbulletin->forumcache['158'],
160 => $vbulletin->forumcache['160'],
161 => $vbulletin->forumcache['161'],
162 => $vbulletin->forumcache['162'],
163 => $vbulletin->forumcache['163'],
165 => $vbulletin->forumcache['165'],
167 => $vbulletin->forumcache['167'],
168 => $vbulletin->forumcache['168'],
169 => $vbulletin->forumcache['169'],
170 => $vbulletin->forumcache['170'],
172 => $vbulletin->forumcache['172'],
174 => $vbulletin->forumcache['174'],
175 => $vbulletin->forumcache['175'],
177 => $vbulletin->forumcache['177'],
179 => $vbulletin->forumcache['179'],
181 => $vbulletin->forumcache['181'],
61 => $vbulletin->forumcache['61'],
182 => $vbulletin->forumcache['182'],
183 => $vbulletin->forumcache['183'],
184 => $vbulletin->forumcache['184'],
186 => $vbulletin->forumcache['186'],
188 => $vbulletin->forumcache['188'],
190 => $vbulletin->forumcache['190'],
191 => $vbulletin->forumcache['191'],
193 => $vbulletin->forumcache['193'],
56 => $vbulletin->forumcache['56'],
194 => $vbulletin->forumcache['194'],
195 => $vbulletin->forumcache['195'],
197 => $vbulletin->forumcache['197'],
);
$answer = "<select name=\"$formbit[id]\" id=\"q_" . $formbit[id] . "\">";
foreach ($newarray AS $forumid => $forum)
{
if ($qo['forumid']==$forumid)
{
$forum['selected'] = ' selected="selected"';
}
$answer .= "<option value=\"$forumid\"$forum[selected]>$forum[title]</option>";
}
$answer .= "</select>";

I have also pasted the code for the newthread_form_start -

if (in_array($forumid, array(158,160,161,162,163,165,167,168,169,170,172, 174,175,177,179,181,61,182,183 ,184,186,188,190,191,193,56,194,195,197)))
{
header('Location: /listings/misc.php?do=form&fid=1');
}

Can you advise please?

Thank you

Mark

Elenna 07-06-2011 11:35 PM

I installed this on 4.1.4, but my administrator account(s) receive the "No Permission" error when trying to view the forms listing. Any ideas?


All times are GMT. The time now is 11:01 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.02901 seconds
  • Memory Usage 1,893KB
  • 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
  • (2)bbcode_code_printable
  • (6)bbcode_php_printable
  • (18)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