MyBB Community Forums

Full Version: Better Profile management/User CP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
The thing that mostly annoys me is the profile management.

- We can't upload avatars from URLs.
- We can't directly use external avatars (the system checks if the URL is valid).
- The HTML source is invalid!

If you think something should be added to this list, please tell me.

Thanks!
Maybe... but not in the template editor...

<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->change_avatar}</title>
{$headerinclude}
</head>
<body>
{$header}
<table width="100%" border="0" align="center">
<tr>
{$usercpnav}
<td valign="top">
{$avatar_error}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>{$lang->change_avatar}</strong></td>
</tr>
<tr>
<td class="trow1" colspan="2">
<table cellspacing="0" cellpadding="0" width="100%"><tr>
<td>{$lang->avatar_note}{$avatarmsg}
</td>
{$currentavatar}
</tr></table>
</td>
</tr>
<tr>
<td class="tcat" colspan="2"><strong>{$lang->local_galleries}</strong></td>
</tr>
<tr>
<td class="trow2"><strong>{$lang->gallery}</strong></td>
<td class="trow2">
<form method="post" action="usercp.php">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<input type="hidden" name="action" value="avatar" />
<select name="gallery">
{$galleries}
</select>
&nbsp;{$gobutton}
</form>
</td>
</tr>
<tr>
<td class="tcat" colspan="2"><strong>{$lang->custom_avatar}</strong></td>
</tr>
<tr>
<td class="trow1" width="40%"><strong>{$lang->avatar_upload}</strong></td>
<td class="trow1" width="60%">
<form enctype="multipart/form-data" action="usercp.php" method="post">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<input type="file" name="avatarupload" size="25" class="fileupload" />
{$auto_resize}
</td>
</tr>
<tr>
<td class="trow2" width="40%"><strong>{$lang->avatar_url}</strong></td>
<td class="trow2" width="60%"><input type="text" class="textbox" name="avatarurl" size="45" value="{$avatarurl}" /></td>
</tr>
</table>
<br />
<div align="center">
<input type="hidden" name="action" value="do_avatar" />
<input type="submit" class="button" name="submit" value="{$lang->change_avatar}" />
<input type="submit" class="button" name="remove" value="{$lang->remove_avatar}" />
</div>
</td>
</tr>
</table>
</form>
{$footer}
</body>
</html>

And I'm talking about the User CP not about your profile!
(2011-10-14, 03:02 AM)SoniEx 2 Wrote: [ -> ]- We can't directly use external avatars (the system checks if the URL is valid).

use a valid image output and it works fine. those sites that create composite images on the fly often do not meet conventional formats, mimes, etc. my gravatar url works just fine.
This check can annoy you if:

