Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'custom activity page'

Viewing 25 results - 1,176 through 1,200 (of 1,252 total)
  • Author
    Search Results
  • #65932
    hotdvl666
    Member

    Thank you! You guys have been of great help.

    @Philip: I have done what you’ve said, exactly, but it seems like I can only make the code work if I edit header.php.

    Here’s the code I used (I adapted the method you used in your first reply and second reply):

    <?php if (is_user_logged_in()) { ?>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>

    <head profile="http://gmpg.org/xfn/11">

    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

    <title><?php bp_page_title() ?></title>

    <?php do_action( 'bp_head' ) ?>

    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

    <?php if ( function_exists( 'bp_sitewide_activity_feed_link' ) ) : ?>

    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php _e('Site Wide Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_sitewide_activity_feed_link() ?>" />

    <?php endif; ?>

    <?php if ( function_exists( 'bp_member_activity_feed_link' ) && bp_is_member() ) : ?>

    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php bp_displayed_user_fullname() ?> | <?php _e( 'Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_member_activity_feed_link() ?>" />

    <?php endif; ?>

    <?php if ( function_exists( 'bp_group_activity_feed_link' ) && bp_is_group() ) : ?>

    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php bp_current_group_name() ?> | <?php _e( 'Group Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_group_activity_feed_link() ?>" />

    <?php endif; ?>

    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts RSS Feed', 'buddypress' ) ?>" href="<?php bloginfo('rss2_url'); ?>" />

    <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts Atom Feed', 'buddypress' ) ?>" href="<?php bloginfo('atom_url'); ?>" />

    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

    <?php wp_head(); ?>

    </head>

    <body <?php body_class() ?> id="bp-default">

    <?php do_action( 'bp_before_header' ) ?>

    <div id="header">

    <h1 id="logo">" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php bp_site_name() ?></h1>

    <ul id="nav">

    <li<?php if ( bp_is_front_page() ) : ?> class="selected"<?php endif; ?>>

    " title="<?php _e( 'Home', 'buddypress' ) ?>"><?php _e( 'Home', 'buddypress' ) ?>

    <?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; ?>>

    /<?php echo BP_ACTIVITY_SLUG ?>/" title="<?php _e( 'Activity', 'buddypress' ) ?>"><?php _e( 'Activity', 'buddypress' ) ?>

    <?php endif; ?>

    <li<?php if ( bp_is_page( BP_MEMBERS_SLUG ) || bp_is_member() ) : ?> class="selected"<?php endif; ?>>

    /<?php echo BP_MEMBERS_SLUG ?>/" title="<?php _e( 'Members', 'buddypress' ) ?>"><?php _e( 'Members', 'buddypress' ) ?>

    <?php if ( bp_is_active( 'groups' ) ) : ?>

    <li<?php if ( bp_is_page( BP_GROUPS_SLUG ) || bp_is_group() ) : ?> class="selected"<?php endif; ?>>

    /<?php echo BP_GROUPS_SLUG ?>/" title="<?php _e( 'Groups', 'buddypress' ) ?>"><?php _e( 'Groups', 'buddypress' ) ?>

    <?php if ( bp_is_active( 'forums' ) && bp_is_active( 'groups' ) && ( function_exists( 'bp_forums_is_installed_correctly' ) && !(int) bp_get_option( 'bp-disable-forum-directory' ) ) && bp_forums_is_installed_correctly() ) : ?>

    <li<?php if ( bp_is_page( BP_FORUMS_SLUG ) ) : ?> class="selected"<?php endif; ?>>

    /<?php echo BP_FORUMS_SLUG ?>/" title="<?php _e( 'Forums', 'buddypress' ) ?>"><?php _e( 'Forums', 'buddypress' ) ?>

    <?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; ?>>

    /<?php echo BP_BLOGS_SLUG ?>/" title="<?php _e( 'Blogs', 'buddypress' ) ?>"><?php _e( 'Blogs', 'buddypress' ) ?>

    <?php endif; ?>

    <!--<?php wp_list_pages( 'title_li=&depth=1&exclude=' . bp_dtheme_page_on_front() ); ?>-->

  • Back to The 7th Zone »
  • <?php do_action( 'bp_nav_items' ); ?>

    <!-- #nav -->

    <div id="search-bar">

    <div class="padder">

    <form action="<?php echo bp_search_form_action() ?>" method="post" id="search-form">

    <input type="text" id="search-terms" name="search-terms" value="" />

    <?php echo bp_search_form_type_select() ?>

    <input type="submit" name="search-submit" id="search-submit" value="<?php _e( 'Search', 'buddypress' ) ?>" />

    <?php wp_nonce_field( 'bp_search_form' ) ?>

    </form><!-- #search-form -->

    <?php do_action( 'bp_search_login_bar' ) ?>

    </div><!-- .padder -->

    </div><!-- #search-bar -->

    <?php do_action( 'bp_header' ) ?>

    </div><!-- #header -->

    <?php do_action( 'bp_after_header' ) ?>

    <?php do_action( 'bp_before_container' ) ?>

    <center>Network: The 7th Zone :: Home | Grand Theft Auto HQ | Hot Devil 666's HQ | Silent Fiona's HQ

    </center><p>

    <div id="container">

    <?php } else { ?>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>

    <head profile="http://gmpg.org/xfn/11">

    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

    <title><?php bp_page_title() ?></title>

    <?php do_action( 'bp_head' ) ?>

    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

    <?php if ( function_exists( 'bp_sitewide_activity_feed_link' ) ) : ?>

    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php _e('Site Wide Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_sitewide_activity_feed_link() ?>" />

    <?php endif; ?>

    <?php if ( function_exists( 'bp_member_activity_feed_link' ) && bp_is_member() ) : ?>

    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php bp_displayed_user_fullname() ?> | <?php _e( 'Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_member_activity_feed_link() ?>" />

    <?php endif; ?>

    <?php if ( function_exists( 'bp_group_activity_feed_link' ) && bp_is_group() ) : ?>

    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> | <?php bp_current_group_name() ?> | <?php _e( 'Group Activity RSS Feed', 'buddypress' ) ?>" href="<?php bp_group_activity_feed_link() ?>" />

    <?php endif; ?>

    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts RSS Feed', 'buddypress' ) ?>" href="<?php bloginfo('rss2_url'); ?>" />

    <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> <?php _e( 'Blog Posts Atom Feed', 'buddypress' ) ?>" href="<?php bloginfo('atom_url'); ?>" />

    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

    <?php wp_head(); ?>

    </head>

    <body <?php body_class() ?> id="bp-default">

    <?php do_action( 'bp_before_header' ) ?>

    <div id="header">

    <h1 id="logo">" title="<?php _e( 'Home', 'buddypress' ) ?>"><?php bp_site_name() ?></h1>

    <ul id="nav">

    <li<?php if ( bp_is_front_page() ) : ?> class="selected"<?php endif; ?>>

    " title="<?php _e( 'Home', 'buddypress' ) ?>"><?php _e( 'Home', 'buddypress' ) ?>

    <?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; ?>>

    /<?php echo BP_ACTIVITY_SLUG ?>/" title="<?php _e( 'Activity', 'buddypress' ) ?>"><?php _e( 'Activity', 'buddypress' ) ?>

    <?php endif; ?>

    <li<?php if ( bp_is_page( BP_MEMBERS_SLUG ) || bp_is_member() ) : ?> class="selected"<?php endif; ?>>

    /<?php echo BP_MEMBERS_SLUG ?>/" title="<?php _e( 'Members', 'buddypress' ) ?>"><?php _e( 'Members', 'buddypress' ) ?>

    <?php if ( bp_is_active( 'groups' ) ) : ?>

    <li<?php if ( bp_is_page( BP_GROUPS_SLUG ) || bp_is_group() ) : ?> class="selected"<?php endif; ?>>

    /<?php echo BP_GROUPS_SLUG ?>/" title="<?php _e( 'Groups', 'buddypress' ) ?>"><?php _e( 'Groups', 'buddypress' ) ?>

    <?php if ( bp_is_active( 'forums' ) && bp_is_active( 'groups' ) && ( function_exists( 'bp_forums_is_installed_correctly' ) && !(int) bp_get_option( 'bp-disable-forum-directory' ) ) && bp_forums_is_installed_correctly() ) : ?>

    <li<?php if ( bp_is_page( BP_FORUMS_SLUG ) ) : ?> class="selected"<?php endif; ?>>

    /<?php echo BP_FORUMS_SLUG ?>/" title="<?php _e( 'Forums', 'buddypress' ) ?>"><?php _e( 'Forums', 'buddypress' ) ?>

    <?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; ?>>

    /<?php echo BP_BLOGS_SLUG ?>/" title="<?php _e( 'Blogs', 'buddypress' ) ?>"><?php _e( 'Blogs', 'buddypress' ) ?>

    <?php endif; ?>

    <!--<?php wp_list_pages( 'title_li=&depth=1&exclude=' . bp_dtheme_page_on_front() ); ?>-->

  • Back to The 7th Zone »
  • <?php do_action( 'bp_nav_items' ); ?>

    <!-- #nav -->

    <div id="search-bar">

    <div class="padder">

    <form action="<?php echo bp_search_form_action() ?>" method="post" id="search-form">

    <input type="text" id="search-terms" name="search-terms" value="" />

    <?php echo bp_search_form_type_select() ?>

    <input type="submit" name="search-submit" id="search-submit" value="<?php _e( 'Search', 'buddypress' ) ?>" />

    <?php wp_nonce_field( 'bp_search_form' ) ?>

    </form><!-- #search-form -->

    <?php do_action( 'bp_search_login_bar' ) ?>

    </div><!-- .padder -->

    </div><!-- #search-bar -->

    <?php do_action( 'bp_header' ) ?>

    </div><!-- #header -->

    <center>Network: The 7th Zone :: Home | Grand Theft Auto HQ | Hot Devil 666's HQ | Silent Fiona's HQ

    </center><p>

    <div id="container">

    <div id="content">

    <div class="padder">

    <div class="page" id="blog-page">

    <h2 class="pagetitle">Welcome to the party!</h2>

    <div class="post" id="post-68">

    <div class="entry">

    <p>Social networking at The 7th Zone is like partying! …and more! Joining in the fun at The 7th Zone is nothing like you’ve experienced on Facebook, MySpace, or any major social networking sites! Akin to a crazed, wild college party, The 7th Zone is where fun-loving youths, as well as video game enthusiasts and tech geeks can hang out!</p>

    <p>Staying up late to snag that cool-sounding medal in Halo 3, or piloting that Annihilator helicopter in Grand Theft Auto IV’s Free Mode? Fancy that VAIO Z laptop, or are you going nuts over a MacBook Pro refresh? Think the iPad is gimmicky and expected so much more? Prefer metal over the Jonas brothers, and classic Hip Hop over auto-tuned sh*t? This site is for you, the cool kid!</p>

    <p>Right here at The 7th Zone Community, you can create your own free blogs. With 500 MB of upload space, a feature-packed plugins set, and 117 beautiful themes, just how much more can you get for $0? More details here.</p>

    <p>Join us now. Registration is as easy as a few clicks! Hit the jump below to register yourself!</p>

    <div align="right">

    <h2>Register Me! »</h2>

    </div>

    <p>Edit this entry.</p>

    </div>

    </div>

    </div><!-- .page -->

    <?php do_action( 'bp_after_blog_page' ) ?>

    </div><!-- .padder -->

    </div><!-- #content -->

    <?php locate_template( array( 'sidebar.php' ), true ) ?>

    <?php get_footer(); ?>

    <?php } ?>

    For some reason, my site still displays whatever page I’m on for non-logged in users, and it does so after the footer for the else case. I have no clue what I did wrong. I have no experience in PHP code, but it looks fine to me. Is there an error I made somewhere?

    It also seems that if I set the activity stream to be the home page, the custom home page title that I’ve set in the All-in-One SEO pack doesn’t seem to take effect too. If I want to show logged in users the activity stream as the home page, with my custom home page title, how do I go about doing that?

    Thanks.

#65919
Mariusooms
Participant

@Avi M I have not tested it with sub-domains sadly. I will see if I can get a test environment for that as well. If anyone else can chime in on subdomains issues, feel free.

@Mike Thanks…let me know what could be useful to add. Group activity streams will come, but I’m not sure how exactly yet. Therefore I included a custom groupblog activity loop on the group blog page.

#9313
Tosh
Participant

When I’m on the activity page (http://mysite.net/activity) or any page that has “activity”.

The filters like the following just change all the activity to be blank, instead of “filtering” it.

* All Members (391)

* My Friends (1)

* My Groups (2)

* @testuser Mentions

The dropdown filter box does not work either. Just changes all the activity to blank. Everything else in the buddypress works fine.

Just a question, on the black drop down menu at the very top. How would I change it so when they user click on Activity it goes to the global activity page instead of there own activity page. Groups to, when they click groups it goes to there own groups page instead of the global groups page.

For example:

http://test.mysite.net/groups/ – this

http://test.mysite.net/members/username/groups/ – not this

http://test.mysite.net/activity/ – this

http://test.mysite.net/members/username/activity/ – not this

Sorry make any sense? lol

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

2. Did you install WP/MU as a directory or subdomain install? http://www.mysite.com

3. If a directory install, is it in root or in a subdirectory? root

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

5. Was WP/MU functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting. Yes

6. Which version of BP are you running? Version 1.2.1

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

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

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

10. Have you modified the core files in any way? Yes, to fix the avatar upload issue:

bp-core-avatars.php line 389

Replace:

if ( !$path = get_option( ‘upload_path’ ) )

$path = WP_CONTENT_DIR . ‘/uploads’;

With:

if ( !$path = get_option( ‘upload_path’ ) )

$path = WP_CONTENT_DIR . ‘/uploads’;

else

$path = ABSPATH . $path;

…and report back?

http://trac.buddypress.org/ticket/1970

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

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

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

14. Which company provides your hosting? Hostgator

#65814
nickrita
Participant

Similar question here. I want to see New Blog posts as default.

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

but it doesn’t help, becaus there is not one example for the complete code, only the snippets.

#65237
sawyerh
Participant

Hi Guys,

Still haven’t been able to find a solution to this problem and would love to figure this out.

Here’s an update on the what’s working and what is not:

The initial problem was the username wasn’t being displayed at the end of the member’s links which was causing the links to redirect to the homepage. This problem was sitewide EXCEPT when on the forum topics (weird). By adding define( 'BP_ENABLE_USERNAME_COMPATIBILITY_MODE', true ); to /wp-content/plugins/bp-custom.php, I was able to get the username to display at the end of the member’s links inside the Member’s list, but by doing so, it is now causing the problem to occur on member’s links on forum topics. The problem is also still occurring in the activity streams.

Any help?

Thanks!

#64767
Hugo Ashmore
Participant

Oh dear not the response I was hoping for :-)

So it is an issue and frankly a horrendous one, blogs are offered to users as fully functioning ones.

Sadly it’s not necessarily a straightforward matter to upgrade, at the moment I would have to run the backwards-compatibility plugin as I have got the community up and running based on a child theme overriding bp-sn file where necessary, in tests on local dev install upgrade to 1.2 I had to do a fair bit of work to get the existing theme running again and to rework styles to accommodate the new activity stream layout.

Thanks for the quick response though DJPaul I have to now figure how we proceed as too many aspects of the 1.x are demonstrating problems and I’m beginning to wish we had been able to wait for 1.2 to be released.

One point of interest though on another of the many test installs I keep running and one that I have kept pretty close to the production site in plugins and customizations this issue doesn’t arise and I can create pages quite happily so this can’t simply be a inherent BP issue but triggered by some action or plugin but don’t see what at this stage.

#64719
@mercime
Participant

@Michaelmarian, For the Members subsection, easiest way is as Boone Gorges mentioned using body classes: e.g. Member’s Profile page use selector body.profile; Member’s Blog Page use selector body.my-blogs; Member’s Message Page use selector body.messages; etc.

However, if you still want to use conditional statements see

https://codex.buddypress.org/developer-docs/conditional-template-tags/

Thing is, locate_template array did not work for me in all the different incarnations of custom child themes I made before so this method might help you too

<?php
if (bp_is_profile_component()) {
include ('mystuff1.php');
}
elseif (bp_is_activity_component()) {
include ('mystuff2.php');
}
elseif (bp_is_friends_component()) {
include ('mystuff3.php');
}
else {
include ('mystuff4.php');
}
?>

– For more specificity you could probably add – && bp_is_page(‘members’) – or whatever slug you used

– Add wp_reset_query(); right after the opening <?php if this query is placed latter part of the page or add the reset just before ?> if placed near top of the page.

#64569

In reply to: Indexation of content

podictionary
Participant

Index and search are important related issues. A few points:

1) Database content search throughout needs serious thinking. How to include (and how to distinguish in results) blogposts, comments, activity updates, forums…

2) Indexing for search engines needs thought. What serious website doesn’t want to show up in Google?

3) A Google custom search is an option but shows up the problems of appearing in Google results; namely that scrolling activity lists result in indexes pointing to pages that no longer hold that content.

@nexia I see that at wordpress.com there is “search wordpress.com blogs” so MU can and does somehow allow for this.

#63961
/* Bounce user to their profile when logging in */
function custom_login_redirect_to_profile( $url, $isset, $user ) {
return bp_core_get_user_domain( $user->ID );
}
add_filter( 'login_redirect', 'custom_login_redirect_to_profile', 11, 3 );

You could also make a child theme of your own, and use home.php as members/single/activity.php. Or instead of using home.php, make a custom page template and assign that page as your front page.

#63924
lhnz
Participant

<?php bp_has_activities(‘per_page=25’);

while ( bp_activities() ) : bp_the_activity(); ?>

<div><?php bp_activity_content() ?></div>

<?php endwhile; ?>

This worked. Frankly the lack of documentation and my lack of time is making this a nightmare to code… :/

#8942
lhnz
Participant

<?php while ( bp_activities() ) : bp_the_activity(); ?>

<?php bp_activity_action() ?>

<?php endwhile; ?>

The above code produces nothing despite having site-wide activity elsewhere… I’ve placed this code inside login.php near the bottom of the page. login.php is a custom page template that is used when you access the page http://localhost/login/.

As soon as the code above is run it appears to crash PHP, or at least it causes the footer.php not to be outputted.

What have I done wrong? Is there a WP_Query object that I need to access as there is with WordPress? I’m confused.

For the record, I am using the 1.1.3 version of Buddypress as well as WordPress MU 2.8.6. I do not want to upgrade since I have made substantial changes to the theme, and am scared of breaking everything…

#63815
gregfielding
Participant

Great idea…think of the customization options that this could bring…

Logged in users could see activity from their friends, groups, blogs they “follow”, and even sitewide posts by certain category or tag.

Maybe there would be defaults where certain “top news” posts are displayed to everyone. (which would be incredible for my real estate site)

It could be like an igoogle page…

#8871
lhnz
Participant

I have a few issues. Most of these are due to currently not being able to tell whether I’m editing the correct php files… There must be a way of debugging this considering I do not have direct access to the web server other than by FTP?

1. On my website, I need a login page that you need to login via before you can visit the rest of the site. I don’t want to use wp-login since I need other html to be on this page… I also need a blog that displays recent blog entries, and a Network Home which shows site wide activity (also, a couple of other pages, but these there are no issues with)

Depending on whether in the settings page I pick the posts page as the homepage or I make the homepage a static page (Login) and pick a Blogs page to be the recent posts page, I get different issues. With the former Network Home seems to be displaying for the root page (index.php?) of the site rather than the Login, but everything else is correct… With the latter the root page (index.php?) of the site displays the Login, but the /blog/ section of the site does not display the blog. Rather than showing recent posts, it shows a list of ‘pages’.

So yeah, perhaps this means the template files that I’ve been using do not have the correct html inside them? However, it is not obvious how a web address points to a particular template. How do I set this up? How do I know I’m editing the correct files?

2. My other problem is that I can’t seem to override the core buddypress functionality. I placed code inside /plugins/bp-custom.php

That looked something like:

<?php

function my_alter_bp_adminbar(){

remove_action(‘bp_adminbar_menus’, ‘bp_adminbar_account_menu’, 4);

}

add_action(‘wp_footer’,’my_alter_bp_adminbar’,1);

?>

I would have expected this to remove the Account drop-down, but yet nothing happens. (In the long-run I want to replace this, but was just testing this…)

It’s driving me crazy… :/

<b>edit:</b> Hopefully I’m explaining this okay. I can answer any questions you have if you make them. C:

#63035
danbpfr
Participant

1 – manually, you have to rearrange the list order in header.php

how to do that ?

if you use 1.2 inspire you with this:

https://buddypress.org/forums/topic/bp-12-how-to-add-a-custom-tab-on-the-home-activity-section

3 – yes, and on each individual blog page too or by typing “wp-admin” at the end of your url: hxxp://exemple.com/wp-admin

#62835
_tomr
Participant

I did it! Jesus Christ, took me more than 4 hours to find that one line. It’s in activity-loop.php. Now, that was the easy part.

<?php if ( bp_has_activities( 'action=activity_update' ) ) : ?>

that’s how it’s supposed to look if you want to hard code the filter to one specific value. The hard part was finding out the proper argument for the bp_has_activities function. Well, now I got it. But seriously, why are you making it so hard for users to modify?

Anyway, thats how it looked before editing:

<?php if ( bp_has_activities( bp_dtheme_ajax_querystring( 'activity' ) ) ) : ?>

I tried using the docs for buddypress, specifically this page:

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

But is it outdated, or is it just the wrong page for what I was looking for?

#8703
peterverkooijen
Participant

Site Wide Activity RSS Feed produces ‘Page not found’.

I’ve seen this problem reported over a year ago. I use Buddypress 1.1.3 on WPMU 2.9.1.1, but with a heavily customized theme.

Is this a known problem? Where should I look to fix it?

It’s probably something silly…

#62470
Mike Pratt
Participant

so here’s a tweaked version and the latest in my custom tab efforts, fyi:

// passes MyClass scope into ajax query for custom Class Year activity filter
function bn_ajax_querystring_activity_filter( $query_string, $object, $filter, $scope, $page, $search_terms, $extras ) {

global $bp;

if ( !is_user_logged_in() || $object != 'activity' )
return $query_string;

$args = array();
parse_str( $query_string, $args );
$args['object'] = $bp->groups->id;

switch ($scope){

case 'myclass':

$slug = "usma-". bp_get_profile_field_data( array('field'=> 'Class Year', 'user_id' => $bp->loggedin_user->id));
$groupid = BP_Groups_Group::get_id_from_slug($slug);
$args['primary_id'] = $groupid;
break;

case 'mycadetco':

$slug = bp_get_profile_field_data( array('field'=> 'Cadet Company', 'user_id' => $bp->loggedin_user->id));
$groupid = BP_Groups_Group::get_id_from_slug($slug);
$args['primary_id'] = $groupid;
break;

case 'mybranch':

$slug = sanitize_title(bp_get_profile_field_data( array('field'=> 'Branch', 'user_id' => $bp->loggedin_user->id)));
$groupid = BP_Groups_Group::get_id_from_slug($slug);
$args['primary_id'] = $groupid;
break;

default:

return $query_string;
}

return http_build_query( $args );
}
add_filter( 'bp_dtheme_ajax_querystring', 'bn_ajax_querystring_activity_filter', 1, 7 );

and the action:

function bn_add_activity_tab() {

if ( !is_user_logged_in() )
return false;
?>
<!-- default item-list-tabs activity-type-tabs

<ul> -->

</div><!-- default item-list-tabs activity-type-tabs -->

<div class="item-list-tabs activity-type-tabs" id="bn-tabs">

</ul>
<ul>
<li id="activity-myclass">
<a>" title="<?php _e( 'Activity for my Class Year', 'buddypress' ) ?>">
<?php printf( __( 'My Class', 'buddypress' ) ) ?>
</a>

<li id="activity-mycadetco">
<a>" title="<?php _e( 'Activity for my Cadet Company', 'buddypress' ) ?>">
<?php printf( __( 'My Cadet Company', 'buddypress' ) ) ?>
</a>

<li id="activity-mybranch">
<a>" title="<?php _e( 'Activity for my Army Branch', 'buddypress' ) ?>">
<?php printf( __( 'My Branch', 'buddypress' ) ) ?>
</a>

<?php
}
add_action( 'bp_activity_type_tabs', 'bn_add_activity_tab', 1, 2 );

A few things to note:

1. use the WP function sanitize_title() if you have a field that might return more than one word e.g. the group ‘Military Police’ returns ‘military police’ but transforms into ‘military-police’ (a pretty slug0 which gives you a correct slug now.

2. I added addl markup to force my new tabs into their own element.

3. Don’t be shy to make suggestions and keep improving this technique. I think many will use it to customize their installs.

#62376
MrMaz
Participant

UPDATE:

The filtering has been consolidated and drastically improved as of revision 2580. Here is an updated example:

function my_activity_filter( $query_string, $object, $filter, $scope, $page, $search_terms, $extras ) {
global $bp;

if ( $object != 'activity' || $scope != 'myclass' || !is_user_logged_in() )
return $query_string;

$args = array();
parse_str( $query_string, $args );
$args['object'] = $bp->groups->id;
$args['primary_id'] = function_to_get_group_id_for_logged_in_user();

return http_build_query( $args );
}
add_filter( 'bp_dtheme_ajax_querystring', 'my_activity_filter', 1, 7 );

As you can see a TON more information about the request is being passed to the filtering, so you can more easily determine what you need to do to handle it properly.

#8568
pcwriter
Participant

Hi all!

Just updated WPMU & installed Buddypress 1.2beta and, so far, everything works fine! Can even delete items from the activity stream (which was something of a bother in BP1.1.3).

Now to build a child theme, figure out how to customize the home page, the header, the footer, slugs… oh my, the fun’s just beginning!

#61842
lautering
Participant

Just to add more detail: this is what renders the activity stream on the homepage. Commenting out the small amount of code in home.php doesn’t seem to do anything. Commenting this out in functions.php seems to break things.

Is there a way to either eliminate the option to set what appears on your homepage, thus giving you complete control over what appears there (and maybe building/adding a special “Activity” page to replace it), or to amend this function in some way that let’s you call modify how it renders?

function bp_dtheme_show_on_frontpage() {
$settings = get_option( 'bp_dtheme_options' );

if ( empty( $settings['show_on_frontpage'] ) || 'blog' == $settings['show_on_frontpage'] )
return 'blog';

return 'activity';
}

I completely understand the easy-to-use, out-of-the-box logic behind the setting for what appears on your homepage, and it’s certainly Facebook-like, but I’m using the default template to build out a full site that needs to have a unique hompeage with other content elements. The activity stream is a small part of it, and I’d like to have it there in some way, but certainly not as prominent as it is now.

This is the code that’s in home.php (all of it):

<?php
/***
* Should we show the blog on the front page, or the activity stream?
* This is set in wp-admin > Appearance > Theme Options
*/

if ( 'blog' == bp_dtheme_show_on_frontpage() )
locate_template( array( 'index.php' ), true );
else
locate_template( array( 'activity/index.php' ), true );
?>

The comment obviously notes the intention of activity stream OR blog, but what about ‘neither’? I’m going to work on this later, but one idea I have is to try to add a third option of “custom”, which would pull something like “custom.php”. Sound right? Something else?

Thanks in advance!

#61726
bbrian017
Participant

I got the site running the latest trunk version.

I lost out in 80 USD it seems for the custom template (maybe)

I’m having issues with the forums loading now. It’s saying page not found.

See here, https://buddypress.org/forums/topic/forums-not-showing-up-after-trunk-update

#8498
bbrian017
Participant

I had some issues over the last few days. Site wide activity issues regarding time stamps and then blank white screen from deactivating buddy press. I had to upgrade to the newest trunk.

I finally got the site up and running again but when I go to install my theme it’s missing much of my data such as the following,

Forums are not showing up.

Groups seem to be broken and not working. (not showing up)

Members link is not working or showing members returns back to the home page.

Blog are not showing anything either.

Site Wide Activity not an option for widgets

Any suggestions?

I have tried with both my custom theme and buddy press original.

This is my error log if needed!

undefined function bp_core_add_nav_item() in /home/bloggingwire/public_html/wp-content/plugins/twire/bp-twire.php on line 473

[26-Jan-2010 00:44:56] PHP Fatal error: Call to undefined function bp_core_add_nav_item() in /home/bloggingwire/public_html/wp-content/plugins/twire/bp-twire.php on line 473

[26-Jan-2010 00:44:58] PHP Fatal error: Call to undefined function bp_core_add_nav_item() in /home/bloggingwire/public_html/wp-content/plugins/twire/bp-twire.php on line 473

[26-Jan-2010 00:45:05] PHP Warning: Invalid argument supplied for foreach() in /home/bloggingwire/public_html/wp-content/plugins/google-analyticator/google-analytics-stats-widget.php on line 105

[26-Jan-2010 00:45:05] PHP Warning: Invalid argument supplied for foreach() in /home/bloggingwire/public_html/wp-content/plugins/google-analyticator/google-analytics-stats-widget.php on line 105

[26-Jan-2010 00:45:06] PHP Fatal error: Call to undefined function bp_core_add_nav_item() in /home/bloggingwire/public_html/wp-content/plugins/twire/bp-twire.php on line 473

[26-Jan-2010 00:45:08] PHP Fatal error: Call to undefined function bp_core_add_nav_item() in /home/bloggingwire/public_html/wp-content/plugins/twire/bp-twire.php on line 473

[26-Jan-2010 00:45:29] PHP Fatal error: Call to undefined function bp_core_add_nav_item() in /home/bloggingwire/public_html/wp-content/plugins/twire/bp-twire.php on line 473

[26-Jan-2010 00:45:31] PHP Fatal error: Call to undefined function bp_core_add_nav_item() in /home/bloggingwire/public_html/wp-content/plugins/twire/bp-twire.php on line 473

[26-Jan-2010 00:45:39] PHP Warning: Invalid argument supplied for foreach() in /home/bloggingwire/public_html/wp-content/plugins/google-analyticator/google-analytics-stats-widget.php on line 105

[26-Jan-2010 00:45:39] PHP Warning: Invalid argument supplied for foreach() in /home/bloggingwire/public_html/wp-content/plugins/google-analyticator/google-analytics-stats-widget.php on line 105

[26-Jan-2010 00:45:40] PHP Fatal error: Call to undefined function bp_core_add_nav_item() in /home/bloggingwire/public_html/wp-content/plugins/twire/bp-twire.php on line 473

[26-Jan-2010 00:45:43] PHP Fatal error: Call to undefined function bp_core_add_nav_item() in /home/bloggingwire/public_html/wp-content/plugins/twire/bp-twire.php on line 473

[26-Jan-2010 00:45:55] PHP Fatal error: Call to undefined function bp_core_add_nav_item() in /home/bloggingwire/public_html/wp-content/plugins/twire/bp-twire.php on line 473

[26-Jan-2010 00:45:57] PHP Fatal error: Call to undefined function bp_core_add_nav_item() in /home/bloggingwire/public_html/wp-content/plugins/twire/bp-twire.php on line 473

[26-Jan-2010 00:46:02] PHP Fatal error: Call to undefined function bp_core_add_nav_item() in /home/bloggingwire/public_html/wp-content/plugins/twire/bp-twire.php on line 473

[26-Jan-2010 00:46:02] PHP Fatal error: Call to undefined function bp_core_add_nav_item() in /home/bloggingwire/public_html/wp-content/plugins/twire/bp-twire.php on line 473

[26-Jan-2010 00:46:03] PHP Fatal error: Call to undefined function bp_core_add_nav_item() in /home/bloggingwire/public_html/wp-content/plugins/twire/bp-twire.php on line 473

[26-Jan-2010 00:46:18] PHP Fatal error: Call to undefined function bp_core_new_subnav_item() in /home/bloggingwire/public_html/wp-content/themes/bp-social/includes/bp-functions.php on line 31

[26-Jan-2010 00:46:21] PHP Fatal error: Call to undefined function bp_core_new_subnav_item() in /home/bloggingwire/public_html/wp-content/themes/bp-social/includes/bp-functions.php on line 31

[26-Jan-2010 00:46:33] PHP Fatal error: Call to undefined function bp_core_new_subnav_item() in /home/bloggingwire/public_html/wp-content/themes/bp-social/includes/bp-functions.php on line 31

[26-Jan-2010 00:46:43] PHP Fatal error: Call to undefined function bp_core_new_subnav_item() in /home/bloggingwire/public_html/wp-content/themes/bp-social/includes/bp-functions.php on line 31

[26-Jan-2010 00:46:43] PHP Fatal error: Call to undefined function bp_core_new_subnav_item() in /home/bloggingwire/public_html/wp-content/themes/bp-social/includes/bp-functions.php on line 31

[26-Jan-2010 00:46:46] PHP Fatal error: Call to undefined function bp_core_new_subnav_item() in /home/bloggingwire/public_html/wp-content/themes/bp-social/includes/bp-functions.php on line 31

[26-Jan-2010 00:46:49] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/bloggingwire/public_html/wp-admin/admin-header.php:84) in /home/bloggingwire/public_html/wp-includes/pluggable.php on line 868

[26-Jan-2010 00:46:49] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/bloggingwire/public_html/wp-admin/admin-header.php:84) in /home/bloggingwire/public_html/wp-includes/pluggable.php on line 868

[26-Jan-2010 00:46:52] PHP Fatal error: Call to undefined function bp_core_new_subnav_item() in /home/bloggingwire/public_html/wp-content/themes/bp-social/includes/bp-functions.php on line 31

[26-Jan-2010 00:47:12] PHP Fatal error: Call to undefined function bp_core_new_subnav_item() in /home/bloggingwire/public_html/wp-content/themes/bp-social/includes/bp-functions.php on line 31

[26-Jan-2010 00:47:22] PHP Fatal error: Call to undefined function bp_core_new_subnav_item() in /home/bloggingwire/public_html/wp-content/themes/bp-social/includes/bp-functions.php on line 31

[26-Jan-2010 00:47:29] PHP Fatal error: Call to undefined function bp_core_new_subnav_item() in /home/bloggingwire/public_html/wp-content/themes/bp-social/includes/bp-functions.php on line 31

[26-Jan-2010 00:54:46] DELETE FROM wp_bp_activity WHERE item_id = ’15’ AND secondary_item_id = ’69’ AND component = ‘blogs’ AND type = ‘new_blog_comment’

[26-Jan-2010 00:54:46] DELETE FROM wp_bp_activity WHERE item_id = ’15’ AND secondary_item_id = ’69’ AND component = ‘blogs’ AND type = ‘new_blog_comment’

[26-Jan-2010 00:54:46] DELETE FROM wp_bp_activity WHERE item_id = ’15’ AND secondary_item_id = ’75’ AND component = ‘blogs’ AND type = ‘new_blog_comment’

[26-Jan-2010 00:54:46] DELETE FROM wp_bp_activity WHERE item_id = ’15’ AND secondary_item_id = ’75’ AND component = ‘blogs’ AND type = ‘new_blog_comment’

[26-Jan-2010 00:55:07] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/bloggingwire/public_html/wp-content/plugins/vipers-video-quicktags/vipers-video-quicktags.php:2662) in /home/bloggingwire/public_html/wp-includes/pluggable.php on line 868

