TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,993
  • Total Topics: 21,324
  • Online today: 245
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 164
  • Total: 164

Application Form gives error in SMF error log

Started by Kim, November 12, 2009, 01:23:15 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

G6Cad


Kimmen

Thanks JPDeni  :)

Well, i try all the time to learn it by myself, but i am not the sharpest knife etc if you know what i mean. I am however good at managing the forums, but i can't understand code.  :'(

I know that i am totally depended on support to get my stuff done, but you can always decline me support.

sorry.

G6Cad

Dont feel bad for asking for help, we do this on free time and because we like to help, if noone gets help it's because we cant help or noone knows the answer at the time.

So if you are the sharpest knife or not, keep come back asking for help cause we will help where we can :)
I tested Denis code she posted in the post before mine and it worked fine :) Did you give it a try ?

Freddy


Kimmen

Thanks, and yes, the code works with no errors. the only change is that it has no color anymore. The standard text should be color green, to see easy where the answers are. but im fine with it, i don't want to bother deni with my problems, so i can have it like this. Thanks.  :)

Greets
Kimmen

JPDeni

In the code you now have, search for


if ($enable_post) {  //create new forum post with application


Below that is where the posts are defined.

In your current code, replace


$postbody = 'Recruitment application has been made by ' . $context['user']['name'] .'<br /><br/>';
foreach ($fielddef as $field) {
if ($field['type'] == 'heading')
$postbody .= $field['caption'] . '<br />';
else
$postbody .=  $field['caption'] . ': ' . $_REQUEST[$field['name']] . '<br />';
}


with the following code from your earlier post


      $postbody = '<br /><br/>';
  foreach ($fielddef as $field) {
        if ($field['type'] == 'heading')
          $postbody .= '[color=red][u][b]' . $field['caption'] . '[/b][/u][/color]  ' . $_REQUEST[$field['name']] . '<br />';
        else
          $postbody .= '[color=green]' . $field['caption'] . ':[/color]  ' . $_REQUEST[$field['name']] . '<br />';
      }
      $postbody .= '';


You'll get your green text back.

Is there anything else that you want?

Kimmen

Thanks JPDeni  :)

That should cover it for now, thank you for your time, i am very happy with your support.


Greets
Kimmen

This website is proudly hosted on Crocweb Cloud Website Hosting.