Helping you Build Your Own Social Network!

Faster, better and easier!

Create landing pages for profile

(5 posts) (3 voices)

Tags:

No tags yet.


  1. How hard is it and is it theme dependent to create a "home" page for the profile so when you go to a member's page, you could see a little of everything on there?

    For instance, I'd like to create a page so when you to to http://domain.com/members/symm2112 the page you see shows things like my latest updates, maybe the last 3 entries from the activity stream, using bp-flickr's last 4-5 photos, thumbs for my latest galleries created in bp-gallery. Almost like a summary of some of the featured pages under a profile.

    is it a matter of editing a template or is it like wordpress where it reads through a list of templates until it finds the one it needs? like home.php, archives.php, index.php?

    I posted this in here because I imagine just like others asked about setting another page as the "default" page when you visit a profile, others might want to use this.

    Thanks,

    Posted 1 year ago #
  2. Maybe use a custom sidebar?

    Posted 1 year ago #
  3. I'd rather go either full page or take over the content section of the page since it would be quite a bit of information to try to fit into the sidebar. It's similar to the code that Brajesh posted to make the wire be your default page but just also pulling from other plugins as well.

    Posted 1 year ago #
  4. hi Chris
    The default component to be shown is set via the line

    define("BP_DEFAULT_COMPONENT","component_name");

    Where component name can be "activity","profile","blogs","groups" or any custom component.
    You should use the above line in the bp-custom.php

    My thought on landing page is a little different. I think, you will want to show the landing page to other users not the user to whom the profile belongs. Am I right?
    In that case, we can use conditionals like "bp_is_home()" to load the default component otherwise load the landing page. What do you think ?

    Posted 1 year ago #
  5. It can be the same for everyone. This is similar to home.php in a theme. Your home page is more of a "collection" or "summary" of multiple pages inside the theme. I want to do the same with a user profile. For instance, grab a little from activity, a little from gallery, a little from flickr, etc. Imagine it being your personal home page.

    Posted 1 year ago #

Reply

You must log in to post.