Ultimate Profile

Started by JovanT, March 12, 2009, 12:14:40 PM

Previous topic - Next topic

dru1487

I am trying to change the text "My Interest" to "My Setup." I change the text in the ultimateprofile.english.php file and save it. But it won't save. It just's keep changing back to the original text "My Interests."

Any ideas?

SolidSnake2003

#341
I would like to convert the original Ultimate Profile to look like this:


Here is the code to the template:

<?php
// Version: 0.8.5; UltimateProfile
// This file is a part of Ultimate Profile mod
// Author: Jovan Turanjanin

function template_summary2()
{
global $context$settings$options$scripturl$modSettings$txt$db_prefix,$ID_MEMBER;

// Output user's customization code.
if ($modSettings['profile_allow_customize'] == 1)
echo '
<!-- start of user\'s customization code -->
'
,
un_htmlspecialchars (@$context['member']['options']['css'])
'
<!-- end of user\'s customization code -->

'
;

// Do the containing table and table header.
echo '
<table border="0" cellpadding="4" cellspacing="1" align="center" id="profile_info" width="850px">
<tbody>'
;
// Do the left hand column - where all the important user info is displayed.
echo '
<tr>
<td valign="top">
<table cellpadding="0" cellspacing="0" border="0" bgcolor="#3568b5" width="850px">
<tbody>
<tr>
<td>
<table cellpadding="0" cellspacing="0" border="0" bgcolor="#3568b5" width="850px">
<tbody>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="850px" id="summary">
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="2" width="850px">
<tr>
<td width="425" align="left">
<table border="0" cellspacing="0" cellpadding="2" width="425">
<tr>
<td width="30%" align="center" valign="middle">
<div class="avatar">'
$context['member']['avatar']['image'], '</div></td>
<td valign="top"><span class="largetext">'
$context['member']['name'], '</span> '$settings['use_image_buttons'] ? '<img src="' $context['member']['online']['image_href'] . '" title="' $context['member']['online']['text'] . '" alt="' $context['member']['online']['text'] . '" align="middle" />' $context['member']['online']['text'], $settings['use_image_buttons'] ? '' '''<br />';
if (!empty($modSettings['titlesEnable']) && $context['member']['title'] != '')
{
echo ' <span class="smalltext"><b><i>'$context['member']['title'], '</i></b></span><br />';

}
echo '<b><i>', (!empty($context['member']['group']) ? $context['member']['group'] : $context['member']['post_group']), '</i></b></td></tr></table></td>
<td align="right" valign="top" width="425">
<table border="0" cellspacing="0" cellpadding="2" width="425">
<tr>
<td><b>'
;
// Is karma display enabled?
if ($modSettings['karmaMode'] != '0'){
echo '';

foreach($context['member']['karma']['bars'] as $karma_bar)
echo '<img src="'$settings['images_url'], '/karma'$karma_bar['type'], '.gif" title="'$context['member']['name'], ' '$karma_bar['desc'], '" alt="'$context['member']['name'], ' '$karma_bar['desc'], '" />';
}
echo ' </b></td></tr>
<tr>
<td>'
$context['member']['group_stars'], '</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table></td></tr></tbody></table></td></tr>
<tr>
<td valign="top">
<table cellpadding="0" cellspacing="0" border="0" bgcolor="#3568b5" width="850px">
<tbody>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" class="bordercolor" width="460px" id="info1">
<tr>
<td class="windowbg">
<table border="0" cellspacing="0" cellpadding="0" width="460px">
<tr>
<td class="titlebg" height="26" align="center"><b>Basic Info</b></td></tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0" width="460px">
<tr>
<td><b>'
$txt[231], ': </b></td>
<td>'
$context['member']['gender']['image'] ,' '$context['member']['gender']['name'], '</td>
</tr>
<tr>
<td><b>'
$txt[420], ':</b></td>
<td>'
$context['member']['age'] . ($context['member']['today_is_birthday'] ? ' &nbsp; <img src="' $settings['images_url'] . '/bdaycake.gif" width="40" alt="" />' ''), '</td>
</tr>
<tr>
<td><b>'
$txt[227], ':</b></td>
<td>'
$context['member']['location'], '</td>
</tr>
<tr>
<td><b>'
$txt[233], ': </b></td>
<td>'
$context['member']['registered'], '</td>
</tr>
<tr>
<td><b>'
$txt['lastLoggedIn'], ': </b></td>
<td>'
$context['member']['last_login'], '</td>
</tr>
</table>
</td>
</tr>
</table></td></tr></table>

<br />
'
;

// Messenger type information.
echo ' <table border="0" cellpadding="4" cellspacing="1" class="bordercolor" width="460px" id="contact">
<tr>
<td class="titlebg" height="26" align="center">
'
$txt['profile_contact'] ,'
</td>
</tr>
<tr>
<td class="windowbg">
<table border="0" cellspacing="0" cellpadding="2" width="460px">'
;

// Can they add this member as a buddy?
if (!empty($context['can_have_buddy']) && !$context['user']['is_owner'] && !$context['member']['is_buddy'] )
echo '
<tr>
<td colspan="2"><img src="'
$settings['images_url'] ,'/icons/online.gif" alt="" /> <a href="'$scripturl'?action=buddies;sa=add;u='$context['member']['id'], ';sesc='$context['session_id'], '" onclick="javascript:return confirm(\''$txt['buddy_explanation']  ,'\')">['$txt['buddy_add'], ']</a></td>
</tr>'
;

if (!$context['user']['is_owner'] && $context['can_send_pm'])
echo '
<tr>
<td colspan="2"><img src="'
$settings['images_url'] ,'/icons/pm_read.gif" alt="" /> <a href="'$scripturl'?action=pm;sa=send;u='$context['member']['id'], '">'$txt[688], '.</a></td>
</td>'
;

if ((!empty($context['can_have_buddy']) && !$context['user']['is_owner']) || (!$context['user']['is_owner'] && $context['can_send_pm']))
echo '
<tr>
<td colspan="2">&nbsp;</td>
</tr>'
;

if ($context['member']['icq']['link_text'] != '')
echo ' <tr>
<td><img src="'
$settings['images_url'] ,'/icq.gif" alt="'$txt[513], '" /></td>
<td valign="middle">'
$context['member']['icq']['link_text'], '</td>
</tr>'
;

if ($context['member']['aim']['link_text'] != '')
echo ' <tr>
<td><img src="'
$settings['images_url'] ,'/aim.gif" alt="'$txt[603], '" /></td>
<td valign="middle">'
$context['member']['aim']['link_text'], '</td>
</tr>'
;

if ($context['member']['msn']['link_text'] != '')
echo '
<tr>
<td><img src="'
$settings['images_url'] ,'/msntalk.gif" alt="'$txt['MSN'], '" /></td>
<td valign="middle">'
$context['member']['msn']['link_text'], '</td>
</tr>'
;
if ($context['member']['yim']['link_text'] != '')
echo '
<tr>
<td><img src="'
$settings['images_url'] ,'/yim.gif" alt="'$txt[604], '" /></td>
<td valign="middle">'
$context['member']['yim']['link_text'], '</td>
</tr>'
;

echo '
<tr>
<td><img src="'
$settings['images_url'] ,'/email_sm.gif" alt="'$txt[69], '" /></td>
<td valign="middle">'
;

// Only show the email address if it's not hidden.
if ($context['member']['email_public'])
echo '
<a href="mailto:'
$context['member']['email'], '">'$context['member']['email'], '</a>';
// ... Or if the one looking at the profile is an admin they can see it anyway.
elseif (!$context['member']['hide_email'])
echo '
<i><a href="mailto:'
$context['member']['email'], '">'$context['member']['email'], '</a></i>';
else
echo '
<i>'
$txt[722], '</i>';

// Some more information.
echo '
</td>
</tr>'
;
if ($context['member']['website']['url'] !== '')
echo '
<tr>
<td><img src="'
$settings['images_url'] ,'/www.gif" alt="'$txt[96], '" /></td>
<td><a href="'
$context['member']['website']['url'], '" target="_blank">'$context['member']['website']['title'], '</a></td>
</tr>'
;

echo '
</table>
</td>
</tr>
</table>

<br />
'
;

echo '
<table border="0" cellpadding="4" cellspacing="1" width="460px" id="info2">
<tr>
<td class="windowbg">
<table border="0" cellspacing="0" cellpadding="2" width="460" class="bordercolor">
<tr>
<td colspan="2" height="25">
<table width="460px" cellpadding="0" cellspacing="0" border="0" style="table-layout: fixed;">
<tr>
<td style="padding-bottom: 0.5ex;"><b>'
$txt[85], ':</b></td>
</tr>
<tr>
<td colspan="2" width="100%" class="smalltext"><div class="signature">'
$context['member']['signature'], '</div></td>
</tr>
</table>
</td>
</tr></table></td></tr>
<tr>
<td height="8"></td></tr>
<tr>
<td valign="top">
<table border="0" cellspacing="0" cellpadding="2" width="460">
<tr>'
;

// Is this member requiring activation and/or banned?
if (!empty($context['activate_message']) || !empty($context['member']['bans']))
{
echo '
<tr>
<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
</tr>'
;

// If the person looking at the summary has permission, and the account isn't activated, give the viewer the ability to do it themselves.
if (!empty($context['activate_message']))
echo '
<tr>
<td colspan="2">
<span style="color: red;">'
$context['activate_message'], '</span>&nbsp;(<a href="' $scripturl '?action=profile2;sa=activateAccount;userID=' $context['member']['id'] . ';sesc=' $context['session_id'] . '" ', ($context['activate_type'] == 'onclick="return confirm(\'' $txt['profileConfirm'] . '\');"' ''), '>'$context['activate_link_text'], '</a>)
</td>
</tr>'
;

// If the current member is banned, show a message and possibly a link to the ban.
if (!empty($context['member']['bans']))
{
echo '
<tr>
<td colspan="2">
<span style="color: red;">'
$txt['user_is_banned'], '</span>&nbsp;[<a href="#" onclick="document.getElementById(\'ban_info\').style.display = document.getElementById(\'ban_info\').style.display == \'none\' ? \'\' : \'none\';return false;">' $txt['view_ban'] . '</a>]
</td>
</tr>
<tr id="ban_info" style="display: none;">
<td colspan="2">
<b>'
$txt['user_banned_by_following'], ':</b>';

foreach ($context['member']['bans'] as $ban)
echo '
<br /><span class="smalltext">'
$ban['explanation'], '</span>';

echo '
</td>
</tr>'
;
}
}

// If karma enabled show the members karma.
if ($modSettings['karmaMode'] == '1')
echo '
<tr>
<td>
<b>'
$modSettings['karmaLabel'], ' </b>
</td><td>
'
, ($context['member']['karma']['good'] - $context['member']['karma']['bad']), '
</td>
</tr>'
;
elseif ($modSettings['karmaMode'] == '2')
echo '
<tr>
<td>
<b>'
$modSettings['karmaLabel'], ' </b>
</td><td>
+'
$context['member']['karma']['good'], '/-'$context['member']['karma']['bad'], '
</td>
</tr>'
;

// If the person looking is allowed, they can check the members IP address and hostname.
if ($context['can_see_ip'])
{
echo '
<tr>
<td width="40%">
<b>'
$txt[512], ': </b>
</td><td>
<a href="'
$scripturl'?action=trackip;searchip='$context['member']['ip'], '" target="_blank">'$context['member']['ip'], '</a>
</td>
</tr>
<tr>
<td width="40%">
<b>'
$txt['hostname'], ': </b>
</td><td width="55%">
<div title="'
$context['member']['hostname'], '" style="width: 100%; overflow: hidden; font-style: italic;">'$context['member']['hostname'], '</div>
</td>
</tr>'
;
}

if (!empty($modSettings['userLanguage']))
echo '
<tr>
<td><b>'
$txt['smf225'], ':</b></td>
<td>'
$context['member']['language'], '</td>
</tr>'
;
echo '
<tr>
<td><b>'
$txt['local_time'], ':</b></td>
<td>'
$context['member']['local_time'], '</td>
</tr>
<tr>
<td colspan="2">
<br />
<a href="'
$scripturl ,'?action=profile;u='$context['member']['id'], ';sa=report">'$txt['profile_report_this'] ,'</a><br />
<br />
<a href="'
$scripturl'?action=profile;u='$context['member']['id'], ';sa=showPosts">'$txt[460], ' '$txt[461], '.</a><br />
<a href="'
$scripturl'?action=profile;u='$context['member']['id'], ';sa=statPanel">'$txt['statPanel_show'], '.</a><br />
</td>
</tr>'
;

echo '
</table>
</td>
</tr>
</table>'
;

echo '
</td>'
;


// Now print the second column.
echo '
<td valign="top" width="390" id="profile_right">'
;

if (isset ($modSettings['enable_buddylist']) && $modSettings['enable_buddylist'] == '1') {
echo '
<table border="0" cellpadding="4" cellspacing="1" class="bordercolor" width="100%" id="buddies">
<tr>
<td class="titlebg" height="26" align="center">
<a href="'
$scripturl ,'?action=profile;u='$context['member']['id'], ';sa=buddies">'$txt['profile_buddies'] ,'</a>
</td>
</tr>
<tr>
<td class="windowbg">
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr>
<td colspan="2">
<table width="100%">'
;
if (isset ($context['member']['buddies_data'])) {
$i 1;
foreach ($context['member']['buddies_data'] as $buddy_id => $data) {
if ($i == 1)
echo ' <tr>';
echo '
<td align="center">
'
$data['avatar_image'],'<br />
<a href="'
$scripturl '?action=profile;u='$data['ID_MEMBER'] , '">' $data['realName'] , '</a><br />
<i>'
$settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/buddy_' . ($data['is_online'] ? 'useron' 'useroff') . '.gif' '" alt="' $txt[$data['is_online'] ? 'online2' 'online3'] . '" align="middle" />' $txt[$data['is_online'] ? 'online2' 'online3'], $settings['use_image_buttons'] ? '<span class="smalltext"> ' $txt[$data['is_online'] ? 'online2' 'online3'] . '</span>' '''</i>
</td>'
;
if ($i == 3)
echo '</tr>';

$i++;
if ($i == 4$i 1;
}
} else
echo ' <tr><td>'$txt['profile_buddies_no'] ,'</td></tr>';

