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)

Holidazed 07-27-2004 03:58 PM

Maybe I am misunderstanding you, but the templates you are referring to are included with the initial zip file. They are .txt files. Just make new templates with the same name as the .txt file (omit the .txt in the template name) and cut and paste the contects of the .txt file into the template.

pjdaley 07-27-2004 03:59 PM

Quote:

Originally Posted by bitg
That is pretty self explanitory

Open up the form.php (or whatever you named it) file
Look for:
Code:

////////////////////////////////////////////////////////////////////////////////////////////////////
//TITLE OF FORM (do not use quotation marks or you will get a parse error)
////////////////////////////////////////////////////////////////////////////////////////////////////
$formtitle = "Generic Form";

Replace:
Code:

$formtitle = "Generic Form";
With:

Code:

$formtitle = "thread title goes here";

Thank for your help. What i meant was, after the person submits the form, and it creates the thread. It says Unregistered has submitted a form! or whatever you want it with right? Well, how can i make it so the info they put for the first answer can be the title. For example, Whats your name? Joe. It'll say Joe has submitted a form! :ermm: ?

Holidazed 07-27-2004 04:10 PM

the default values for the form show the username as the first part of the thread title. I am unsure why your are referring to "Unregistered". Maybe you should modify for form.php file to only allow groups other than "unregistered" to use the form.

hpwilhelm 07-27-2004 08:12 PM

Thanks Erwin! Great hack! :)

One (two) questions: If submited as newthread or threadreply the postcounts for the user and forums does not update. Would this be possible to add?

And one more thing: BB-code support? (Smilies and formating) Not essensial, but would be nice... :)

hpwilhelm 07-28-2004 07:49 AM

Quote:

Originally Posted by hpwilhelm
Thanks Erwin! Great hack! :)

One (two) questions: If submited as newthread or threadreply the postcounts for the user and forums does not update. Would this be possible to add?

And one more thing: BB-code support? (Smilies and formating) Not essensial, but would be nice... :)

I need a way to format the thread output... :ermm: Anyone?

I would prefere CSS if thats posible.
My intention is a standardised output.

Erwin 07-28-2004 12:36 PM

Quote:

Originally Posted by hpwilhelm
Thanks Erwin! Great hack! :)

One (two) questions: If submited as newthread or threadreply the postcounts for the user and forums does not update. Would this be possible to add?

And one more thing: BB-code support? (Smilies and formating) Not essensial, but would be nice... :)

Really? They should. Is this a problem with other users?

hpwilhelm 07-28-2004 06:22 PM

Quote:

Originally Posted by Erwin
Really? They should. Is this a problem with other users?

The users postcount and the forums total postcount does not increase.

The forumsdisplay shows as when a "normal" post is made: last poster, date and postcount increase.

But the most important question for me right now is how I can format the new thread, with fonts, headers and paragraphs, not just plain text. How does vbulletin handle postformating? Now it just outputs the code as entered into both form and template... :ermm: Any ideas?

hpwilhelm 07-28-2004 08:52 PM

Quote:

Originally Posted by hpwilhelm
But the most important question for me right now is how I can format the new thread, with fonts, headers and paragraphs, not just plain text. How does vbulletin handle postformating? Now it just outputs the code as entered into both form and template... :ermm: Any ideas?

Ok, I've enabled HTML for the destination forum, then I can format it like I want using XHTML/CSS, but the forum is open for discussions also, so I would prefere if HTML could remain "off" for everyone else besides when using the form... :p

spence2 08-01-2004 05:07 AM

Thank you for this wonderful hack!

Erwin 08-07-2004 06:15 AM

Quote:

Originally Posted by hpwilhelm
The users postcount and the forums total postcount does not increase.

The forumsdisplay shows as when a "normal" post is made: last poster, date and postcount increase.

But the most important question for me right now is how I can format the new thread, with fonts, headers and paragraphs, not just plain text. How does vbulletin handle postformating? Now it just outputs the code as entered into both form and template... :ermm: Any ideas?

