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 02-28-2009 10:07 AM

Quote:

Originally Posted by frogster (Post 1755698)
Hello,

I installed and can submit a form with and without a picture attachment. However, when I attach a picture and click preview I get this:

Fatal error: Call to undefined function construct_attachment_add_js() in /home/content/g/a/l/galvanm/html/app/webroot/forum/misc.php(100) : eval()'d code on line 807

What vbulletin version are you using? Are you using any modifications which alter the attachment system?

bananalive 02-28-2009 10:16 AM

Quote:

Originally Posted by Michigan Morels (Post 1755504)
Questions on number and dollar formating.

Problem 1. In a single line text field I put this
PHP Code:

/(d+)/ 

in the Regular Expression:

However when I try to submit a form I get the invalid format error.
See attach. Attachment 95542

I'm using vB 3.7.4 and Easy Forms 3.1


Question 2. Is it possible to force number in text field so that both (5) and (5.00) would show as 5.00 (with decimal) and not 5 (without decimal), on submitted post? or make them both a dollar number ($5.00)
I can live without the dollar format if too difficult, but would like the other options.

Use
Code:

/(\d+)/
Use php code at Form hook: Form Start:
PHP Code:

$q[8] = $vbulletin->input->clean_gpc('p'8TYPE_NUM);
$q[8] = vb_number_format($q[8], 2);
$_POST['8'] = $q[8]; 

replace 8 with appropriate question hash

bananalive 02-28-2009 10:17 AM

Quote:

Originally Posted by alkank (Post 1755378)
hey there. great application. but i have a same problem that is like in the past posts. i use 3.1 and when i disallow registered users to edit forms they can not see the forms. i want them to see. use thr forms but not to edit or delete. thenk you so much..

vbulletin ver. : 3.81
www.amatorbalikcilar.net

Change their permissions to view forms in vbulletin options

Gizmo999 02-28-2009 01:18 PM

Is it possible to edit a completed form if its saved to database? currently admins can view the results, delete the results but not edit the results

dknelson 02-28-2009 02:32 PM

Quote:

Originally Posted by bananalive (Post 1755287)
I'll have to have think about this. There is probably a way to use the hooks so that you only have to have one form.

WOW...I sure hope so. I thought I would go ahead and just create 60 something forms but they have custom output so I just realized that I can't just cut and past the custom output because the question numbers are different for each one, even though they are the same questions. :(

frogster 02-28-2009 03:26 PM

Quote:

Originally Posted by bananalive (Post 1756773)
What vbulletin version are you using? Are you using any modifications which alter the attachment system?


I am using vB 3.8. I have the VB blog installed, and the FB Connect mod installed besides yours. I installed the update and now I get this when trying to preview...pretty much the same.

Fatal error: Call to undefined function construct_attachment_add_js() in /home/content/g/a/l/galvanm/html/app/webroot/forum/misc.php(100) : eval()'d code on line 1704

Also, when a user submits a form to a new thread, it goes into moderation. I already made sure the newpost visable is set to 1 and checked all my forum options and everything seems to be set right. Not sure what the problem is. Hopefully I can get this fixed as this is a great mod that I would love to use.

bananalive 02-28-2009 03:35 PM

Quote:

Originally Posted by Gizmo999 (Post 1756892)
Is it possible to edit a completed form if its saved to database? currently admins can view the results, delete the results but not edit the results

Nope

bananalive 02-28-2009 03:43 PM

Quote:

Originally Posted by dknelson (Post 1756927)
WOW...I sure hope so. I thought I would go ahead and just create 60 something forms but they have custom output so I just realized that I can't just cut and past the custom output because the question numbers are different for each one, even though they are the same questions. :(

  1. Create custom question
  2. php code:
    PHP Code:

    $answer '<select name="'.$formbit[id].'">';
    $answer .= '<option></option>';
    $thisanswer $q[$formbit[id]];
    $threads $db->query_read("SELECT * FROM " TABLE_PREFIX "thread
    WHERE forumid = '10' 
    ORDER BY title ASC"
    );
        while(
    $row $db->fetch_array($threads)) {
    $answer .= '<option value="'.$row[threadid].'"';
    if (
    $row[threadid] == $thisanswer) {
    $answer .= 'selected="selected"';
    }
    $answer .= '>'.htmlspecialchars($row[title]).'</option>';
    }
    $answer .= '</select>'

  3. Replace 10 with appropriate forumid
  4. Edit Form Hook: Before Submit
    PHP Code:

    $form['threadid'] = $q[1]; 

  5. Replace 1 with appropriate question hash

Andyrew 02-28-2009 04:26 PM

Is it possible to make a form that will add the output into an existing bbcode table in a thread, :)
even if the form can be only used by me, it would make it a lot easier than keep editing a bbcode table.

DontWannaName 02-28-2009 10:13 PM

Quote:

Originally Posted by bananalive (Post 1756768)
Edit plugin: Easy Forms Part 1

Find:
PHP Code:

/*$newpost['prefixid'] =& '';*/ 

Replace:
PHP Code:

$newpost['prefixid'] =& 1''

Replace 1 with the appropriate prefixid

I get this error:

Parse error: syntax error, unexpected T_LNUMBER, expecting T_NEW or T_STRING or T_VARIABLE or '$' in /home/topnotch/public_html/forums/misc.php(100) : eval()'d code on line 438


All times are GMT. The time now is 03:54 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.02371 seconds
  • Memory Usage 1,769KB
  • 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_code_printable
  • (6)bbcode_php_printable
  • (8)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