Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-16-2007, 09:30 AM
majorj0nny majorj0nny is offline
 
Join Date: May 2005
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default HTML code convertion ?

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;"> &nbsp;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,
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:33 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08669 seconds
  • Memory Usage 2,220KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)showthread_list
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_threadedmode.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete