The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
html to php
hi,
i have made my own front page for my site but its a html page, can anyone help me on how i would go about turning it in to a php page please.? |
#2
|
|||
|
|||
simply.. rename your .html to .php
|
#3
|
||||
|
||||
mmm there seems to be a little more to it sorry i didnt explain everything
https://vborg.vbsupport.ru/showthread.php?t=151200 |
#4
|
|||
|
|||
if you change your file to .php, you also have to edit some parts of the html so you can insert the php code inside of it...
something like: PHP Code:
|
#5
|
||||
|
||||
ok cool so lets say this was my page code, sorry im new to all this but where would i make the changes please.
HTML Code:
<!-- Provided by MyFreeTemplates.com --> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>MyFreeTemplates.com</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="keywords" content="Keywords here"> <meta name="description" content="Description here"> <meta name="Author" content="MyFreeTemplates.com"> <META NAME="robots" CONTENT="index, follow"> <!-- (Robot commands: All, None, Index, No Index, Follow, No Follow) --> <META NAME="revisit-after" CONTENT="30 days"> <META NAME="distribution" CONTENT="global"> <META NAME="rating" CONTENT="general"> <META NAME="Content-Language" CONTENT="english"> <script language="JavaScript" type="text/JavaScript" src="images/myfreetemplates.js"></script> <link href="images/myfreetemplates.css" rel="stylesheet" type="text/css"> <style type="text/css"> <!-- --> </style> </head> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('images/btn_home_dn.gif','images/btn_products_dn.gif','images/btn_services_dn.gif','images/btn_moreinfo_dn.gif','images/btn_contact_dn.gif')"> <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="61" background="images/topbg.gif"><img src="images/toplogo.gif" width="186" height="61"></td> <td height="61" align="right" background="images/topbg.gif"><img src="images/toppic.gif" width="278" height="61"></td> </tr> <tr> <td width="186" valign="top" background="images/bg1.gif"><img src="images/bg1.gif" width="186" height="10"> <table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/sidenavbg.gif"> <tr> <td><a href="javascript:;" onMouseOver="MM_swapImage('btn_home','','images/btn_home_dn.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="images/btn_home.gif" name="btn_home" width="183" height="26" border="0" id="btn_home"></a><br> <img src="images/pixi_clear.gif" width="1" height="3"></td> </tr> <tr> <td><a href="javascript:;" onMouseOver="MM_swapImage('btn_products','','images/btn_products_dn.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="images/btn_products.gif" name="btn_products" width="183" height="26" border="0" id="btn_products"></a><br> <img src="images/pixi_clear.gif" width="1" height="3"></td> </tr> <tr> <td><a href="javascript:;" onMouseOver="MM_swapImage('btn_services','','images/btn_services_dn.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="images/btn_services.gif" name="btn_services" width="183" height="26" border="0" id="btn_services"></a><br> <img src="images/pixi_clear.gif" width="1" height="3"></td> </tr> <tr> <td><a href="javascript:;" onMouseOver="MM_swapImage('btn_moreinfo','','images/btn_moreinfo_dn.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="images/btn_moreinfo.gif" name="btn_moreinfo" width="183" height="26" border="0" id="btn_moreinfo"></a><br> <img src="images/pixi_clear.gif" width="1" height="3"></td> </tr> <tr> <td><a href="javascript:;" onMouseOver="MM_swapImage('btn_contact','','images/btn_contact_dn.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="images/btn_contact.gif" name="btn_contact" width="183" height="26" border="0" id="btn_contact"></a></td> </tr> </table> <br> <br> <table width="183" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="2"><img src="images/hdr_news.gif" width="183" height="26"></td> </tr> <tr> <td width="24" background="images/newsbg.gif"><p> </p> <p> </p></td> <td width="159" valign="top" background="images/newsbg.gif"><span class="sidelinks"><br> <strong> News Headline Here<br> </strong>News Story here, News<br> Story here, News Story<br></span> <br> <a href="#" class="sidelinks">>> More info</a><br> <br> </td> </tr> <tr> <td height="1" colspan="2" background="images/bg4.gif"><img src="images/bg4.gif" width="1" height="1"></td> </tr> </table> <br> </td> <td valign="top" background="images/bg3.gif"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="75" rowspan="4"> </td> <td width="56%"> </td> <td width="85" rowspan="4"> </td> </tr> <tr> <td align="right"> <h1>Page Header</h1></td> </tr> <tr> <td align="left"><h2>Sub-header</h2> <p>Page content goes here; To use this template you simply have to build the html for it from the graphic. First export all your buttons, backgrounds and other images. You must decide whether certain elements will be images or html generated.</p> <p> First build one template page and make sure it is exactly right before you build the rest of the site.</p> <p> </p></td> </tr> <tr> <td align="left"><table width="100%" border="0" cellspacing="0" cellpadding="5"> <tr align="center"> <td width="25%"><img src="images/mainpagepic.gif" width="85" height="84"></td> <td width="25%"><img src="images/mainpagepic.gif" width="85" height="84"></td> <td width="25%"><img src="images/mainpagepic.gif" width="85" height="84"></td> <td width="25%"><img src="images/mainpagepic.gif" width="85" height="84"></td> </tr> <tr valign="top"> <td width="25%"><span class="smallfont"><strong><font color="#CCCCCC">Product Name</font></strong><br> Product Description & Features here.<br> <a href="#" class="smallfont"><strong>>> More</strong></a></span><br> </td> <td width="25%"><span class="smallfont"><strong><font color="#CCCCCC">Product Name</font></strong><br> Product Description & Features here.<br> <a href="#" class="smallfont"><strong>>> More</strong></a></span><br> </td> <td width="25%"><span class="smallfont"><strong><font color="#CCCCCC">Product Name</font></strong><br> Product Description & Features here.<br> <a href="#" class="smallfont"><strong>>> More</strong></a></span><br> </td> <td width="25%"><span class="smallfont"><strong><font color="#CCCCCC">Product Name</font></strong><br> Product Description & Features here.<br> <a href="#" class="smallfont"><strong>>> More</strong></a></span><br> </td> </tr> </table></td> </tr> </table> </td> </tr> <tr valign="middle"> <td height="36" colspan="2" background="images/basebg.gif"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><font size="1"> © Copyright 2004. Yourcompany.com</font></td> <td align="right"> <a href="http://www.interspire.com/templates" target="_blank"><font size="1" face="Arial, Helvetica, sans-serif" color="#FFFFFF">Design by Interspire</font></a> </td> </tr> </table> </td> </tr> </table> </body> </html i tryed and now i get Unable to add cookies, header already sent. File: /home/jaycob/public_html/index.php Line: 2 i did some changes but still get small error: Unable to add cookies, header already sent. File: /home/jaycob/public_html/index.php Line: 2 HTML Code:
<!-- Provided by MyFreeTemplates.com --> <?php $curdir = getcwd(); chdir('/home/jaycob/public_html'); require_once('./global.php'); // ################################################## ##################### // ######################## START MAIN SCRIPT ############################ // ################################################## ##################### ($hook = vBulletinHook::fetch_hook('forumhome_start')) ? eval($hook) : false; chdir($curdir); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>MyFreeTemplates.com</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="keywords" content="Keywords here"> <meta name="description" content="Description here"> <meta name="Author" content="MyFreeTemplates.com"> <META NAME="robots" CONTENT="index, follow"> <!-- (Robot commands: All, None, Index, No Index, Follow, No Follow) --> <META NAME="revisit-after" CONTENT="30 days"> <META NAME="distribution" CONTENT="global"> <META NAME="rating" CONTENT="general"> <META NAME="Content-Language" CONTENT="english"> <script language="JavaScript" type="text/JavaScript" src="images/myfreetemplates.js"></script> <link href="images/myfreetemplates.css" rel="stylesheet" type="text/css"> <style type="text/css"> <!-- --> </style> </head> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('images/btn_home_dn.gif','images/btn_products_dn.gif','images/btn_services_dn.gif','images/btn_moreinfo_dn.gif','images/btn_contact_dn.gif')"> <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="61" background="images/topbg.gif"><img src="images/toplogo.gif" width="186" height="61"></td> <td height="61" align="right" background="images/topbg.gif"><img src="images/toppic.gif" width="278" height="61"></td> </tr> <tr> <td width="186" valign="top" background="images/bg1.gif"><img src="images/bg1.gif" width="186" height="10"> <table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/sidenavbg.gif"> <tr> <td><a href="javascript:;" onMouseOver="MM_swapImage('btn_home','','images/btn_home_dn.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="images/btn_home.gif" name="btn_home" width="183" height="26" border="0" id="btn_home"></a><br> <img src="images/pixi_clear.gif" width="1" height="3"></td> </tr> <tr> <td><a href="javascript:;" onMouseOver="MM_swapImage('btn_products','','images/btn_products_dn.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="images/btn_products.gif" name="btn_products" width="183" height="26" border="0" id="btn_products"></a><br> <img src="images/pixi_clear.gif" width="1" height="3"></td> </tr> <tr> <td><a href="javascript:;" onMouseOver="MM_swapImage('btn_services','','images/btn_services_dn.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="images/btn_services.gif" name="btn_services" width="183" height="26" border="0" id="btn_services"></a><br> <img src="images/pixi_clear.gif" width="1" height="3"></td> </tr> <tr> <td><a href="javascript:;" onMouseOver="MM_swapImage('btn_moreinfo','','images/btn_moreinfo_dn.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="images/btn_moreinfo.gif" name="btn_moreinfo" width="183" height="26" border="0" id="btn_moreinfo"></a><br> <img src="images/pixi_clear.gif" width="1" height="3"></td> </tr> <tr> <td><a href="javascript:;" onMouseOver="MM_swapImage('btn_contact','','images/btn_contact_dn.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="images/btn_contact.gif" name="btn_contact" width="183" height="26" border="0" id="btn_contact"></a></td> </tr> </table> <br> <br> <table width="183" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="2"><img src="images/hdr_news.gif" width="183" height="26"></td> </tr> <tr> <td width="24" background="images/newsbg.gif"><p> </p> <p> </p></td> <td width="159" valign="top" background="images/newsbg.gif"><span class="sidelinks"><br> <strong> News Headline Here<br> </strong>News Story here, News<br> Story here, News Story<br></span> <br> <a href="#" class="sidelinks">>> More info</a><br> <br> </td> </tr> <tr> <td height="1" colspan="2" background="images/bg4.gif"><img src="images/bg4.gif" width="1" height="1"></td> </tr> </table> <br> </td> <td valign="top" background="images/bg3.gif"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="75" rowspan="4"> </td> <td width="56%"> </td> <td width="85" rowspan="4"> </td> </tr> <tr> <td align="right"> <h1>Page Header</h1></td> </tr> <tr> <td align="left"><h2>Sub-header</h2> <p>Page content goes here; To use this template you simply have to build the html for it from the graphic. First export all your buttons, backgrounds and other images. You must decide whether certain elements will be images or html generated.</p> <p> First build one template page and make sure it is exactly right before you build the rest of the site.</p> <p> </p></td> </tr> <tr> <td align="left"><table width="100%" border="0" cellspacing="0" cellpadding="5"> <tr align="center"> <td width="25%"><img src="images/mainpagepic.gif" width="85" height="84"></td> <td width="25%"><img src="images/mainpagepic.gif" width="85" height="84"></td> <td width="25%"><img src="images/mainpagepic.gif" width="85" height="84"></td> <td width="25%"><img src="images/mainpagepic.gif" width="85" height="84"></td> </tr> <tr valign="top"> <td width="25%"><span class="smallfont"><strong><font color="#CCCCCC">Product Name</font></strong><br> Product Description & Features here.<br> <a href="#" class="smallfont"><strong>>> More</strong></a></span><br> </td> <td width="25%"><span class="smallfont"><strong><font color="#CCCCCC">Product Name</font></strong><br> Product Description & Features here.<br> <a href="#" class="smallfont"><strong>>> More</strong></a></span><br> </td> <td width="25%"><span class="smallfont"><strong><font color="#CCCCCC">Product Name</font></strong><br> Product Description & Features here.<br> <a href="#" class="smallfont"><strong>>> More</strong></a></span><br> </td> <td width="25%"><span class="smallfont"><strong><font color="#CCCCCC">Product Name</font></strong><br> Product Description & Features here.<br> <a href="#" class="smallfont"><strong>>> More</strong></a></span><br> </td> </tr> </table></td> </tr> </table> </td> </tr> <tr valign="middle"> <td height="36" colspan="2" background="images/basebg.gif"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><font size="1"> © Copyright 2004. Yourcompany.com</font></td> <td align="right"> <a href="http://www.interspire.com/templates" target="_blank"><font size="1" face="Arial, Helvetica, sans-serif" color="#FFFFFF">Design by Interspire</font></a> </td> </tr> </table> </td> </tr> </table> </body> </html |
#6
|
||||
|
||||
HTML Code:
<?php $curdir = getcwd(); chdir('/home/jaycob/public_html'); require_once('./global.php'); chdir($curdir); ?> <!-- Provided by MyFreeTemplates.com --> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>MyFreeTemplates.com</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="keywords" content="Keywords here"> <meta name="description" content="Description here"> <meta name="Author" content="MyFreeTemplates.com"> <META NAME="robots" CONTENT="index, follow"> <!-- (Robot commands: All, None, Index, No Index, Follow, No Follow) --> <META NAME="revisit-after" CONTENT="30 days"> <META NAME="distribution" CONTENT="global"> <META NAME="rating" CONTENT="general"> <META NAME="Content-Language" CONTENT="english"> <script language="JavaScript" type="text/JavaScript" src="images/myfreetemplates.js"></script> <link href="images/myfreetemplates.css" rel="stylesheet" type="text/css"> <style type="text/css"> <!-- --> </style> </head> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('images/btn_home_dn.gif','images/btn_products_dn.gif','images/btn_services_dn.gif','images/btn_moreinfo_dn.gif','images/btn_contact_dn.gif')"> <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="61" background="images/topbg.gif"><img src="images/toplogo.gif" width="186" height="61"></td> <td height="61" align="right" background="images/topbg.gif"><img src="images/toppic.gif" width="278" height="61"></td> </tr> <tr> <td width="186" valign="top" background="images/bg1.gif"><img src="images/bg1.gif" width="186" height="10"> <table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/sidenavbg.gif"> <tr> <td><a href="javascript:;" onMouseOver="MM_swapImage('btn_home','','images/btn_home_dn.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="images/btn_home.gif" name="btn_home" width="183" height="26" border="0" id="btn_home"></a><br> <img src="images/pixi_clear.gif" width="1" height="3"></td> </tr> <tr> <td><a href="javascript:;" onMouseOver="MM_swapImage('btn_products','','images/btn_products_dn.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="images/btn_products.gif" name="btn_products" width="183" height="26" border="0" id="btn_products"></a><br> <img src="images/pixi_clear.gif" width="1" height="3"></td> </tr> <tr> <td><a href="javascript:;" onMouseOver="MM_swapImage('btn_services','','images/btn_services_dn.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="images/btn_services.gif" name="btn_services" width="183" height="26" border="0" id="btn_services"></a><br> <img src="images/pixi_clear.gif" width="1" height="3"></td> </tr> <tr> <td><a href="javascript:;" onMouseOver="MM_swapImage('btn_moreinfo','','images/btn_moreinfo_dn.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="images/btn_moreinfo.gif" name="btn_moreinfo" width="183" height="26" border="0" id="btn_moreinfo"></a><br> <img src="images/pixi_clear.gif" width="1" height="3"></td> </tr> <tr> <td><a href="javascript:;" onMouseOver="MM_swapImage('btn_contact','','images/btn_contact_dn.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="images/btn_contact.gif" name="btn_contact" width="183" height="26" border="0" id="btn_contact"></a></td> </tr> </table> <br> <br> <table width="183" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="2"><img src="images/hdr_news.gif" width="183" height="26"></td> </tr> <tr> <td width="24" background="images/newsbg.gif"><p> </p> <p> </p></td> <td width="159" valign="top" background="images/newsbg.gif"><span class="sidelinks"><br> <strong> News Headline Here<br> </strong>News Story here, News<br> Story here, News Story<br></span> <br> <a href="#" class="sidelinks">>> More info</a><br> <br> </td> </tr> <tr> <td height="1" colspan="2" background="images/bg4.gif"><img src="images/bg4.gif" width="1" height="1"></td> </tr> </table> <br> </td> <td valign="top" background="images/bg3.gif"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="75" rowspan="4"> </td> <td width="56%"> </td> <td width="85" rowspan="4"> </td> </tr> <tr> <td align="right"> <h1>Page Header</h1></td> </tr> <tr> <td align="left"><h2>Sub-header</h2> <p>Page content goes here; To use this template you simply have to build the html for it from the graphic. First export all your buttons, backgrounds and other images. You must decide whether certain elements will be images or html generated.</p> <p> First build one template page and make sure it is exactly right before you build the rest of the site.</p> <p> </p></td> </tr> <tr> <td align="left"><table width="100%" border="0" cellspacing="0" cellpadding="5"> <tr align="center"> <td width="25%"><img src="images/mainpagepic.gif" width="85" height="84"></td> <td width="25%"><img src="images/mainpagepic.gif" width="85" height="84"></td> <td width="25%"><img src="images/mainpagepic.gif" width="85" height="84"></td> <td width="25%"><img src="images/mainpagepic.gif" width="85" height="84"></td> </tr> <tr valign="top"> <td width="25%"><span class="smallfont"><strong><font color="#CCCCCC">Product Name</font></strong><br> Product Description & Features here.<br> <a href="#" class="smallfont"><strong>>> More</strong></a></span><br> </td> <td width="25%"><span class="smallfont"><strong><font color="#CCCCCC">Product Name</font></strong><br> Product Description & Features here.<br> <a href="#" class="smallfont"><strong>>> More</strong></a></span><br> </td> <td width="25%"><span class="smallfont"><strong><font color="#CCCCCC">Product Name</font></strong><br> Product Description & Features here.<br> <a href="#" class="smallfont"><strong>>> More</strong></a></span><br> </td> <td width="25%"><span class="smallfont"><strong><font color="#CCCCCC">Product Name</font></strong><br> Product Description & Features here.<br> <a href="#" class="smallfont"><strong>>> More</strong></a></span><br> </td> </tr> </table></td> </tr> </table> </td> </tr> <tr valign="middle"> <td height="36" colspan="2" background="images/basebg.gif"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><font size="1"> © Copyright 2004. Yourcompany.com</font></td> <td align="right"> <a href="http://www.interspire.com/templates" target="_blank"><font size="1" face="Arial, Helvetica, sans-serif" color="#FFFFFF">Design by Interspire</font></a> </td> </tr> </table> </td> </tr> </table> </body> </html> |
#7
|
||||
|
||||
sweet man you are very help full all done thx to you, cheers
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|