Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome, Guest. Please login or register.
Did you miss your activation email?

August 19, 2022, 07:55:20 PM

Login with username, password and session length
Members
  • Total Members: 3843
  • Latest: Tricky
Stats
  • Total Posts: 193479
  • Total Topics: 21088
  • Online today: 60
  • Online ever: 1035
  • (November 26, 2020, 04:45:12 AM)
Users Online
Users: 0
Guests: 45
Total: 45

Author Topic: Generic Application Form  (Read 97546 times)

0 Members and 1 Guest are viewing this topic.

Offline FUBAR

  • Jr. Member
  • **
  • Posts: 98
Re: Generic Application Form
« Reply #10 on: May 25, 2009, 10:41:54 PM »
That fixed it, thanks for the help!  :)

Offline FUBAR

  • Jr. Member
  • **
  • Posts: 98
Re: Generic Application Form
« Reply #11 on: May 26, 2009, 04:28:44 PM »
I've noticed that when going to the application form page it generates a few errors and this is before submitting the form. 

Here are the errors and respective lines:

Code: [Select]
8: Undefined variable: scripturl
File: /home/xxx/public_html/forum/Themes/default/languages/TPShout.english.php (eval?)
Line: 256

Code: [Select]
<form action="' . $scripturl . '?page='  . $_GET['page'] . '" method="post">

Code: [Select]
8: Undefined variable: fieldvalue
File: /home/xxx/public_html/forum/Themes/default/languages/TPShout.english.php (eval?)
Line: 286

Code: [Select]
echo '<INPUT name="' . $field['name'] . '" type="text" value ="' . $fieldvalue[$field['name']] . '" />';

Code: [Select]
8: Undefined variable: fieldvalue
File: /home/xxx/public_html/forum/Themes/default/languages/TPShout.english.php (eval?)
Line: 313

Code: [Select]
echo $fieldvalue[$field['name']];

These errors only come up when viewing the application form. 

After submitting I get different errors in the log.

Code: [Select]
8: Undefined index: heading
File: /home/xxx/public_html/forum/Themes/default/languages/TPShout.english.php (eval?)
Line: 216

Code: [Select]
$postbody .= '[color=red][u][b]' . $field['caption'] . '[/b][/u][/color]  ' . $_REQUEST[$field['name']] . '<br />';

Code: [Select]
8: Undefined index: charclass
File: /home/xxx/public_html/forum/Themes/default/languages/TPShout.english.php (eval?)
Line: 223

Code: [Select]
'subject' => '[Pending] Application of ' . $_REQUEST['realname'] . ' ' . $_REQUEST['charclass'],

Code: [Select]
8: Undefined variable: user_info
File: /home/xxx/public_html/forum/Themes/default/languages/TPShout.english.php (eval?)
Line: 240

Code: [Select]
'email' => $user_info['email'],

I apologize for the long post but I'm trying to be as detailed as possible.

Also, BTW the form seems to work properly when viewing and submitting. 

Any help would be appreciated, thanks in advance!  :)



JPDeni

  • Guest
Re: Generic Application Form
« Reply #12 on: May 26, 2009, 04:41:25 PM »
Maybe I'll just shut this down until I can get it to go. I thought it was ready. It appears I was wrong.

Offline FUBAR

  • Jr. Member
  • **
  • Posts: 98
Re: Generic Application Form
« Reply #13 on: May 26, 2009, 04:48:43 PM »
It does work properly though, just creates the errors. 

Sorry to be the bearer of bad news JPDeni.  :( 

JPDeni

  • Guest
Re: Generic Application Form
« Reply #14 on: May 26, 2009, 04:53:48 PM »
It's all right. I just didn't realize that when I tried to clean up someone's usage of my code that they had altered it so much. I appreciate your telling me, even if it is embarrassing.

I've fixed all of the issues you mention (some were fixed yesterday). If you find anything else, let me know. :)

Offline FUBAR

  • Jr. Member
  • **
  • Posts: 98
Re: Generic Application Form
« Reply #15 on: May 26, 2009, 07:54:46 PM »
I tried your new code and copied everything below "END OF CONFIG...." and got an error.  I then copied the new code entirely and unfortunately received the same error.

Code: [Select]
Parse error: syntax error, unexpected '.' in /home/xxx/public_html/forum/Sources/Load.php(1753) : eval()'d code(586) : eval()'d code on line 124
Not really sure what's up, looks like it's going to be one of those nights.  ;)

JPDeni

  • Guest
Re: Generic Application Form
« Reply #16 on: May 26, 2009, 08:37:03 PM »
Oh, dea. I should have pasted it into my test page. I found two errors. Corrected code is in place.

ColdCoffee

  • Guest
Re: Generic Application Form
« Reply #17 on: June 02, 2009, 04:58:28 AM »
Could I get any assistant in using this same code to work with the CustomAction mod?

JPDeni

  • Guest
Re: Generic Application Form
« Reply #18 on: June 02, 2009, 06:21:50 AM »
I don't know how the Custom Action mod works, so I wouldn't be able to help you.

Offline FUBAR

  • Jr. Member
  • **
  • Posts: 98
Re: Generic Application Form
« Reply #19 on: June 07, 2009, 01:40:24 PM »
We are almost there JPDeni!  :)

I'm still getting this error when posting...

Code: [Select]
8: Undefined variable: user_info
File: /home/xxx/public_html/forum/Themes/default/languages/TPShout.english.php (eval?)
Line: 243

I've also got a question, any idea how to bold each subject heading in the post? 

Thanks for all the help, great block/article.  ;)