vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   FORM TO FORUM/ THREAD/ PM/ EMAIL - CUSTOMIZABLE FORMS for Mod Apps, Orders, News (https://vborg.vbsupport.ru/showthread.php?t=53269)

Erwin 06-14-2003 02:46 AM

Quote:

Today at 01:36 PM Pollo said this in Post #119
Since this is hardcoded in the php file, I'm a bit confused as to how to achieve this (probably simple) modification:

//FORUM TO POST NEW THREAD IN
$formforumid = "131";

Above is original, but what I'd like is for users to be able to choose between 4 forums (submit the thread to the most appropriate forum). For example:

The forum is about motorized vehicles. Part of the entire board (4 forums) would be a place where users can submit this form (this hack) and choose if they are telling us about their motorcycle, car, boat, other and it would be submitted to the proper forum (motorcycle, car, boat, other).

If I can't get a drop down, I suppose I could just have multiple forms, and users would make the choice before they even see the form. In some ways that might work better, but I just wanted to know if it is possible to do this.

Great hack!


Can be done.

Remove the line:

$formforumid = "131";

Then, edit the template, and make a dropdown menu, with the select values being "formforumid" (using plain HTML).

This way, the user can choose which forum that the form goes into, by choose the forumid as formforumid. It's not hard to do at all.

Pollo 06-14-2003 02:57 AM

Danke! I'll give it a go and let you know how it works. I was actually looking for something similar to this, but wasn't sure how to put it all together. Far as I can tell, for these 4 forums, I would go to the admin cp under User Groups > Forum Permissions and choose a forum (do this for all 4 forums eventually), and 'Use custom settings:' and then check off 'no' to 'Can post new threads' so that this form will be the only way users will be able to start threads. Sound about right? I might be missing something.

Erwin 06-14-2003 03:07 AM

Yes, that's right. :)

tomjinx1 06-14-2003 04:01 AM

Erwin... great hack... how hard would it be to have the answers go into the database instead of a forum thread?

Since I can't get text boxes to work with the registration form for VB I was wanting to have the users answer go into the database and then me pull them out and displaying them in a memberslist type situation. I have the memberslist php file created but I'm can't figure out how to get these answers to go into the database...

Erwin 06-14-2003 04:34 AM

Quote:

Today at 03:01 PM tomjinx1 said this in Post #124
Erwin... great hack... how hard would it be to have the answers go into the database instead of a forum thread?

Since I can't get text boxes to work with the registration form for VB I was wanting to have the users answer go into the database and then me pull them out and displaying them in a memberslist type situation. I have the memberslist php file created but I'm can't figure out how to get these answers to go into the database...

You don't need my hack. :) All you need is to create a custom user profile field, note down the custom profile field id, and make a form that inserts data into that custom profile field. If you make it editable by the user, the user can even do it in their profile. It would be easy to list that out in a memberlist fashion.

Conundrum9 06-23-2003 01:10 PM

This hack is great and is exactly what I was looking for.

However, is it possible to have users fill in who they want to PM the form too rather then having it be sent to a specific userid every time? (like the field in a normal PM newmessage)

proxyMX 07-09-2003 06:36 PM

I would install this but i need to know if these features are planned

+ Easy multiple form creation from the admin cp for mutliple forums

I need different forms for four different forums, anyway i should go about this?

proxyMX 07-09-2003 07:12 PM

This hack sucks
THe form isnt as customisable as it claims, youve got to have the radio areas and everything

my form dosent NEED radio buttons, but they show up, and it seems i can only make one text box when i need like 10

proxyMX 07-09-2003 07:16 PM

what do i have to do to get my form to display properly

http://boo.hosting-talk.net/submitmovie.php

proxyMX 07-09-2003 07:34 PM

ALSO, its now posting blanks on my forums, ill stick to making my users copy a form and paste it into a new thread i think,

Im really bugged, this couldve been a great hack, but it means not only Editing

+ The Form itself but also 2 Templates for every form i post, then when it displays properly, it dosent even post properly.

Uch im still desperate for a similar form system


All times are GMT. The time now is 08:21 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.04928 seconds
  • Memory Usage 1,741KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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