News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Ultimate Profile

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

Previous topic - Next topic

Yağız...

Quote from: MATTEK on May 30, 2010, 02:20:15 AM
Quote from: Yağız... on May 29, 2010, 05:46:21 AM
Quote from: MATTEK on May 29, 2010, 12:40:23 AM
so I'm out of luck?
I don't know ... Try to send a PM to JovanT with a link to your issue.
Will he get mad at random PM's?
Say him that you've found a bug, then he'll be happy :P
No, just say me you've a problem with comments and say him that it's me who said you to send a pm.

Quote from: rocknroller on May 29, 2010, 06:58:56 PM
greetings!

Great mod, thank you.


I have problem with comments in profile, I would been grateful if you can tell me filename where is code for that.

And what i must looking for.


2.0: Profile-Actions.php comment function.
1.1: Profile.php comment function.

ukhalik2

is there any way to link the "About ME" option to the place where its to be edited. So, that it would be easy for the user.

Yağız...

Find in ./Themes/default/UltimateProfile.template.php:
function up_block_about_me() {
   global $txt, $context;
   
   echo '
      <div id="up_about_me">
         <h3 class="catbg">
            <span class="left"></span>
            ', $txt['profile_about_me'] ,'
         </h3>
         <div class="windowbg creator">
            <span class="topslice"><span></span></span>
            <div class="content">';
     
            if (!empty($context['member']['options']['about']))
               echo '
               ', parse_bbc ($context['member']['options']['about']);
            else
               echo '
               ', $txt['profile_about_no'];
      echo '
            </div>
            <span class="botslice"><span></span></span>
         </div>
      </div>';
   
   return true;
}

Replace with:
function up_block_about_me() {
   global $txt, $context, $scripturl;
   
   echo '
      <div id="up_about_me">
         <h3 class="catbg">
            <span class="left"></span>
            ', allowedTo('edit_ultimate_profile_own') ? '<a href="' . $scripturl . '?action=profile;area=customized">' : '', '', $txt['profile_about_me'] ,'', allowedTo('edit_ultimate_profile_own') ? '</a>' : '', '
         </h3>
         <div class="windowbg creator">
            <span class="topslice"><span></span></span>
            <div class="content">';
     
            if (!empty($context['member']['options']['about']))
               echo '
               ', parse_bbc ($context['member']['options']['about']);
            else
               echo '
               ', $txt['profile_about_no'];
      echo '
            </div>
            <span class="botslice"><span></span></span>
         </div>
      </div>';
   
   return true;
}


gbsothere

Yağız or JovanT, this is an odd question, I suppose, but any help would be appreciated.   :)

This is for 1.1.11 Default and involves getting Ultimate Profile to work with this mod:

Hide Last Active

The mod uses this string in Profile.template.php:

</tr><tr>';

if ( !empty($user_profile[$user_info['id']]['show_online']) || $context['user']['is_admin'] )
{
echo '
<td><b>', $txt['lastLoggedIn'], ': </b></td>
<td>', $context['member']['last_login'], '</td>';
}
echo '</tr>';



Is there any way that this information (that would allow an admin to have "last active" hidden on his profile) could be included in the UltimateProfile.template.php?  It seems that Ultimate Profile's template is overriding this mod.   :-\

I don't want to completely remove the "last logged in" string, since I do want to be able to see when members were last active, but I would like for the admin's "last active" information to remain hidden on his profile.  Otherwise, what's the point in hiding your status?   ;)

Thanks, much.
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.

Kurakama

Hello there.

it is a noob question D:

how can my users upload their photos for shown it in their perfil? lol

I could not find the option ''upload'' ><

Yağız...

Quote from: gbsothere on June 01, 2010, 09:39:48 PM
Yağız or JovanT, this is an odd question, I suppose, but any help would be appreciated.   :)

This is for 1.1.11 Default and involves getting Ultimate Profile to work with this mod:

Hide Last Active

The mod uses this string in Profile.template.php:

</tr><tr>';

if ( !empty($user_profile[$user_info['id']]['show_online']) || $context['user']['is_admin'] )
{
echo '
<td><b>', $txt['lastLoggedIn'], ': </b></td>
<td>', $context['member']['last_login'], '</td>';
}
echo '</tr>';



Is there any way that this information (that would allow an admin to have "last active" hidden on his profile) could be included in the UltimateProfile.template.php?  It seems that Ultimate Profile's template is overriding this mod.   :-\

I don't want to completely remove the "last logged in" string, since I do want to be able to see when members were last active, but I would like for the admin's "last active" information to remain hidden on his profile.  Otherwise, what's the point in hiding your status?   ;)

Thanks, much.
Find this in ./Themes/default/UltimateProfile.template.php:
</tr>
<tr>
<td><b>', $txt['lastLoggedIn'], ': </b></td>
<td>', $context['member']['last_login'], '</td>
</tr>
</table>

Replace with:
</tr>';
if ( !empty($user_profile[$user_info['id']]['show_online']) || $context['user']['is_admin'] )
{
echo '
<tr>
<td><b>', $txt['lastLoggedIn'], ': </b></td>
<td>', $context['member']['last_login'], '</td>
</tr>';
}
echo '
</table>


Quote from: Euskor on June 02, 2010, 02:38:49 AM
Hello there.

it is a noob question D:

how can my users upload their photos for shown it in their perfil? lol

I could not find the option ''upload'' ><
Go to Profile > Show Pictures > Add Picture

Kurakama

OMG! I did not see that!

thank ya! ^^

gbsothere

Yağız, that works beautifully and thanks so much for the help.   :)
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.

gbsothere