[26-Jan-2010 00:58:27] PHP Fatal error: Call to undefined function bp_group_pagination_count() in /home/bloggingwire/public_html/wp-content/themes/bp-social/groups/group-loop.php on line 10

[26-Jan-2010 01:00:43] PHP Fatal error: Call to undefined function bp_has_site_members() in /home/bloggingwire/public_html/wp-content/themes/bp-sn-parent/directories/members/members-loop.php on line 1

[26-Jan-2010 01:00:52] PHP Fatal error: Call to undefined function bp_group_has_news() in /home/bloggingwire/public_html/wp-content/themes/bp-social/groups/single/home.php on line 52

[26-Jan-2010 01:01:13] PHP Fatal error: Call to undefined function bp_has_site_members() in /home/bloggingwire/public_html/wp-content/themes/bp-sn-parent/directories/members/members-loop.php on line 1

[26-Jan-2010 01:01:20] PHP Fatal error: Call to undefined function bp_has_site_groups() in /home/bloggingwire/public_html/wp-content/themes/bp-sn-parent/directories/forums/index.php on line 11

[26-Jan-2010 01:09:20] PHP Fatal error: Call to undefined function bp_group_pagination_count() in /home/bloggingwire/public_html/wp-content/themes/bp-social/groups/group-loop.php on line 10

[26-Jan-2010 01:13:06] PHP Fatal error: Call to undefined function bp_blog_title() in /home/bloggingwire/public_html/wp-content/themes/bp-sn-parent/blogs/my-blogs.php on line 21

[26-Jan-2010 01:13:26] PHP Fatal error: Call to undefined function bp_has_site_members() in /home/bloggingwire/public_html/wp-content/themes/bp-sn-parent/directories/members/members-loop.php on line 1

[26-Jan-2010 01:13:28] PHP Fatal error: Call to undefined function bp_has_site_groups() in /home/bloggingwire/public_html/wp-content/themes/bp-sn-parent/directories/groups/groups-loop.php on line 1

[26-Jan-2010 01:13:33] PHP Fatal error: Call to undefined function bp_has_site_members() in /home/bloggingwire/public_html/wp-content/themes/bp-sn-parent/directories/members/members-loop.php on line 1

[26-Jan-2010 01:13:38] PHP Fatal error: Call to undefined function bp_has_site_groups() in /home/bloggingwire/public_html/wp-content/themes/bp-sn-parent/directories/forums/index.php on line 11

[26-Jan-2010 01:13:43] PHP Fatal error: Call to undefined function bp_has_site_blogs() in /home/bloggingwire/public_html/wp-content/themes/bp-sn-parent/directories/blogs/blogs-loop.php on line 1

