I threw together a quick little member home page, to look like the myspace home page a user sees. It's not a "real" one, in other words you still need the u=userid on the url to view it but it works. This is modified code from this thread. So you'll need to modify the field numbers accordingly.
Create a new template and call it:
myspace_home
Then put this code into it:
Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle] - $vbphrase[view_profile]: $userinfo[username]</title>
</head>
<body>
$header
$navbar
<table width="100%" border="0" align="center" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]">
<tr>
<td valign="top" width="0%"><table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr class="tcat"> <td colspan="2"><div align="Left" class="bigusername"><strong>Hello, $userinfo[username]</div></font></strong>
</tr>
<!--new posts and reps start --><tr>
<td class="alt2"><div class="smallfont">There Have Been $pcount New Posts Since Your Last Visit</div>
<td class="alt2"><div class="smallfont">$rcount</div></td></tr>
<!--new posts and reps end -->
<tbody>
<tr class="alt1">
<td><div align="right"><center><if condition="$show['avatar']">
<div class="smallfont">
<a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" border="4" alt="" style="border-color:white;" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></center>
</div>
<else /> <center><img src="$stylevar[imgdir_misc]/noavatar.gif">
</if></div><br /><center><legend><div class="smallfont">View My:</legend><br/><a href="profile.php?u=$userinfo[userid]">Profile</a> | <a href="journal.php?u=$userinfo[userid]">Journal</a></div></center></center>
<td align="left" valign="top" class="text">
<div class="smallfont"><a href="./search.php?do=finduser&u=$userinfo[userid]">View Your Posts</a><br/> <a href="./search.php?do=process&showposts=0&starteronly=1&exactname=1&searchuser=$userinfo[username]">View Your Threads</a><br/>
<a href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a>
<br/>
<a href="profile.php?$session[sessionurl]do=editpassword">$vbphrase[edit_email_and_password]</a><br/>
<a href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a> <br/>
<a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a><br/>
<a href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a> <br/>
<a href="profile.php?$session[sessionurl]do=editprofilepic">$vbphrase[edit_profile_picture]</a><br/>
<br/></td></div>
<br/>
</tr> </tbody>
</table>
<br/>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr class="tcat">
<td colspan="2"><strong>Tell Others About Your Space</td></font></strong>
</tr>
<tr class="alt1">
<td nowrap="nowrap" width="50%">My Page<div align="left"> <div class="smallfont">
<a href="$vboptions[bburl]/$userinfo[username]">$vboptions[bburl]/$userinfo[username]</a>
</td> <td nowrap="nowrap" width="50%">My Journal <div align="left"> <div class="smallfont">
<a href="$vboptions[bburl]/journal.php?u=$userinfo[userid]">$vboptions[bburl]/journal.php?u=$userinfo[userid]</a>
</td>
</table>
<p> <!--contact table information -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr class="tcat">
<td colspan="2"><strong>Mail</td></font></strong>
</tr>
<tr class="alt1">
<td height="5" nowrap="nowrap" width="50%"> <div align="left"> <div class="smallfont">
<a href="private.php">
Inbox</a>
</td>
<td height="5" nowrap="nowrap" valign="top" width="50%">
<div align="left"> <div class="smallfont">
<a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">Friends</a></div></td>
</tr>
<tr class="alt1">
<td height="5" nowrap="nowrap" valign="top" width="50%">
<div align="left"><div class="smallfont">
<a href="private.php?s=&pp=25&folderid=-1">
Sent Items</a>
</div></td>
<td class="alt1" height="5" nowrap="nowrap" valign="middle" width="50%">
<div align="left"> <div class="smallfont">
<a href="journal.php?do=addentry">Post Journal Entry</a>
</div></td>
</tr>
</table>
<!-- /Contact Table Information -->
<p>
</td>
<td valign="top" width="60%">
<br />$FNB_HTML<br />
<p>$comment_panel</p></td>
</tr></table></td>
</table>
<br />
$footer
<br />
</body>
</html>
You'll need to install this hack if you want the new posts/reputation messages to show up: https://vborg.vbsupport.ru/showthrea...threadid=91146
Otherwise just find that code and delete it. Also the rep message in the example will not show up for you, that's just for my board so don't worry. That message will be whatever you decide when you install the hack.
Then duplicate your member.php file and call it space.php
Find:
Code:
$globaltemplates = array(
'MEMBERINFO',
Change it to:
Code:
$globaltemplates = array(
'myspace_home',
Then find:
Code:
$templatename = iif($quick, 'memberinfo_quick', 'MEMBERINFO');
Change it to:
Code:
$templatename = iif($quick, 'memberinfo_quick', 'myspace_home');
Then save your space.php file and upload it to the root of your forum.
Then tell your members to bookmark or do whatever you want with this link:
www.yoursite.com/space.php?u=userid
or
www.yoursite.com/forum/space.php?u=userid
whichever you use.
Like I said, it's not perfect, but it's something to start with and match the "myspace" feel pretty much. Maybe I'll tweak it a little more some other time. Anyways, it should look something like this:
|