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

Recent

Welcome to TinyPortal. Please login or sign up.

May 03, 2024, 02:20:38 AM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,178
  • Total Topics: 21,220
  • Online today: 106
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 98
  • Total: 98

[Done!] Join Us! form

Started by mebymyself, October 19, 2006, 08:10:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Azphat12

Well I got alot of it changed over.

Are you sure the code you posted is the same as mine?  I did a search for "Overall" and I do not even have that word in my code.

Anyway, all that is left are 2 things.

The only "text" box that I want larger was the armory link.  It is a web address so wanted that box only larger.   Unless there is a way with it preformatting to http:// in the box already!!!   ;D

Also the "Passed" option did nothing.  I put it directly above like you said.  No parse error, but no output either.  I thought you might of missed a } but that gave me a parse error...  >:D

JPDeni

QuoteAre you sure the code you posted is the same as mine?  I did a search for "Overall" and I do not even have that word in my code.

That's because there was an error in my post. The sentence that starts with "Overall" was a comment. Please read my post again.

QuoteThe only "text" box that I want larger was the armory link.

You'll need to use different code, then. This code creates fields of the same size.

QuoteUnless there is a way with it preformatting to http:// in the box already!!!

There's a "default" value for each field. If you want the filled prefilled with http://, put that in the default value for the field.

QuoteAlso the "Passed" option did nothing.
Try

if (isset($_REQUEST['mathest']) && $_REQUEST['mathest'] == '12')
    $postbody .= 'PASSED';


Make sure that you have entered the right number in the field. It's supposed to just print the word if they get it right.

The reason that a } isn't necessary is that there's only one line after the "if" statement. You could also use


if (isset($_REQUEST['mathest']) && $_REQUEST['mathest'] == '12') {
    $postbody .= 'PASSED';
}

if you wanted, but it's optional.

Azphat12

#392
Ok I will stick with this code.

But the http:// code I used is this

array(
'caption' =>      "Armory Link?",
'name' =>         "armory",
'type' =>         "text",
'options' =>      "http://",
'defaultvalue' => "http://",
'required' =>     1
),


Tried with and without the 'options' filled in.  It doesnt add the http://
I also refreshed my cache as sometimes that worked.  It didnt.

As far as the mathtest.  If they get the code wrong or blank it doesnt post anything.  So I entered the new code.....

                        if (isset($_REQUEST['mathest']) && $_REQUEST['mathest'] == '12') {
    $postbody .= 'PASSED';
                        }                                       
$msgOptions = array(


And still nothing in the forum.  I do get the header but not the PASSED.

edit:  fixed the 'mathtest' typo.  still nothing
edit again:  fixed both 'mathtest' typos....now it works! 

JPDeni

Good for you catching the typos. Just one of those things. :)

The default value should work, although I've never tried it with http://.

Azphat12

Ok last question.

http://forum.darkaftermath.com/index.php?page=6

How do I get the text for the test aligned to the right like the rest of the form?  It looks to be aligned left, but I do not see where to add the code.



JPDeni

If you look at the other fields, you'll see that the table cell for the caption starts with


<TD width = "200px" align="right">


Every one of them is the same.

Then look at the "math test".


<td>


Make the "mathtest" table cell look the same as the other table cells. :)

Azphat12

Perfect, thank you.

Now time to take all the new tools and see which way I like best  :2funny:

ZarPrime

JPDeni,

I think I'd like to try this code but I'm not sure which code snippet to use because there have been so many changes.

Do you think maybe you could possibly post the latest code here, and then I will go in and link the best and latest code in the OP of the topic with an explanation as to exactly what all it does.  That way, it will be easier for someone else who wants to use the latest and greatest code.

Thanks,
ZarPrime

Azphat12

I could link my code if you like.

With a link and/or screenshot to the output.

ZarPrime

Quote from: Azphat12 on May 23, 2009, 10:47:32 PM
I could link my code if you like.

With a link and/or screenshot to the output.

Azphat12,

Sure, that would be great, and then I will modify the first post to point to the code you post as the latest code for the snippet.

ZarPrime