vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   New Posting Features - Form Hack (https://vborg.vbsupport.ru/showthread.php?t=126676)

Brundlefly 11-03-2007 01:33 PM

Great plugin Abe, I've been burning up the last two days using it. Thank you for you work. I do have a couple of questions, though.

1. I'm intrested in requiring an attachment to be uploaded. Has anybody done this?

2. I'd like to be able to include, in the thread title, the username of the person filling out the form. (i.e., "Application submitted by [username]"). I've seen something similiar to this posted previously but I couldn't get it to work.

mhackl 11-03-2007 05:41 PM

Is there any way to visually build the forms?

Charles_1 11-03-2007 07:42 PM

Quote:

Originally Posted by criscokid (Post 1365207)
Hi Abe1,

Are you going to be developing this fanatastic mod further? If you are here's some ideas I'd love to see implimented in a future version:

1: A number of characters already used in a specific input box.

Agree, I should use for this too. Abe1, please, what do you think? :-)

Brundlefly 11-04-2007 03:32 PM

Quote:

2. I'd like to be able to include, in the thread title, the username of the person filling out the form. (i.e., "Application submitted by [username]"). I've seen something similiar to this posted previously but I couldn't get it to work.
Using what was previously posted I managed to make this work. I'll provide the how to so its all in one post. All of the below is accomplished in the hook:

after

Code:

if ($_REQUEST['do'] == $formname)
{

add

Code:

$bbuserinfo = $vbulletin->userinfo;
In Part 2 of the variables add

Code:

$user_name = $bbuserinfo[username];
Example of formtitle

Code:

$formtitle = "Application for - $user_name";
Credit goes to ChrisBaktis and R.Caldwell for their previous discussion concerning this question.

laura66a 11-04-2007 05:36 PM

One thing I have discovered is that if you have one form in a product section that isn't working, none of the forms in that section will work.

When the Forms Hack is first installed it creates a new product section in the Plugin Manager called Product: Forms Hack. This is now where I store my live forms. I keep new and forms in development in the vBulletin section at the bottom.

I had a form that wasn't quite finished in the Forms Hack section and none of the other forms in the section worked. When I moved the incomplete form out, the others worked again.

Laura

lionelng 11-05-2007 10:32 AM

I've installed and tested the form without doing any editing work yet. It appeared that after I submitted the form, a thread named "Generic Form" was created but there isn't any forum associated with it.

Can I know how can I determine the forum to create the new thread in and how do i delete this test thread? I tried to read the "Generic Form" thread but it says i don't have enough permission even though i'm using an administrator account.

Any help is much appreciated. Thanks!

attroll 11-06-2007 03:46 AM

Quote:

Originally Posted by lionelng (Post 1376172)
I've installed and tested the form without doing any editing work yet. It appeared that after I submitted the form, a thread named "Generic Form" was created but there isn't any forum associated with it.

Can I know how can I determine the forum to create the new thread in and how do i delete this test thread? I tried to read the "Generic Form" thread but it says i don't have enough permission even though i'm using an administrator account.

Any help is much appreciated. Thanks!

Yes you can pick the forum you want it to go in by editing your plugin.
Go to your admincp and scroll down to Plugins & Products, then Plugin Manager. Scroll down until you find the form product. When you find it click Edit and in that block you should see the PHP code. That is where you do your editing to make the form the way you want it.

lionelng 11-06-2007 05:06 AM

Quote:

Originally Posted by attroll (Post 1376781)
Yes you can pick the forum you want it to go in by editing your plugin.
Go to your admincp and scroll down to Plugins & Products, then Plugin Manager. Scroll down until you find the form product. When you find it click Edit and in that block you should see the PHP code. That is where you do your editing to make the form the way you want it.

Thank for the prompt reply. So how can I delete the generic thread that doesn't belongs to any forum?

attroll 11-06-2007 06:16 AM

Quote:

Originally Posted by lionelng (Post 1376812)
Thank for the prompt reply. So how can I delete the generic thread that doesn't belongs to any forum?

You should be able to delete it like any other thread. Or try moving it to a valid forum then deleting it.

lionelng 11-06-2007 10:52 AM

Quote:

Originally Posted by attroll (Post 1376831)
You should be able to delete it like any other thread. Or try moving it to a valid forum then deleting it.

I can't. It says i don't have the permission when i tried to view the thread, even though i'm using administrator account. Any idea how we can resolve this?


All times are GMT. The time now is 02:07 PM.

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.02167 seconds
  • Memory Usage 1,746KB
  • 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
  • (6)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