Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Myspace UserCP Rewrite Details »»
Myspace UserCP Rewrite
Version: 2.0, by SuperFly SuperFly is offline
Developer Last Online: Apr 2008 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 02-06-2006 Last Update: Never Installs: 53
Template Edits
 
No support by the author.

So sick of the old boring user cp?


Change it into something more exciting like this




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

Code:
$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.)
Code:
<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="$bburl/$bbuserinfo[username]">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 (i = 0; i < tform.elements.length; i++)
		{
			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 (i = 0; i < users.length; i++)
			{
				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

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.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #222  
Old 07-25-2006, 01:27 AM
d8tabyte's Avatar
d8tabyte d8tabyte is offline
 
Join Date: Nov 2005
Location: Michigan
Posts: 239
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

umm seeing as how it is almost a split now - 50/50 IE to firefox users - don't you think you should at least TRY to be multi browser compliant?
Reply With Quote
  #223  
Old 08-24-2006, 01:35 PM
KevNJ KevNJ is offline
 
Join Date: Jan 2005
Posts: 310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any update on version 2 superfly ?
Reply With Quote
  #224  
Old 09-06-2006, 04:39 AM
Chicago_VLNU_4s Chicago_VLNU_4s is offline
 
Join Date: Mar 2006
Location: Chicago
Posts: 453
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice! didn't look thru all 15 pages, but you placed a wrong code in for "View My Page". I believe you put "[username]" and its supposed to be

Quote:
<a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]
sorry if some1 said it b4 me. Nice hack though **installed**


*******************

also, your "View My Buddy's" was wrongfully linked. I have the forum friends thing installed so i modified it to goto that hack using this

Quote:
<a href="friends.php?$session[sessionurl]u=$bbuserinfo[userid]">
but sorry again if some1 has already corrected this. Just inputing
Reply With Quote
  #225  
Old 10-23-2006, 03:14 AM
KevNJ KevNJ is offline
 
Join Date: Jan 2005
Posts: 310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any word on a version 2 ?
Reply With Quote
  #226  
Old 11-04-2006, 09:54 PM
Chicago_VLNU_4s Chicago_VLNU_4s is offline
 
Join Date: Mar 2006
Location: Chicago
Posts: 453
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any1 know how i would write a hook to the user cp for the "profile views" hack and "last login" hack?
Reply With Quote
  #227  
Old 12-19-2006, 08:06 PM
tomotron tomotron is offline
 
Join Date: Nov 2005
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

looks promising, i'd like to see version 2 when it comes out.

does anyone know of any other usercp rewrite hacks?
Reply With Quote
  #228  
Old 06-26-2007, 05:15 PM
Vic123 Vic123 is offline
 
Join Date: Jun 2004
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just want you show my interest in a fixed version where the following problems will be fixed:

- newest profile pic / avatar showing up
- a working buddylist with online/offline status
- a working PM preview


That product you released here is to great to continue letting it be so buggy. I really like your work especially this product. When the issues mentioned above are solved I think it can become far more popular. Lot of ppl are scared by the reported bugs/malfunctions.

Thanks for your time! Keep up the good work! :up:

bye
Vic
Reply With Quote
  #229  
Old 06-26-2007, 11:27 PM
Vic123 Vic123 is offline
 
Join Date: Jun 2004
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

regarding a bugfix for that timestamp/avatar/profilepic issue I just found that thread on vb.com. perhabs that might be helpful:

http://www.vbulletin.com/forum/showthread.php?t=224697
Reply With Quote
  #230  
Old 06-30-2007, 11:55 AM
Mysticales's Avatar
Mysticales Mysticales is offline
 
Join Date: Oct 2005
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok all. Thank me later... I solved it.. Good ol by hand jury rigging.

Ok here is what I have. I am a 3.5.x VB user. I do NOT store Avatars and Profile pics in the database, I have them in the Filesystem (Aka to those who dont know, its in admincp - Attachments - Storage type. Taking the files from the SQL database to a ftp type server basically.

Now then if your having the issue of you cant find a variable, command etc to get the profile pics to show up or avatar pics to show up in the UserCP "Myspace" looking template. Here you go.

Code:
<td style="border-style:solid;border-width:1px;" class="vbmenu_control">
<div>Profile Picture:</div><img src="customprofilepics/profilepic$bbuserinfo[userid]_1.gif" alt="$vbphrase[your_profile_picture]"  border="0" /><br /><div>Avatar:</div><img src="customavatars/avatar$bbuserinfo[userid]_1.gif" alt="<phrase 1="$bbuserinfo[username]">$vbphrase[xs_avatar]</phrase>" border="0" /><br /></a></td></td>
This is my exact code used to make them show up in UserCP. Just find the same areas and look for Profile Picture: and Avatar: and its whats next to them that matters, just gave you the rest of the code so you know where it fits in.

Explination:

Code:
Now then, since we filesystem users cant seem to use image.php that means we are stuck.. 
well I learned how VB was working this. In the FTP for the folder "customavatars or customprofilepics" 
You will notice the file names, the file name MATCH the userid #. 
So added the extra chars it needed, and vola, when the forums load it up, as you can see it loads the path, avatar(that I wrote in manually in the template), the user ID number, then -1.gif and vola! 
It works! Now mind you I will mention this as I can see a issue already. 
This is pre defined for Custom Avatars and Profile pics ONLY. 
Meaning if you have "Set" avatars to select in your forum.. you would need to code it differently. 
I can only guide you part way here. 
But least I have a REAL answer for you on how to code it if your a filesystem user.
You should be able to use this code out of the box, provided your vb install was the same as normal installs. If not, alter the path. Any questions, let me know. =)

Btw.. mine is tad tricker.. as im giving users the option to choose which type of usercp they want to use.. not to mention I have them able to change avatar types from normal avatar to xbox live gamertag as a avatar, controlled within usercp. =)

Anyways does this help out anyone?
Reply With Quote
  #231  
Old 07-08-2007, 09:55 PM
foulplay's Avatar
foulplay foulplay is offline
 
Join Date: Mar 2006
Location: US
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it works, but the picture doesn't update in the usercp.
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 11:50 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05627 seconds
  • Memory Usage 2,337KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete