Facebook Twitter Pinterest Share

vBulletin 3.X Add-ons & Template Modifications All the latest vBulletin 3.X Add-ons & Template Modifications.


New Thread  Post Reply
J.Black's Avatar
J.Black : Guest
Posts: n/a
  #1  
Unread 12-01-07
Myspace UserCP Rewrite

So sick of the old boring user cp?
(i would like that someone has a screen shot of this)

Change it into something more exciting like MySpace Profile

1. Copy this into the UserCP_Shell template
(I would make a text backup.)

$stylevar[htmldoctype]
<
html dir="$stylevar[textdirection]lang="$stylevar[languagecode]">
<
head>
<
script type="text/javascript" src="clientscript/vbulletin_global.js"></script>
<script type="text/javascript" src="clientscript/vbulletin_menu.js"></script>
$headinclude
    <title>$vboptions[bbtitle] - $pagetitle</title>
</head>
<body$onload>
$header
$navbar



<!-- main page contents -->
$HTML
<!-- / main page contents -->


$footer
</body>
</html> 
2. Copy this into the USERCP template
(Again id Backup in text file.)

<div align="center">
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="90%"><tr><td width="50%" valign="top"><div align="center">
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]style="border-width:0px;" border="0" width="100%">
<!-- 
First Column -->
<
tr>
<
td colspan="2" style="border-style:solid;border-width:1px;" class="tcat" align="center">Hello, <strong>$bbuserinfo[username]</strong>!</td>
</
tr><tr>
<
td style="border-style:solid;border-width:1px;" class="vbmenu_control">
<
div>Profile Picture:</div><img src="image.php?u=$bbuserinfo[userid]&type=profile" width="90" height="90" /><br /><div>Avatar:</div><img src="image.php?u=$bbuserinfo[userid]/></td><td style="border-style:solid;border-width:1px;" class="vbmenu_control"><br /><a href="profile.php?do=editsignature">Edit Signature</a><br /><br />
<
a href="profile.php?do=editprofile">Edit Profile</a><br /><br />
<
a href="profile.php?do=editoptions">Edit Options</a><br /><br />
<
a href="profile.php?do=editpassword">Edit Password/E-mail</a><br /><br />
<
a href="profile.php?do=editavatar">Edit Avatar</a><br /><br />
<
a href="profile.php?do=editprofilepic">Edit Picture</a><br /><br />
<
a href='$vboptions[bburl]/member.php?{$session[sessionurl]}u={$bbuserinfo['userid']}'>View my Profile</a> <br />
</
div>
</
td>
</
tr>
<
tr>
<
td>
<
br />
</
td>
</
tr>
<
tr>
<
td colspan="2" style="border-style:solid;border-width:1px;" class="tcat" align="center">Private messages</td>
</
tr>
<
tr>
<
td style="border-style:solid;border-width:1px;" class="vbmenu_control" colspan="2">
<
div align="center">
<
strong>$vbphrase[unread_x_nav_compiled]</strong> - <strong>$vbphrase[total_x_nav_compiled]</strong>
</
div>
</
td>
</
tr>
<
tr>
<
td style="border-style:solid;border-width:1px;" class="vbmenu_control">
<
a href="private.php"><div align="center">Inbox</div></a>
</
td>
<
td style="border-style:solid;border-width:1px;" class="vbmenu_control">
<
a href="private.php?s=&pp=&folderid=-1"><div align="center">Sent Items</div></a>
</
td>
</
tr>
<
tr>
<
td width="50%" style="border-style:solid;border-width:1px;" class="vbmenu_control">
<
a href="private.php?do=newpm"><div align="center">Send New PM</div></a>
</
td>
<
td style="border-style:solid;border-width:1px;" class="vbmenu_control">
<
a href="private.php?do=editfolders"><div align="center">Edit Folders</div></a>
</
td>
</
tr>
<
tr>
<
td>
<
br />
</
td>
</
tr>
<
tr>
<
td colspan="3" style="border-style:solid;border-width:1px;" class="tcat" align="center">Miscellaneous</td>
</
tr><tr>
<
td style="border-style:solid;border-width:1px;" class="vbmenu_control">
<
div align="center"><a href="$bburl/calendar.php?do=viewreminder">Event Reminders</a></div>
</
td>
<
td style="border-style:solid;border-width:1px;" class="vbmenu_control">
<
div align="center"><a href="$bburl/profile.php?do=editattachments">Attachments</a> </div>
</
td>
<
tr>
<
td width="50%" style="border-style:solid;border-width:1px;" class="vbmenu_control">
<
a href="link goes here"><div align="center">New Link Text</div></a>
</
td>
<
td style="border-style:solid;border-width:1px;" class="vbmenu_control">
<
a href="link goes here"><div align="center">New Link Text</div></a>
</
td>
</
tr>
</
td>
</
tr>
<!-- / 
First Column -->
</
table>
</
div>
</
td>
<
td width="50%" valign="top"><div align="center"><table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" style="border-width:0px;" align="center">
<!-- 
Second Column -->
<
script type="text/javascript">
    <!--
    function 
pm(tform)
    {
        var 
users = new Array();
        var 
arrCount 0;
        for (
0tform.elements.lengthi++)
        {
            var 
element tform.elements[i];
            if ((
element.name != "allbox") && (element.type == "checkbox") && (element.checked == true))
            {
                
users[arrCount] = element.value;
                
arrCount++;
            }
        }
        if (
arrCount == 0)
        {
            
alert("$vbphrase[no_users_selected]");
        }
        else
        {
            var 
querystring "";
            for (
0users.lengthi++)
            {
                
querystring += "&userid[]=" users[i];
            }
            if (
opener && !opener.closed)
            { 
// parent window is still open
                
opener.location="private.php?$session[sessionurl]do=newpm" querystring;
            }
            else
            { 
// parent window has closed or went to a different URL.
                
window.open("private.php?$session[sessionurl]do=newpm" querystring"pm");
            }
        }
    }
    
// -->
    
</script>
<form action="onlineusers.php" method="post" target="_blank" name="vbform">

<tr><td class="vbmenu_option"><a href="#" onclick="window.open('$bburl/misc.php?do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">Open Buddy List</a></td></tr>

<if condition="$show['playsound']">
<!--<embed src="YourAlertSound.wav" hidden="True"> -->
</if>
</form>
<if condition="$show['privatemessages']">
<div class="tcat">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('usercp_pms')"><img id="collapseimg_usercp_pms" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_usercp_pms].gif" alt="" border="0" /></a>
<a href="private.php$session[sessionurl_q]">$vbphrase[new_private_messages]</a><span class="normal">: ($numpms)</span>
</div>
<div id="collapseobj_usercp_pms" style="$vbcollapse[collapseobj_usercp_pms]">
$messagelistbits
</div>
</if>
<!-- / Second column -->
</br>
<!-- Third Column SF-->
<div align="center">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%"><tr><td width="100%" valign="top">
<tr>
<td style="border-style:solid;border-width:1px;" class="vbmenu_control">


<tr>
<td style="border-style:solid;border-width:1px;" class="vbmenu_control">
<thead>


<tr>
        <td class="tcat" colspan="7">
            <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('usercp_subthreads')"><img id="collapseimg_usercp_subthreads" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_usercp_subthreads].gif" alt="" border="0" /></a>
            <a href="subscription.php?$session[sessionurl]do=viewsubscription">$vbphrase[new_subscribed_threads]</a><span class="normal">: ($numthreads)</span>
        </td>
    </tr>
</thead>
<tbody id="collapseobj_usercp_subthreads" style="$vbcollapse[collapseobj_usercp_subthreads]">
    <if condition="$show['threads']">
        <tr class="thead">
        
            <if condition="$show['threadicons']">
                <td class="thead" colspan="2">&nbsp;</td>
            <else />
                <td class="thead">&nbsp;</td>
            </if>
            
            <td class="thead" width="100%">$vbphrase[thread] / $vbphrase[thread_starter]</td>
            <td class="thead" width="150" align="center" nowrap="nowrap">$vbphrase[last_post]</td>
            <td class="thead" align="center">$vbphrase[replies]</td>
            <td class="thead" align="center">$vbphrase[views]</td>
        </tr>
        $threadbits
    <else />
        <tr>
            <td class="alt1" align="center" colspan="7"><strong>$vbphrase[no_subscribed_threads_to_display]</strong></td>
        </tr>
    </if>
    <tr>
        <td align="$stylevar[right]" colspan="7" class="tfoot">
        <span class="smallfont"><a href="subscription.php?$session[sessionurl]do=viewsubscription&amp;folderid=all">$vbphrase[view_all_subscribed_threads]</a></span>
        </td>
    </tr></br>

