The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
![]()
OK, I guess if I were doing it I'd probably put it just under the comment that says "Start main script".
Looking where you posted above, you need to get rid of some of the stuff out of that template, specifically: Code:
<? if($domain) { $domain = trim($domain); if(ValidateIP($domain)) { $result = LookupIP($domain); } elseif(ValidateDomain($domain)) { $result = LookupDomain($domain); } else die("Invalid Input!"); echo "<pre>\r\n" . $result . "\r\n</pre>\r\n"; } ?> Code:
<if condition="$domain"> <pre> $result </pre> </if> Code:
$domain = trim($domain); if(ValidateIP($domain)) { $result = LookupIP($domain); } elseif(ValidateDomain($domain)) { $result = LookupDomain($domain); } else $result = "Invalid Input!"; To answer your other question, I haven't figured out all the code so I don't know how it's supposed to do it's thing when you submit the form. Because the action is "PHP_SELF" I figure it must load the same page again. ETA: I added an <if> tag to the template changes above, and that answers the question, I think - that part only appears if $domain is defined, so it's just the same page loaded again when submit is pressed. |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|