[26-Jan-2010 01:14:45] PHP Fatal error: Call to undefined function bp_group_pagination_count() in /home/bloggingwire/public_html/wp-content/themes/bp-sn-parent/groups/group-loop.php on line 10

[26-Jan-2010 01:19:05] PHP Fatal error: Call to undefined function bp_has_friendships() in /home/bloggingwire/public_html/wp-content/themes/bp-sn-parent/friends/friends-loop.php on line 5

[26-Jan-2010 01:19:23] PHP Fatal error: Call to undefined function bp_has_site_members() in /home/bloggingwire/public_html/wp-content/themes/bp-sn-parent/directories/members/members-loop.php on line 1

[26-Jan-2010 01:19:28] PHP Fatal error: Call to undefined function bp_has_site_groups() in /home/bloggingwire/public_html/wp-content/themes/bp-sn-parent/directories/groups/groups-loop.php on line 1

[26-Jan-2010 01:19:30] PHP Fatal error: Call to undefined function bp_has_site_groups() in /home/bloggingwire/public_html/wp-content/themes/bp-sn-parent/directories/forums/index.php on line 11

[26-Jan-2010 01:19:37] PHP Fatal error: Call to undefined function bp_has_site_blogs() in /home/bloggingwire/public_html/wp-content/themes/bp-sn-parent/directories/blogs/blogs-loop.php on line 1