</td></td>
</tr>
</tr>
</tbody>
</br>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%"><tr><td width="100%" valign="top">
<thead><td style="border-style:solid;border-width:1px;" class="vbmenu_control">
    <tr>
        <td class="tcat" colspan="$reputationcolspan">
            <span class="smallfont" style="float:$stylevar[right]">
                <phrase 1="$bbuserinfo[reputation]">$vbphrase[x_points_total]</phrase>
                &nbsp; &nbsp;
                <a href="#top" onclick="return toggle_collapse('usercp_reputation')"><img id="collapseimg_usercp_reputation" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_usercp_reputation].gif" alt="" border="0" /></a>
            </span>
            $vbphrase[latest_reputation_received]
        </td>
    </tr>
</thead>
<tbody id="collapseobj_usercp_reputation" style="$vbcollapse[collapseobj_usercp_reputation]">
    <tr>
        <td class="thead" colspan="2">&nbsp; &nbsp; $vbphrase[thread]</td>
        <td class="thead">$vbphrase[date]</td>
        <if condition="$vboptions['showuserraters']">
        <td class="thead" nowrap="nowrap">$vbphrase[posted_by]</td>
        </if>
        <td class="thead">$vbphrase[comment]</td>
    </tr>
    $reputationcommentbits
</tbody>

</div></table></thead>
<!-- End Third Column SF-->

</div>
</table></table
</td></tr></table>
</div> 
To edit the bottom 2 links under misc, i made this code
<td style="border-style:solid;border-width:1px;" class="vbmenu_control">
<
a href="link goes here"><div align="center">New Link Text</div></a
Just edit as followed.

Thanks to s3PP3L

Last edited by J.Black; 12-02-07 at 01:31 AM.
Hoxxy's Avatar
Hoxxy : Administrator
Hoxxy has a reputation beyond reputeHoxxy has a reputation beyond reputeHoxxy has a reputation beyond reputeHoxxy has a reputation beyond reputeHoxxy has a reputation beyond reputeHoxxy has a reputation beyond reputeHoxxy has a reputation beyond reputeHoxxy has a reputation beyond reputeHoxxy has a reputation beyond reputeHoxxy has a reputation beyond reputeHoxxy has a reputation beyond repute
offline Joined: Nov 2007 Location: Hoxxy.info Posts: 3,227 Thanked: 3,613
  #2  
Unread 12-01-07
for this part:

<a href="$bburl/$bbuserinfo[username]">View my Profile</a><br />
to work add:

RewriteEngine On
RewriteRule ^$ index.php
RewriteRule (^[-_A-Za-z0-9\ ]*$) member.php?&username=$1
to your .htaccess file
J.Black's Avatar
J.Black : Guest
Posts: n/a
  #3  
Unread 12-02-07
Originally Posted by hoxxy View Post
Hover to view full quote
for this part:



to work add:

RewriteEngine On
RewriteRule ^$ index.php
RewriteRule (^[-_A-Za-z0-9\ ]*$) member.php?&username=$1
to your .htaccess file
ok i figured out just replace the

<a href="$bburl/$bbuserinfo[username]">View my Profile</a><br /> 
with this

<a href='$vboptions[bburl]/member.php?{$session[sessionurl]}u={$bbuserinfo['userid']}'View my Profile</a
and this will work with vBSEO and without it

Last edited by J.Black; 12-02-07 at 01:29 AM.
2010's Avatar
2010 : Newbie +
2010 is on a distinguished road
offline Joined: Oct 2007 Posts: 11 Thanked: 0
  #4  
Unread 12-02-07
can someone plz screenshot this?
sounds promising...
hacks's Avatar
hacks : Banned
hacks is on a distinguished road
offline Joined: Oct 2007 Location: g0th h4ck3d Posts: 5 Thanked: 0
  #5  
Unread 12-02-07
here is a screen shot

Smeker's Avatar
Smeker : 50+
Smeker will become famous soon enough
offline Joined: Sep 2007 Posts: 99 Thanked: 21
  #6  
Unread 12-04-07
Doesn't look that bad... but it HAS to have a similar memberinfo to myspace or it's useless.
dudeguy's Avatar
dudeguy : Newbie +
dudeguy is on a distinguished road
offline Joined: Dec 2007 Posts: 7 Thanked: 0
  #7  
Unread 12-04-07
i like the layout, it would be cool to change member.php to look similar to that minus the edit links.
New Thread  Post Reply

Thread Tools

Bookmarks
  • Submit Thread to Facebook
  • Submit Thread to Twitter
  • Submit Thread to Pinterest
  • Submit Thread to LinkedIn
  • Submit Thread to Reddit
Tags
rewrite, usercp, myspace
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Powered by GYSN Underground 2021