Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.
Please upgrade here. These earlier versions are no longer being updated and have security issues.

MyProfile addon - auto-create profile for new members

This discussion is related to the MyProfile addon.

Hi @x00, I've got a few requests for your MyProfile addon. Can you show me how to:

a) Automatically create a profile for a new member when they join. At the moment the profile page is blank until they edit their profile for the first time.

b) Refresh the page after making edits to the profile so the user can see the results of their changes.

I'm willing to sponsor these changes or code snippets.

Less important:

c) By default, populate non-'standard' fields with a generic value (like 'Not Given').

I'll consider sponsoring that too depending on price.

Regards,
Quiff

Tagged:

Comments

  • x00 is unable to assist at the moment. Has anyone else implemented this addon and tackled issue (a)?

  • peregrineperegrine MVP
    edited November 2012

    I'd take a stab at it, but only if you suggest what you would be willing to pay with breakdown for completing a, b, c. Send me a pm.

    As long as you understand that x00 is the master. and from what I understand from your message is that "unable to assist at the moment". I don't want to step on any toes here. So let me know x00 - if this would be a problem with you.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • go right ahead.

    grep is your friend.

  • thx x00 - if I get the go ahead I will.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • 50sQuiff50sQuiff ✭✭
    edited November 2012

    I've figured out a solution to (a). Just change line 12 of view.php to this:

    if ((!$MetaV) && ('standard' != $this->Data['MetaSpec'][$MetaI]['type'])) continue;

    The solution to (c) becomes obvious at this point but I've decided not to implement it.

  • Solved (b). It's all about setting $Sender->RedirectUrl before the Render()

  • I've figured out a solution to (a). Just change line 12 of view.php to this:

    if ((!$MetaV) && ('standard' != $this->Data['MetaSpec'][$MetaI]['type'])) continue;

    Where can I find the view.php file to edit?

    The solution to (c) becomes obvious at this point but I've decided not to implement it.

    and how to change this?

    Thank you

  • It should be plugins/MyProfile/views/view.php

Sign In or Register to comment.