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 07-12-2003 01:44 AM

Quote:

Yesterday at 04:49 AM Talisman said this in Post #137
But in the third question, we ask them to enter their Player Name (for the event they're registering for). In most cases, the Player Name and their Username are identical. And any time the $answer3 text field matches $bbuserinfo[ username], the silly thing shows up totally blank.

How do I get around this?

That's weird... if you'ven put the variables in the right place there should be no blanks. Did you do this:

$answer3="$bbuserinfo[username]";

??

Quote:

Anyway, when the form posts as a reply to an existing thread, how do I get this to increment the thread's count and mark the post as "new?"
This should be done automatically. The thread count should go up, and the post marked new automatically.

Talisman 07-12-2003 03:11 AM

Quote:

Today at 07:44 PM Erwin said this in Post #141
That's weird... if you'ven put the variables in the right place there should be no blanks. Did you do this:

$answer3="$bbuserinfo[username]";

Well....... no, I didn't do it that way. Guess that's why it didn't work. ;)

In my "post" template, I had it down like this:

$question1: $bbuserinfo[ username]

$question2: $answer2

$question3: $answer3

$question4: $answer4

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

Though I hard-coded the $bbuser-thing into the "post" template and didn't input an answer for question 1 in the main form template ... I didn't use an $answer1 variable at all, so I had not defined $answer1 in the php file.

The form that posted looked like this:

(1) Your Username: Talisman

(2) Your first name: Susan

(3) Your boat name:

(4) Your country flag: USA

Every time I tested it, the boat name ($answer3) came up blank when it exactly matched the content of my $bbuserinfo[ username] variable.

I confirmed this by entering a different boat name (that didn't match my username). When the $answer3 boat name was different from the username..... it worked.

Now, I'll go try it the way you showed, Erwin.

Be back soon to let you know how that turns out.

Cheers!

retsell 07-12-2003 03:34 AM

Erwin, can you help me out with why I would get the following error message when trying to run form1.php?

Fatal error: Call to undefined function: gettemplate() in /home2/cms/public_html/forums/form1.php on line 214

The form is located at:

http://forums.classicmortgageservices.net/form1.php

I haven't even begun to customize it, Im just trying to get it working. I added the templates exactly as the instructions said...

Thanks,
Ryan

Talisman 07-12-2003 04:18 AM

I can see that problem, retsell.

Your error message points to "/forums/form1.php" but the link you show uses a different directory structure for your "forums" subdirectory.

retsell 07-12-2003 04:22 AM

Quote:

Today at 06:18 AM Talisman said this in Post #144
I can see that problem, retsell.

Your error message points to "/forums/form1.php" but the link you show uses a different directory structure for your "forums" subdirectory.


Im confused.
http://www.classicmortgageservices.net/forums/form1.php

its the same as:

http://forums.classicmortgageservices.net/form1.php

forums.classicmortgageservices.net is just a subdomain that points to /forums

Am I not understanding you?

Talisman 07-12-2003 04:30 AM

Ok, sorry for the confusion, retsell...... I thought the link would be literal. Was going for a solution that was too obvious, I guess. :(

proxyMX 07-12-2003 04:35 AM

this hack scares me, I really REALLY want to use it, but its not working correctly, shame because its JUST what i need

Erwin 07-12-2003 04:40 AM

Put the form1.php file in the same directory as your forums.

It cannot find the nopermission function ie. cannot find your global.php

proxyMX 07-12-2003 04:41 AM

woooooh hold the press! i finally got this godamn thing working

thirteen template edits and ten file edits down the line, duno what the problem was.

anyways is their anyway of making one of the submitted fields the title of the thread?

Erwin 07-12-2003 04:41 AM

Quote:

07-10-03 at 08:42 PM proxyMX said this in Post #136
Instead ive got a half-baked version :(
This hack is not half-baked. If you cannot install it, please don't blame the hack or the hacker. I've tried making it as simple as possible. It's for you to customize and change - you are never meant to use it without modifying it to suit you forums.


All times are GMT. The time now is 11:06 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.01382 seconds
  • Memory Usage 1,745KB
  • 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_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