Helping you Build Your Own Social Network!

Faster, better and easier!

Create Custom Page For Every User

(21 posts) (4 voices)

  1. Hi all,

    How can I add a custom page to BP that will be assigned to each user (not group), for example, my BP is about working out. I want to give each user on signup their own tab/page, that is unique to them. This can be a schedule to track their progress, but the idea is that it is unique for each user.

    At the moment, if a page is created, with the schedule, and placed in the theme directory, and chosen as the template for a blank page in the backend, every user will get the same exact page. How can I make it a unique page per user?

    Posted 1 year ago #
  2. who will create and maintain the page? you as the site admin or the user will update the page. If you will be creating pages for each user, it will be easy and I can put the code here.

    Posted 1 year ago #
  3. Hi Brajesh,

    Each user will maintain it and it will be assigned to them uniquely and automagically on signup.

    Posted 1 year ago #
  4. ok, that is not a problem. I almost created the sample code while posting here.
    the problem is, how a user will update the page from front side.

    I understand following:-
    1. user register and a page is created
    2. on user profile the page is shown.

    but the problem arises when you say they will update it them self as I don't see a way for that. perhaps look into bp-custom post plugin, may be that could help, but I have yet to find a good plugin which allows other plugins to interface and allow posting from front side.

    Posted 1 year ago #
  5. Gravity forms or tdo miniforms may be an input choice, but regardless of the posting methods, can you share how to create a unique page per member signup? I think it will be very useful!

    Posted 1 year ago #
  6. sure, I will put the code online soon. Just finishing some other component and will clean up the code I did for my demo test and upload.

    Posted 1 year ago #
  7. Thank You Brajesh, I will await it!

    Posted 1 year ago #
  8. here you go.
    http://buddydev.com/http//buddydev.com/public-download/bp-pages.zip

    Please note if you are on multisite and Using the Auto activate Auto Login, it will not work. In all other case, when a user account is activated, a page will be created for him automatically and will be available on his/her profile.

    Posted 1 year ago #
  9. Brajesh,

    Thank You, This is great, I think you're the first one in a lot of things when it comes to bp development and expansion.

    You truly are a Key Master as your title suggests.

    One final thing on this note, this shows clearly how to add a unique user page under their profile. If we want it to be a menu item instead on the main navigation, so we'll have the schedule page in the main nav, sort of you have the membership page here, how can we do this?

    Posted 1 year ago #
  10. Hi Brajesh,

    Bumping my last comment

    Posted 1 year ago #
  11. Hi Alexa,
    that is quite possible, but will need an update in the above script. Instead of adding to user nav, we will need to add a root component and fetch and show that to users when they are logged in. Nothing difficult, just a couple of lines of code. will post tomorrow evening.

    Posted 1 year ago #
  12. Thanks Brajesh, will await.

    Posted 1 year ago #
  13. should i remove that from user navigation ?

    Posted 1 year ago #
  14. Is it possible to have an additional file that only adds it to the main nav. And still have the user nav one run simultaneously?

    Posted 1 year ago #
  15. That's what I have done, uploading in a minute.

    Posted 1 year ago #
  16. Please find it here
    http://buddydev.com/http//buddydev.com/public-download/bp-pages1.1.zip

    let me know if this is what you were asking for. You will need to move "bppages" to your current theme for the schedule root component to work.

    Posted 1 year ago #
  17. Hello ... this is one of the benefits of visiting the BuddyDev forums daily. A new awesome plugin :-)

    Off-topic - Brajesh, did you notice that there's this new bp-members folder and files in BuddyPress trunk
    http://trac.buddypress.org/browser/trunk/bp-members ?

    Posted 1 year ago #
  18. Hi Mercime,
    Thanks but the above will be of no real use. As that was just a demo plugin :)

    Thanks for bringing the note about bp 1.3 trunk, I have been working on a couple of plugins and I saw the new folder bp-members as well as bp-settings. There are so many new things in the bp 1.3 like the BP_Component root class to be extended by plugins and a lot more :) looking forward to its final release :) It will be too much fun to work with 1.3.

    Posted 1 year ago #
  19. Hi,

    I think bp-pages is useful for me. I try it. There is a "Pages" tab on user profile. But, how do to create custom user pages ? Alexa said, a page is created with the schedule. But what is the schedule on WP ?
    I would like to use bp-pages to include Gravity or CformII forms on user profile.

    Thank you.

    Posted 1 year ago #
  20. Hi David,
    For the Alexa's problem, I had created this plugin, so it created a demo page for each user. it can be used as an example and changed for your work.

    My question for you:-
    1. Does every user have specific form ? or all the forms are same and you just want to make a tab on user nav which shows the form on their profile?

    Posted 1 year ago #
  21. Hi Brajesh,
    All the forms are same; I need to make a tab on user nav which shows the form : a tab which shows the data's user (including pictures.... ) with the possibility to edit and send them.

    Posted 1 year ago #

Reply

You must log in to post.