Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Hiding some links from profile page

edited December 2011 in Vanilla 2.0 - 2.8

I'm using the Proxyconnect plugin to integrate vanilla in with my site's own user administration system. Because of this, I'd like to hide some of the links available on the user profile page in vanilla. For example, out of the links

Change my picture
Edit my thumbnail
Remove my picture
Edit My Account
Change My Password
My Preferences

I'd like to hide the last 3. How can this be done?

Thanks!

Answers

  • OK -- found it!

    applications/dashboard/controllers/class.profilecontroller.php

    I commented out lines 925, 931 and 936. Thanks!

  • edited December 2011

    Editing core files will lead to surprises after updates.

    you should better hide links with custom.css.

    e.g. display: none; to elements you don't want to see.

  • OK -- thanks for the advice. I'll look into that!

  • Keep in mind though that if you hide the links with CSS, then smart users will be able to unhide them (locally, i.e., on their end) and use them using Firefox's Firebug, Opera's DragonFly, Chrome's Developer Tools, etc.

  • I agree dont hide stuff using css.

    There was an error rendering this rich post.

  • TimTim Vanilla Staff

    You can probably write a plugin that hooks in ProfileController_Render_Before() and modifies the asset. Worth a try.

    Vanilla Forums COO [GitHub, Twitter, About.me]

Sign In or Register to comment.