#61384
Dainismichel
Participant

OK, went in and selected the same theme for

http://community.urine-therapy.org/testing2/ that

http://community.urine-therapy.org/testing3/ uses,

but the changes I made to sidebar.php have affected testing2 and not testing3. I’m actually pretty sure I am using the same theme on both of these test member blogs. Maybe I have to go in and reselect the theme for the changes to take effect? I don’t know on that one.

Now, why don’t

Blog

Members

Groups

Forums

Blogs

work in either testing2 or testing3?

Basically, I just want those links to go to the links of the main site.

Is the logic that I make a blog and people come and make blogs and each blog gets members and sub members?

Basically, what I am going for is:

Members join and make a profile page and a blog.

They can post but not make pages

Their posts appear in sitewide activity

When you visit their blog you see only the member’s posts

There are no sub-sub members (members don’t have members)

There are no sub-sub-blogs members only get one blog and that’s it

I am starting to make some changes, but I really don’t know why just yet.

#8390
foodin65
Participant

Okay. I’ve got CometChat and I’m trying to get it to work with buddypress. The developer says it will work just fine with the proper edits to the config.php file so that it can talk to the database properly.

I’d Like to get it working so I can post the config for other Buddypress Users.

I have two sets of things that I need help with – I need to make sure I’m calling the database propery here:

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/* DATABASE */

include_once dirname(dirname(__FILE__))."/wp-load.php";

define('DB_SERVER', DB_HOST );

define('DB_PORT', '3306' );

define('DB_USERNAME', DB_USER );

define('DB_PASSWORD', '******' );

define('DB_NAME', '**************' );

define('TABLE_PREFIX', $table_prefix_wp );

define('DB_USERTABLE', 'wp_1_useronline' );

define('DB_USERTABLE_NAME', 'displayname' );

define('DB_USERTABLE_USERID', 'userid' );

define('DB_USERTABLE_LASTACTIVITY', 'timestamp' );

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

I’m pretty sure that all of the above is correct. As I’m no longer getting database errors. But What I really need help with is the FriendList Functions. These are the default functions in the config.php file:

/* FUNCTIONS */

function getUserID() {

global $current_user;

get_currentuserinfo();

$userid = 0;

if (!empty($current_user->ID)) {

$userid = $current_user->ID;

}

return $userid;

}

function getFriendsList($userid,$time) {

$sql = ("select DISTINCT ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." userid,

".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_NAME." username,

".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_LASTACTIVITY." lastactivity,

".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." avatar, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." link,

cometchat_status.message, cometchat_status.status

from ".TABLE_PREFIX."friends join ".TABLE_PREFIX.DB_USERTABLE."

on ".TABLE_PREFIX."friends.toid = ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID."

left join cometchat_status on ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." = cometchat_status.userid

where ".TABLE_PREFIX."friends.fromid = '".mysql_real_escape_string($userid)."'

order by username asc");

return $sql;

}

function getUserDetails($userid) {

$sql = ("select ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." userid, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_NAME." username, ".TABLE_PREFIX."useronline.timestamp lastactivity, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." link, ".TABLE_PREFIX.DB_USERTABLE.".user_email avatar, cometchat_status.message, cometchat_status.status from ".TABLE_PREFIX.DB_USERTABLE." left join cometchat_status on ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." = cometchat_status.userid left join ".TABLE_PREFIX."useronline on ".TABLE_PREFIX."useronline.userid = ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." where ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." = '".mysql_real_escape_string($userid)."'");

return $sql;

}

function updateLastActivity($userid) {

$sql = ("update ".TABLE_PREFIX."useronline set timestamp = '".getTimeStamp()."' where userid = '".mysql_real_escape_string($userid)."'");

return $sql;

}

function getUserStatus($userid) {

$sql = ("select cometchat_status.message, cometchat_status.status from cometchat_status where userid = '".mysql_real_escape_string($userid)."'");

return $sql;

}

function getLink($link) {

return '';

}

function getAvatar($image) {

return"http://www.gravatar.com/avatar/".md5($image)."?d=identicon";

}

function getTimeStamp() {

return current_time('timestamp');

}

function processTime($time) {

return $time;

}

The First Three Function are the most important to get right and I don’t really know how to edit them so they will pull the right information from the right tables.

function getUserID()

function getFriendsList($userid,$time)

&

function getUserDetails($userid)

The instructions for modifying these functions is located here:

http://www.cometchat.com/support/page/documentation?record=16

But being rather new to SQL queries within PHP – the instructions don’t make much sense to me.

Thanks in advance for your help

#60767
peterverkooijen
Participant

Have you tried scattering alert statements to see where in the ajax process things are getting hung up?

I can’t find a function in ajax.js with “delete-activity”, the class on the delete button, so I don’t no where to put that test. Is that function supposed to be there?

In the 1.0 version of my site I had no classes at all on the delete link (custom theme). Deleting an item does not have fancy Ajax; the page reloads with “Wire message successfully deleted” in <div id=”message”>.

At least that works! I’d like to just recreate that for my 1.1.3 version.

So I tried removing the following:

class="item-button delete-activity confirm"

from the delete button link in bp-activity-templatetags.php.

That kills the ugly “Are you sure?” popup, but it then goes to “Page Not Found’ and when you go back to the page the item is still there. So it also kills the delete process…

Next trying to spot the differences with the process in version 1.0…

How do those wpnonce links work? What do they do? There’s nothing about them in the codex.

Viewing 25 results - 1,176 through 1,200 (of 1,252 total)
Skip to toolbar