The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#7
|
||||
|
||||
![]()
I can use a seperate php file no problem, i just don't know how to link the two parts, in my first post it is all together and runs as a stand alone web page, but i removed the stuff in the HTML tags and plonked it in to my newly created template, how do i now link that with the rest of it.....i'm no coder so i'll need a kind of walk through if thats ok?
--------------- Added [DATE]1266687519[/DATE] at [TIME]1266687519[/TIME] --------------- All the left over code i put in a plugin, used global_start as the hook, my template now looks like this HTML Code:
$stylevar[htmldoctype] $iplookup <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> <title>$vboptions[bbtitle]</title> $headinclude </head> <body> $header $navbar <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat">IP Lookup</td> </tr> <tr> <td><div><form action="$_SERVER[PHP_SELF]"> <p><b><label for="domain">Domain/IP Address:</label></b> <input type="text" name="domain" id="domain" value="$domain"> <input type="submit" value="Lookup"></p> </form><? 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"; } ?> </div></td></tr> </table> $footer </body> </html> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|