Yeah, you're right the user post count does not increase because this is not a post. :) I never added the query to add to the user's post count.

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?

Virulent1 08-18-2004 07:05 PM

ok i followed instructions... uploaded form.php and added the templates.. but im having one problem... when i go to submit the application to my self for a test.. i recieve a BLANK PM and BLANK EMAIL.. i dont get why its sending them blank... anyway very nice hack :D

Brahm 08-18-2004 07:06 PM

Erwin,
You're a real pro. Thanks for this hack -- it rocks. I have been doing a little research on how to get this page to redirect to the new "Thread" it has created once the form is submitted and it tells you "Thank You." Is there a simple line of code I can add to the form.php that will do this?

Erwin 08-19-2004 12:04 AM

Make sure you add the templates to the correct style. Blank pages and PMs mean the templates are not there or cannot be found.

Virulent1 08-19-2004 12:51 AM

they are added to the correct template.. thats odd... :\ i even tryed adding them to the other.. still blank... :\ i named them form and formanswers... like they should be from what im told..

cnczone 08-19-2004 12:55 AM

how do i check the color for those table that are black?

Erwin 08-19-2004 04:44 AM

Quote:

Originally Posted by cnczone
how do i check the color for those table that are black?

Your background must be black or somethng - modify the "form" template.

Merjawy 08-19-2004 05:15 AM

Very nice Erwin, thanks

I have a little question :)

how can I use this hack? not technicaly, I did install it and customized it and all working just fine test posing in forum (new/reply) and email

but I guess my question is whats the best way to use it for? or how to make use of it?

I sat there with another admin trying to figure that but .....

I thought I'd just use the email part to make it like site comments or whatever

but why use that to post in the forum when we have the normal posing way or even quick posting too?

I am sorry I am not tryin to say anything other than wanting some ideas to make use of the script as I do like it


Thanks

Erwin 08-19-2004 05:31 AM

Quote:

Originally Posted by Merjawy
Very nice Erwin, thanks

I have a little question :)

how can I use this hack? not technicaly, I did install it and customized it and all working just fine test posing in forum (new/reply) and email

but I guess my question is whats the best way to use it for? or how to make use of it?

I sat there with another admin trying to figure that but .....

I thought I'd just use the email part to make it like site comments or whatever

but why use that to post in the forum when we have the normal posing way or even quick posting too?

I am sorry I am not tryin to say anything other than wanting some ideas to make use of the script as I do like it


Thanks

The potential uses of this hack is listed in my first post. It's not a complete list.

I use it on my site as a moderator application form, which creates a poll automatically in my staff forum for current staff to vote.

But others have used it for manual donations, selling items etc.

Some use it as a way for guests to PM staff, or a way to submit quizzes or news articles.

It's what you want to make of it.

PKRWUD 08-19-2004 06:33 AM

Quote:

Originally Posted by Merjawy
Very nice Erwin, thanks

I have a little question :)

how can I use this hack? not technicaly, I did install it and customized it and all working just fine test posing in forum (new/reply) and email

but I guess my question is whats the best way to use it for? or how to make use of it?

I sat there with another admin trying to figure that but .....

I thought I'd just use the email part to make it like site comments or whatever

but why use that to post in the forum when we have the normal posing way or even quick posting too?

I am sorry I am not tryin to say anything other than wanting some ideas to make use of the script as I do like it


Thanks

I'll tell you what I'm going to use it for (as soon as I can figure out how to add a redirect). :) My website is automotive themed, and we have a couple Tech forums, where members come to ask advice on how to fix various problems that they are having with their vehicles. A common problem that we see is when a member doesn't give important information when they are starting a thread. There have been times when all they'll say is: "My car runs crappy. What's wrong with it?" They forget that we may not know their Make/Model/Year, etc. For a couple years now, I've wanted to have a form that needs to be filled out in order to make a post in that forum, so that I could tell them specifically what info is needed.

I don't know what your forum is about, but perhaps you could find a similar use for this wonderful hack. :) Attached is a pic of my form page.

Take care,
~Chris