echo '
</table>
</td>
</tr>'
;

echo '
</table>
</td>
</tr>
</table>'
;
}

if ($modSettings['profile_enable_pictures'] == && $context['can_view_pics']) {
echo '
<table border="0" cellpadding="4" cellspacing="1" class="bordercolor" width="100%" id="pictures">
<tr>
<td class="titlebg" height="26" align="center">
<a href="'
$scripturl ,'?action=profile;u='$context['member']['id'] ,';sa=pictures">'$txt['profile_pictures'] ,'</a>
</td>
</tr>
<tr>
<td class="windowbg">
<table>'
;

if (!empty($context['pictures'])) {
$i 1;
foreach ($context['pictures'] as $picture) {
if ($i == 1)
echo '
<tr>'
;

echo '
<td align="center" valign="top" style="clear: both;">
<a href="'
$picture['url'] ,'"><img src="'$picture['thumb'] ,'" alt="" title="'$picture['title'], '" border="0" /></a>
</td>'
;

if ($i == 3)
echo '
</tr>'
;

$i++;
if ($i == 4$i 1;
}
} else 
echo '
<tr>
<td>'
$txt['profile_pictures_no'] ,'</td>
</tr>'
;

echo '
</table>
</td>
</tr>
</table>

<br />
'
;
}

/*
// This Section is optional. You can paste code for displaying recent blog posts from felblog or some other blog mod for SMF
// Remeber to uncomment this section first!

echo '
<table border="0" cellpadding="4" cellspacing="1" class="bordercolor" width="100%" id="blog">
<tr>
<td class="titlebg" height="26" align="center">Blog</td>
</tr>
<tr>
<td class="windowbg">';

// PASTE YOUR BLOG CODE HERE

echo '
</td>
</tr>
</table>
<br />';
*/

echo '
<table border="0" cellpadding="4" cellspacing="1" class="bordercolor" width="100%" id="aboutme">
<tr>
<td class="titlebg" height="26" align="center">
'
$txt['profile_about_me'] ,'
</td>
</tr>
<tr>
<td class="windowbg">'
;

if (!empty($context['member']['options']['about']))
echo 
'
parse_bbc ($context['member']['options']['about']);
else
echo 
'
$txt['profile_about_no'];
echo '
</td>
</tr>
</table>'
;

if (!empty($context['member']['options']['interests']))
echo '
<br />

<table border="0" cellpadding="4" cellspacing="1" class="bordercolor" width="100%" id="interests">
<tr>
<td class="titlebg" height="26" align="center">
'
$txt['profile_interests'] ,'
</td>
</tr>
<tr>
<td class="windowbg">
'
parse_bbc ($context['member']['options']['interests']) ,'
</td>
</tr>
</table>'
;

if (($modSettings['profile_allow_mediabox'] == 1) && (!empty($context['member']['options']['media'])))
echo '
<br />

<table border="0" cellpadding="4" cellspacing="1" class="bordercolor" width="100%" id="media">
<tr>
<td class="titlebg" height="26" align="center">
'
$txt['profile_media'] ,'
</td>
</tr>
<tr>
<td class="windowbg">
'
un_htmlspecialchars ($context['member']['options']['media']) ,'
</td>
</tr>
</table>'
;

/*
// This section is optional. You can paste code and display fields from Custom Profile fields mod.

echo '
<br />

<table border="0" cellpadding="4" cellspacing="1" class="bordercolor" width="100%" id="more_fields">
<tr>
<td class="windowbg">';


// PASTE YOUR CODE HERE


echo '
</td>
</tr>
</table>';
*/

echo '
</td>
</tr>
</table></td></tr>
<tr>
<td valign="top">'
;

if (!empty(
$context['profile_areas']))
{
echo '
<table border="0" cellpadding="4" cellspacing="1" class="bordercolor" width="100%" id="profile_areas">
<tr>
<td class="windowbg2">
<table>
<tr>'
;

// Loop through every area, displaying its name as a header.
foreach ($context['profile_areas'] as $section)
{
echo ' <td valign="top">
<table border="0" cellpadding="4" cellspacing="1">
<tr>
<td class="catbg">'
$section['title'], '</td>
</tr>
<tr>
<td class="windowbg2 smalltext">'
;

// For every section of the area display it, and bold it if it's the current area.
foreach ($section['areas'] as $i => $area)
if ($i == $context['menu_item_selected'])
echo '
<b>'
$area'</b><br />';
else
echo '
'
$area'<br />';
echo '
<br />
</td>
</tr>
</table>
</td>'
;
}

echo ' </tr>
</table>
</td>
</tr>
</table>'
;

}

echo 
'

<div class="div1"></div>

<br />'
;

if (@
$context['member']['options']['comments_disable'] != 1) {
echo '

<script type="text/javascript">
function comment() {
document.getElementById("comment").style.display = "block";
}
</script>

<table border="0" cellpadding="4" cellspacing="1" align="center" class="bordercolor" width="65%" id="post_comments">
<tr>
<td class="titlebg"><a href="javascript:void(0);" onclick="comment()">'
$txt['profile_comment_add'] ,'</a></td>
</tr>
<tr id="comment" class="windowbg" style="display: none;">
<td>
<form action="'
$scripturl ,'?action=profile;u='$context['member']['id'] ,';sa=comment;add" method="post">
'
$txt['profile_comment'] ,':<br />
<textarea  cols="50" rows="4" name="comment"></textarea><br />
<br />
<input type="submit" value="'
$txt[10] ,'" />
<input type="hidden" name="sc" value="'
$context['session_id'], '" />
</form>
</td>
</tr>
</table>

<div class="div2"></div>

<br />

<table border="0" cellpadding="4" cellspacing="1" align="center" class="bordercolor" width="100%" id="comments">
<tr>
<td class="titlebg" colspan="2" align="center">'
$txt['profile_comments'] ,'</td>
</tr>'
;

// Only show comments if they have made some!
if (!empty($context['comments'])) {
foreach ($context['comments'] as $comment) {
echo '

<tr>
<td class="windowbg" align="center" valign="top">
<b><a href="'
$scripturl ,'?action=profile;u='$comment['author']['ID_MEMBER'] ,'">'$comment['author']['realName'] ,'</a></b>
<div class="smalltext">
'
$comment['author']['avatar'] ,'<br /><br />
<i>'
$settings['use_image_buttons'] ? '<img src="' $comment['author']['online']['image_href'] . '" alt="' $comment['author']['online']['text'] . '" align="middle" />' $comment['author']['online']['text'], $settings['use_image_buttons'] ? '<span class="smalltext"> ' $comment['author']['online']['text'] . '</span>' '''</i>
</div>
</td>
<td class="windowbg2" valign="top">
<table width="100%">
<tr>
<td><span class="smalltext">'
$comment['time'] ,'</span><hr /></td>
</tr>
<tr>
<td>'
$comment['body'] ,'</td>
</tr>
<tr>
<td align="right" valign="bottom" class="smalltext">'
;
if ($context['user']['is_owner'])
echo '
<a href="'
$comment['reply'], '">'$txt['profile_comment_reply'] ,'</a>&nbsp;&nbsp;&nbsp; ';
if ($context['can_delete'])
echo '
<a href="'
$comment['delete'], '">'$txt['profile_comment_delete'] ,'</a>';

echo '
</td>
</tr>
</table>
</td>
</tr>'
;

}

}
else
echo '
<tr class="windowbg2">
<td colspan="2">'
$txt['profile_comment_no'] ,'</td>
</tr>'
;

echo 
'
</table>'
;

// Show more page numbers.
echo '
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor" align="center">
<tr>
<td colspan="3" class="catbg3">
'
$txt[139], ': '$context['page_index'], '
</td>
</tr>
</table></td></tr></tbody></table></td></tr></tbody></table>'
;
}

echo 
'
<div class="div3"></div>'
;

}

?>

aED

SMF is SMF you dont need to make it look like something its not, well that's my opinion but maybe someone will help you out but I doubt it...

Mark S

#343
Quote from: aED on May 23, 2009, 10:08:49 AM
SMF is SMF you dont need to make it look like something its not, well that's my opinion but maybe someone will help you out but I doubt it...

SMF is not just SMF.  It's customizable, and that's what makes it so versatile and valuable.  Otherwise, everyone's forum would look and work the same.

In fact, a high percentage of the questions asked on this forum relate to creating customizations so that each web-site/web group is just that; and individual site or community with it's own theme and flavors.

Our requests are totally valid and and warrant no less consideration than any other layout questions and they can be resolved.  Obvioulsy, we try to accomplish it on our own first,  but, like so many people on this forum, our knowledge of coding is limited.  That's why we ask these questions, isn't it?

And that's my opinion.

With all due respect, if you haven't anything positive or helpful to contribute, please refrain from posting "dark cloud" replies to this topic.  It serves no purpose except to add clutter.

SolidSnake2003

Quote from: aED on May 23, 2009, 10:08:49 AM
SMF is SMF you don't need to make it look like something its not, well that's my opinion but maybe someone will help you out but I doubt it...

I'm sorry if I offended you with my question.  I like the look of bulletin for alot of features, but don't want to switch to it cause I find SMF easy to customize.

Quote from: ThePharaoh on May 23, 2009, 02:37:05 PM
Quote from: aED on May 23, 2009, 10:08:49 AM
SMF is SMF you don't need to make it look like something its not, well that's my opinion but maybe someone will help you out but I doubt it...

SMF is not just SMF.  It's customizable, and that's what makes it so versatile and valuable.  Otherwise, everyone forum would look and work the same.

In fact, a high percentage of the questions asked on this forum relate to creating customizations so that each website/web group is just that; and individual site or community with it's own theme and flavors.

Our requests are totally valid and and warrant no less consideration than any other layout questions and they can be resolved.  Obviously, we try to accomplish it on our own first,  but, like so many people on this forum, our knowledge of coding is limited.  That's why we ask these questions, isn't it?

And that's my opinion.

With all due respect, if you haven't anything positive or helpful to contribute, please refrain from posting "dark cloud" replies to this topic.  It serves no purpose except to add clutter.


I totally agree that SMF is customizable.

I have been trying to do it myself, but I can't get it to look right

Ive attached a cap of the right side of the layout that's stretched, Ive tried adding extra table end, but it doesn't work at all.  I'm also listing the new/updated code that I worked on today.

<?php
// Version: 0.8.5; UltimateProfile
// This file is a part of Ultimate Profile mod
// Author: Jovan Turanjanin

function template_summary2()
{
global $context$settings$options$scripturl$modSettings$txt$db_prefix,$ID_MEMBER;

// Do the containing table and table header.
echo '
<table border="0" cellpadding="0" cellspacing="0" align="center" id="profile_info" width="850px">
<tbody>
<tr>
<td valign="top">'
;
// Do the left hand column - where all the important user info is displayed.
echo '
<tr>
<td valign="top">
<table cellpadding="0" cellspacing="2" border="0" bgcolor="#3568b5" width="850px" id="summary">
<tbody>
<tr>
<td>
<table cellpadding="0" cellspacing="0" border="0" bgcolor="#3568b5" width="850px">
<tbody>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="850px">
<tbody>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0" width="850px">
<tr>
<td width="425" align="left">
<table border="0" cellspacing="0" cellpadding="0" width="425px">
<tr>
<td width="120" align="center" valign="middle">
<div class="avatar">'
$context['member']['avatar']['image'], '</div></td>
<td valign="top" width="305"><span class="largetext">'
$context['member']['name'], '</span> '$settings['use_image_buttons'] ? '<img src="' $context['member']['online']['image_href'] . '" title="' $context['member']['online']['text'] . '" alt="' $context['member']['online']['text'] . '" align="middle" />' $context['member']['online']['text'], $settings['use_image_buttons'] ? '' '''<br />';
if (!empty($modSettings['titlesEnable']) && $context['member']['title'] != '')
{
echo ' <span class="smalltext"><b><i>'$context['member']['title'], '</i></b></span><br />';

}
echo '<b><i>', (!empty($context['member']['group']) ? $context['member']['group'] : $context['member']['post_group']), '</i></b></td></tr></table></td>
<td align="right" valign="top" width="425">
<table border="0" cellspacing="0" cellpadding="0" width="425" align="right">
<tr>
<td align="right"><b>'
;
// Is karma display enabled?
if ($modSettings['karmaMode'] != '0'){
echo '';

foreach($context['member']['karma']['bars'] as $karma_bar)
echo '<img src="'$settings['images_url'], '/karma'$karma_bar['type'], '.gif" title="'$context['member']['name'], ' '$karma_bar['desc'], '" alt="'$context['member']['name'], ' '$karma_bar['desc'], '" />';
}
echo ' </b></td></tr>
<tr>
<td align="right">'
$context['member']['group_stars'], '</td>
</tr>
</table>
</td>
</tr>
</table></td></tr></tbody></table></td></tr>
<tr>
<td valign="top">
<table cellpadding="0" cellspacing="2" border="0" bgcolor="#3568b5" width="850px">
<tbody>
<tr>
<td width="600">
<table cellpadding="0" cellspacing="0" border="0" bgcolor="#3568b5" width="600px">
<tbody>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" class="windowbg" width="600px" id="info1">
<tr>
<td class="windowbg">
<table border="0" cellspacing="0" cellpadding="0" width="600px">
<tr>
<td class="titlebg" height="26" align="center"><b>Basic Info</b></td></tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0" width="600px">
<tr>
<td><b>'
$txt[231], ': </b></td>
<td>'
$context['member']['gender']['image'] ,' '$context['member']['gender']['name'], '</td>
</tr>
<tr>
<td><b>'
$txt[420], ':</b></td>
<td>'
$context['member']['age'] . ($context['member']['today_is_birthday'] ? ' &nbsp; <img src="' $settings['images_url'] . '/bdaycake.gif" width="40" alt="" />' ''), '</td>
</tr>
<tr>
<td><b>'
$txt[227], ':</b></td>
<td>'
$context['member']['location'], '</td>
</tr>
<tr>
<td><b>'
$txt[233], ': </b></td>
<td>'
$context['member']['registered'], '</td>
</tr>
<tr>
<td><b>'
$txt['lastLoggedIn'], ': </b></td>
<td>'
$context['member']['last_login'], '</td>
</tr>
</table>
</td>
</tr>
</table></td></tr></table>

<br />
'
;

// Messenger type information.
echo ' <table border="0" cellpadding="0" cellspacing="0" class="windowbg2" width="600px" id="contact">
<tr>
<td class="titlebg" height="26" align="center">
'
$txt['profile_contact'] ,'
</td>
</tr>
<tr>
<td class="windowbg">
<table border="0" cellspacing="0" cellpadding="0" width="600px">'
;

// Can they add this member as a buddy?
if (!empty($context['can_have_buddy']) && !$context['user']['is_owner'] && !$context['member']['is_buddy'] )
echo '
<tr>
<td colspan="0"><img src="'
$settings['images_url'] ,'/icons/online.gif" alt="" /> <a href="'$scripturl'?action=buddies;sa=add;u='$context['member']['id'], ';sesc='$context['session_id'], '" onclick="javascript:return confirm(\''$txt['buddy_explanation']  ,'\')">['$txt['buddy_add'], ']</a></td>
</tr>'
;

if (!$context['user']['is_owner'] && $context['can_send_pm'])
echo '
<tr>
<td colspan="0"><img src="'
$settings['images_url'] ,'/icons/pm_read.gif" alt="" /> <a href="'$scripturl'?action=pm;sa=send;u='$context['member']['id'], '">'$txt[688], '.</a></td>
</td>'
;

if ((!empty($context['can_have_buddy']) && !$context['user']['is_owner']) || (!$context['user']['is_owner'] && $context['can_send_pm']))
echo '
<tr>
<td colspan="0">&nbsp;</td>
</tr>'
;

if ($context['member']['icq']['link_text'] != '')
echo ' <tr>
<td><img src="'
$settings['images_url'] ,'/icq.gif" alt="'$txt[513], '" /></td>
<td valign="middle">'
$context['member']['icq']['link_text'], '</td>
</tr>'
;

if ($context['member']['aim']['link_text'] != '')
echo ' <tr>
<td><img src="'
$settings['images_url'] ,'/aim.gif" alt="'$txt[603], '" /></td>
<td valign="middle">'
$context['member']['aim']['link_text'], '</td>
</tr>'
;

if ($context['member']['msn']['link_text'] != '')
echo '
<tr>
<td><img src="'
$settings['images_url'] ,'/msntalk.gif" alt="'$txt['MSN'], '" /></td>
<td valign="middle">'
$context['member']['msn']['link_text'], '</td>
</tr>'
;
if ($context['member']['yim']['link_text'] != '')
echo '
<tr>
<td><img src="'
$settings['images_url'] ,'/yim.gif" alt="'$txt[604], '" /></td>
<td valign="middle">'
$context['member']['yim']['link_text'], '</td>
</tr>'
;

echo '
<tr>
<td><img src="'
$settings['images_url'] ,'/email_sm.gif" alt="'$txt[69], '" /></td>
<td valign="middle">'
;

// Only show the email address if it's not hidden.
if ($context['member']['email_public'])
echo '
<a href="mailto:'
$context['member']['email'], '">'$context['member']['email'], '</a>';
// ... Or if the one looking at the profile is an admin they can see it anyway.
elseif (!$context['member']['hide_email'])
echo '
<i><a href="mailto:'
$context['member']['email'], '">'$context['member']['email'], '</a></i>';
else
echo '
<i>'
$txt[722], '</i>';

// Some more information.
echo '
</td>
</tr>'
;
if ($context['member']['website']['url'] !== '')
echo '
<tr>
<td><img src="'
$settings['images_url'] ,'/www.gif" alt="'$txt[96], '" /></td>
<td><a href="'
$context['member']['website']['url'], '" target="_blank">'$context['member']['website']['title'], '</a></td>
</tr>'
;

echo '
</table>
</td>
</tr>
</table>

<br />
'
;

echo '
<table border="0" cellspacing="0" cellpadding="2" width="600" class="windowbg">
<tr>
<td class="titlebg" height="26" align="center"><b>User\'s Signature</b></td>
</tr>
<tr>
<td colspan="0" class="smalltext"><div class="signature">'
$context['member']['signature'], '</div></td>
</tr></table><br />
<table border="0" cellspacing="0" cellpadding="0" width="600px" class="windowbg2" id="info2">
<tr>
<td class="titlebg" height="26" align="center"><b>User\'s Stats</b></td></tr>
<tr>
<td valign="top">
<table border="0" cellspacing="0" cellpadding="0" width="600px">
<tr>
<td>'
;

// Is this member requiring activation and/or banned?
if (!empty($context['activate_message']) || !empty($context['member']['bans']))
{
echo '
<tr>
<td><hr size="1" width="600" class="hrcolor" /></td>
</tr>'
;

// If the person looking at the summary has permission, and the account isn't activated, give the viewer the ability to do it themselves.
if (!empty($context['activate_message']))
echo '
<tr>
<td>
<span style="color: red;">'
$context['activate_message'], '</span>&nbsp;(<a href="' $scripturl '?action=profile2;sa=activateAccount;userID=' $context['member']['id'] . ';sesc=' $context['session_id'] . '" ', ($context['activate_type'] == 'onclick="return confirm(\'' $txt['profileConfirm'] . '\');"' ''), '>'$context['activate_link_text'], '</a>)
</td>
</tr>'
;

// If the current member is banned, show a message and possibly a link to the ban.
if (!empty($context['member']['bans']))
{
echo '
<tr>
<td>
<span style="color: red;">'
$txt['user_is_banned'], '</span>&nbsp;[<a href="#" onclick="document.getElementById(\'ban_info\').style.display = document.getElementById(\'ban_info\').style.display == \'none\' ? \'\' : \'none\';return false;">' $txt['view_ban'] . '</a>]
</td>
</tr>
<tr id="ban_info" style="display: none;">
<td>
<b>'
$txt['user_banned_by_following'], ':</b>';

foreach ($context['member']['bans'] as $ban)
echo '
<br /><span class="smalltext">'
$ban['explanation'], '</span>';

echo '
</td>
</tr>'
;
}
}

// If karma enabled show the members karma.
if ($modSettings['karmaMode'] == '1')
echo '
<tr>
<td>
<b>'
$modSettings['karmaLabel'], ' </b>
</td><td>
'
, ($context['member']['karma']['good'] - $context['member']['karma']['bad']), '
</td>
</tr>'
;
elseif ($modSettings['karmaMode'] == '2')
echo '
<tr>
<td>
<b>'
$modSettings['karmaLabel'], ' </b>
</td><td>
+'
$context['member']['karma']['good'], '/-'$context['member']['karma']['bad'], '
</td>
</tr>'
;

// If the person looking is allowed, they can check the members IP address and hostname.
if ($context['can_see_ip'])
{
echo '
<tr>
<td>
<b>'
$txt[512], ': </b>
</td><td>
<a href="'
$scripturl'?action=trackip;searchip='$context['member']['ip'], '" target="_blank">'$context['member']['ip'], '</a>
</td>
</tr>
<tr>
<td>
<b>'
$txt['hostname'], ': </b>
</td><td width="55%">
<div title="'
$context['member']['hostname'], '" style="width: 100%; overflow: hidden; font-style: italic;">'$context['member']['hostname'], '</div>
</td>
</tr>'
;
}

if (!empty($modSettings['userLanguage']))
echo '
<tr>
<td><b>'
$txt['smf225'], ':</b></td>
<td>'
$context['member']['language'], '</td>
</tr>'
;
echo '
<tr>
<td><b>'
$txt['local_time'], ':</b></td>
<td>'
$context['member']['local_time'], '</td>
</tr>
<tr>
<td>
<br />
<a href="'
$scripturl ,'?action=profile;u='$context['member']['id'], ';sa=report">'$txt['profile_report_this'] ,'</a><br />
<br />
<a href="'
$scripturl'?action=profile;u='$context['member']['id'], ';sa=showPosts">'$txt[460], ' '$txt[461], '.</a><br />
<a href="'
$scripturl'?action=profile;u='$context['member']['id'], ';sa=statPanel">'$txt['statPanel_show'], '.</a><br />
</td>
</tr></table></td></tr></table>'
;

echo '
</td></tr></tbody></table></td>'
;


// Now print the second column.
echo '
<td valign="top" width="250" id="profile_right">
<table cellspacing="0" cellpadding="0" width="250px" bgcolor="#3568b5" border="0">
<tbody>
<tr>
<td valign="top" align="left">'
;

if (isset ($modSettings['enable_buddylist']) && $modSettings['enable_buddylist'] == '1') {
echo '
<table border="0" cellpadding="0" cellspacing="0" class="bordercolor" width="250px" id="buddies">
<tr>
<td class="titlebg" height="26" align="center">
<a href="'
$scripturl ,'?action=profile;u='$context['member']['id'], ';sa=buddies">'$txt['profile_buddies'] ,'</a>
</td>
</tr>
<tr>
<td class="windowbg">
<table border="0" cellspacing="0" cellpadding="0" width="250px">
<tr>
<td colspan="0">
<table width="250px">'
;
if (isset ($context['member']['buddies_data'])) {
$i 1;
foreach ($context['member']['buddies_data'] as $buddy_id => $data) {
if ($i == 1)
echo ' <tr>';
echo '
<td align="center">
'
$data['avatar_image'],'<br />
<a href="'
$scripturl '?action=profile;u='$data['ID_MEMBER'] , '">' $data['realName'] , '</a><br />
<i>'
$settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/buddy_' . ($data['is_online'] ? 'useron' 'useroff') . '.gif' '" alt="' $txt[$data['is_online'] ? 'online2' 'online3'] . '" align="middle" />' $txt[$data['is_online'] ? 'online2' 'online3'], $settings['use_image_buttons'] ? '<span class="smalltext"> ' $txt[$data['is_online'] ? 'online2' 'online3'] . '</span>' '''</i>
</td>'
;
if ($i == 3)
echo '</tr>';

$i++;
if ($i == 4$i 1;
}
} else
echo ' <tr><td>'$txt['profile_buddies_no'] ,'</td></tr>';

echo '
</table>
</td>
</tr>'
;

echo '
</table>
</td>
</tr>
</table>'
;
}

if ($modSettings['profile_enable_pictures'] == && $context['can_view_pics']) {
echo '
<table border="0" cellpadding="4" cellspacing="1" class="bordercolor" width="250px" id="pictures">
<tr>
<td class="titlebg" height="26" align="center">
<a href="'
$scripturl ,'?action=profile;u='$context['member']['id'] ,';sa=pictures">'$txt['profile_pictures'] ,'</a>
</td>
</tr>
<tr>
<td class="windowbg">
<table>'
;

if (!empty($context['pictures'])) {
$i 1;
foreach ($context['pictures'] as $picture) {
if ($i == 1)
echo '
<tr>'
;

echo '
<td align="center" valign="top" style="clear: both;">
<a href="'
$picture['url'] ,'"><img src="'$picture['thumb'] ,'" alt="" title="'$picture['title'], '" border="0" /></a>
</td>'
;

if ($i == 3)
echo '
</tr>'
;

$i++;
if ($i == 4$i 1;
}
} else 
echo '
<tr>
<td>'
$txt['profile_pictures_no'] ,'</td>
</tr>'
;

echo '
</table>
</td>
</tr>
</table>

<br />
'
;
}

/*
// This Section is optional. You can paste code for displaying recent blog posts from felblog or some other blog mod for SMF
// Remeber to uncomment this section first!

echo '
<table border="0" cellpadding="0" cellspacing="0" class="bordercolor" width="250px" id="blog">
<tr>
<td class="titlebg" height="26" align="center">Blog</td>
</tr>
<tr>
<td class="windowbg">';

// PASTE YOUR BLOG CODE HERE

echo '
</td>
</tr>
</table>
<br />';
*/

echo '
<table border="0" cellpadding="0" cellspacing="0" class="bordercolor" width="250px" id="aboutme">
<tr>
<td class="titlebg" height="26" align="center">
'
$txt['profile_about_me'] ,'
</td>
</tr>
<tr>
<td class="windowbg">'
;

if (!empty($context['member']['options']['about']))
echo 
'
parse_bbc ($context['member']['options']['about']);
else
echo 
'
$txt['profile_about_no'];
echo '
</td>
</tr>
</table>'
;

if (!empty($context['member']['options']['interests']))
echo '
<br />

<table border="0" cellpadding="0" cellspacing="0" class="bordercolor" width="250px" id="interests">
<tr>
<td class="titlebg" height="26" align="center">
'
$txt['profile_interests'] ,'
</td>
</tr>
<tr>
<td class="windowbg">
'
parse_bbc ($context['member']['options']['interests']) ,'
</td>
</tr>
</table>'
;

if (($modSettings['profile_allow_mediabox'] == 1) && (!empty($context['member']['options']['media'])))
echo '
<br />

<table border="0" cellpadding="0" cellspacing="0" class="bordercolor" width="250px" id="media">
<tr>
<td class="titlebg" height="26" align="center">
'
$txt['profile_media'] ,'
</td>
</tr>
<tr>
<td class="windowbg">
'
un_htmlspecialchars ($context['member']['options']['media']) ,'
</td>
</tr>
</table>'
;

/*
// This section is optional. You can paste code and display fields from Custom Profile fields mod.

echo '
<br />

<table border="0" cellpadding="0" cellspacing="0" class="bordercolor" width="250px" id="more_fields">
<tr>
<td class="windowbg">';


// PASTE YOUR CODE HERE


echo '
</td>
</tr>
</table>';
*/

echo '
</td>
</tr>
</table>'
;

if (!empty(
$context['profile_areas']))
{
echo '
<table border="0" cellpadding="0" cellspacing="0" class="bordercolor" width="250px" id="profile_areas">
<tr>
<td>
<table width="250px">'
;

// Loop through every area, displaying its name as a header.
foreach ($context['profile_areas'] as $section)
{
echo '
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="250px">
<tr>
<td class="titlebg" height="26" valign="middle">'
$section['title'], '</td>
</tr>
<tr>
<td class="windowbg2">'
;

// For every section of the area display it, and bold it if it's the current area.
foreach ($section['areas'] as $i => $area)
if ($i == $context['menu_item_selected'])
echo '
<b>'
$area'</b><br />';
else
echo '
'
$area'<br />';
echo '
<br />
</td>
</tr>
</table>
</td>'
;
}

echo ' </tr>
</table>
</td>
</tr>
</table></td></tr></tbody></table></td></tr>
<tr>
<td>'
;

}


}

?>


SolidSnake2003

bringing this back to the front page, please forgive the double post

Mr_Lon

Ultimate Profile for SMF 2.0 RC1.
Is this ever coming out?

I have been patently waiting for quite some time now and starting to wonder if we'll ever see it.......
::)

PS - I love my SMF and have had a great time customising it and good feedback from my members about our forums.

romper

Can I get help with my modsettings.php...it shows error on install, when I manualy rewrite it it pasess, mod works, but I can't acces my Features and options command in admin panel. My modsettings.php isn't exactly as parse shows so please help.
THX!

excon

i have problems in picture profile.. when i upload a pic.. it doesn't show on profile..



perplexed

excon have you checked your error log?  Sometimes a pic might not be accepted because it's too big or the name might have characters that cause probs.  check your error log and see if anything was reported at the time

Asgards

hi. i have installed the Ultimate profile but it seems that the ultimate tab on features and options are not showing up

Özgür

Quote from: Asgards on May 31, 2009, 03:25:24 PM
hi. i have installed the Ultimate profile but it seems that the ultimate tab on features and options are not showing up
What are you using language?
So Long

Asgards


Özgür

Have you any error log like "undefined index" ? in admin error log.
So Long

Asgards

Quote from: Özgür´ on May 31, 2009, 04:00:31 PM
Have you any error log like "undefined index" ? in admin error log.

no there were no errors. the only problem is that the options for the ultimate profile are not showing up. but between the layouts and karma the is a space but no ultimate profile tab.


Asgards


perplexed

that is probably your problem.  english and english-utf are not the same.  Do you need english-utf?  ie do you have other languages used other than english?  If not you might want to try switching it to regular english

Asgards

still no good i cannot see the ultimate profile setting in features and options.

Özgür

=> Go to features and options
=> And go to error log
Any error?
So Long

Advertisement: