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)

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 08:32 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.02857 seconds
  • Memory Usage 1,757KB
  • 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
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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