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)

bananalive 02-04-2011 08:14 PM

Quote:

Originally Posted by steveman0018 (Post 2158498)
bananalive, this mod makes my website recruit form so much easier. Thank you very much. On a side note, a lot of people over at xenforo really want this mod ported over. Some offering donations too. Do you have any plans to do this?

Sorry, no I'm not.

bananalive 02-04-2011 08:25 PM

Quote:

Originally Posted by thunderclap82 (Post 2158739)
I'm still waiting for a response too. I've checked the permissions for attachments per your suggestion yet non-admin users still can't attach files. Is there a hidden Forms setting somewhere I'm missing?

Is it showing attach link? Are they getting error messages?

bananalive 02-04-2011 08:33 PM

Quote:

Originally Posted by customcolor (Post 2158480)
yeah!!your back!!

now i like to bump my question i had a wile back...


ok here is my question...i see what you did in post #64 and that is make it so you can choose an answer that is a thread title that is in a certain forum....now can you make it so that is the thread that the results go to from the form?...aka user can choose what thread in a forum the results go to every time with out having to go to that thread/s every time?

Form Hook: Form Start:
PHP Code:

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

Form Hook: Before Submit:
PHP Code:

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

Custom Question
  • Reference Name:
    Code:

    threadid
  • 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 = '2' 
          ORDER BY title ASC"
    ); 
              while(
    $row $db->fetch_array($threads)) { 
          
    $answer .= '<option value="'.$row[threadid].'"'
          if (
    $row[threadid] == $thisanswer) { 
          
    $answer .= 'selected="selected"'
          } 
          
    $answer .= '>'.$row[title].'</option>'
          } 
          
    $answer .= '</select>'


bananalive 02-04-2011 08:37 PM

Quote:

Originally Posted by Greight (Post 2158135)
Unicode characters like ب ت م and it does not make difference in any field. All turn into question marks.

I have just checked on my forum and those characters are inserted fine in forms for me.

bananalive 02-04-2011 08:38 PM

1 Attachment(s)
Quote:

Originally Posted by paul41598 (Post 2157777)
Is noone having major issues with this product with 4.1? I have sql errors constantly. I had issues installing the product and had to edit the DB create statements and remove the TYPE=MYSAM or whatever to get it to import.

Now when I try to delete forms I get:
Code:

atabase error in vBulletin 4.1.1:

Invalid SQL:
DELETE FROM formbits WHERE fid=1  AND userid = '1';

MySQL Error  : Unknown column 'userid' in 'where clause'
Error Number  : 1054
Request Date  : Wednesday, February 2nd 2011 @ 03:19:20 PM
Error Date    : Wednesday, February 2nd 2011 @ 03:19:21 PM


Here's the one I was talking about when I import the product

Code:

Database error in vBulletin 4.1.1:

Invalid SQL:

  CREATE TABLE IF NOT EXISTS `forms` (
  `fid` int(11) NOT NULL auto_increment,
  `title` varchar(255) NOT NULL default '',
  `description` text NOT NULL,
  `displayorder` int(10) NOT NULL,
  `action` int(3) NOT NULL,
  PRIMARY KEY  (`fid`)
) TYPE=MyISAM;

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM' at line 8
Error Number  : 1064


Try attached file.

thunderclap82 02-04-2011 08:51 PM

Quote:

Originally Posted by bananalive (Post 2158843)
Is it showing attach link? Are they getting error messages?

I'm getting the error:

"You do not have permission to access this page. This could be due to one of several reasons:

1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation."

I can only assume this means the permissions are configured wrong but, again, I've triple checked the forum permissions, usergroup permissions and verified with vB support and it's all configured properly.

bananalive 02-04-2011 08:55 PM

Quote:

Originally Posted by thunderclap82 (Post 2158853)
I'm getting the error:

"You do not have permission to access this page. This could be due to one of several reasons:

1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation."

I can only assume this means the permissions are configured wrong but, again, I've triple checked the forum permissions, usergroup permissions and verified with vB support and it's all configured properly.

Does the error come up after you click 'Manage Attachments'?

Does the user have permission to view forum, the thread is being created within?

Does the user have permission to post in the forum the thread is being created within?

Sorry about all the questions, but it's the only way i'll be able to find a solution because i cannot replicate the problem at the moment.

thunderclap82 02-04-2011 09:09 PM

Quote:

Originally Posted by bananalive (Post 2158854)
Does the error come up after you click 'Manage Attachments'?

Yes.

Quote:

Does the user have permission to view forum, the thread is being created within?
Yes, though the forum is hidden.

Quote:

Does the user have permission to post in the forum the thread is being created within?
Yes. And if they fill out the form it posts properly. It's only the Manage Attachments that isn't working.

thrace 02-06-2011 12:21 AM

Would it be possible to add a user to a special user group after they have completed the form? if so how would one go about doing this?

bananalive 02-06-2011 10:57 AM

Quote:

Originally Posted by thunderclap82 (Post 2158860)
Yes.

Yes, though the forum is hidden.

Yes. And if they fill out the form it posts properly. It's only the Manage Attachments that isn't working.

Here's a fix:
  1. Edit Form -> Alter Forum to one where users can post threads and attach files
  2. Create the following vBulletin Plugin via AdminCP
    • php code
      PHP Code:

      if ($fid == 43)
      {
      $forumid 6;
      $dataman =& datamanager_init('Thread'$vbulletinERRTYPE_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);    
      }


    • change 43 for appropriate form id
    • change 6 to appropriate forum id
    • hook name
      HTML Code:

      newthread_post_complete


All times are GMT. The time now is 05:14 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.04730 seconds
  • Memory Usage 1,791KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_html_printable
  • (4)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)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