Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

Home Page: Activity feed for members. Sign up for non members (9 posts)

Started 1 year, 9 months ago by: Matt

  • Profile picture of Matt Matt said 1 year, 9 months ago:

    Hey everyone,

    I’m sure this had been written about before, but I can find it.

    I would like my users activity feed as the home page for members, but for non members I would like it to just show them a join / signup page, rather than being able to view the activity feed.

    How can this be done?

    Thanks a lot for the help.
    Matt

  • Profile picture of intimez intimez said 1 year, 9 months ago:

    @mattmct try s2member plugin http://buddypress.org/community/groups/s2member/

  • Profile picture of justbishop justbishop said 1 year, 9 months ago:

    @mattmct: Or you could use conditional statements in a custom template. It would go something like this:

    http://pastebin.com/EbBhUtaC

  • Profile picture of Matt Matt said 1 year, 9 months ago:

    Cheers for the replies guys, I think the conditional statements option would work well.

    Thanks for the example as well!

    Edit: Ah, what file do I edit? Index.php or my theme?

  • Profile picture of justbishop justbishop said 1 year, 9 months ago:

    You want to edit the index.php that’s IN your theme folder ;)

  • Profile picture of Matt Matt said 1 year, 9 months ago:

    Thanks for the reply, I must be doing something wrong as I can’t seem to get it working, or even pick up any of my changes.

    The admin area says, Unplugged uses templates from BuddyPress Default..

    I assume I need to edit index.php in /wp-content/plugins/buddypress/bp-themes/bp-default/ ?

    Any tips?

    Many thanks!

  • Profile picture of justbishop justbishop said 1 year, 9 months ago:

    Is there a BP default theme folder in your themes directory as well? I’ve been using my child theme for so long that I can’t remember how a vanilla install is situated.

  • Profile picture of Matt Matt said 1 year, 9 months ago:

    Fix / found it.

    The index.php files I needed to change was located in.

    /wp-content/plugins/buddypress/bp-themes/bp-default/activity/

    Thanks for the help!

  • Profile picture of Beck B Beck B said 1 year, 9 months ago:

    Technically, you should probably be creating a directory named activity in your active theme’s folder (i.e., Unplugged) and copying the original bp-default’s index.php file (that you finally located) into that folder, then modifying the copy. I think.

    Or, arguably, I guess you could even make a…grandchild theme? EDIT: Actually, I don’t think making a child of a child is really an option, but I don’t know for sure.