http://r14.imgfast.net/users/1411/67/20/...s/1-50.gif
- You have a valid URL (try using it here (I'm using it now))
- You get an error message (when I try to use it on my forum, I get the error message (http://community.mybb.com/thread-105802.html))
Its because your server does not support the PHP function fetch_remote_file(). Its a host/server issue, not related to MyBB at all, other than MyBB tries to get the remote image to verify its size complies with the ACP settings for avatar dimensions
Look at the actual HTML source of the UserCP. It swaps out <html> for the valid code.
(2011-10-14, 06:35 PM)Paul H. Wrote: [ -> ]Look at the actual HTML source of the UserCP. It swaps out <html> for the valid code.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!-- start: usercp_avatar -->
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Sonickers - Change Avatar</title>
<!-- start: headerinclude -->
<link rel="alternate" type="application/rss+xml" title="Latest Threads (RSS 2.0)" href="http://sonickers.co.cc/forums/syndication.php" />

<link rel="alternate" type="application/atom+xml" title="Latest Threads (Atom 1.0)" href="http://sonickers.co.cc/forums/syndication.php?type=atom1.0" />

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<meta http-equiv="Content-Script-Type" content="text/javascript" />

<script type="text/javascript" src="http://sonickers.co.cc/forums/jscripts/prototype.js?ver=1603"></script>

<script type="text/javascript" src="http://sonickers.co.cc/forums/jscripts/general.js?ver=1603"></script>

<script type="text/javascript" src="http://sonickers.co.cc/forums/jscripts/popup_menu.js?ver=1600"></script>

<script src="shjs/sh_asm.js" type="text/javascript"></script>

<script src="shjs/sh_main.js" type="text/javascript"></script>

<link type="text/css" rel="stylesheet" href="shjs/sh_style.css" />

<link type="text/css" rel="stylesheet" href="http://sonickers.co.cc/forums/css.php?stylesheet=6" />
<link type="text/css" rel="stylesheet" href="http://sonickers.co.cc/forums/cache/themes/theme3/global.css" />
<link type="text/css" rel="stylesheet" href="http://sonickers.co.cc/forums/css.php?stylesheet=9" />
<link type="text/css" rel="stylesheet" href="http://sonickers.co.cc/forums/css.php?stylesheet=2" />


<script type="text/javascript">

<!--

	var cookieDomain = ".sonickers.co.cc";

	var cookiePath = "/forums/";

	var cookiePrefix = "";

	var deleteevent_confirm = "Are you sure you want to delete this event?";

	var removeattach_confirm = "Are you sure you want to remove the selected attachment from this post?";

	var loading_text = 'Loading. <br />Please Wait..';

	var saving_changes = 'Saving changes..';

	var use_xmlhttprequest = "1";

	var my_post_key = "46df2e84fdc6374737e96c956e56e0f5";

	var imagepath = "images";

// -->

</script>


<!-- end: headerinclude -->
</head>
<body>
<!-- start: header -->
<div id="container">

		<a name="top" id="top"></a>

		<div id="header">

			<div class="logo" style="text-align: center;"><a href="http://sonickers.co.cc/forums/index.php"><img src="../logo.png" alt="Sonickers" title="Sonickers" /></a><br /><span id="bbdesc">Sonickers Sonic Hacking forum</span></div>

			<div class="menu">

				<ul>

					<li><a href="http://sonickers.co.cc/forums/search.php"><img src="images/toplinks/search.gif" alt="" title="" />Search</a></li>

					<li><a href="http://sonickers.co.cc/forums/memberlist.php"><img src="images/toplinks/memberlist.gif" alt="" title="" />Member List</a></li>

					<li><a href="http://sonickers.co.cc/forums/calendar.php"><img src="images/toplinks/calendar.gif" alt="" title="" />Calendar</a></li>

					<li><a href="http://sonickers.co.cc/forums/misc.php?action=help"><img src="images/toplinks/help.gif" alt="" title="" />Help</a></li>

				</ul>

			</div>

			<hr class="hidden" />

			<div id="panel">

				<!-- start: header_welcomeblock_member -->
	<span style="float:right;"><strong>Current time:</strong> Friday, 14th October, 2011, 16:27</span>
		<strong>Welcome back, <a href="http://sonickers.co.cc/forums/user-1.html">SoniEx 2</a></strong>. You last visited: Today, 06:27 (<a href="http://sonickers.co.cc/forums/usercp.php"><strong>User CP</strong></a><!-- start: header_welcomeblock_member_moderator -->
 &mdash; <a href="http://sonickers.co.cc/forums/modcp.php">Mod CP</a>
<!-- end: header_welcomeblock_member_moderator --><!-- start: header_welcomeblock_member_admin -->
 &mdash; <a href="http://sonickers.co.cc/forums/admin/index.php">Admin CP</a>
<!-- end: header_welcomeblock_member_admin --> &mdash; <a href="http://sonickers.co.cc/forums/member.php?action=logout&amp;logoutkey=79b0d8614e8c9da625acfc64b11e1293">Log Out</a>)<br />
				<span class="links">
					<a href="#" onclick="MyBB.popupWindow('http://sonickers.co.cc/forums/misc.php?action=buddypopup', 'buddyList', 350, 350);">Open Buddy List</a>
				</span>
				<a href="http://sonickers.co.cc/forums/search.php?action=getnew">View New Posts</a> | <a href="http://sonickers.co.cc/forums/search.php?action=getdaily">View Today's Posts</a> | <a href="http://sonickers.co.cc/forums/private.php">Private Messages</a> (Unread 0, Total 0)
<!-- end: header_welcomeblock_member -->

			</div>

		</div>

		<hr class="hidden" />

		<br class="clear" />

		<div id="content">

			

			

			

			

			

			<!-- start: nav -->

<div class="navigation">
<!-- start: nav_bit -->
<a href="http://sonickers.co.cc/forums/index.php">Sonickers</a><!-- start: nav_sep -->
 / 
<!-- end: nav_sep -->
<!-- end: nav_bit --><!-- start: nav_bit -->
<a href="usercp.php">User Control Panel</a>
<!-- end: nav_bit --><!-- start: nav_sep_active -->
 / 
<!-- end: nav_sep_active --><!-- start: nav_bit_active -->
<span class="active">Change Avatar</span>
<!-- end: nav_bit_active -->
</div>
<!-- end: nav -->

			<br />
<!-- end: header -->
<table width="100%" border="0" align="center">
<tr>
<!-- start: usercp_nav -->
<td width="180" valign="top">
<table border="0" cellspacing="1" cellpadding="4" class="tborder">
	<tr>
		<td class="thead"><strong>Menu</strong></td>
	</tr>
	<tr>
		<td class="trow1 smalltext"><a href="usercp.php" class="usercp_nav_item usercp_nav_home">User CP Home</a></td>
	</tr>
<!-- start: usercp_nav_messenger -->
<tr>
	<td class="tcat">
		<div class="float_right"><img src="images/collapse.gif" id="usercppms_img" class="expander" alt="[-]"/></div>
		<div><span class="smalltext"><strong>Messenger</strong></span></div>
	</td>
</tr>
<tbody style="" id="usercppms_e">
	<tr><td class="trow1 smalltext"><a href="private.php?action=send" class="usercp_nav_item usercp_nav_composepm">Compose</a></td></tr>
	<tr>
		<td class="trow1 smalltext">
			<div><a href="private.php?fid=1" class="usercp_nav_item usercp_nav_pmfolder">Inbox</a></div>
<div><a href="private.php?fid=2" class="usercp_nav_item usercp_nav_sub_pmfolder">Sent Items</a></div>
<div><a href="private.php?fid=3" class="usercp_nav_item usercp_nav_sub_pmfolder">Drafts</a></div>
<div><a href="private.php?fid=4" class="usercp_nav_item usercp_nav_trash_pmfolder">Trash Can</a></div>

		</td>
	</tr>
	<tr><td class="trow1 smalltext"><a href="private.php?action=tracking" class="usercp_nav_item usercp_nav_pmtracking">Tracking</a></td></tr>
	<tr><td class="trow1 smalltext"><a href="private.php?action=folders" class="usercp_nav_item usercp_nav_pmfolders">Edit Folders</a></td></tr>
</tbody>

<!-- end: usercp_nav_messenger --><!-- start: usercp_nav_profile -->
<tr>
	<td class="tcat">
		<div class="expcolimage"><img src="images/collapse.gif" id="usercpprofile_img" class="expander" alt="[-]" title="[-]" /></div>
		<div><span class="smalltext"><strong>Your Profile</strong></span></div>
	</td>
</tr>
<tbody style="" id="usercpprofile_e">
	<tr><td class="trow1 smalltext">
		<div><a href="usercp.php?action=profile" class="usercp_nav_item usercp_nav_profile">Edit Profile</a></div>
		<!-- start: usercp_nav_changename -->
<div><a href="usercp.php?action=changename" class="usercp_nav_item usercp_nav_username">Change Username</a></div>
<!-- end: usercp_nav_changename -->
		<div><a href="usercp.php?action=password" class="usercp_nav_item usercp_nav_password">Change Password</a></div>
		<div><a href="usercp.php?action=email" class="usercp_nav_item usercp_nav_email">Change Email</a></div>
		<div><a href="usercp.php?action=avatar" class="usercp_nav_item usercp_nav_avatar">Change Avatar</a></div>
		<!-- start: usercp_nav_editsignature -->
<div><a href="usercp.php?action=editsig" class="usercp_nav_item usercp_nav_editsig">Change Signature</a></div>
<!-- end: usercp_nav_editsignature -->
	</td></tr>
	<tr><td class="trow1 smalltext"><a href="usercp.php?action=options" class="usercp_nav_item usercp_nav_options">Edit Options</a></td></tr>
</tbody>
<!-- end: usercp_nav_profile --><!-- start: usercp_nav_misc -->
<tr>
	<td class="tcat">
		<div class="expcolimage"><img src="images/collapse.gif" id="usercpmisc_img" class="expander" alt="[-]" title="[-]" /></div>
		<div><span class="smalltext"><strong>Miscellaneous</strong></span></div>
	</td>
</tr>
<tbody style="" id="usercpmisc_e">
	<tr><td class="trow1 smalltext"><a href="usercp.php?action=usergroups" class="usercp_nav_item usercp_nav_usergroups">Group Memberships</a></td></tr>
	<tr><td class="trow1 smalltext"><a href="usercp.php?action=editlists" class="usercp_nav_item usercp_nav_editlists">Buddy/Ignore List</a></td></tr>
	<tr><td class="trow1 smalltext"><a href="usercp.php?action=attachments" class="usercp_nav_item usercp_nav_attachments">Manage Attachments</a></td></tr>
	<tr><td class="trow1 smalltext"><a href="usercp.php?action=drafts" class="usercp_nav_item usercp_nav_drafts">Saved Drafts </a></td></tr>
	<tr><td class="trow1 smalltext"><a href="usercp.php?action=subscriptions" class="usercp_nav_item usercp_nav_subscriptions">Subscribed Threads</a></td></tr>
	<tr><td class="trow1 smalltext"><a href="usercp.php?action=forumsubscriptions" class="usercp_nav_item usercp_nav_fsubscriptions">Forum Subscriptions</a></td></tr>
	<tr><td class="trow1 smalltext"><a href="user-1.html" class="usercp_nav_item usercp_nav_viewprofile">View Profile</a></td></tr>
</tbody>
<!-- end: usercp_nav_misc -->
</table>
</td>
<!-- end: usercp_nav -->
<td valign="top">
<!-- start: error_inline -->
<div class="error">
	<p><em>Please correct the following errors before continuing:</em></p>
	<ul>
		<li>The URL you entered for your avatar does not appear to be valid. Please ensure you enter a valid URL.</li>

	</ul>
</div>
<br />
<!-- end: error_inline -->
<table border="0" cellspacing="1" cellpadding="4" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>Change Avatar</strong></td>
</tr>
<tr>
<td class="trow1" colspan="2">
<table cellspacing="0" cellpadding="0" width="100%"><tr>
<td>An avatar is a small identifying image shown under the author's name whenever they make a post.<br />The maximum dimensions for avatars are: 100x300 pixels.
</td>

</tr></table>
</td>
</tr>
<tr>
<td class="tcat" colspan="2"><strong>Local Avatar Galleries</strong></td>
</tr>
<tr>
<td class="trow2"><strong>Gallery:</strong></td>
<td class="trow2">
<form method="post" action="usercp.php">
<input type="hidden" name="my_post_key" value="46df2e84fdc6374737e96c956e56e0f5" />
<input type="hidden" name="action" value="avatar" />
<select name="gallery">
<option value="default" >Default Gallery</option>

</select>
&nbsp;<!-- start: gobutton -->
<input type="submit" class="button" value="Go" />
<!-- end: gobutton -->
</form>
</td>
</tr>
<tr>
<td class="tcat" colspan="2"><strong>Custom Avatar</strong></td>
</tr>
<tr>
<td class="trow1" width="40%"><strong>Upload Avatar:</strong></td>
<td class="trow1" width="60%">
<form enctype="multipart/form-data" action="usercp.php" method="post">
<input type="hidden" name="my_post_key" value="46df2e84fdc6374737e96c956e56e0f5" />
<input type="file" name="avatarupload" size="25" class="fileupload" />
<br /><span class="smalltext">If your avatar is too large, it will automatically be resized.</span>

</td>
</tr>
<tr>
<td class="trow2" width="40%"><strong>Avatar URL:</strong></td>
<td class="trow2" width="60%"><input type="text" class="textbox" name="avatarurl" size="45" value="" /></td>
</tr>
</table>
<br />
<div align="center">
<input type="hidden" name="action" value="do_avatar" />
<input type="submit" class="button" name="submit" value="Change Avatar" />
<input type="submit" class="button" name="remove" value="Remove Avatar" />
</div>
</td>
</tr>
</table>
</form>
<!-- start: footer -->
<br />

			<div class="bottommenu">

				<div class="float_right"><!-- start: footer_languageselect -->
<form method="post" action="/forums/usercp.php" id="lang_select">
		<input type="hidden" name="my_post_key" value="46df2e84fdc6374737e96c956e56e0f5" />
<input type="hidden" name="avatarurl" value="http://r14.imgfast.net/users/1411/67/20/97/avatars/1-50.gif" />
<input type="hidden" name="action" value="do_avatar" />
<input type="hidden" name="submit" value="Change Avatar" />

		<select name="language" onchange="MyBB.changeLanguage();">
			<optgroup label="Quick Language Select">
				<option value="english" selected="selected">&nbsp;&nbsp;&nbsp;English (American)</option>

			</optgroup>
		</select>
		<!-- start: gobutton -->
<input type="submit" class="button" value="Go" />
<!-- end: gobutton -->
	</form>
<!-- end: footer_languageselect --></div>

				<div>

					<span class="smalltext"><a href="mailto:[email protected]">Contact Us</a> | <a href="/">Sonickers</a> | <a href="#top">Return to Top</a> | <a href="#content">Return to Content</a> | <a href="http://sonickers.co.cc/forums/archive/index.php">Lite (Archive) Mode</a> | <a href="http://sonickers.co.cc/forums/misc.php?action=syndication">RSS Syndication</a></span>

				</div>

			</div>

			</div>

		<hr class="hidden" />

			<div id="copyright">

				<div id="debug"></div>

				<!-- MyBB is free software developed and maintained by a volunteer community. 

					 It would be much appreciated by the MyBB Group if you left the full copyright and "powered by" notice intact, 

					 to show your support for MyBB.  If you choose to remove or modify the copyright below, 

					 you may be refused support on the MyBB Community Forums.

					 

					 This is free software, support us and we'll support you. -->

Powered By <a href="http://mybb.com/" target="_blank">MyBB</a>, &copy; 2002-2011 <a href="http://mybb.com/" target="_blank">MyBB Group</a>.<br />

				<!-- End powered by -->

				<br />

<br class="clear" />

<!-- The following piece of code allows MyBB to run scheduled tasks. DO NOT REMOVE --><img src="http://sonickers.co.cc/forums/task.php" border="0" width="1" height="1" alt="" /><!-- End task image code -->

<script type="text/javascript">if(MyBB) { Event.observe(window, 'load', function() { MyBB.detectDSTChange('-3'); }); }</script>


		</div>

		</div>

<script type="text/javascript">sh_highlightDocument();</script>
<!-- end: footer -->
</body>
</html>
<!-- end: usercp_avatar -->

5 errors, 1 warning...
its got nothing to do with UserCP, its a host/server/php configuration issue.
I've noticed a few errors with the User CP when making a theme. It isn't valid in some places.

In 2.0, we're revamping the User CP. It's much easier to use.
Pages: 1 2