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)

TROLL 09-19-2011 09:35 PM

Quote:

Originally Posted by HMBeaty (Post 2225745)
To shorten that up, I believe you could also use something like this:
PHP Code:

if($vbulletin->userinfo['posts'] < 30 AND $vbulletin->userinfo['joindate'] < TIMENOW - (86400 30))
{
    
standard_error(fetch_error('YOUR_ERROR_PHRASE'));


And go to Add New Phrase > Error Phrase > input your varname, text, etc. and change YOUR_ERROR_PHRASE to the varname you defined

Hello,
I found I am having an issue with some users being able to post even though they do not have both requirements: at least 30 posts and have been a member for 30 days. After reviewing the code, it appears that it is currently presented as:
"If you have less than 30 posts AND have been a member for less than 30 days, you receive an error message."
What I would like it to be is:
"If you have less than 30 posts OR have been a member for less than 30 days, you receive an error message."

This will require that users meet both a minimum post requirement and join date requirement, not that they only have to meet one or the other. To accomplish this, can I simply change the "AND" to "OR" in my current code, copied below?

PHP Code:

if($vbulletin->userinfo['posts'] < 30 AND $vbulletin->userinfo['joindate'] < TIMENOW - (86400 30))
{
$errormessage "You do not have permission to create a thread in the Personal Marketplace because you need a post count of at least 30 and to have been a member for at least 30 days to create a thread here.";
eval(
'print_output("' fetch_template('STANDARD_ERROR') . '");');



rnmcd 09-21-2011 07:22 PM

What happened to the developers web site that had sample forms on it?:(

Uberguilds 10-17-2011 10:19 PM

Did anyone fix the re-direct issue with vbseo on editing a form's options and saving?

The url is going to index.php#misc after I click "Save Changes."

Example:
The checkboxes, such as "Save to database" don't have a check mark when I marked it so before clicking "Save Changes" and being redirected to #misc.

Uberguilds 10-18-2011 11:46 PM

resolved manually.

"Save to Database" mysql> update vb3_forms set action=5;

Code:


 Field              | Type        | Null | Key | Default                                                                    | Extra          |
+--------------------+--------------+------+-----+-----------------------------------------------------------------------------+----------------+
| fid                | int(11)      | NO  | PRI | NULL                                                                        | auto_increment |
| title              | varchar(255) | NO  |    |                                                                            |                |
| description        | text        | NO  |    | NULL                                                                        |                |
| displayorder      | int(10)      | NO  |    | NULL                                                                        |                |
| action            | varchar(255) | NO  |    | NULL                                                                        |                |
| threadtitle        | varchar(255) | NO  |    |                                                                            |                |
| category          | varchar(255) | NO  |    |                                                                            |                |
| polloptions        | longtext    | NO  |    | NULL                                                                        |                |
| poll              | int(1)      | NO  |    | NULL                                                                        |                |
| publicpoll        | int(1)      | NO  |    | NULL                                                                        |                |
| multiplepoll      | int(1)      | NO  |    | NULL                                                                        |                |
| pollquestion      | varchar(255) | NO  |    | NULL                                                                        |                |
| usergroups        | text        | NO  |    | NULL                                                                        |                |
| submitmessage      | text        | NO  |    | NULL                                                                        |                |
| formoutput        | longtext    | NO  |    | NULL                                                                        |                |
| attach            | int(1)      | NO  |    | 0                                                                          |                |
| preq              | varchar(255) | NO  |    |                                                                          |                |
| pstq              | varchar(255) | NO  |    |
                                                                      |                |
| prea              | varchar(255) | NO  |    |                                                                |                |
| psta              | varchar(255) | NO  |    |
                                                            |                |
| pres              | varchar(255) | NO  |    |                                                                |                |
| psts              | varchar(255) | NO  |    |
                                                              |                |
| pref              | varchar(255) | NO  |    |                                                                            |                |
| pstf              | varchar(255) | NO  |    |                                                                            |                |
| beforesubmit      | longtext    | NO  |    | NULL                                                                        |                |
| formstart          | longtext    | NO  |    | NULL                                                                        |                |
| top                | varchar(255) | NO  |    |{formtitle}

 |                |
| showonfl          | int(1)      | NO  |    | 1                                                                          |                |
| redirect          | int(1)      | NO  |    | 0                                                                          |                |
| redirecturl        | varchar(255) | NO  |    | NULL                                                                        |                |
| pmrec              | varchar(255) | NO  |    | NULL                                                                        |                |
| threadid          | varchar(255) | NO  |    | NULL                                                                        |                |
| forumid            | varchar(255) | NO  |    | NULL                                                                        |                |
| email              | varchar(255) | NO  |    | NULL                                                                        |                |
| polltimeout        | int(3)      | NO  |    | 0                                                                          |                |
| prefixid          | varchar(255) | NO  |    |                                                                            |                |
| preview            | int(1)      | NO  |    | 1                                                                          |                |
| userids            | text        | NO  |    | NULL                                                                        |                |
| submitlimitperuser | varchar(255) | NO  |    |                                                                            |                |


|Jordan| 01-09-2012 05:01 AM

I know thread prefix support is already available, but i dont want the form to be locked to one prefix, i want users to be able to choose the prefix. How could i do this?

CoffeeLovesYou 01-22-2012 12:30 AM

How do you allow users to edit their submission without letting them see and edit everyone's submission?

1F42 02-02-2012 12:59 PM

Read up to page 50 so far ..still reading but not found any one with the same query/mod.

I would like it to post as a new thread in my mgc chatbox notification window as it use to do when I used the standard thread in that forum now im using the form there by default it does not show.

I'm guessing I need to change the code in Newthread_form_complete in the mgc chatbox product to look for forms created as well?

I think it just looks for this at the moment
$vbulletin->db->query_write

Can some one help or at least tell me if i'm on the right track.

Great mod by the way, and amazing support I have seen reading this far, off to read some more because I'll learn more :)

Update read every page and although I see the same old questions being raised, mine never has been it a new question! shame it took me to long to find this mod and it's not supported any more! Ill try posting in the new version.

1F42 02-02-2012 01:21 PM

Quote:

Originally Posted by |Jordan| (Post 2285452)
I know thread prefix support is already available, but i dont want the form to be locked to one prefix, i want users to be able to choose the prefix. How could i do this?

see here
https://vborg.vbsupport.ru/showpost....&postcount=963

tansu 02-09-2012 09:36 AM

Hello,
How can I prevent my users to submit the form more than once?

tansu 02-16-2012 05:43 AM

Quote:

Originally Posted by tansu (Post 2297846)
Hello,
How can I prevent my users to submit the form more than once?

Any ideas?


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