alqadir 08-19-2004 07:46 AM

hey guys whats up.

I am just about to install this hack -- or as I would call it a MAJOR UPGRADE.

I want to use this form for many forums, but do not want to upload a new forum.php, and the two templetes for each forum. Each forum I want to post to will ask the same questions.

What I am asking here is, is it possible to use the same forum.php and the two templetes for multiple forums? I do not want the form answers to be posted in multiple forums. If this is possible how can I do it?

Is it also possible to for this script to find out automatically what thread the user wants to reply to?

Thanks.

PKRWUD 08-19-2004 08:23 AM

Okay, new question. I have this hack installed for new threads in a specific forum. How do I set it up so that members are sent to my form.php when they try to start a new thread?

Erwin 08-19-2004 08:53 PM

Update version 1.4

Fixed a bug where if you enable the Form to Reply in Existing Thread, the Forum last title and forum post count did not update.

Code added is this:

//FORUM ID WHERE THE EXISTING THREAD IS IN
$formreplyforumid = "456";

and an extra query under the $formreply=1 query code.

Sorry for the inconvenience. This part of the hack works properly now.

Erwin 08-19-2004 08:59 PM

Quote:

Originally Posted by PKRWUD
AWESOME Hack!

Installed!

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

You want the user to be redirected?

I can do that easily - will make a version 1.5 that does this later this weekend just for you. Not hard at all. :) I have to leave for work now.

PKRWUD 08-20-2004 01:50 AM

Awww. I feel so special. :D. You can see how I have it set up now, and what I've done since I couldn't figure out how to redirect. You don't have to answer all the questions. Just go here, log in as Guest (p/w: Pass), and click on the New Thread button.

BTW, I used to live just outside of Perth. Where are you located?

PKRWUD 08-20-2004 02:28 AM

Quote:

Originally Posted by alqadir
Erwin I was also wondering if you could incorporate :
//FORUM TO POST NEW THREAD IN
$formforumid = $foruminfo[forumid];

so that you forms.php can basically over ride newthreadpost.php

would this be possible.

if so how would one change the buton assoiciation with create new thread pointing to newthread.php tp forms.php..

Thanks


This is how I did it...

In Forumdisplay template, find:
Code:

<a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]">
And replace it with:
Code:

<a href="<if condition="$foruminfo['forumid'] == xx">form.php<else />newthread.php?$session[sessionurl]do=newthread&amp;f=$foruminfo[forumid]</if>">
Except you would sustitute your forum ID where it says xx. Works excellent.

Merjawy 08-20-2004 05:49 AM

Thanks Ewrin and Chris you gave me ideas on how I could use it now

Merjawy 08-20-2004 05:50 AM

A might be a bug report for Erwin :)

when posing a new thread all fine, when posting a reply to an existing thread the disable smiles is checked by default

alqadir 08-20-2004 09:01 AM

thanks guys..

this is one awesome script.. would be interesting to see how ppl modded this hack to fit their site..

Erwin 08-21-2004 12:46 PM

Version 1.5 - Major update:

- fixed bug where thread count not updated when form to forum
- fixed default posting to allow smilies and sigs when reply to thread
- added templates to cache (saves 2 queries)
- added option to change thank you message
- added options to redirect to post, thread or forum when submit

You need to upload the new form.php file - I've changed the code quite a bit in it.

Enjoy!

Erwin 08-21-2004 12:54 PM

Quote:

Originally Posted by PKRWUD
Awww. I feel so special. :D. You can see how I have it set up now, and what I've done since I couldn't figure out how to redirect. You don't have to answer all the questions. Just go here, log in as Guest (p/w: Pass), and click on the New Thread button.

BTW, I used to live just outside of Perth. Where are you located?

I've added redirect in version 1.5 - you can choose to redirect to the post, the thread or the forum, or to a thank you message which you can customize. :)

I live in Melbourne.


All times are GMT. The time now is 09:15 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.01471 seconds
  • Memory Usage 1,853KB
  • 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
  • (5)bbcode_code_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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