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)

gldtn 04-19-2005 02:23 PM

Quote:

Originally Posted by Erwin
1. You need to edit the PHP file and replace the title variable with a form variable. Not hard to figure out if you take a look at the code itself.

2. That's just a template edit. Somewhere in this thread someone posted a way to do this already.

Thanks, I got it to working the way I wanted to.. Sorry for not reading the whole thread at first. I was at work at the time.

whelck 04-20-2005 12:54 AM

Excellent work, Erwin. I've installed and it works great.

datainternet 04-21-2005 01:10 PM

Quote:

Originally Posted by Erwin
Anything is possible. :) You just add a redirect javascript to the template for the redirect I think.

Hi thank for help, but I didn't get ahead yet.

The problem is that there is no template for the redirect, it's only this line in the php file:

PHP Code:

$redirectoption "0";

$errormessage "Thanks!"//This is the thank you message 

You see that the hack by mtha is based on this hack.

Could you help me please?

Sorry but I'm just a beginner in php :(.

MFG datainternet

deb0 04-27-2005 03:32 AM

Nice work, no issues. i haven't tried the customization yet, but basic installation of flawless.

thx; Install!

SirJonathan 04-27-2005 05:51 PM

Has anyone had problems with the form not posting? I am using the form for a membership application on my site and using it to process 12 or so different questions. I've had a number of people say that they've submitted the form and then it never shows up in the approval area..

Anyone else had any trouble with this? Any suggestions?

-Jonathan

SirJonathan 05-02-2005 03:38 PM

I've had a couple more problems with this and its quite discouraging for the membership.. any ideas on why it would not actually be posting when people submit?

-Jonathan

Erwin 05-03-2005 03:21 AM

Quote:

Originally Posted by SirJonathan
I've had a couple more problems with this and its quite discouraging for the membership.. any ideas on why it would not actually be posting when people submit?

-Jonathan

It could be a million things. When you added questions, did you add the corresponding variables? You need to have a basic grasp of PHP to add more questions.

SirJonathan 05-04-2005 06:59 PM

Yes :). I added all the variables and for most people it works great. There are just some who have filled it all out, post, and it never shows up in the forum.

I've worked on the permissions and I'm pretty sure its not that.. You are required to register before you access the form. Can you think of any reasons why it would work for most people and then not for some?

-Jonathan

Razasharp 05-06-2005 02:39 PM

Hi Erwin

Great hack!

I hope you can help me :-)

Is there anyway to modify the hack so that I can have 3 form fields for the TITLE? I dont actually need to make use of the full hack as all I am trying to do it 'force' people to add certain things in the titles of one particular forum (which uses a seperate style so no probs in modifying it's templates).

so for eg I could have 3:

Field 1 [item for sale]: Grandfather clock

Field 2 [price]: ?400

Field 3 [city]: London

then the title for that thread would read: Grandfather clock ?400 London

In the threadbit template I did try to copy/duplicate:

PHP Code:

<!-- subject field -->
        <
table cellpadding="0" cellspacing="0" border="0" class="fieldset">
        <
tr>
            <
td class="smallfont" colspan="3">$vbphrase[title]:</td>
        </
tr>
        <
tr>
            <
td><input type="text" class="bginput" name="subject" value="$subjectsize="40" maxlength="85" tabindex="1" /></td>
            <
td>&nbsp;&nbsp;</td>
            <
td><img id="display_posticon" src="$selectedicon[src]alt="$selectedicon[alt]/></td>        </tr>
        </
table>
        <!-- / 
subject field --> 

but it only 'took' what was placed in the second field :-(

Would really appreciate some help on this..
Thanks in advance.

Spinball 05-07-2005 06:08 PM

Razasharp,
you need to input 3 fields - lets name them subject1, subject2 and subject3.
Then you'll need to edit the php script which processes your forum to set the subject
PHP Code:

$subject $subject1 " " $subject2 " " $subject3

I would put some validation in there, too, to make sure they entered all 3 fields.


All times are GMT. The time now is 07:32 AM.

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.01473 seconds
  • Memory Usage 1,753KB
  • 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
  • (3)bbcode_php_printable
  • (3)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