1
jeffgr
How to hide profile activity from other users?
  • 2007/6/5 11:28

  • jeffgr

  • Quite a regular

  • Posts: 263

  • Since: 2004/2/22


Hi everyone,

I want to be able to hide the profile activity (the actions that you have taken in each module, which are shown at the bottom of the user profile page) from all users EXCEPT the user who has that profile. In other words, I only want each user to be able to see their own site activity on their profile page, but not the activity of others, when looking at someone else's profile page.

Any ideas on how this hack can be done?

Thanks!

Jeff

2
sabahan
Re: How to hide profile activity from other users?
  • 2007/6/5 12:55

  • sabahan

  • Quite a regular

  • Posts: 317

  • Since: 2006/3/4 5


check this

it's not the same but you will get an idea how to hide the user's activity..good luck

3
nachenko
Re: How to hide profile activity from other users?
  • 2007/6/5 13:07

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


I think some Smarty code in the template should do the trick.

something like:

If user we are viewing ($user_uid) is ourself ($xoops_user), or the user is an admin...

<{if $user_uid == $xoops_user || $xoops_isadmin}>

code we want to show

<{/if}>

You'll have to check exact name of smarty variables, I'm not sure I wrote them properly.

Login

Who's Online

138 user(s) are online (75 user(s) are browsing Support Forums)


Members: 0


Guests: 138


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits