# Member-specific pages

**URL:** <https://forum.wixstudio.com/t/member-specific-pages/24998>\
**Category:** Ask the community\
**Tags:** code, question\
**Created:** [July 30, 2017, 10:17am UTC](https://forum.wixstudio.com/t/member-specific-pages/24998 "2017-07-30T10:17:43Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![jds404](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/jds404/32/746_2.png) [@jds404](https://forum.wixstudio.com/u/jds404)\
**Post date:** [July 30, 2017, 10:17am UTC](https://forum.wixstudio.com/t/member-specific-pages/24998/1 "2017-07-30T10:17:43Z")

</div>

Is it possible using Wix Code to create a dynamic page (like a profile) for each site member, so that, for example, if they have previously booked a hotel on a website, they can view this on their profile?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![code-queen](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/code-queen/32/696_2.png) [@code-queen](https://forum.wixstudio.com/u/code-queen)\
**Post date:** [July 30, 2017, 6:53pm UTC](https://forum.wixstudio.com/t/member-specific-pages/24998/2 "2017-07-30T18:53:10Z")

</div>

Are you asking if it can integrate with Wix Hotels? Because I do not think it is possible yet (no Wix API’s).

But yes, you CAN create a profile page so member can access information only THEY have ‘submitted’ to the database …

So if you create a database with a form (for example) that books hotel rooms … then this information is stored in your database, and you can set the permissions so that ONLY the person you added the information can VIEW & EDIT it at any time.

This are native permission settings on Wix Code, no ‘coding’ required. lol 🙂

---

<div class="post-metadata">

**Author:** ![jds404](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/jds404/32/746_2.png) [@jds404](https://forum.wixstudio.com/u/jds404)\
**Post date:** [July 30, 2017, 7:25pm UTC](https://forum.wixstudio.com/t/member-specific-pages/24998/3 "2017-07-30T19:25:39Z")

</div>

Ok, thank you very much for replying!

I was just using a hotel booking system as an example, by the way.

---

<div class="post-metadata">

**Author:** ![code-queen](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/code-queen/32/696_2.png) [@code-queen](https://forum.wixstudio.com/u/code-queen)\
**Post date:** [August 1, 2017, 1:10am UTC](https://forum.wixstudio.com/t/member-specific-pages/24998/4 "2017-08-01T01:10:09Z")

</div>

No problem! There is also another thread that could possibly interest you … : )

> **[Site users and Wix Code | Velo by Wix](https://community.wix.com/velo/forum/coding-with-velo/site-users-and-wix-code)**
>
> I've looked through the Wix Code examples where users submit content into database collections - the art school site example and the food review site. 
> 
> One variant of user submitted content which I'd like to see an example of is where users have to...

---

<div class="post-metadata">

**Author:** ![jds404](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/jds404/32/746_2.png) [@jds404](https://forum.wixstudio.com/u/jds404)\
**Post date:** [August 1, 2017, 7:31pm UTC](https://forum.wixstudio.com/t/member-specific-pages/24998/5 "2017-08-01T19:31:59Z")

</div>

Thanks for the thread link!

How would you go about creating a page for every member (do they have to submit something for it to work with a dynamic page)? Is it possible to access the site’s members database, or would this involve coding it instead?

Also, would it be possible to display the date each member joined on their profile page as plain text?

Thanks again.

---

<div class="post-metadata">

**Author:** ![scoobie](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/scoobie/32/747_2.png) [@scoobie](https://forum.wixstudio.com/u/scoobie)\
**Post date:** [August 1, 2017, 8:49pm UTC](https://forum.wixstudio.com/t/member-specific-pages/24998/6 "2017-08-01T20:49:56Z")

</div>

You should be able to get away with little or no coding, it has been designed for your scenario.

Yes, they have to submit a form, which you link to a database, which in turn you link to a Dynamic Page. One dynamic page will automatically create pages for all your members.

Re Date : There is a field in the database which when the form is submitted to the database is autopopulated with the date and time. I’m not sure how to display it though on another page.

---

<div class="post-metadata">

**Author:** ![jds404](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/jds404/32/746_2.png) [@jds404](https://forum.wixstudio.com/u/jds404)\
**Post date:** [August 2, 2017, 6:40am UTC](https://forum.wixstudio.com/t/member-specific-pages/24998/7 "2017-08-02T06:40:12Z")

</div>

Ok, thanks for your response!

---

<div class="post-metadata">

**Author:** ![ziv-shalev](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/ziv-shalev/32/669_2.png) [@ziv-shalev](https://forum.wixstudio.com/u/ziv-shalev)\
**Post date:** [August 2, 2017, 6:39pm UTC](https://forum.wixstudio.com/t/member-specific-pages/24998/8 "2017-08-02T18:39:46Z")

</div>

Just a short note from us at wix-code:  
Seeing the community help each other out is exactly what we have hoped would happen.  
Warms our heart 😉

---

<div class="post-metadata">

**Author:** ![code-queen](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/code-queen/32/696_2.png) [@code-queen](https://forum.wixstudio.com/u/code-queen)\
**Post date:** [August 2, 2017, 7:19pm UTC](https://forum.wixstudio.com/t/member-specific-pages/24998/9 "2017-08-02T19:19:56Z")

</div>

JDS404 - I made a video on something similar. Don’t know if you’ve seen it on the Facebook group yet. It was uploaded to the Wix Community YouTube Channel. Here is the link:

[![]( " - YouTube") ](https://www.youtube.com/watch?v=TQBdwgzr4GE&t=0s)

---

<div class="post-metadata">

**Author:** ![jds404](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/jds404/32/746_2.png) [@jds404](https://forum.wixstudio.com/u/jds404)\
**Post date:** [August 2, 2017, 7:51pm UTC](https://forum.wixstudio.com/t/member-specific-pages/24998/10 "2017-08-02T19:51:03Z")

</div>

Thanks for the video, Nayeli. A big help for creating profiles using Wix Code!

---

<div class="post-metadata">

**Author:** ![scoobie](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/scoobie/32/747_2.png) [@scoobie](https://forum.wixstudio.com/u/scoobie)\
**Post date:** [August 3, 2017, 6:49pm UTC](https://forum.wixstudio.com/t/member-specific-pages/24998/11 "2017-08-03T18:49:41Z")

</div>

I watched the video, very useful thanks. Would love to see the example taken further forward with the ability for the users to update their profiles at a later date eg. if their availability changes and also how to build a custom search function across the database.

---

<div class="post-metadata">

**Author:** ![code-queen](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/code-queen/32/696_2.png) [@code-queen](https://forum.wixstudio.com/u/code-queen)\
**Post date:** [August 3, 2017, 7:14pm UTC](https://forum.wixstudio.com/t/member-specific-pages/24998/12 "2017-08-03T19:14:02Z")

</div>

Good requests. I will work on that 🙂

---

<div class="post-metadata">

**Author:** ![sam-wix](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/sam-wix/32/683_2.png) [@sam-wix](https://forum.wixstudio.com/u/sam-wix)\
**Post date:** [September 26, 2017, 8:25am UTC](https://forum.wixstudio.com/t/member-specific-pages/24998/13 "2017-09-26T08:25:52Z")

</div>

We just added a new article demonstrating how to create a member profile page for each of the registered users of your site.

[https://support.wix.com/en/article/how-to-create-member-profile-pages](https://support.wix.com/en/article/how-to-create-member-profile-pages)

We’d appreciate any feedback on whether or not you find the article helpful.

---

<div class="post-metadata">

**Author:** ![gdexindia](https://avatars.discourse-cdn.com/v4/letter/g/8797f3/32.png) [@gdexindia](https://forum.wixstudio.com/u/gdexindia)\
**Post date:** [November 20, 2017, 5:01am UTC](https://forum.wixstudio.com/t/member-specific-pages/24998/14 "2017-11-20T05:01:03Z")

</div>

Hi Nayeli,

i have followed all your steps for creating custome member login page and done coding accordingly but it is not working showing some error, please help me…the below is the links

Page Link :

> **[Log In | Wix](https://users.wix.com/signin?originUrl=http%3A%2F%2Feditor.wix.com%2Fhtml%2Feditor%2Fweb%2Frenderer%2Fedit%2F7b1a1493-bd68-433a-889f-7c382be000cc%3FmetaSiteId%3Dcc46de08-d072-4d32-896e-6612cf62d781%26editorSessionId%3DFC3DE292-3B89-44DC-93A5-5C7A9CDDADEC&redirectTo=http%3A%2F%2Feditor.wix.com%2Fhtml%2Feditor%2Fweb%2Frenderer%2Fedit%2F7b1a1493-bd68-433a-889f-7c382be000cc%3FmetaSiteId%3Dcc46de08-d072-4d32-896e-6612cf62d781%26editorSessionId%3DFC3DE292-3B89-44DC-93A5-5C7A9CDDADEC&overrideLocale=en&forceRender=true)**
>
> Login to Wix.com

Error link: [https://gdexindia.wixsite.com/gdexindia11/Member/Update/ID](https://gdexindia.wixsite.com/gdexindia11/Member/Update/ID)

My Wix Account Log in Link : [https://www.wix.com/my-account/sites/cc46de08-d072-4d32-896e-6612cf62d781/site-settings/overview?referrer=site-home](https://www.wix.com/my-account/sites/cc46de08-d072-4d32-896e-6612cf62d781/site-settings/overview?referrer=site-home)

my coding :

import wixUsers from ‘wix-users’;  
import wixData from ‘wix-data’;  
import wixLocation from ‘wix-location’;

$w.onReady( () =\> {  
if(wixUsers.currentUser.loggedIn) {  
$w(“#button1”).label = “Logout”;  
$w(“#button2”).show();  
}  
else {  
$w(“#button1”).label = “Login”;  
$w(“#button2”).hide();  
}  
} );

export function button1\_onclick() {  
// user is logged in  
if(wixUsers.currentUser.loggedIn) {  
// log the user out  
wixUsers.logout()  
.then( () =\> {  
// update buttons accordingly  
$w(“#button1”).label = “Login”;  
$w(“#button2”).hide();  
} );  
}  
// user is logged out  
else {  
let userId;  
let userEmail;

```
// prompt the user to log in  
wixUsers.promptLogin( {"mode": "login"} ) 
  .then( (user) => { 
    userId = user.id; 
    return user.getEmail(); 
  } ) 
  .then( (email) => { 
    // check if there is an item for the user in the collection 
    userEmail = email; 
    return wixData.query("Member") 
      .eq("_id", userId) 
      .find(); 
  } ) 
  .then( (results) => { 
    // if an item for the user is not found 
    if (results.items.length === 0) { 
      // create an item 
      const toInsert = { 
        "_id": userId, 
        "email": userEmail 
      }; 
      // add the item to the collection 
      wixData.insert("Member", toInsert) 
        .catch( (err) => { 
          console.log(err); 
        } ); 
    } 
    // update buttons accordingly 
    $w("#button1").label = "Logout"; 
    $w("#button2").show(); 
  } ) 
  .catch( (err) => { 
    console.log(err); 
  } ); 

```

}  
}

export function button2\_onclick() {  
wixLocation.to(`/Member/Update/ID ${wixUsers.currentUser.id}`);  
}

Note : **I want to Add and Additional Accounting Area or Table through which my member can view their Balance and account statement (How to Add it i dont know)** because i just follow your steps in coding and creating website…i am not technical and IT Person …but interested to create website according to my requirement

Request you to Please give or add coding for Basic account statement generation like Account No., Amount Deposit,Withdraw, Final Balance in Table form in the above mention code

So Please Help me as soon as possible

---

<div class="post-metadata">

**Author:** ![gdexindia](https://avatars.discourse-cdn.com/v4/letter/g/8797f3/32.png) [@gdexindia](https://forum.wixstudio.com/u/gdexindia)\
**Post date:** [November 20, 2017, 7:41am UTC](https://forum.wixstudio.com/t/member-specific-pages/24998/15 "2017-11-20T07:41:31Z")

</div>

Hi Nayeli,

Please do the needful for the above request

---

<div class="post-metadata">

**Author:** ![gdexindia](https://avatars.discourse-cdn.com/v4/letter/g/8797f3/32.png) [@gdexindia](https://forum.wixstudio.com/u/gdexindia)\
**Post date:** [November 20, 2017, 9:16am UTC](https://forum.wixstudio.com/t/member-specific-pages/24998/16 "2017-11-20T09:16:50Z")

</div>

Hello Liran

i have followed all your steps for creating custome member login page and done coding accordingly but it is not working showing some error, please help me…the below is the links

Page Link :

[https://editor.wix.com/html/editor/web/renderer/edit/7b1a1493-bd68-433a-889f-7c382be000cc?metaSiteId=cc46de08-d072-4d32-896e-6612cf62d781&editorSessionId=FC3DE292-3B89-44DC-93A5-5C7A9CDDADEC](https://editor.wix.com/html/editor/web/renderer/edit/7b1a1493-bd68-433a-889f-7c382be000cc?metaSiteId=cc46de08-d072-4d32-896e-6612cf62d781&editorSessionId=FC3DE292-3B89-44DC-93A5-5C7A9CDDADEC)

Error link: [https://gdexindia.wixsite.com/gdexindia11/Member/Update/ID](https://gdexindia.wixsite.com/gdexindia11/Member/Update/ID)

My Wix Account Log in Link : [https://www.wix.com/my-account/sites/cc46de08-d072-4d32-896e-6612cf62d781/site-settings/overview?referrer=site-home](https://www.wix.com/my-account/sites/cc46de08-d072-4d32-896e-6612cf62d781/site-settings/overview?referrer=site-home)

my coding :

import wixUsers from ‘wix-users’;  
import wixData from ‘wix-data’;  
import wixLocation from ‘wix-location’;

$w.onReady( () =\> {  
if(wixUsers.currentUser.loggedIn) {  
$w(“#button1”).label = “Logout”;  
$w(“#button2”).show();  
}  
else {  
$w(“#button1”).label = “Login”;  
$w(“#button2”).hide();  
}  
} );

export function button1\_onclick() {  
// user is logged in  
if(wixUsers.currentUser.loggedIn) {  
// log the user out  
wixUsers.logout()  
.then( () =\> {  
// update buttons accordingly  
$w(“#button1”).label = “Login”;  
$w(“#button2”).hide();  
} );  
}  
// user is logged out  
else {  
let userId;  
let userEmail;

```
// prompt the user to log in  
wixUsers.promptLogin( {"mode": "login"} ) 
  .then( (user) => { 
    userId = [user.id](http://user.id/) ; 
    return user.getEmail(); 
  } ) 
  .then( (email) => { 
    // check if there is an item for the user in the collection 
    userEmail = email; 
    return wixData.query("Member") 
      .eq("_id", userId) 
      .find(); 
  } ) 
  .then( (results) => { 
    // if an item for the user is not found 
    if (results.items.length === 0) { 
      // create an item 
      const toInsert = { 
        "_id": userId, 
        "email": userEmail 
      }; 
      // add the item to the collection 
      wixData.insert("Member", toInsert) 
        .catch( (err) => { 
          console.log(err); 
        } ); 
    } 
    // update buttons accordingly 
    $w("#button1").label = "Logout"; 
    $w("#button2").show(); 
  } ) 
  .catch( (err) => { 
    console.log(err); 
  } ); 

```

}  
}

export function button2\_onclick() {  
[wixLocation.to](http://wixlocation.to/) (`/Member/Update/ID ${ [wixUsers.currentUser.id](http://wixusers.currentuser.id/) }`);  
}

Note : **I want to Add and Additional Accounting Area or Table through which my member can view their Balance and account statement (How to Add it i dont know)** because i just follow your steps in coding and creating website…i am not technical and IT Person …but interested to create website according to my requirement

Request you to Please give or add coding for Basic account statement generation like Account No., Amount Deposit,Withdraw, Final Balance in Table form in the above mention code

So Please Help me as soon as possible

---

<div class="post-metadata">

**Author:** ![krzu89](https://avatars.discourse-cdn.com/v4/letter/k/90ced4/32.png) [@krzu89](https://forum.wixstudio.com/u/krzu89)\
**Post date:** [April 24, 2018, 6:34am UTC](https://forum.wixstudio.com/t/member-specific-pages/24998/17 "2018-04-24T06:34:41Z")

</div>

When this question was first posted, there was no Wix API’s to integrate Wix Code with Wix Hotels? Is that still the case or has something been created that will show Member-specific data such as current reservations on their Profile or Account page?

---

<div class="post-metadata">

**Author:** ![roi-bendet](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/roi-bendet/32/1283_2.png) [@roi-bendet](https://forum.wixstudio.com/u/roi-bendet)\
**Post date:** [April 24, 2018, 7:09am UTC](https://forum.wixstudio.com/t/member-specific-pages/24998/18 "2018-04-24T07:09:25Z")

</div>

Hi,  
Still no integration between Wix Code and Wix Hotels.  
Roi.

---

<div class="post-metadata">

**Author:** ![andreclarkeschool](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/andreclarkeschool/32/32597_2.png) [@andreclarkeschool](https://forum.wixstudio.com/u/andreclarkeschool)\
**Post date:** [March 12, 2022, 1:48pm UTC](https://forum.wixstudio.com/t/member-specific-pages/24998/19 "2022-03-12T13:48:42Z")

</div>

Hello by any chance this video is still available
