What is wrong here?
Check out
this link here
Please note, that if you use Internet Explorer, you will have to check it in another browser as it seems to work fine in IE.
Here is the code I am using for the page:
PHP Code:
$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
$usercss
$memberinfo_css
<style type="text/css" id="vbulletin_tabctrl_css">
@import url("clientscript/vbulletin_tabctrl.css?v=$vboptions[simpleversion]");
<if condition="$show['rtl']">@import url("clientscript/vbulletin_tabctrl_rtl.css?v=$vboptions[simpleversion]");</if>
</style>
<script type="text/javascript" src="clientscript/vbulletin_tabctrl.js"></script>
<title>$vboptions[bbtitle]</title>
<if condition="$userinfo['userid'] == $bbuserinfo['userid']">
<script type="text/javascript" src="clientscript/vbulletin_profilefield_edit.js?v=$vboptions[simpleversion]"></script>
</if>
<script type="text/javascript">
<!--
vbphrase['server_failed_respond_try_again'] = "$vbphrase[server_failed_respond_try_again]";
<if condition="$show['post_visitor_message']">
function goto_post_pm()
{
vB_TabCtrls['profile_tabs'].switch_tab('visitor_messaging');
fetch_object('visitor_messaging').scrollIntoView();
var textarea = fetch_object('visitor_message_form_textarea');
if (textarea)
{
textarea.focus();
textarea.select();
}
}
</if>
-->
</script>
</head>
<body>
$header
$navbar
<div align="center">
<h1>$prepared[musername]</h1>
<br />
<if condition="$userinfo[field13]">$userinfo[field13]<else />No Personal Quote Defined.</if>
</div>
<!-- begin user css -->
<br />
<div id="content_container" style="text-align: center; width: 100%;">
<div id="content" style="text-align: center; width: 100%;">
<div id="main_userinfo" style="text-align: center; width: 100%;">
<if condition="$prepared['profilepicurl']">
<td id="profilepic_cell" class="tborder alt2">
<img src="$prepared[profilepicurl]" $prepared[profilepicsize] alt="<phrase 1="$prepared[username]">$vbphrase[xs_picture]</phrase>" />
<else />
<img src="/nopic.jpg">
</td></if>
<br />
<a href="/album.php?u=$userinfo[userid]">View Gallery</a> <br>
<a href="/blog.php?u=$userinfo[userid]">View Blog</a>
<br /><br />
<!--USER PROFILE FIELDS QUICK STATS-->
<div id="additional_userinfo" style="text-align: left; width: 100%;">
<center>
<!-- Jack's note - I'm putting this in a table to correctly align in center -->
<table width="400" border="0">
<!--LAST ONLINE-->
<tr><td width="220">
<if condition="$prepared['lastactivitydate']">
<div id="last_online">
<b>Last Activity:</b></td><td width="180">$prepared[lastactivitydate] </if></div>
</--LAST ONLINE-->
</td></tr>
<tr><td>
<b>Account Type:</b></td><td>
<if condition="$prepared['usertitle']">$prepared[usertitle]</if>
<br />
</td></tr>
<tr><td>
<b>Sex:</b></td><td>
<if condition="$userinfo[field5]">$userinfo[field5]<else />Undisclosed</if>
<br>
</td></tr>
<tr><td>
<b>Age:</b></td><td>
<if condition="$userinfo[field11]">$userinfo[field11]</if>
<br>
</td></tr>
<tr><td>
<b>Location:</b></td><td>
<if condition="$userinfo[field2]">$userinfo[field2]<else />Undisclosed</if>
<br>
</td></tr>
<tr><td>
<b>Status:</b>
</td><td>
<if condition="$userinfo[field12]">$userinfo[field12]<else />Undisclosed</if>
</td></tr>
<tr><td>
<b>Online Status:</b></td>
<td>$prepared[onlinestatus]</td>
<br>
</tr>
</table>
</center>
<div id="main_profile" style="text-align: left; width: 100%;">
</--USER PROFILE FIELDS QUICK STATS-->
<br><br>
<!--MAIN PROFILE FIELDS OPTIONS-->
<b>About Me</b>
<br><br>
<if condition="$userinfo[field6]">$userinfo[field6]</if>
<br><br>
<b>My Likes</b>
<br><br>
<if condition="$userinfo[field7]">$userinfo[field7]<else />Will Add Later</if>
<br><br>
<b>My Dislikes</b>
<br><br>
<if condition="$userinfo[field8]">$userinfo[field8]<else />Will Add Later</if>
<br><br>
<b>Favorite Music</b>
<br><br>
<if condition="$userinfo[field9]">$userinfo[field9]<else />Will Add Later</if>
</--MAIN PROFILE FIELDS OPTIONS-->
<br />
<if condition="$prepared['canbefriend']">
<a href="profile.php?$session[sessionurl]do=addlist&userlist=friend&u=$prepared[userid]">$vbphrase[add_to_friends_list]</a>
</if>
<!-- end usercss -->
<br><br>
</div>
<span style="text-align:center">
<div align="center"><center>
<table>
<tr><td>
<form action="/private.php?do=newpm&u=1" method="post">
<input class="button" value="Report User For Abuse" type="submit">
</form>
</td></tr></table></center>
<if condition="$show['admincp']">
<table>
<tbody><tr>
<td style="white-space: nowrap;" width="50%">Friends: (0) <a href="#">View</a></td>
<td style="white-space: nowrap;" width="50%">Friends Of: (0) <a href="#">View</a></td>
</tr>
<br />
<tr>
<td style="white-space: nowrap;" width="50%">Ignore List: (0) <a href="#">View</a></td>
<td style="white-space: nowrap;" width="50%">Member Of: <a href="#">View</a></td>
</tr>
</tbody>
</table>
</if>
<br /><br />
<div align="center">
<table><tr><td>
<form action="profile.php?$session[sessionurl]do=addlist&userlist=friend&u=$prepared[userid]" method="post">
<input class="button" value="Add To Friends" type="submit">
</form></td>
<td>
<form action="profile.php?$session[sessionurl]do=addlist&userlist=ignore&u=$prepared[userid]" method="post">
<input class="button" value="Add To Ignore List" type="submit">
</form></td></tr></table>
<br /><br />
<div id="main_messaging" style="text-align: center; width: 50%;">
$blocks[visitor_messaging]
</div>
</div>
$footer
</body>
</html>
Now onto the issues.
1. Why can't guests view my profile picture? It just shows as a red X, where registered members can.
2. There is something wrong somewhere with a DIV or TABLE as the light grey / dark grey is all wrong. The dark grey should be the whole page border, whereas the lightgrey should be for the content (the middle part), instead the lightgrey is currently set as the header and the rest is dark grey
Anyone? This is desperate.
Thanks