News:

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

Main Menu

[BETA] Ultimate profile mod

Started by JovanT, July 19, 2007, 05:26:00 PM

Previous topic - Next topic

bfeo

where do I put?  both of em in root?

bfeo

#1361
nvm.  you fixed it, ty.


Two things.  How can I put in a table for referrals, and one for custom profile fields, and how do I widen the left side some?


And move the Profile Info and Modify and other menu tabs to the top of the page?




Nvm.  I thought it looked cool, but doesn't go well with my stuff, :'(

I really just want the personal galleries and the profile comments with avatar now.

geo32101

Quote from: JovanT on August 28, 2008, 01:24:11 AM
Quote from: runebergen on August 27, 2008, 08:39:22 PM

// auto select of comment HTML or BBC

if(strstr($comment['body'],'[')) {

echo parse_bbc ($comment['body']);
}
else {

echo ( un_htmlspecialchars ($comment['body'])); }

the code works great, I got 3000 forum users posting  very day with this , and working :)

I think that this if is unnecessary. You can accomplish the same thing using parse_bbc(un_htmlspecialchars ($comment['body']))
So should I try that?

Damian1221

Hey, I have these to mods installed but I'm having trouble getting them to show up on the Ultimate Profile. When I add the code that would be added to the profile.template.php to ultimateprofile.template.php I get an error page. Can anyone help me out?


http://custom.simplemachines.org/mods/index.php?mod=540

http://custom.simplemachines.org/mods/index.php?mod=620

Adish - (F.L.A.M.E.R)

Quote from: Damian1221 on August 28, 2008, 05:52:39 PM
Hey, I have these to mods installed but I'm having trouble getting them to show up on the Ultimate Profile. When I add the code that would be added to the profile.template.php to ultimateprofile.template.php I get an error page. Can anyone help me out?


http://custom.simplemachines.org/mods/index.php?mod=540

http://custom.simplemachines.org/mods/index.php?mod=620


Whats the error you are facing ?

Damian1221

Well for example for the profile user action, I open Ultimateprofile.template.php

find

<tr>
<td><b>', $txt['lastLoggedIn'], ': </b></td>
<td>', $context['member']['last_login'], '</td>



and add this after it

//-Profile User Action MOD- Start
if (!empty($context['user_action']))
echo '
<tr>
<td><b>', $txt['who_action'], ': </b></td>
<td><span', $context['user_action']['is_hidden'] ? ' style="font-style: italic;"' : '', '>', $context['user_action']['action'],' <span style="white-space: nowrap">(', $context['user_action']['time'], ')</span></span></td>
</tr>';
  //-Profile User Action MOD- End




but when I view a profie I get

Template Parse Error!

There was a problem loading the /Themes/default/UltimateProfile.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in .../Themes/default/UltimateProfile.template.php on line 107
98: <td>', $context['member']['location'], '</td>
99: </tr>
100: <tr>
101: <td><b>', $txt[233], ': </b></td>
102: <td>', $context['member']['registered'], '</td>
103: </tr>
104: <tr>
105: <td><b>', $txt['lastLoggedIn'], ': </b></td>
106: <td>', $context['member']['last_login'], '</td>//-Profile User Action MOD- Start
107: if (!empty($context['user_action']))
108: echo '
109: <tr>
110: <td><b>', $txt['who_action'], ': </b></td>
111: <td><span', $context['user_action']['is_hidden'] ? ' style="font-style: italic;"' : '', '>', $context['user_action']['action'],' <span style="white-space: nowrap">(', $context['user_action']['time'], ')</span></span></td>


bfeo

Any way to change permissions per member group on amount of images that can be posted in personal galleries? 

And are admins or gmods exempt from picture limit?

Adish - (F.L.A.M.E.R)

#1367
@Damian1221

Find:-
<tr>
                        <td><b>', $txt['lastLoggedIn'], ': </b></td>
                        <td>', $context['member']['last_login'], '</td>
                     


Add After:-
</tr>
<tr>
<td><b>', $txt['who_action'], ': </b></td>
<td>', $context['user_action']['is_hidden'], $context['user_action']['action'], $context['user_action']['time'], '</td>


Dont know if it is 100% right, but the results show up perfectly.

Damian1221

thanks man, worked perfect

can you help me out with the additional member groups mod

I have to find this

<tr>
<td><b>', $txt[87], ': </b></td>
<td>', (!empty($context['member']['group']) ? $context['member']['group'] : $context['member']['post_group']), '</td>
</tr>



and add before


// Begin modification - Additional membergroups on profile
$x = 1;
// Loop through each additional group
foreach ($context['member']['additionalGroups2'] as $additionalGroup)
{
// Add one to our counter
$x++;
// Output this membergroup
echo '
<tr>
<td><b>', $txt[87], ' ', $x, ': </b></td>
<td>', $additionalGroup, '</td>
</tr>';
}
// End modification



but i get the same error as before

Adish - (F.L.A.M.E.R)

sorry, i tested some stuff in there but i didnt get it right.. someone more experienced or some staff member would help out soon.

[SiNaN]

Can you try adding this instead?

';
// Begin modification - Additional membergroups on profile
   $x = 1;
   // Loop through each additional group
   foreach ($context['member']['additionalGroups2'] as $additionalGroup)
   {
      // Add one to our counter
      $x++;
      // Output this membergroup
      echo '
            <tr>
               <td><b>', $txt[87], ' ', $x, ': </b></td>
               <td>', $additionalGroup, '</td>
            </tr>';
   }
   // End modification

echo '
Former SMF Core Developer | My Mods | SimplePortal

Adish - (F.L.A.M.E.R)


bfeo

#1372
Is there any way to make the gallery settings more advanced?  I'd like to be able to limit galleries by size, not image count.  And if there is a way to change the amount each member group can upload, that'd be excellent.

Also, how can I hide the Customized profile link in the profile?  I don't want people to be able to edit that, but I still want them to have access to my pictures.

bfeo

Hmm.  I'd like to try and get the comments onto old profile as well, for those who don't want to use the new one.

And shorten the width the the avatar area in profile comments.  It's like 40/60% atm.

runebergen

Quote from: bfeo on August 29, 2008, 12:23:21 PM


Also, how can I hide the Customized profile link in the profile?  I don't want people to be able to edit that, but I still want them to have access to my pictures.


Disable Customized profile in Admin...


Or do you want everything hidden (about me, my media etc), and ONLY have "my photos" ?

Its easy to edit the UltimateProfile.template

Comment out or delete all you dont want :)

(back up a copy of the original though.. so u got that, in case you do something wrong :)

bfeo

well, I'd like to put the control panel above everything.

Marcus Forsberg

Will this work whit 2.x?

And if not, will it do in the future?

GQCritic

Quote from: Nascar on August 30, 2008, 05:07:56 AM
Will this work whit 2.x?

No


QuoteAnd if not, will it do in the future?

Probably.

JovanT has said that he won't update it to 2.0 until the first release candidate comes out.

runebergen

Quote from: geo32101 on August 28, 2008, 04:20:16 PM
So should I try that?

yes ;) I've tried his solution, and it works fine too :)

Marcus Forsberg

Quote from: GQCritic on August 30, 2008, 11:31:04 AM
Quote from: Nascar on August 30, 2008, 05:07:56 AM
Will this work whit 2.x?

No


QuoteAnd if not, will it do in the future?

Probably.

JovanT has said that he won't update it to 2.0 until the first release candidate comes out.

I see..
It's the same whit many mods.

Does anyone know how long it will take before the final release of 2.0 is here?

Advertisement: