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)

Doc203 06-10-2003 01:31 PM

That worked Erwin! Thanks for the help.

lhang 06-10-2003 03:25 PM

Hi I'm a new VB user. This is very new to me.
I download and install the forms. My link www.myforum.com/forums/form1.php is blank page. What am i missing? Please help. Thanx

Erwin 06-11-2003 01:56 AM

Make sure you have installed the templates, and you have the name of the template the same in the form1.php config.

lhang 06-11-2003 12:05 PM

Yes, the name of the template is the same in the form1.php. Should i also place the template in the same folder where the form1.php is. Thank you.

Erwin 06-11-2003 12:17 PM

Quote:

Today at 11:05 PM lhang said this in Post #114
Yes, the name of the template is the same in the form1.php. Should i also place the template in the same folder where the form1.php is. Thank you.
No, you ADD THE TEMPLATE in your ADMIN CP. It does not go into any folder. :) You are indeed new to vBulletin. Templates are added in the Admin CP - you add it to all styles - start with default. You do NOT upload them to any folder. They get added directly into the MySQL database.

nymyth 06-11-2003 10:40 PM

does anyone have a solution to my problem?>???

Peace

Erwin 06-12-2003 03:41 AM

No idea why, nymyth - the only explanation would be missing templates, or template names don't match.

Hobbes 06-13-2003 04:37 AM

question!!!

I was wondering if I could have a minimum amount of posts needed before you can use the forum. and if you dont have the number of posts, they get a message saying so....

possible? and how?

Pollo 06-14-2003 02:36 AM

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!

Erwin 06-14-2003 02:42 AM

Quote:

Yesterday at 03:37 PM Hobbes said this in Post #118
question!!!

I was wondering if I could have a minimum amount of posts needed before you can use the forum. and if you dont have the number of posts, they get a message saying so....


possible? and how?

Easy.

In form1.php (whatever you have called it) find:

PHP Code:

if ($action=="submit") { 

Underneath, add:

PHP Code:

$allowform 100;
if (
$bbuserinfo[posts] < $allowform) {
      eval(
"standarderror(\"".gettemplate("error_notenoughpostsform")."\");");
      exit;
    } 

Change 100 to whatever you like.

Then, ADD a new template called "error_notenoughpostsform".

with the contents:

Code:


You need a postcount of at least $allowform in order to send a form.

Done! :)


All times are GMT. The time now is 08:01 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.01724 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (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