Automated
11-22-2002, 02:30 PM
Hi Guys,
I have been playing around with VB for a while now and installed a few hacks i am very happy with, and i have decided i want to modify the user profile page. Problem is i have huge problems with it!
I have attached a screen shot of the page i get when i modify the template.
The HTML i am using for the template is below, could you please have a look at it and tell me what i am doing wrong.
Thanks;
{htmldoctype}
<html>
<head>
<title>$bbtitle - View Profile</title>
$headinclude
<script language="javascript" type="text/javascript">
<!--
function aimwindow(aimid) {
window.open("member.php?s=$session[sessionhash]&action=aimmessage&aim="+aimid,"_blank","toolbar=no,location=no,menubar=no,scrollbars=no,wi dth=175,height=275,resizeable=yes,status=no")
}
// -->
</script>
</head>
<body>
$header
<br>
<table width="98%" border="0" cellspacing="1" cellpadding="4">
<tr>
<td colspan="3" bgcolor="#AFCDFE"><b>$userinfo[username]'s Profile</b></td>
</tr>
<tr>
<td width="28%"> </td>
<td width="7%"> </td>
<td width="65%"> </td>
</tr>
<tr>
<td width="28%">
<table width="260" border="0" cellspacing="1" cellpadding="4">
<tr bgcolor="#AFCDFE">
<td><b>$userinfo[username]'s Avatar.</b></td>
</tr>
<tr>
<td>
<div><img src="$userinfo[avatarurl]" border="0" align="middle"></div>
</td>
</tr>
<tr>
<td>
<div align="center"><normalfont>$userinfo[usertitle]</normalfont></div>
</td>
</tr>
</table>
</td>
<td colspan="2">
<table width="525%" border="0" cellspacing="1" cellpadding="4">
<tr bgcolor="#AFCDFE">
<td colspan="2"><b>About $userinfo[username]</b></td>
</tr>
<tr bgcolor="#EBF1F7">
<td width="127">Website :</td>
<td width="377"><normalfont><a href="$userinfo[homepage]" target="_blank">$userinfo[homepage]</a> </normalfont></td>
</tr>
<tr>
<td width="127">Biography :</td>
<td width="377"> </td>
</tr>
<tr bgcolor="#EBF1F7">
<td width="127">Interest's :</td>
<td width="377"> </td>
</tr>
<tr>
<td width="127">Occupation :</td>
<td width="377"> </td>
</tr>
<tr bgcolor="#EBF1F7">
<td width="127">Location :</td>
<td width="377"> </td>
</tr>
<tr>
<td width="127">Birthday :</td>
<td width="377">$birthday</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="28%">
<table width="300" border="0" cellspacing="1" cellpadding="4">
<tr bgcolor="#AFCDFE">
<td colspan="2"><b>Contact $userinfo[username]</b></td>
</tr>
<tr bgcolor="#EBF1F7">
<td width="109">Private Message</td>
<td width="170"><normalfont>$userinfo[sendpm]
</normalfont></td>
</tr>
<tr>
<td width="109">eMalil </td>
<td width="170"><normalfont> <a href="member.php?s=$session%5Bsessionhash%5D&action=mail form&userid=$userinfo%5Buserid%5D">
eMail $userinfo[username]</a></normalfont></td>
</tr>
<tr bgcolor="#EBF1F7">
<td width="109">ICQ</td>
<td width="170"><normalfont>$userinfo[aim] <!-- $ userinfo[aimicon] AIM ICON - remove comments --></normalfont></td>
</tr>
<tr>
<td width="109">Yahoo</td>
<td width="170"><normalfont>$userinfo[yahoo] <!-- $ userinfo[yahooicon] YAHOO ICON - remove comments --></normalfont></td>
</tr>
<tr bgcolor="#EBF1F7">
<td width="109">MSN</td>
<td width="170"> </td>
</tr>
<tr bgcolor="#ffffff">
<td width="109">AOL</td>
<td width="170"><normalfont>$userinfo[aim] <!-- $ userinfo[aimicon] AIM ICON - remove comments --></normalfont></td>
</tr>
</table>
<br>
<br>
</td>
<td colspan="2">
<table width="525%" border="0" cellspacing="1" cellpadding="4">
<tr bgcolor="#AFCDFE">
<td colspan="2"><b>$userinfo[username]'s Statistics</b></td>
</tr>
<tr bgcolor="#EBF1F7">
<td width="127">Total Posts :</td>
<td width="377" bgcolor="#EBF1F7"><normalfont>$userinfo[posts] ($postsperday
posts per day)</normalfont></td>
</tr>
<tr>
<td width="127">Total Threads :</td>
<td width="377"></td>
</tr>
<tr bgcolor="#EBF1F7">
<td width="127">Refferals :</td>
<td width="377" bgcolor="#EBF1F7">$referrals</td>
</tr>
<tr bgcolor="#EBF1F7">
<td width="127">Last Post :</td>
<td width="377" bgcolor="#EBF1F7"></td>
</tr>
<tr>
<td width="127">Last Online :</td>
<td width="377"></td>
</tr>
</table>
<br>
</td>
</tr>
<tr>
<td colspan="3"> <br>
<br>
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="#AFCDFE" {tableouterextra} width="{contenttablewidth}" align="center">
<tr>
<td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr id="cat">
<td align="left" colspan="2"><normalfont color="{tableheadtextcolor}"><b>Last
10 Posts by $userinfo[username]</b></normalfont><a href="search.php?s=$session[sessionhash]&action=finduser&userid=$userinfo[userid]"><smallfont color="{tableheadtextcolor}" class="thtcolor">Search
for all posts by $userinfo[username].</smallfont></a></td>
</tr>
$latestposts
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
<td align="center"><smallfont><b> Administrative Options: <a href="moderator.php?s=$session[sessionhash]&action=useroptions&userid=$userinfo[userid]">User
Options</a> </b></smallfont></td>
</tr>
</table>
$footer
</body>
</html>
I am aware that some of these requre further hacking wihcih i will do once i have got this bit to work!
Thanks in advance guys!
Matthew
I have been playing around with VB for a while now and installed a few hacks i am very happy with, and i have decided i want to modify the user profile page. Problem is i have huge problems with it!
I have attached a screen shot of the page i get when i modify the template.
The HTML i am using for the template is below, could you please have a look at it and tell me what i am doing wrong.
Thanks;
{htmldoctype}
<html>
<head>
<title>$bbtitle - View Profile</title>
$headinclude
<script language="javascript" type="text/javascript">
<!--
function aimwindow(aimid) {
window.open("member.php?s=$session[sessionhash]&action=aimmessage&aim="+aimid,"_blank","toolbar=no,location=no,menubar=no,scrollbars=no,wi dth=175,height=275,resizeable=yes,status=no")
}
// -->
</script>
</head>
<body>
$header
<br>
<table width="98%" border="0" cellspacing="1" cellpadding="4">
<tr>
<td colspan="3" bgcolor="#AFCDFE"><b>$userinfo[username]'s Profile</b></td>
</tr>
<tr>
<td width="28%"> </td>
<td width="7%"> </td>
<td width="65%"> </td>
</tr>
<tr>
<td width="28%">
<table width="260" border="0" cellspacing="1" cellpadding="4">
<tr bgcolor="#AFCDFE">
<td><b>$userinfo[username]'s Avatar.</b></td>
</tr>
<tr>
<td>
<div><img src="$userinfo[avatarurl]" border="0" align="middle"></div>
</td>
</tr>
<tr>
<td>
<div align="center"><normalfont>$userinfo[usertitle]</normalfont></div>
</td>
</tr>
</table>
</td>
<td colspan="2">
<table width="525%" border="0" cellspacing="1" cellpadding="4">
<tr bgcolor="#AFCDFE">
<td colspan="2"><b>About $userinfo[username]</b></td>
</tr>
<tr bgcolor="#EBF1F7">
<td width="127">Website :</td>
<td width="377"><normalfont><a href="$userinfo[homepage]" target="_blank">$userinfo[homepage]</a> </normalfont></td>
</tr>
<tr>
<td width="127">Biography :</td>
<td width="377"> </td>
</tr>
<tr bgcolor="#EBF1F7">
<td width="127">Interest's :</td>
<td width="377"> </td>
</tr>
<tr>
<td width="127">Occupation :</td>
<td width="377"> </td>
</tr>
<tr bgcolor="#EBF1F7">
<td width="127">Location :</td>
<td width="377"> </td>
</tr>
<tr>
<td width="127">Birthday :</td>
<td width="377">$birthday</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="28%">
<table width="300" border="0" cellspacing="1" cellpadding="4">
<tr bgcolor="#AFCDFE">
<td colspan="2"><b>Contact $userinfo[username]</b></td>
</tr>
<tr bgcolor="#EBF1F7">
<td width="109">Private Message</td>
<td width="170"><normalfont>$userinfo[sendpm]
</normalfont></td>
</tr>
<tr>
<td width="109">eMalil </td>
<td width="170"><normalfont> <a href="member.php?s=$session%5Bsessionhash%5D&action=mail form&userid=$userinfo%5Buserid%5D">
eMail $userinfo[username]</a></normalfont></td>
</tr>
<tr bgcolor="#EBF1F7">
<td width="109">ICQ</td>
<td width="170"><normalfont>$userinfo[aim] <!-- $ userinfo[aimicon] AIM ICON - remove comments --></normalfont></td>
</tr>
<tr>
<td width="109">Yahoo</td>
<td width="170"><normalfont>$userinfo[yahoo] <!-- $ userinfo[yahooicon] YAHOO ICON - remove comments --></normalfont></td>
</tr>
<tr bgcolor="#EBF1F7">
<td width="109">MSN</td>
<td width="170"> </td>
</tr>
<tr bgcolor="#ffffff">
<td width="109">AOL</td>
<td width="170"><normalfont>$userinfo[aim] <!-- $ userinfo[aimicon] AIM ICON - remove comments --></normalfont></td>
</tr>
</table>
<br>
<br>
</td>
<td colspan="2">
<table width="525%" border="0" cellspacing="1" cellpadding="4">
<tr bgcolor="#AFCDFE">
<td colspan="2"><b>$userinfo[username]'s Statistics</b></td>
</tr>
<tr bgcolor="#EBF1F7">
<td width="127">Total Posts :</td>
<td width="377" bgcolor="#EBF1F7"><normalfont>$userinfo[posts] ($postsperday
posts per day)</normalfont></td>
</tr>
<tr>
<td width="127">Total Threads :</td>
<td width="377"></td>
</tr>
<tr bgcolor="#EBF1F7">
<td width="127">Refferals :</td>
<td width="377" bgcolor="#EBF1F7">$referrals</td>
</tr>
<tr bgcolor="#EBF1F7">
<td width="127">Last Post :</td>
<td width="377" bgcolor="#EBF1F7"></td>
</tr>
<tr>
<td width="127">Last Online :</td>
<td width="377"></td>
</tr>
</table>
<br>
</td>
</tr>
<tr>
<td colspan="3"> <br>
<br>
<table cellpadding="{tableouterborderwidth}" cellspacing="0" border="0" bgcolor="#AFCDFE" {tableouterextra} width="{contenttablewidth}" align="center">
<tr>
<td>
<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextra} width="100%">
<tr id="cat">
<td align="left" colspan="2"><normalfont color="{tableheadtextcolor}"><b>Last
10 Posts by $userinfo[username]</b></normalfont><a href="search.php?s=$session[sessionhash]&action=finduser&userid=$userinfo[userid]"><smallfont color="{tableheadtextcolor}" class="thtcolor">Search
for all posts by $userinfo[username].</smallfont></a></td>
</tr>
$latestposts
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table cellpadding="2" cellspacing="0" border="0" width="{contenttablewidth}" {tableinvisibleextra} align="center">
<tr>
<td align="center"><smallfont><b> Administrative Options: <a href="moderator.php?s=$session[sessionhash]&action=useroptions&userid=$userinfo[userid]">User
Options</a> </b></smallfont></td>
</tr>
</table>
$footer
</body>
</html>
I am aware that some of these requre further hacking wihcih i will do once i have got this bit to work!
Thanks in advance guys!
Matthew