Quote from: Yağız... on June 02, 2010, 02:50:46 AM
Find this in ./Themes/default/UltimateProfile.template.php:
</tr>
<tr>
<td><b>', $txt['lastLoggedIn'], ': </b></td>
<td>', $context['member']['last_login'], '</td>
</tr>
</table>

Replace with:
</tr>';
if ( !empty($user_profile[$user_info['id']]['show_online']) || $context['user']['is_admin'] )
{
echo '
<tr>
<td><b>', $txt['lastLoggedIn'], ': </b></td>
<td>', $context['member']['last_login'], '</td>
</tr>';
}
echo '
</table>




It does work, Yağız, but it generates this error (SMF 1.1.11 ,default):


8: Undefined variable: user_info
File: /var/www/vhosts/mywebsite.com/httpdocs/smf/Themes/default/UltimateProfile.template.php
Line: 99


Line 99:

      if ( !empty($user_profile[$user_info['id']]['show_online']) || $context['user']['is_admin'] )


That is the only error.   :)
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.

Yağız...

Find this:
function up_block_user_info() {
    global $context, $txt, $settings;

Replace with:
function up_block_user_info() {
    global $context, $txt, $settings, $user_info;

Kmam

Great mod. But I have one prob..... When i installed this mod my smf trade rate mod stopped working. The type of forum i have i really need both mods to be working. Is there a way to do that? I am running SMF 1.1.11

Tearstar

Quote from: Yağız... on May 28, 2010, 12:45:05 PM

Quote from: Tearstar on May 27, 2010, 12:55:59 AM
I am fairly good with simple php hacking and such but I figured I would just regest either incorporating Member Awards Mod so that Ultimate Profile will display earned awards

Here is the mod page
http://custom.simplemachines.org/mods/index.php?mod=475

I'm using version for 2.0RC3
You can search in the thread. I've posted spme codes for that.

I saw those and tried them, but According to Member Awards changelog, it has been taken over and "modified" since you made your code posts, and it don't work . . . It actually broke my forum

gbsothere

#2173
Quote from: Yağız... on June 03, 2010, 12:44:02 AM
Find this:
function up_block_user_info() {
    global $context, $txt, $settings;

Replace with:
function up_block_user_info() {
    global $context, $txt, $settings, $user_info;





Was that meant for me on the error thing? (SMF 1.1.11, default).  I've searched high and low, Yağız, but I just can't find this string anywhere in the file.  I've even searched for only portions of it, but I'm coming up empty.

The only thing similar I find is this:

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


:-\


EDIT:  I just downloaded the current zip for 1.x and I see that my version is a bit earlier.  It's in the current file.  Can the old one (0.9) be edited without my having to do a complete upgrade?  (I'd rather avoid the upgrade because JovanT helped me to place several custom edits in the template early on, that I would like to keep.)
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.

Yağız...

Quote from: Kmam on June 03, 2010, 02:22:18 AM
Great mod. But I have one prob..... When i installed this mod my smf trade rate mod stopped working. The type of forum i have i really need both mods to be working. Is there a way to do that? I am running SMF 1.1.11
Mod link please :)

Quote from: gbsothere on June 03, 2010, 07:36:32 AM
Quote from: Yağız... on June 03, 2010, 12:44:02 AM
Find this:
function up_block_user_info() {
    global $context, $txt, $settings;

Replace with:
function up_block_user_info() {
    global $context, $txt, $settings, $user_info;





Was that meant for me on the error thing? (SMF 1.1.11, default).  I've searched high and low, Yağız, but I just can't find this string anywhere in the file.  I've even searched for only portions of it, but I'm coming up empty.

The only thing similar I find is this:

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


:-\


EDIT:  I just downloaded the current zip for 1.x and I see that my version is a bit earlier.  It's in the current file.  Can the old one (0.9) be edited without my having to do a complete upgrade?  (I'd rather avoid the upgrade because JovanT helped me to place several custom edits in the template early on, that I would like to keep.)
Ah, then replace the code you've gave with that:
   global $context, $settings, $options, $scripturl, $modSettings, $txt, $db_prefix, $ID_MEMBER, $user_info;

gbsothere

Thanks so much for the patient help, Yağız.  That sorted it.   :)
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.

kernelstackdump

#2176
i got this error.... Can't create/write to file '/tmp/#sql_22ab_0.MYI' (Errcode: 13)
File: /home/xxxxxxxx/public_html/Packages/temp/helper.php
Line: 48


i'm using SMF 2.0RC3

TQ

gbsothere

I hesitate to mention this, Yağız, but, after staring at the UltimateProfile.template.php (SMF 1.1.11, Default) for quite some time, I'm forced to admit that I'm stumped.  (This is what happens when they let regular guys like me come to this site.)   :D

To refresh your memory, earlier I had this error:

8: Undefined variable: user_info
File: /var/www/vhosts/mywebsite.com/httpdocs/smf/Themes/default/UltimateProfile.template.php
Line: 99


Line 99:

      if ( !empty($user_profile[$user_info['id']]['show_online']) || $context['user']
['is_admin'] )


and the solution was to find this:

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


and replace with this:

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


This did sort the user info error, but now, after returning home and checking my forum, I see that the error has become this:



8: Undefined index: id
File: /var/www/vhosts/whereikeepmystuff.com/httpdocs/smf/Themes/default/UltimateProfile.template.php
Line: 99


And again, line 99 is:

      if ( !empty($user_profile[$user_info['id']]['show_online']) || $context['user']['is_admin'] )

I'm so sorry that I'm just not getting it, but if you could, once again, help, I'd appreciate it. 
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.

Kmam

In smf 1.1.11 is there a way i can get my members referral links to show?

Sabre™

@ gbsothere

Add $user_profile to the string

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


its calling for it in this line
if ( !empty($user_profile[$user_info['id']]['show_online']) || $context['user']
Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Advertisement: