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 01-26-2009 02:53 PM

Quote:

Originally Posted by indie2industry (Post 1725077)
I got one for you :D

Is there a way to incorporate paypal into this and make it available to UNREGISTERED USERS??

Reason I'm asking this is because later this year I'm hosting an event where people attending will have to purchase tickets (2 types) and this mod would be the PERFECT solution IMO.

And if this is possible, would it be possible to LIMIT THE INVENTORY??

I'm sorry for asking such a far out question but once I saw this, I couldn't help but to ask.

Umm... I don't think so. It would require some external communication with paypal to confirm payment, etc. The limit could be done semi-effectively using form hook and the save to database, but it would only say availability after form is submitted because thats where the hook is currently.
Quote:

Originally Posted by troppodel (Post 1725121)
ok friend thanks but i'm not a coder can you write the query string?
other question, for me it is important that the attach is compulsory how can i do it?

Can you add for the new update the possibility to use the form based with the postcount?

thanks advance
Ivan

I'll write the code when i get a bit of a chance.

The attachment is integrated into vbulletin and so i don't think that it is possible.

The post-count would be easily achievable if i added a hook into beginning of form - I'll do that sometime.

bananalive 01-26-2009 04:03 PM

Quote:

Originally Posted by troppodel (Post 1725121)
ok friend thanks but i'm not a coder can you write the query string?

I've added in $customerror into v2.7

To add it in yourself: find in template form_view
Code:

<if condition="$unanswered_questions"><phrase 1="$incompleteqs">$vbphrase[form_not_submitted]</phrase></if>
Add Below:
Code:

$customerror
Either: (uses $threadtitle)
PHP Code:

$count $vbulletin->db->query_first("SELECT COUNT(*) AS countrows FROM " TABLE_PREFIX "thread WHERE title='".addslashes($threadtitle)."'");
if (
$count[countrows] > 0)
{
$complete false;
$customerror "Error, thread already exists with this title";


Or (uses question output - remember to replace $q_{4} with the correct question number)
PHP Code:

$count $vbulletin->db->query_first("SELECT COUNT(*) AS countrows FROM " TABLE_PREFIX "thread WHERE title='".addslashes($q_{4})."'");
if (
$count[countrows] > 0)
{
$complete false;
$customerror "Error, thread already exists with this title";



Cledus James 01-26-2009 04:25 PM

Great mod! Installed!

Seriously makes adding all kinds of new features to your site easy!

ssslippy 01-26-2009 07:44 PM

Now that the data is being saved to the database can it be made searchable?

troppodel 01-26-2009 08:56 PM

Quote:

Originally Posted by bananalive (Post 1725331)
I've added in $customerror into v2.7

To add it in yourself: find in template form_view
Code:

<if condition="$unanswered_questions"><phrase 1="$incompleteqs">$vbphrase[form_not_submitted]</phrase></if>
Add Below:
Code:

$customerror
Either: (uses $threadtitle)
PHP Code:

$count $vbulletin->db->query_first("SELECT COUNT(*) AS countrows FROM " TABLE_PREFIX "thread WHERE title='".addslashes($threadtitle)."'");
if (
$count[countrows] > 0)
{
$complete false;
$customerror "Error, thread already exists with this title";


Or (uses question output - remember to replace $q_{4} with the correct question number)
PHP Code:

$count $vbulletin->db->query_first("SELECT COUNT(*) AS countrows FROM " TABLE_PREFIX "thread WHERE title='".addslashes($q_{4})."'");
if (
$count[countrows] > 0)
{
$complete false;
$customerror "Error, thread already exists with this title";



Hi friend
thanks again for your support
my apologies for the question i have edited the template
but the php code i have to add on form hook in my form or not? because don't work

valletin 01-27-2009 02:43 AM

Hi,

i work in a non for profit organisation and we have around 90 clients that need to fill out a client form (large amount of information, tickboxes, etc..).

Each of the clients have their own thread within the forum.

Each client can't access other client's threads/forums and is 'locked' within their thread, within their own forms.

A sticky thread would be posted containing a large amount of client's information within each client's thread, that can be updated by the client or by the admin.

Is Easy Forms a solution to this? If not, does anyone know a solution to this?

bananalive 01-27-2009 01:59 PM

Quote:

Originally Posted by troppodel (Post 1725612)
Hi friend
thanks again for your support
my apologies for the question i have edited the template
but the php code i have to add on form hook in my form or not? because don't work

Put the php code in the form hook before submit, bu you'll need to replace $q_{4} with the correct question number or if it's a combination of answers use $threadtitle.

Quote:

Originally Posted by valletin (Post 1725796)
Hi,

i work in a non for profit organisation and we have around 90 clients that need to fill out a client form (large amount of information, tickboxes, etc..).

Each of the clients have their own thread within the forum.

Each client can't access other client's threads/forums and is 'locked' within their thread, within their own forms.

A sticky thread would be posted containing a large amount of client's information within each client's thread, that can be updated by the client or by the admin.

Is Easy Forms a solution to this? If not, does anyone know a solution to this?

Create forum for this.

Set forum permissions of clients to not view other threads.

Set forum permissions of clients to able to edit their own posts/ threads.

Then clients can create thread within the forum using the form (or the usual way)

Stryker412 01-27-2009 02:26 PM

I have a question, if these features are already please let me know. If not, I'd like to request them.

We use our forums for applicants to join our community. Right now we have our forms after being completed go into a section of the forums where only admins can view. Can yours do this?

bananalive 01-27-2009 02:42 PM

Quote:

Originally Posted by Stryker412 (Post 1726199)
I have a question, if these features are already please let me know. If not, I'd like to request them.

We use our forums for applicants to join our community. Right now we have our forms after being completed go into a section of the forums where only admins can view. Can yours do this?

Yep.

Stryker412 01-27-2009 02:47 PM

Is there an easier way to do birthdays? In my current form I have three drop down boxes for day/month/year?

Same with locations for State and Country.


All times are GMT. The time now is 02:45 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.02103 seconds
  • Memory Usage 1,774KB
  • 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
  • (4)bbcode_code_printable
  • (4)bbcode_php_printable
  • (7)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