Member Profile visualizzation....

Started by MonoTiz, October 11, 2009, 07:50:26 AM

Previous topic - Next topic

MonoTiz

I have a questions for you.

I set the following permissions for registered users:
View profile summary and stats: Own profile and Any profile.

The problem is that users cannot see the left column with various sections of the profile of other users.

I think that the problem is in profile.php file:
// This is here so the menu won't be shown unless it's actually needed.
if (!isset($context['profile_areas']['info']['areas']['trackUser']) && !isset($context['profile_areas']['info']['areas']['showPermissions']) && !isset($context['profile_areas']['edit_profile']) && !isset($context['profile_areas']['profile_action']['areas']['banUser']) && !isset($context['profile_areas']['profile_action']['areas']['deleteAccount']))
$context['profile_areas'] = array();

greyknight17

Why do you even want the other members to see those options? The options on the left hand panel are used to customize the profile. I don't think it's a good idea to just let any members change another member's profile. This permission should only be given to administrators (and maybe moderators).

The permission to do this though is edit profile and not view profile.

MonoTiz

Quote from: greyknight17 on October 11, 2009, 12:41:34 PM
Why do you even want the other members to see those options? The options on the left hand panel are used to customize the profile. I don't think it's a good idea to just let any members change another member's profile. This permission should only be given to administrators (and maybe moderators).

The permission to do this though is edit profile and not view profile.
Ok, but, for example, removing the code block posted in the first post,
the user can view the left column witch 4 link:

Summary
Show Stats
Show Posts
Send personal message

If the SMG MOD is installed, the user can view the gallery profile, if the SMFbuy is installed the user can view the items of that member...

These are pages that the user can access (if they have permission) by typing its URL, but do not see the link in the profile page...

greyknight17

If you view this from a regular members account, all that information should be underneath the main section. Look at the bottom where it says Additional Information.

MonoTiz

#4
This is the view with the code block commented:


This is the default view:


My question is not refer to SMG MOD esplicity, buy for example, where I find the SMG link to view the member gallery summary?

Same problem with my SMFbuy mod.

In a profile.php file, there are many permission check before the code block posted in the first post... I not understand the sense of that code block.

C4G-TK

Forgive me for joining the conversation here.  I was asking MonoTiz how to correct something with his SMF Buy mod.  (BTW, it is a great mod.)  I might be able to explain a little better.

The problem is this:


As an Admin, I can view the TABS for his mod inside of any members' profile.  (This is correct.)
But, as a member who has permissions, the TAB does not appear.  (This is not correct.)

I have pictures below from my SMF 2.0 RC1.2 forum.  The theme itself is the default theme although I have made some color changes to the theme and changed the name from SMF Buy to C4G Trade.

This member doesn't have the Gallery permissions, so his tab doesn't show.  (which is correct)

However, he does have permissions for the SMF Buy mod which isn't showing for him.  (This is not correct.)


-img removed-

Aleksi "Lex" Kilpinen

Moved this from 1.x support to coding discussion where this may get better responses.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

R.Bourne

Quote from: C4G-TK on October 11, 2009, 07:51:24 PM
Forgive me for joining the conversation here.  I was asking MonoTiz how to correct something with his SMF Buy mod.  (BTW, it is a great mod.)  I might be able to explain a little better.

The problem is this:


As an Admin, I can view the TABS for his mod inside of any members' profile.  (This is correct.)
But, as a member who has permissions, the TAB does not appear.  (This is not correct.)

I have pictures below from my SMF 2.0 RC1.2 forum.  The theme itself is the default theme although I have made some color changes to the theme and changed the name from SMF Buy to C4G Trade.

This member doesn't have the Gallery permissions, so his tab doesn't show.  (which is correct)

However, he does have permissions for the SMF Buy mod which isn't showing for him.  (This is not correct.)

Please add me to this list too as I have the same problem as yours. Regular members can't see those tabs / links here either.

My SMF version is 1.1.10.

Thanks!

Advertisement: