Ive got some HTML that Id like to add to a template to create a VBA portal module with ... Im assuming I need to use php ?
here is the code :
Quote:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<!-- SERVERSPY.NET REMOTE POWER SEARCH FUNCTIONS START -->
<SCRIPT LANGUAGE="JavaScript">document.write('<SC'+'RIPT LANGUAGE="JavaScript" SRC="http://www.serverspy.net/bin/powerSearchB.mpl'+location.search+'"></SC'+'RIPT>')</SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="http://www.serverspy.net/js/rpsdhtml.js"></SCRIPT>
<!-- SERVERSPY.NET REMOTE POWER SEARCH FUNCTIONS END -->
<TITLE> Remote Power Search </TITLE>
<!-- SERVERSPY.NET REMOTE POWER SEARCH STYLESHEET START -->
<SCRIPT LANGUAGE="JavaScript">
// We're using JS for the style sheet as calling in CSS styles inline within JS
// doesn't apprear to be cross platform compatible.
rpgcss = new Array();
rpgcss['header'] = new Array();
rpgcss['header']['background-color'] = '#3C3D27';
rpgcss['header']['color'] = '#c0c0c0';
rpgcss['header']['font-family'] = 'Verdana';
rpgcss['header']['font-size'] = '10px';
rpgcss['results'] = new Array();
rpgcss['results']['background-color'] = 'black';
rpgcss['results']['color'] = '#c0c0c0';
rpgcss['results']['font-family'] = 'Verdana';
rpgcss['results']['font-size'] = '10px';
rpgcss['noMatch'] = new Array();
rpgcss['noMatch']['color'] = 'white';
rpgcss['link'] = new Array();
rpgcss['link']['font-family'] = 'Verdana';
rpgcss['link']['font-size'] = '10px';
rpgcss['link']['color'] = '#E6BF46';
// Each outputted row has been setup to allow a different appearnace.
// Row 1 is odd row 2 is even. Meaning, it will look pretty and all funky.
rpgcss['row1'] = new Array();
rpgcss['row1']['background-color'] = '#23241C';
rpgcss['row1']['hover-background-color'] = '#5A4400';
rpgcss['row1']['infoheader-background-color'] = 'black';
rpgcss['row1']['color'] = '#c0c0c0';
rpgcss['row1']['namecolor'] = '#D8D8D8';
rpgcss['row1']['font-family'] = 'Verdana';
rpgcss['row1']['font-size'] = '10px';
rpgcss['row1']['info-border'] = 'E6BF46';
rpgcss['row2'] = new Array();
rpgcss['row2']['background-color'] = '#34352B';
rpgcss['row2']['hover-background-color'] = '#5A4400';
rpgcss['row2']['infoheader-background-color'] = 'black';
rpgcss['row2']['color'] = '#c0c0c0';
rpgcss['row2']['namecolor'] = '#D8D8D8';
rpgcss['row2']['font-family'] = 'Verdana';
rpgcss['row2']['font-size'] = '10px';
rpgcss['row2']['info-border'] = 'E6BF46';
</SCRIPT>
<!-- SERVERSPY.NET REMOTE POWER SEARCH STYLESHEET END -->
</HEAD>
<body>
<!-- SERVERSPY.NET REMOTE POWER SEARCH DISPLAY BLOCK START -->
<CENTER><A NAME="searcherArea"></A>
<SCRIPT LANGUAGE="JavaScript">
if (form['n']){
document.write('<DIV STYLE="position:relative; text-align: right; width:500; height:15; z-index:1010;">Search Result</DIV>');
document.write('<DIV STYLE="position:relative; text-align: left; width:500; height:15; z-index:1010; background-color: '+rpgcss['header']['background-color']+'; color:'+rpgcss['header']['color']+'; font-family:'+rpgcss['header']['font-family']+'; font-size:'+rpgcss['header']['font-size']+';">');
document.write(' <DIV STYLE="position:absolute: top:0; left:0; width:150; z-index:1005; overflow:hidden;text-align: left;"> player name</DIV>');
document.write(' <DIV STYLE="position:absolute; top:0; left:150; width:250; z-index:1005; overflow:hidden;">server name</DIV>');
document.write(' <DIV STYLE="position:absolute; top:0; left:400; width:80; z-index:1005; overflow:hidden;">map</DIV>');
document.write(' <DIV STYLE="position:absolute; top:3; left:480; width:20; z-index:1005;"></DIV>');
document.write('</DIV>');
document.write('<DIV ID="results" STYLE="position:relative; z-index:1000; width:500; background-color: '+rpgcss['results']['background-color']+'; color:'+rpgcss['results']['color']+'; font-family:'+rpgcss['results']['font-family']+'; font-size:'+rpgcss['results']['font-size']+';">');
document.write(' <DIV ID="loading" STYLE="position:absolute: top:0; left:0; width:500; z-index:1005;">');
document.write(' <CENTER><BR>loading data<BR><BR><IMG src="/images/loading.gif" WIDTH="100" HEIGHT="25" BORDER=0 ALT="Loading..."><BR><BR></CENTER>');
document.write(' </DIV>');
document.write('</DIV>');
}
</SCRIPT>
</CENTER>
<!-- SERVERSPY.NET REMOTE POWER SEARCH DISPLAY BLOCK END -->
</BODY>
<!-- SERVERSPY.NET REMOTE POWER SEARCH LOGIC START-->
<!-- It is important that you place this bit of code BELOW the BODY tag -->
<SCRIPT LANGUAGE="JavaScript">ssrpsid=126138;</SCRIPT>
<SCRIPT LANGUAGE="JavaScript" SRC="http://www.serverspy.net/js/rpsA.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript">rpstrigger();</SCRIPT>
<SCRIPT LANGUAGE="JavaScript"> if (form['n']) start(); </SCRIPT>
<!-- SERVERSPY.NET REMOTE POWER SEARCH LOGIC END -->
</HTML>
|
is there an easy way of 'converting' this to php compatible - or whatever will work in VBulletin? someones suggested using iframes? i aint got a clue where to start.
I have had some success in dumping that code into a template with a TD tag around it ... but its squashed and showing errors on the browser ... its obviously not supposed to be like that....
thanks,