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)

tehtide 02-09-2009 11:36 AM

Is there a way that we could PM a notification to a different user on our forums when this form has been submitted?

Right now I'm using this as an application on our website. When the form is completed a poll is created in a forum that the submitting user cannot access. However I'd like the ability to shoot a notification pm off to another user in the forum to let them know that a new application has been submitted. Is there any easy way of doing this?

tehtide 02-09-2009 12:47 PM

Is there any way to keep the new thread when posted to not show-up in the users subscribed threads list?

bananalive 02-09-2009 02:15 PM

Quote:

Originally Posted by pursuited (Post 1738541)
First thank you for answering my question! However in your help file you have an error:

Question:
How can I limit form access to users who have at least 10 posts?
Code:

if($vbulletin->userinfo['posts'] < 10)
{
$errormessage = "You need 200 posts to use this form.";
eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
}

Should be:
Code:

if($vbulletin->userinfo['posts'] < 10)
{
$errormessage = "You need 10 posts to use this form.";
eval('print_output("' . fetch_template('STANDARD_ERROR') . '");');
}

Not a big change, but might confuse some people.

Could you also help me in providing an example of a 'Custom Form Output'? I do not know where to even start there. Your help files states:


What do you mean by macros?

So could you provide a simple example of a custom form output please?

Thank you and for sure I nominated this mod!

Thanks Again!

OK thanks updated help file.

Code:

{username}'s Form

{qn_3}: {q_3}
{qn_1}: {q_1}
{qn_2}: {q_2}


bananalive 02-09-2009 02:21 PM

Quote:

Originally Posted by tehtide (Post 1738644)
Is there any way to keep the new thread when posted to not show-up in the users subscribed threads list?

Try adding:
PHP Code:

$newpost['emailupdate'] = '0'

after
PHP Code:

$newpost['disablesmilies'] = '0'


bananalive 02-09-2009 02:24 PM

Quote:

Originally Posted by tehtide (Post 1738607)
Is there a way that we could PM a notification to a different user on our forums when this form has been submitted?

Right now I'm using this as an application on our website. When the form is completed a poll is created in a forum that the submitting user cannot access. However I'd like the ability to shoot a notification pm off to another user in the forum to let them know that a new application has been submitted. Is there any easy way of doing this?

Form hook, before submit
PHP Code:

        global $vbulletin$botpermissions;
        
$fromuserid $vbulletin->userinfo['userid'];
        
$fromusername $vbulletin->userinfo['username'];
        
$title $threadtitle
        
$recipients "ADMIN"
        
$message "New application [url=http://google.com]here[/url]";
        
$pmdm =& datamanager_init('PM'$vbulletinERRTYPE_ARRAY);
        
$pmdm->set('fromuserid'$fromuserid);
        
$pmdm->set('fromusername'$fromusername);
        
$pmdm->set('title'$title);
        
$pmdm->set('message'$message);
        
$pmdm->set_recipients($recipients$botpermissions);
        
$pmdm->set('dateline'TIMENOW); 
        
$pmdm->overridequota true;
        
$errors $pmdm->errors;
        if (
$errors)
        {
            foreach (
$errors as $error)
            {
                
$errorss .= $error"<br />";
            }
            
$errormessage "Form failed to submit. The following error(s) occured: <br /> ".$errorss;
            eval(
'print_output("' fetch_template('STANDARD_ERROR') . '");');
        }
        
$pmdm->save();
        unset(
$pmdm); 


Welshy2008 02-09-2009 10:54 PM

Installed and "Install" clicked.

Sorry for what may sound a dumb question, But - How do I select the usergroups that I want to see and use the forms that I make Please?

I , as Admin - am the only one that is allowed to make the form / put the forum together.

It appears that the E-mail form is not being E-mailed to me either. :(

Thanks in advance for your help.

Battle_Ring 02-10-2009 01:42 AM

Im using this for memebrs to submit Reviews

IS there a way that will lett the memebr filling out the form input a title that it will use for a thread title??

bananalive 02-10-2009 12:41 PM

Quote:

Originally Posted by Battle_Ring (Post 1739284)
Im using this for memebrs to submit Reviews

IS there a way that will lett the memebr filling out the form input a title that it will use for a thread title??

Use macrose (replacement variables) in the form {q_X} where X is the # number of the question. So for question 1 being the title use {q_1}

bananalive 02-10-2009 12:44 PM

Quote:

Originally Posted by Welshy2008 (Post 1739156)
Installed and "Install" clicked.

Sorry for what may sound a dumb question, But - How do I select the usergroups that I want to see and use the forms that I make Please?

I , as Admin - am the only one that is allowed to make the form / put the forum together.

It appears that the E-mail form is not being E-mailed to me either. :(

Thanks in advance for your help.

To set usergroup permissions for all form:
vbulletin options -> Easy Forms Options -> Select Usergroups
(hold down ctrl to select more than one usergroup)
To set usergroups permissions for one form
Edit Form -> Usergroup Permissions -> Check the usergoups allowed to view form
Blank = uses vbulletin options settings

Lone Gunman 02-10-2009 02:09 PM

have you released 2.9 yet? i just got this installed and saw there wasnt yet an option to redirect to a custom page after submitting form. was going to ask about that, but looks like youre already working on it.

also is there a way to choose multiple submit options on submit.... email and pm or email and post or post and pm, etc.... (if already answered my appologies and ill find it tonight when i read through the whole thread).

great job btw! thanks!


All times are GMT. The time now is 09:02 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.01902 seconds
  • Memory Usage 1,768KB
  • 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
  • (3)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)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