Results 1 to 2 of 2

Thread: Change Personal Data (from other users, Front end)

  1. #1
    New user
    Join Date
    09-20-15.
    Posts
    19

    Default Change Personal Data (from other users, Front end)

    Hello All,

    I want to change the ModulePersonalData (into a small module)

    What i want to achieve is that i have a url like "getuserprofile.php?user=4"

    i want to change the ModulePersonalData from getting the loged in user id to the "$_GET['user']" where "$_GET['user']" will be '4'.

    So i can change personal data from other user beside my own data.

    What i did,

    i copy'd ModulePersonalData to its own folder and changed its name.
    Now i'm stuck to set the user id to the GET variable.

    This is the module what i copied : https://github.com/contao/core/blob/...rsonalData.php

    Hope someone can help me with this.

  2. #2
    New user
    Join Date
    09-20-15.
    Posts
    19

    Default

    Is there a way that i can set :

    PHP Code:
    $this->;import('FrontendUser''User'); 
    Where i can set 'User' or 'FrontendUser' to a user id?

    What i want to achieve is that i can use the
    PHP Code:
    $this->user-> 
    that's the easiest way i thank for the obstacle explained above

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •