Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #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
  #2  
Old 10-16-2007, 09:45 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I suggest you ask at the vBAdvanced support forums.
Reply With Quote
  #3  
Old 10-16-2007, 02:33 PM
majorj0nny majorj0nny is offline
 
Join Date: May 2005
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Marco van Herwaarden View Post
I suggest you ask at the vBAdvanced support forums.
I did and they sent me here..

Ive not got a problem creating a module as Ive done other before ... the problem is changing that code into a form that anything in Vbulletin (including vbadvanced via a template) can use ...
Reply With Quote
  #4  
Old 10-16-2007, 05:19 PM
The_Rayman's Avatar
The_Rayman The_Rayman is offline
 
Join Date: Jul 2005
Location: Amsterdam - Netherlands
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Majorj0nnie,

It's easy to create HTML code on vBa. Just create a new module with BBcode

vBa CMPS --> Add Module --> [BB Code] -->

Enter a title
Select your column
Select display order
Turn on the module
Goto "BB Code Module Options" and enter the code.
Edit the options below for usergroup rights and you're done.

Good luck!
Reply With Quote
Reply

Thread Tools
Display Modes

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 10:11 PM.


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.06204 seconds
  • Memory Usage 2,192KB
  • 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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (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_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
  • 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