cryrichter
New Member
Profile template - Clean and Simple
Code:
http://www.vbulletin.org/forum/showthread.php?t=197971
http://www.vbulletin.org/forum/showthread.php?t=197971
##################################################
##################################################
--------- OPEN TEMPLATE "MEMBERINFO" -----------
##################################################
--- REPLACE ALL WITH:
#######################
$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?v=$vboptions[simpleversion]"></script>
<script type="text/javascript" src="clientscript/vbulletin_quick_edit_generic.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript" src="clientscript/vbulletin_quick_edit_visitormessage.js?v=$vboptions[simpleversion]"></script>
<title>$vboptions[bbtitle] - $vbphrase[view_profile]: $userinfo[username]</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]";
vbphrase['edit_value'] = "$vbphrase[edit_value_js]";
<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();
}
return false;
}
</if>
-->
</script>
</head>
<body>
$header
$navbar
<!-- begin user css -->
<div id="usercss" class="floatcontainer">
<div id="main_userinfo" class="floatcontainer">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<if condition="$blocks['profile_picture']">
<td id="profilepic_cell">$blocks[profile_picture]</td>
</if>
<td valign="top" width="100%" id="username_box"<if condition="$prepared['profilepicurl']"> class="profilepic_adjacent"</if>>
<h1>$prepared[musername] $prepared[onlinestatus]</h1>
<if condition="$prepared['usertitle']">
<h2>$prepared[usertitle]</h2>
</if>
<!-- current activity -->
<br />
<span class="shade">$vbphrase[last_activity]:</span> $prepared[lastactivitydate]<if condition="!$show['detailedtime']"> <span class="time">$prepared[lastactivitytime]</span></if>
<br />
<if condition="$prepared['action']">
<span class="shade">$vbphrase[current_activity]:</span> $prepared[action] $prepared[where]
</if>
<!-- / current activity -->
</td>
</tr>
</table>
</div>
<div id="profile_tabs">
$template_hook[profile_left_first]
$blocks[aboutme]
$blocks[visitor_messaging]
$blocks[albums]
$blocks[groups]
$blocks[visitors]
$blocks[friends]
$blocks[stats]
$blocks[contactinfo]
$template_hook[profile_left_last]
</div>
<script type="text/javascript">
<!--
vBulletin.register_control("vB_TabCtrl", "profile_tabs", "$selected_tab", "»", "profile.php?u=2&do=loadtab&tabid={1:tabid}");
//-->
</script>
</div>
<!-- end usercss -->
$footer
</body>
</html>
##################################################
##################################################
--------- OPEN TEMPLATE "memberinfo_albumbit" -
##################################################
-- REPLACE ALL WITH:
########################
<td valign="bottom">
<table>
<tr>
<td align="center">
<if condition="$album['coverthumburl']">
<a href="album.php?$session[sessionurl]albumid=$album[albumid]"><img src="$album[coverthumburl]" alt="$album[title_html]" border="0" /></a>
</if>
</td>
</tr>
<tr>
<td align="center">
<a href="album.php?$session[sessionurl]albumid=$album[albumid]">$album[title_html]</a>
</td>
</tr>
<tr>
<td align="center">
<if condition="$album['lastpicturedate']">
$album[picturedate]<if condition="!$show['detailedtime']"> <span class="time">$album[picturetime]</span></if>
<else />
$vbphrase[n_a]
</if>
</td>
</tr>
</table>
<if condition="$show['moderated']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/moderated_small.gif" alt="<phrase 1="$album[moderatedcount]">$vbphrase[x_moderated_pictures]</phrase>" /></if>
</td>
##########################################################
##########################################################
--------- OPEN TEMPLATE "memberinfo_block_albums" -----
##########################################################
-- REPLACE ALL WITH:
########################
<if condition="$block_data['albumbits']">
<table cellpadding="4" cellspacing="4" align="center" border="0" class="alt1">
<tr>
$block_data[albumbits]
</tr>
</table>
<div class="alt2 smallfont block_row block_footer" align="$stylevar[align=right]">
<a href="album.php?$session[sessionurl]u=$userinfo[userid]">$vbphrase[show_all_albums]</a>
</div>
<else />
<div class="alt1 smallfont block_row">$vbphrase[you_have_not_created_any_albums]</div>
<div class="alt2 smallfont block_row block_footer" align="$stylevar[align=right]">
<a href="album.php?$session[sessionurl]do=addalbum">$vbphrase[add_album]</a>
</div>
</if>
#######################################################
#######################################################
--- DONE --------------------------------------------
#######################################################
#######################################################