Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Where to place my code

Asked Modified Viewed 652 times
G
Grimloch
G
Energy can neither be created nor destroyed; only transformed !
  • Senior Member, joined since
  • Contributed 722 posts on the community forums.
  • Started 141 threads in the forums
  • Started this discussions
  • Answered 2 questions
asked
Senior Member

I need some help again guys.
1) Fusion 8.00.80 website
2) Registration form

OK here is the non-modified code lines from "includes/classes/UserFields.class.php" beginning at line #191
 $returnHTML = "<tr>n";
 $returnHTML .= "<td class='".$class."' width='150'><label for='".$name."'>".$text.$required."</label></td>n";
 $returnHTML .= "<td class='".$class."'>";
 $returnHTML .= "<input type='".$type."' id='".$name."' name='".$name."' maxlength='".$length."' class='textbox' value='".$value."' style='width:200px;'".($type == "password" ? " autocomplete='off'" : "")." />";
 $returnHTML .= "</td>n</tr>n";

 return $returnHTML;


And here is my added code beginning at the same line #
 $returnHTML = "<tr>n";
// added code
 $returnHTML .= "<td class='".$class."' colspan='2' align='center'><span style='color:#860000'><b>Notice! Registration For Oshkosh High School Classmates Only!</b></span></td>n";
 $returnHTML .= "</tr><tr>n";
// end added code
 $returnHTML .= "<td class='".$class."' width='150'><label for='".$name."'>".$text.$required."</label></td>n";
 $returnHTML .= "<td class='".$class."'>";
 $returnHTML .= "<input type='".$type."' id='".$name."' name='".$name."' maxlength='".$length."' class='textbox' value='".$value."' style='width:200px;'".($type == "password" ? " autocomplete='off'" : "")." />";
 $returnHTML .= "</td>n</tr>n";

 return $returnHTML;


It prints my added code on the register.php form however, it prints it multiple times. Take a look at my uploaded image for explanation. I am adding code in the correct file just not in the correct place so that it only prints once just underneath Account Info.
Edited by Grimloch on 11-10-2022 11:34,
Grimloch attached the following image:
Image not found
0 replies

1 post

G
Grimloch
G
Energy can neither be created nor destroyed; only transformed !
  • Senior Member, joined since
  • Contributed 722 posts on the community forums.
  • Started 141 threads in the forums
  • Started this discussions
  • Answered 2 questions
answered
Senior Member

Never mind guys; I figured it out myself. Works fine now.
0 replies

Labels

Statistics

  • Views 0 views
  • Posts 1 post
  • Votes 0 votes
  • Topic users 1 member

1 participant

G
G
Energy can neither be created nor destroyed; only transformed !
  • Senior Member, joined since
  • Contributed 722 posts on the community forums.
  • Started 141 threads in the forums
  • Started this discussions
  • Answered 2 questions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet