Ok, I'm cornfused about this whole vBulltien thing. I understand WHAT I have to do (release the db back to vBulliten), however, I'm totally lost on how.
Let me give you an example of what I'm trying to do:
Here is the code from the php insert on vBulliten, where I'm trying to grab the info for the header...
// This code is PHP4 only:
// ob_start();
// $header = ob_get_contents();
// ob_end_clean();
include('../ftek6/db_connect.php');
$result = @mysql_query("SELECT * FROM site_info");
$myrow = mysql_fetch_array($result);
$result2 = @mysql_query("SELECT * FROM links");
$myrow2 = mysql_fetch_array($result2);
$result3 = @mysql_query("SELECT * FROM header");
$myrow3 = mysql_fetch_array($result3);
I understand this is NOT very optimized, but I'm working one issue at a time🙂
That's where I call the db for the header
Now, throughout the header code (where I tell it the styles, opening tables, basically everything that shows up outside, around, near, or close to the actual vBulliten forum itself), I have calls to THAT db...like this:
<TITLE>Fuzion Tek </TITLE>
<meta name="AUTHOR" content="Jason R. Churchill, ($myrow[admin_email])">
<meta name="COPYRIGHT" content="All original content (c)2002 Fuzion Tek. All Rights Reserved">
<meta name="DESCRIPTION" content="FuzionTek.com, Web Design and more!">
<meta name="KEYWORDS" content="fuzion, web, design, art, photoshop, php">
<meta name="TITLE" content="Fuziontek.com">
<SCRIPT language=Javascript src="$myrow[site_url]/scripts/fade.js"></SCRIPT>
<style>
a:link {text-decoration: none; color: $myrow3[link]}
a:visited {text-decoration: none; color: $myrow3[link]}
a:active {text-decoration: none; color: $myrow3[link]}
a:hover {text-decoration: none; color: $myrow3[link_visited]}
input { font-family: $myrow3[form_text]; font-size: 10px; color: $myrow3[form_text_color];
font-style: font-weight: bold;
border: 2px solid "$myrow3[form_border_color]" ; background-color: $myrow3[form_bg_color];}
textarea { font-family: $form_text; font-size: 10px; color: $myrow3[form_text_color];
font-style: font-weight: bold;
border: 2px solid $myrow3[form_border_color]; background-color: $myrow3[form_bg_color];}
select { font-family: $myrow3[form_text]; font-size: 10px; color: $myrow3[form_text_color];
font-style: font-weight: bold;
border: 2px solid $myrow3[form_border_color]; background-color: $myrow3[form_bg_color];}
</style>
<style>
body {
scrollbar-3dlight-color: $myrow3[scrollbar_3dlight_color];
scrollbar-arrow-color: $myrow3[scrollbar_arrow_color];
scrollbar-base-color: $myrow3[scrollbar_base_color];
scrollbar-darkshadow-color: $myrow3[scrollbar_darkshadow_color];
scrollbar-face-color: $myrow3[scrollbar_face_color];
scrollbar-highlight-color: $myrow3[scrollbar_highlight_color];
scrollbar-shadow-color: $myrow3[scrollbar_shadow_color];
/* scrollbar-track-color: $myrow3[scrollbar_track_color];*/
}
</style>
$headnewpm
That's just the header insert for styles and what-have-ya...here is the code for the actual head/body
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="800" id="AutoNumber1" height="574">
<tr>
<td height="574" valign="top">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="800" id="AutoNumber2" height="58">
<tr>
<td width="293" rowspan="2" height="58">
<img border="0" src="$myrow[site_url]/images/topleftbg.gif" width="293" height="150"></td>
<td width="507" valign="top" height="17">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber3">
<tr>
<td width="100%" background="$myrow[site_url]/images/topbg.gif">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber4">
<tr>
<td width="20%"> </td>
<td width="20%"> </td>
<td width="20%"> </td>
<td width="20%"> </td>
<td width="20%" align="right">
<img border="0" src="$myrow[site_url]/images/topright.gif" width="50" height="50"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="507" valign="top" height="41"> </td>
</tr>
<tr>
<td width="800" height="58" colspan="2">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="800" id="AutoNumber5" height="19">
<tr>
<td width="243" height="473" valign="top">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber9" height="442">
<tr>
<td width="100%" colspan="2" height="69">
<img border="0" src="$myrow[site_url]/images/navtopbg.gif" width="243" height="69"></td>
</tr>
<tr>
<td width="70%" height="373" valign="top">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber10" height="228">
<tr>
<td width="100%" background="$myrow[site_url]/images/navbg1.gif" valign="top" height="228">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" id="AutoNumber12" height="97">
<tr>
<td width="32%" height="19" valign="top"> </td>
<td width="10%" height="19"> </td>
<td width="39%" height="19">
<font face="Microsoft Sans Serif" size="1" color="#999999">
<a href="$myrow2[hyper1]">$myrow2[link1]</a></font></td>
<td width="19%" height="19"> </td>
</tr>
<tr>
<td width="32%" height="19"> </td>
<td width="10%" height="19"> </td>
<td width="39%" height="19">
<font face="Microsoft Sans Serif" size="1" color="#999999">
<a href="$myrow2[hyper2]">$myrow2[link2]</a></font></td>
<td width="19%" height="19"> </td>
</tr>
<tr>
<td width="32%" height="5"></td>
<td width="10%" height="5"></td>
<td width="39%" height="19">
<font face="Microsoft Sans Serif" size="1" color="#999999">
<a href="$myrow2[hyper3]">$myrow2[link3]</a></font></td>
<td width="19%" height="5"></td>
</tr>
<tr>
<td width="32%" height="18"></td>
<td width="10%" height="18"></td>
<td width="39%" height="19">
<font face="Microsoft Sans Serif" size="1" color="#999999">
<a href="$myrow2[hyper4]">$myrow2[link4]</a></font></td>
<td width="19%" height="18"></td>
</tr>
<tr>
<td width="32%" height="4"></td>
<td width="10%" height="4"></td>
<td width="39%" height="19">
<font face="Microsoft Sans Serif" size="1" color="#999999">
<a href="$myrow2[hyper5]">$myrow2[link5]</a></font></td>
etc...
See, through each of these, basically, all the time, it's calling the database to get variables... So, if I release a database, won't the information it needs be lost, and the variables posted in the body be worthless? Remember, I'm new at this...lol
Besides, I have no idea where it calls the vBulliten database...if that matters..