vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   FORM to THREAD/ FORUM/ POLL/ PM/ EMAIL - CUSTOMIZABLE FORMS - Mod Apps, Orders, News. (https://vborg.vbsupport.ru/showthread.php?t=66082)

breathwork 08-11-2004 10:27 AM

Quote:

Originally Posted by Erwin

INSTALLATION


Easy - takes only a few minutes:

1. Add the 2 templates.

2. Edit form.php - the instructions are all inside the PHP file itself, in the top half. Follow the instructions carefully!

3. Upload form.php

Just link to form1.php eg. http://www.yourforum.com/forums/form.php

Hi, I am having trouble insatlling the hack. I am new to vb hacking, how do I add 2 templates and where do I get them from and where should I place the form.php file you have in your zip file, and finally, how can I make this link to so that it always appears when a user wants to start a topic/thread or reply to a topic/thread

Sorry to be a pain, if this is too much for you, please point me somewhere where this is all explained (simply)

Many thanks
:ninja:

vau7 08-11-2004 02:58 PM

I can answer some Questions:
The 2 Templates you will find in the .zip-file coming to you as .txt-files. Now copy the content and open your ACP nad go to "Manage Styles" (http://www.yourForumUrl.de/admincp/t....php?do=modify). Open the scrolldown and select "Add New Template". Now you paste the content of the txtfile in the large Box. In the Title-field you put the name of the Txt-file but without its ending (.txt).
Thats all.

The Form.php you just put in your Forumsroot.
Now you can test ist on http://www.YourBoardUrl.de/form.php


Hope i could help, and now i have a question.
If an User fills out the form and it got posted as Thread the User doesn't get an Notificationmail if an answer was dropped. Even he has enabled it in UCP.
Any fix for this?

Its really an great great Hack. Thank you for your Muse.

breathwork 08-12-2004 07:50 AM

Hey there my good teacher VAU, many thanks for your assistance, It has worked, except when I ran the form and hit submit it came back with the following error

Quote:

Database error in vBulletin 3.0.3:

Invalid SQL: INSERT INTO post (postid,threadid,title,username,userid,dateline,pa getext,allowsmilie,showsignature,ipaddress,iconid, visible) VALUES (NULL,'12345','admin Generic Form','admin','1','1092300514','Generic Form
admin

What is the meaning to life?
Just a test

Choose one of the following choices
yes

Choose another one of the following choices
both

Is it yes or no? If yes, please elaborate
yes
hi there

What is your name?
Geoffrey

What is your email?
BreathWork@bigfoot.com

What is your website?
http://www.breathwork.be

-----------------------------------------------------
Please write down a paragraph about yourself.

This is a sample paragraph about my self and could be used as a means of posting a form message to a forum

------------------------------------------------------


','','','','','1')
mysql error: Table 'breathz_ibfncbb.post' doesn't exist

mysql error number: 1146
Is this normal? :ninja:

b4ne 08-16-2004 07:39 AM

I get always a
Fatal error: Call to undefined function: gettemplate() in /home/b4ne/www/form1.php on line 214
when I try to call the form1.php file.

any idea ?

vau7 08-16-2004 01:36 PM

@Breathwork: Nothing to thank for.
But with your SQL-Failure i cant help you. It cant post your Informations in the Databse-table, but i'm not knowing enough to tell you why.

@b4ne: Did you add the Templates?

b4ne 08-16-2004 03:01 PM

yes I did if I go to templates they are all there

Erwin 08-17-2004 02:40 PM

Update Version 1.3 - Form to Poll feature added

I've added the ability to create a simple poll from the form.

In the new form.php, edit these variables -

//ENABLE POLL TO BE CREATED - 1 = yes, 0 = no
$formpoll = "1";
$formoption1 = "Yes";
$formoption2 = "No";

You can rename the 2 poll options.

I've made it default that the poll is created with 2 options, but with some code changes you can customize this obviously.

I've got it with 2 options because I use my form as a moderation application form, and the poll is automatically created in our staff forums so that staff can vote. :)

Enjoy! :)

b4ne 08-17-2004 03:55 PM

Erwin can you help me with my previously reported problem ?

spence2 08-17-2004 05:49 PM

Erwin,

I would love to add to my form the ability to employ Mystics' [vB 3.0.0] - Thread Category / Prefix Hack.

What I need is the ability to insert the selection menu into my form similar to the way it is inserted in the attached image. Any light you might shed on the way I might go about doing this would be greatly appreciated! (BTW ... I have asked Mystics as well but so far he has not responded.)

PKRWUD 08-18-2004 05:11 PM

AWESOME Hack!

Installed!

One question: How do I make it so that the user is redirected to the thread after they complete the form?


All times are GMT. The time now is 03:27 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.01344 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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