Ultimate Profile

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

Previous topic - Next topic

Yağız...

Let's begin! :)
Quote from: fairytears on January 12, 2010, 05:58:59 PM
Is there any way to display the user's awards in a box under the "My media" box? I use the Simple awards mod. Any help would be greatly appreciated  :)
Find in ./Sources/Profile.php:
// Prepare the buddy list.
Add before:
// Get all the users "awards"...
$request = db_query("
SELECT a.ID_AWARD, a.title, a.ID_MEMBER, a.memberName as backupName, m.realName, a.ID_AWARDED_MEMBER, a.givenDate, a.fileName
FROM ({$db_prefix}awards AS a, {$db_prefix}members as m)
WHERE a.ID_MEMBER = m.ID_MEMBER AND a.ID_AWARDED_MEMBER = ".$context['member']['id']."
ORDER BY RAND()
LIMIT 6", __FILE__, __LINE__);
$awards = array();
while ($row = mysql_fetch_assoc($request))
{
$awards[$row['ID_AWARD']] = $row;
}
mysql_free_result($request);

// Setup the context for each award.
$context['awards'] = $awards;


Find in ./Themes/default/UltimateProfile.template.php:
/*
// This section is optional. You can paste code and display fields from Custom Profile fields mod.

Add before:
echo '
<br />
<table border="0" cellpadding="4" cellspacing="1" class="bordercolor" width="100%" id="more_fields">
<tr>
<td class="windowbg">
<table style="width: 99%; margin-left: auto; margin-right: auto;">
<tr>';

if (!empty($context['awards'])) {
$i = 1;
global $boardurl;
foreach ($context['awards'] as $award) {
$i = $i + 1;
echo '
<td align="center" valign="top" style="clear: both;">
<a href="', $scripturl, '?action=profile;u=', $context['member']['id'], ';sa=awards"><img align="middle" src="', $boardurl, '/awards/', stripslashes($award['fileName']), '" alt="', stripslashes($award['title']), '" title="', stripslashes($award['title']), '"/></a>
</td>';

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

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

If you want to increase the limit, change LIMIT 6 to LIMIT x(x = how many items you want to display).

Quote from: neverhurry on January 13, 2010, 04:18:22 AM
Quote from: Yağız... on January 12, 2010, 04:43:19 PM
It's official, don't worry :) It's not an issue. UP doesn't convert old buddies to new ones. There is a migration tool for buddies, which is not compatible with SMF 2.0 RC2 yet. ;)

is it any way to make buddy list? I want to try UP very much!!!
There is some bugs in the script, so I can't release it yet.
Quote from: mohd7590 on January 13, 2010, 04:41:53 PM
The new mod still doesn't show customization in my site. Meaning, When I add CSS to the curve theme the background as not shown right.

Do you want a testing password?
Try this codes:
http://www.simplemachines.org/community/index.php?topic=298641.msg2448125#msg2448125

Quote from: gbsothere on January 13, 2010, 04:51:32 PM
Here's a rookie question, Yagiz (or anyone who wants to jump in), but I'm messing around today and it's an opportunity to learn.

For SMF 1.1.11, Default theme....   would I check out the Profile.template.php or one of Ultimate profile's included templates if I wanted to make the avatars that appear in the buddy section clickable to that person's profile?

Not urgent; I'm just playing around.   :)
Find in ./Themes/default/UltimateProfile.template.php:
', $data['avatar_image'],'
Replace with:
<a href="', $scripturl , '?action=profile;u=', $data['ID_MEMBER'] , '">', $data['avatar_image'],'</a>

If I didn't reply someones' question, please repost it! :)

gbsothere

Quote from: Yağız... on January 14, 2010, 01:46:29 PMFind in ./Themes/default/UltimateProfile.template.php:
', $data['avatar_image'],'
Replace with:
<a href="', $scripturl , '?action=profile;u=', $data['ID_MEMBER'] , '">', $data['avatar_image'],'</a>



Thanks, Yagiz, works beautifully.   :)
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

fairytears

Thank you so much Yagiz!!!!!

My users are going to love this!!!



DragonDF

Quote from: Paul Cull on January 13, 2010, 08:11:34 PM
Hi, does any one have the Brazilian language translation for the 2.0 mod yet?

Alguém tem a versão 2.0 traduzida para português brasileiro?

Paul


Good question, Paul.

Boa pergunta. No aguardo, também.

Confesso que qualquer português serve, porque podemos ajustar a diferença.

Deveria estar mais pró-ativo em realizar a tradução.. mas ando muito sem tempo ultimamente.

:(
"Tenho-vos dito isto, para que em mim tenhais paz; no mundo tereis aflições, mas tende bom ânimo, eu venci o mundo". João 16:33
--
"I have told you these things, so that in me you may have peace. In this world you will have trouble. But take heart! I have overcome the world". John 16:33

Yağız...

There is no differences in the langauge strings. So, if you had a translation for Brazilian language for SMF 1.x, you can use it for SMF 2.x too.

ʟink

In my settings, I have all avatars uploaded to a specific directory instead of uploading to the attachments folder. Unfortunately, this breaks image links on the profile page for people who have uploaded avatars.
http://whatninja.com/index.php?action=profile;u=1
On that page, all of the users that have no avatar appearing, with the exception of tmcgaha, have uploaded avatars. Is there a workaround to this? And thanks for producing the mod, I love it and so do several of my users. :)
Obedire est vivere, Vivere est obedire


bockonocode

Hi,

I have problem with this mod. i have installed it manually, and when i try to see somenone`s profile, i got this error:

''Table 'zezanje_smf1.smf_profile_comments' doesn't exist
File: /home/zezanje/public_html/forum/Sources/Profile.php
Line: 1354''


A friend told me that i dont have an ''smf_profile_comments'' table.

What should i do now? i really want to make this mod work for me...

thanks in advance, and sorry about my bad english :)

KensonPlays

How do I make it so you can see the sections slightly??

Owner of Mesozoic Haven

smldmr

Quote from: bockonocode on January 15, 2010, 11:23:40 AM
Hi,

What should i do now? i really want to make this mod work for me...

thanks in advance, and sorry about my bad english :)

You must execute the database.php. It is in the package file.

bockonocode

Quote from: smldmr on January 15, 2010, 05:51:29 PM
You must execute the database.php. It is in the package file.

I tried to. but then i got this error:

Notice: Undefined variable: smcFunc in /home/zezanje/public_html/forum/database.php on line 12

Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /home/zezanje/public_html/forum/database.php on line 12

Fatal error: Call to undefined function db_extend() in /home/zezanje/public_html/forum/database.php on line 13


:-\

kind

hi, i got a problem, i cant see the section for edit de customized profile, some help? i use this in smf 2.0rc2

Yağız...

Quote from: ʟink on January 14, 2010, 11:01:05 PM
In my settings, I have all avatars uploaded to a specific directory instead of uploading to the attachments folder. Unfortunately, this breaks image links on the profile page for people who have uploaded avatars.
http://whatninja.com/index.php?action=profile;u=1
On that page, all of the users that have no avatar appearing, with the exception of tmcgaha, have uploaded avatars. Is there a workaround to this? And thanks for producing the mod, I love it and so do several of my users. :)
That may be a bug. I'll try to fix it for the next release.

Quote from: Kcmartz on January 15, 2010, 11:56:58 AM
How do I make it so you can see the sections slightly??
http://www.simplemachines.org/community/index.php?topic=298641.msg2448125#msg2448125

Quote from: bockonocode on January 15, 2010, 08:26:08 PM
Quote from: smldmr on January 15, 2010, 05:51:29 PM
You must execute the database.php. It is in the package file.

I tried to. but then i got this error:

Notice: Undefined variable: smcFunc in /home/zezanje/public_html/forum/database.php on line 12

Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /home/zezanje/public_html/forum/database.php on line 12

Fatal error: Call to undefined function db_extend() in /home/zezanje/public_html/forum/database.php on line 13


:-\
What is your SMF version?

Quote from: kind on January 16, 2010, 05:34:06 AM
hi, i got a problem, i cant see the section for edit de customized profile, some help? i use this in smf 2.0rc2
You or your users?

bockonocode


shumilica

Thanks Yağız for all the effort you make maintaining this mod!
Did you find a solution to the avatars that are posted to the forum (but doesn't use the default directory and calling. look here: http://www.simplemachines.org/community/index.php?topic=293441.0 - first in the list).

Thanks!
SMF 2 RC2, of course
Today, if you're not confused it means you're not thinking clear!

Yağız...

Quote from: bockonocode on January 16, 2010, 07:13:52 AM
Quote from: Yağız... on January 16, 2010, 07:09:41 AM
What is your SMF version?

sorry. my smf version is 1.1.11
Try to use this one:
http://custom.simplemachines.org/mods/index.php?action=download;mod=1675;id=88604


Quote from: shumilica on January 16, 2010, 08:12:17 AM
Thanks Yağız for all the effort you make maintaining this mod!
Did you find a solution to the avatars that are posted to the forum (but doesn't use the default directory and calling. look here: http://www.simplemachines.org/community/index.php?topic=293441.0 - first in the list).

Thanks!
SMF 2 RC2, of course
I'll fix it for the next release.

bockonocode

thanks a million! works now!  ;D ;D ;D


kind

QuoteCita de: kind en Hoy a las 05:34:06

    hi, i got a problem, i cant see the section for edit de customized profile, some help? i use this in smf 2.0rc2

You or your users?

me and my users, nobody can see it

Yağız...

Go to Admin > Permissions > Regular Members and check Edit ultimate profile.

Neverhurry

Hi Yağız...,

i tried in smf 2.0 rc2 the profile picture page doesn't support support chinese language, is it a way to fix it? Many thanks.
I am using SMF 2.0.1, curve themes.

Yağız...

How and where exactly it doesn't support?

Advertisement: