Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'custom activity page'

Viewing 25 results - 751 through 775 (of 838 total)
  • Author
    Search Results
  • #74382
    Wildrot
    Participant

    *bump* – Would anyone go to the lengths of reproducing this issue?

    Oh, just to comply with the When asking for support rules:

    1. Which version of WP/MU are you running?

    WP 3.0-beta1

    2. Did you install WP/MU as a directory or subdomain install?

    Subdomain install

    4. Did you upgraded from a previous version of WP/MU? If so, from which version?

    Nope. Fresh from scratch.

    6. Which version of BP are you running?

    1.2.3

    7. Did you upgraded from a previous version of BP? If so, from which version?

    Nope. Out of the box install.

    8. Do you have any plugins other than BuddyPress installed and activated?

    Nope.

    9. Are you using the standard BuddyPress themes or customized themes?

    Standard.

    10. Have you modified the core files in any way?

    Nope. Learned not to do that while BP was in early 0.8 :p

    11. Do you have any custom functions in bp-custom.php?

    Nope.

    12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?

    The built-in one.

    13. Please provide a list of any errors in your server’s log files.

    None thrown.

    14. Which company provides your hosting?

    Self-hosted V-Server.

    #74328

    In reply to: Group-Rights Plugin

    3sixty
    Participant

    Hmm, RSS… that is a little complicated. Also another implication I did not think of is the activity stream. If the idea is to restrict access to content, then both the RSS, the activity stream (and the activity stream RSS) have to be considered.

    Before we go down the route of considering another plugin, have you already tried this one?

    https://wordpress.org/extend/plugins/bp-groupblog/

    BuddyPress Groupblog

    Description Installation Screenshots Other Notes Changelog Stats

    Author: Rodney Blevins & Marius Ooms

    The BuddyPress Groupblog plugin extends the group functionality by enabling each group to have a single blog associated with it. Group members are automatically added to the blog and will have blog roles as set by the groupblog admin settings.

    Features:

    Full blog theme integration. The included bp-groupblog theme mimics the group pages.

    WP Admin option to set default blog for groups plus bonus options.

    Automated blog registration at group creation stage.

    Bypass default blog validation to allow dashes, underscores, numeral only and minimum character count.

    Blog privacy settings are initially inherited from group privacy settings.

    Group members are automatically added to the blog.

    Blog roles match group roles as set by the group admin.

    Solid error checking that the blog follows validation.

    Group admin tab to access the group-blog settings.

    Recent posts are displayed on the group home page, much like the forum topics.

    A menu tab is added to display the latest blog activity and blog page links.

    Blog themes will have the ability to pull in group info and create a theme that could resemble the group exactly.

    Leaving the group will downgrade the member role to ‘subscriber’.

    Allow the group admin to select one of his/her existing blogs.

    Known Issues: * Group blog post do currently not show up in the group activity stream. Therefore as a short term solution we are including a custom activity loop on the blog page. This should be fixed in the future.

    Roadmap:

    Allow the admin to let group admins choose the blog name, instead of following the group name.

    Frontend posting from the blog home page.

    Redirect options to integrate deeper with the blog.

    Include an RSS icon for easy access to the Blog’s RSS feed.

    Gianfranco
    Participant

    @Dimensionmedia Nice and valuable list of tips, thanks.

    I’m glad that my topic have generated such interesting discussions.

    The community website I build up is for Cure fans (you know The Cure, right?), and since they all are already active on Facebook, MySpace and other existing (traditional) forums, it is quiet a bit of a challenge to bring them over to my site and actually use it.

    The motivation that made me wanna do Cureuphoria (http://cureuphoria.com) is that I felt that althought many places already exist for Cure fans to interact, there isn’t a real Social Network with features “à la Facebook/MySpace” that is specifically built with that particular community in mind.

    I feel that the major value of using BuddyPress, and the main difference with the above mentioned social networks is that you can offer basicly the same feautures, BUT in an environement created and adapted around a specific community, which is the strongest point to my opinion.

    From look and feel, to functionalities, you can build something up that is indeed unique to a given community.

    Something that a rather impersonal environement such as Facebook, is not able to offer.

    For example, I used custom profile fields to build a Cure-oriented member profiles, because it is about The Cure, right?

    You can check an example here: http://cureuphoria.com/gian, which is my profile, but you can go and see others too.

    Also, because I believe the register page is a key page of the site, I designed a very simple, basic form with a prominent call to action button, and argued some benefits about registering and using the site, that would accompany the registration form.

    And, because during the intial lunch phase you don’t see many members profile avatars active, I decides to design a visual graphic with different avatars in order to give the potential subscriber a feeling of community. To do so, I asked permissions to Facebook users (within the Cure fans community) to use their avatars, and they all agreed. That gave me already the possibility to communicate the existence of the new site to some.

    By the way, this is the register page: http://cureuphoria.com/register

    At the moment I did get quiet a few registrations in a week time period, but unfortunately, users don’t turn out to be as active as I expect them to be. So, beside the first point of bringing people in and register, the following point would be, how to make them use the website and be active? Maybe it takes time to achive that.

    Maybe their passivity is due to the fact of being troubled by the slight diffrences with (again) Facebook, or other traditional forums structure.

    I mean, the majority of other Cure forums out are built with calssical bulletin board systems, such as phpBB or vBulletin and are (sorry, but I need to say it) quiet ugly. Still they are widely populated with topics.

    My users, I feel, are probably troubled by the Groups/Forums relation. Some posted on the Group homepage activity, thinking that it was answearing to a topic in the forum for that Group.

    I mean, I do think that the Group/Forum as a value and I totally understand the principle behind it. But do my users?

    In order to push them to post Topics that are not necessarily associated with a Group, I did create a Group called Open Topics, that would act as a general topic forum.

    And, I wrote a sticky topic on “How to use Cureuphoria”, which you can find here, even if not finished yet at the moment of this writing: http://cureuphoria.com/groups/cureuphoria-feedback/forum/topic/how-to-use-cureuphoria-read-this/

    I would like to have them create their own groups, write topics, invite their friends over and all that, instead of coming to the site, putting up a video form YouTube, add a friend and then leave to just check if something more exciting is happening after a day, and since it’s not the case, leave again.

    Anyway, I don’t think there is a magic formula to make your BuddyPress site have the success you expect, but it is probably a lot of little things that need to be manged toghether, from design, to functionalities, to constant marketing (social public relationship). Or… something I am just missing.

    I want to thank all of you who contributed to the topic. Keep it going: advices, ideas and thoughts about this are never enough.

    #72746
    dre1080
    Member

    got this thanks to Boones Gorges..

    insert this in your bp-custom.php to get the total count of activity posts of a user:

    function get_activity_count_by_user( $user_id ) {

    $args = array(

    ‘per_page’ => 10000,

    ‘show_hidden’ => true,

    ‘user_id’ => $user_id

    );

    if ( bp_has_activities( $args ) ) {

    global $activities_template;

    $count = $activities_template->total_activity_count;

    } else {

    $count = 0;

    }

    return $count;

    }

    then use this template tag in your theme <?php echo get_activity_count_by_user( $user_id ) ?>

    Chris Houghton
    Participant

    Hmm – strange. It mostly works. For some reason on some pages of the site something breaks:

    One page would be /groups/GROUPNAME/admin/ – I get the following error:

    Warning: Cannot modify header information – headers already sent by (output started at /home/smartauk/public_html/wp-content/plugins/bp-custom.php:3) in /home/smartauk/public_html/wp-includes/pluggable.php on line 868

    Any idea what might be causing this?

    Thanks

    3sixty
    Participant

    I’m at a convenient but vaguely unsatisfying stopping point in this saga.

    I ended up nuking all the lovely AJAX buttons on the /activity page in favor of HTML form buttons like this one

    <li style="float:left;" <?php if ($_POST["activity-tab"] == "friends") { echo 'class="selected"'; }?>">
    <form action="" method="post">
    <input name="activity-tab" value="friends" type="hidden" />
    <input style="border:0px" type="submit" value="My Friends" />
    </form>
    </li>

    Then later include()ing a custom stream and resetting the $_POST value to empty:

    ...
    <?php if( $_POST["activity-tab"] == "friends" ) { $_POST["activity-tab"] = ""; include( 'activity-loop-friends.php' ); } ?>
    ...

    The ideal solution here would be to somehow rewrite the cookie/display functions in global.js to “forget” the user’s last selected tab, but I was not smart enough to figure that one out…

    #72130
    snark
    Participant

    Thanks @boonebgorges — I got it partially working, but then got stuck. I put the function as is above in my functions.php file, and added this to member-header.php:

    <p><?php echo get_activity_count_by_user( bp_current_user_id() ) ?> Forum posts</p>

    This returned ALL posts for a user, including blog posts. Obviously, based on the text I added above, I only want to include Forum posts (should include both Topics and Replies). I looked at the page you suggested — https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/ — but I couldn’t figure out how or where to implement the filter: what syntax, and where does it go, in the function or in the call-out?

    Also: Using “bp_current_user_id() ” allows the post count to display on the user’s profile page, but how do I display the post count on a different page, such as /single/forum/topic.php, the Forum topics display page, where “bp_current_user_id()” is no longer applicable? On that page I’d like to put a user’s post count in parenthesis next to the user, like this: “John Doe (54 posts)”. That way when you scanned the list of Replies to a Topic, you would quickly see if a user was a long-term and/or hardcore user or a noob based on the number of posts they have contributed to the site, and I’m hoping that little ego boost will help nudge people into posting more frequently. Does that make sense?

    Thanks again for all your help.

    #72109
    Boone Gorges
    Keymaster

    See if this does what you want. Put the following function in [your-theme]/functions.php or [plugin-dir]/bp-custom.php:

    function get_activity_count_by_user( $user_id ) {
    $args = array(
    'per_page' => 10000,
    'show_hidden' => true,
    'user_id' => $user_id
    );

    if ( bp_has_activities( $args ) ) {
    global $activities_template;
    $count = $activities_template->total_activity_count;
    } else {
    $count = 0;
    }

    return $count;
    }

    Then call the function somewhere in a template, something like this:

    <?php echo get_activity_count_by_user( $user_id ) ?>

    making sure that $user_id is populated with the user_id of the person you are querying about.

    You could filter this in various ways. To get just one kind of content, or content from just one component of the site, try some of the filters here: https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/. To exclude things (like anything having to do with blogs) is a bit tricker; after calling the $activities_template global, loop through each member of $activities_template->activities and check to see whether it’s the kind of thing you want. If not, reduce $activities_template->total_activity_count by one.

    #72079
    rich! @ etiviti
    Participant

    you can pull in whatever from the activity stream loop and place it anywhere (surprised no one has created a “stream widget” )

    https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/

    #71863
    3sixty
    Participant

    My aforementioned Privacy Component will offer fine-grained filtering of any activity stream content–that is as long as the plugin developer made sure to register all the activity stream actions for their component. No need for fancy bp-custom.php functions, core hacks, and the like.

    wow… nice!! Another great plugin to melt our heads.

    #71768
    Mariusooms
    Participant

    It depends which page. You’ve got three instances or so, the directory activity page, the profile page and single group page.

    To always show your slider above all instance you could stick it inside the post-form.php with the following do_action:

    <?php do_action( 'bp_before_activity_post_form' ) ?>

    Otherwise, for the directory activity you’ve got the following do_action:

    <?php do_action( 'bp_before_directory_activity_content' ) ?>

    Or for profile views and single group views you have:

    <?php do_action( 'bp_before_member_activity_post_form' ) ?>

    <?php do_action( 'bp_before_group_activity_post_form' ) ?>

    That should give you all possible instances. Just code your slider in your bp-customs.php and use an add_action for your area of choice. Hope this helps.

    #71608
    Hugo Ashmore
    Participant

    It’s no problem of any kind you can do what ever you wish within reason, how you layout the data is your concern really, I’ve approached it from both adding another simple locate_template() to mirror the existing primary sidebar call creating a new file to hold whatever required and by creating a new custom Page along with a new file with a three column layout with two flanking columns containing new widget aware sidebars and the fluid centre column containing the activity loop, that page is simply set as the static index page and posts page set to a new blank Page.

    joescars
    Member

    I fixed it!! Woohoo!!! After much research I found similar issues with IIS 6 and the handling of redirects. I was lead to this page: http://ikailo.com/94/url-modrewrite-workaround-iis-60/ which has a fix for IIS6.. Well, with some tweaking and some magic I was able to come up with a fix for IIS7. it is as folows:

    1. Create a new file called 404-handler.php and put the code found here: http://ikailo.com/94/url-modrewrite-workaround-iis-60/ in it.

    2. You have to now configure your IIS7 installation (in my case IIS 7.5) to allow for custom redirects and to use this page for 404 errors. To do this you have to do the following:

    a) Open up IIS configuration manager (separate install for iis 7, included with iis 7.5).

    b) Browse to system.webServer/httpErrors

    c) unlock defaultPath

    d) unlock allowAbsolutePathsWhenDelegated

    e) set allowAbsolutePathsWhenDelegated to TRUE

    f) go to Error Pages

    g) right click on 404 and click edit

    h) select “Execute a url on this site” and set to /404-handler.php, hit ok

    i) right click 404 and select Edit Feature Settings

    j) set to custom error pages and path to /404-handler.php and path type to execute url

    I then had to reset IIS and IT WORKS!!! Woohoo!! I hope this helps others!!

    Joe

    http://www.561Media.com

    #71455
    3sixty
    Participant

    Jens, I think Rich is referring to this page, which has a link to download the BP skeleton component:

    https://codex.buddypress.org/developer-docs/creating-a-custom-buddypress-component/

    The “skeleton component” is (I think) designed to hook into the Activity Stream, so by looking at that code, you might find what you need?

    #71396
    rogscorp
    Participant

    It’s not working. I’m supposed to change default.css right?

    Do I have to delete some lines after adding that?

    I keep wondering why

    <?php if ( bp_get_activity_count() == bp_get_activity_per_page() ) : ?>

    <li class=”load-more”>

    <?php _e( ‘<img src=”something something’, ‘buddypress’ ) ?>   <span class=”ajax-loader”></span>

    <?php endif; ?>

    doesn’t work. The images shows up but the link doesn’t work. Puzzling.

    David Lewis
    Participant

    I leveraged the existing drop down method in BuddyPress and created the following code. Three files in my child theme. Modify for your needs.

    • header.php
    • _inc/css/custom.css
    • _inc/scripts/nav.js

    header.php

    <div id="wp-nav-bar">
    <ul id="nav" class="main-nav">
    <!-- Community Drop Down -->
    <li <?php if (
    bp_is_page( BP_ACTIVITY_SLUG ) ||
    bp_is_page( BP_MEMBERS_SLUG ) || bp_is_member() ||
    bp_is_page( BP_GROUPS_SLUG ) || bp_is_group() ||
    bp_is_page( BP_FORUMS_SLUG ) ||
    bp_is_page( BP_BLOGS_SLUG ) ) : ?> class="selected"<?php endif; ?>>
    <a href="<?php echo site_url() ?>/<?php echo BP_ACTIVITY_SLUG ?>/" title="<?php _e( 'Community', 'buddypress' ) ?>"><?php _e( 'Community', 'buddypress' ) ?></a>
    <ul>

    <?php if ( 'activity' != bp_dtheme_page_on_front() && bp_is_active( 'activity' ) ) : ?>
    <li<?php if ( bp_is_page( BP_ACTIVITY_SLUG ) ) : ?> class="selected"<?php endif; ?>>
    <a href="<?php echo site_url() ?>/<?php echo BP_ACTIVITY_SLUG ?>/" title="<?php _e( 'Activity', 'buddypress' ) ?>"><?php _e( 'Activity', 'buddypress' ) ?></a>
    </li>
    <?php endif; ?>

    <li<?php if ( bp_is_page( BP_MEMBERS_SLUG ) || bp_is_member() ) : ?> class="selected"<?php endif; ?>>
    <a href="<?php echo site_url() ?>/<?php echo BP_MEMBERS_SLUG ?>/" title="<?php _e( 'Members', 'buddypress' ) ?>"><?php _e( 'Members', 'buddypress' ) ?></a>
    </li>

    <?php if ( bp_is_active( 'groups' ) ) : ?>
    <li<?php if ( bp_is_page( BP_GROUPS_SLUG ) || bp_is_group() ) : ?> class="selected"<?php endif; ?>>
    <a href="<?php echo site_url() ?>/<?php echo BP_GROUPS_SLUG ?>/" title="<?php _e( 'Groups', 'buddypress' ) ?>"><?php _e( 'Groups', 'buddypress' ) ?></a>
    </li>

    <?php if ( bp_is_active( 'forums' ) && bp_is_active( 'groups' ) && ( function_exists( 'bp_forums_is_installed_correctly' ) && !(int) get_site_option( 'bp-disable-forum-directory' ) ) && bp_forums_is_installed_correctly() ) : ?>
    <li<?php if ( bp_is_page( BP_FORUMS_SLUG ) ) : ?> class="selected"<?php endif; ?>>
    <a href="<?php echo site_url() ?>/<?php echo BP_FORUMS_SLUG ?>/" title="<?php _e( 'Forums', 'buddypress' ) ?>"><?php _e( 'Forums', 'buddypress' ) ?></a>
    </li>
    <?php endif; ?>
    <?php endif; ?>

    <?php if ( bp_is_active( 'blogs' ) && bp_core_is_multisite() ) : ?>
    <li<?php if ( bp_is_page( BP_BLOGS_SLUG ) ) : ?> class="selected"<?php endif; ?>>
    <a href="<?php echo site_url() ?>/<?php echo BP_BLOGS_SLUG ?>/" title="<?php _e( 'Blogs', 'buddypress' ) ?>"><?php _e( 'Blogs', 'buddypress' ) ?></a>
    </li>
    <?php endif; ?>

    </ul>
    </li>
    <?php do_action( 'bp_nav_items' ); ?>
    </ul>
    </div>

    custom.css

    /* Subnav */
    ul#nav li ul {width: 30.7%;}
    ul#nav li ul li {float: none; width: 100%;}
    ul#nav li ul li a {background: none !important; padding: 5px 15px;}
    #wp-nav-bar ul li ul {position: absolute; left: -999em; z-index: 1;}
    #wp-nav-bar ul li ul li a span {display: none;}
    #wp-nav-bar ul li:hover ul,
    #wp-nav-bar ul li li:hover ul,
    #wp-nav-bar ul li.sfhover ul,
    #wp-nav-bar ul li ul li.sfhover ul {left: auto;}

    nav.js

    startList = function() {
    if (document.all&&document.getElementById) {
    navRoot = document.getElementById("nav");
    for (i=0; i<navRoot.childNodes.length; i++) {
    node = navRoot.childNodes;
    if (node.nodeName=="LI") {
    node.onmouseover=function() {
    this.className+=" sfhover";
    }
    node.onmouseout=function() {
    this.className=this.className.replace(" sfhover", "");
    }
    }
    }
    }
    }
    window.onload=startList;

    j(document).ready( function() {
    /* Admin Bar Javascript */
    j("#wp-nav-bar ul.main-nav li").mouseover( function() {
    j(this).addClass('sfhover');
    });

    j("#wp-nav-bar ul.main-nav li").mouseout( function() {
    j(this).removeClass('sfhover');
    });
    });

    #70904
    Hugo Ashmore
    Participant

    Running with a custom page used as a static front page complete with dynamic sidebars and posts page set to a blank page causes issues with missing admin bar and no sidebar. Setting front page to Activity stream and posts page left as the new blank page and issue is resolved. At the moment I can’t see where the problem lies especially as the site functions on a mirror version locally with custom front page.

    #70777
    3sixty
    Participant

    Please don’t use my customization of Boone’s code above. It seems to be causing a failure of the Activity Stream, at least for me. Have not figured out why yet.

    rich! @ etiviti
    Participant
    #70478
    itsalltech1
    Participant

    Creating a new page worked, but that only worked for the base of the page. Example: itsalltech.com/activity. However, if you go into a subpage of Activity, it will not work. How can I customize the CSS?

    #70388
    brianterry10
    Member

    I totally agree with this. It’s quite confusing. I think more than a rewording of the text is needed.

    Perhaps you can give people a series of simple steps they should go through to complete setting up their membership?

    Step 1: Activate your membership

    You give them instructions to visit their email account then click on the activation link in the email.

    When they click on the activation link they’re taken to the next step page…

    Step 2: Customize your avatar

    They do this then press the button to complete, then they’re taken to the final step…

    Step 3: They’re then directed to the activity page, at the top of this page could be a message to tell them their account is now active and they can start posting.

    This 3 step process gives people a clear path to follow taking them to the page where they can then see what’s going on and begin taking part.

    Each step page is nice and simple.

    What do you think?

    #70211

    In reply to: Search Activity

    Nahum
    Participant

    Something like this? I got it to work this way in a custom page template but not in the activity index. any help…on getting it to work in the activity dir where its bp_ajax_querystring( ‘activity’ ) and some other differences like the filter select.

    <?php

    $searchterm = $_POST['searchterm'];

    ?>

    <form NAME ="form1" METHOD ="post" ACTION = "<?php bloginfo('url'); ?>/search">

    <input TYPE = "TEXT" id="whats-new" Name="searchterm" value="" >

    <INPUT TYPE = "Submit" Name = "Submit1" VALUE = "Search Activity">

    </form>

    <?php if ( bp_has_activities('search_terms=' . $searchterm) ) : ?>

    #69964
    nado
    Member

    Can you please explain how to do this?

    I’d like to have a custom landing homepage (preferably just a wordpress “page”) with general information for non-logged-in users… then if the user is logged-in the homepage defaults to the activity stream (and becomes the “Home” menu link). i.e. when logged-in the custom landing page is unaccessible.

    #69624
    3sixty
    Participant

    Thank you! This is very powerful.

    I customized it to exclude blog comments and forum comments:

    if ( $activity->type == ‘new_blog_comment’ || $activity->type == ‘new_forum_post’) {

    #69562
    Bowe
    Participant

    First note: AWESOMEMILICIOUS!

    2nd note: Posting new blogposts works great! I can add new posts/photos and videos on the blog page and you get a nice growl like notification when you post something.. This is some serious next level stuff!

    The magazine theme layout looks cool, but I feel it’s bit overwhelming for certain users. especially on lower resolutions I feels a bit crammed, with the 3 column recent posts, etc. But I think that’s something personal, and you already said that you’re working on different layouts. I’ve tried to view a different layout in my blog, but could not find the settings. But my suggestion for a third theme would be:

    http://emberapp.com/bowromir/images/untitled-8/sizes/o

    This is quite simple but powerful enough.. I don’t know if you can add custom text boxes/widgets, but I think that would allow user to be creative with their blog. I forgot to offer a search/archive widget, but that would be handy as well.

    3rd note: To avoid confusion I would probably rename Status Update in the groupblog to something like News Update or Blog Update, so that it does not get mixed up with a status/activity update in BuddyPress. To be honest I think that the P2 status update does not add much to it, because a group admin can easily post a status update in the group itself. I understand it’s a added feature in the P2 theme, but I think BP handles it very well.. This is also something personal though :)

    4th: Maybe allow the user to switch to a full markup mode or tiny editor to have more control over longer posts. You already mentioned bringing everything to the front end, but maybe you can solve this by opening a lightbox with the full featured posting of the WP backed (and then remove the navigation in the admin, so the users only sees the posting area). This might be complicated and/ore messy, but it would make for a better user experience.

    I’m really really impressed with the current plugin so far and I can’t wait to try it on my site. Thanks so much for sharing this Marius and the rest of YWAM!

Viewing 25 results - 751 through 775 (of 838 total)
Skip to toolbar