Search Results for 'custom activity page'
-
AuthorSearch Results
-
May 17, 2010 at 3:37 am #78453
In reply to: adding widgets to a custom page
shaisimchiParticipantOK I still need a little help here:
I am creating custom pages on my site the following way:
in bp-custom.php I am adding:define(‘BP_MYPAGE_SLUG’, ‘mypage’);
function mypage_page_setup_root_component()
{
global $bp;
bp_core_add_root_component( BP_MYPAGE_SLUG );
}
add_action( ‘plugins_loaded’, ‘mypage_page_setup_root_component’, 2 );function bp_show_mypage_page() {
global $bp, $current_blog, $wpdb;if ( $bp->current_component == BP_MYPAGE_SLUG && $bp->current_action == ” ) {
// The first variable here must match the name of your template file below
bp_core_load_template( ‘mypage’, true );
}
}
add_action( ‘wp’, ‘bp_show_mypage_page’, 2 );I am also creating a file called mypage.php inside my theme. this works great and already many custom pages like that.
What I want is to add the content of a widget (for example activity widget) into this page.here is what i did: i created a new sidebar in functions.php lets assume its called mysidebar:
register_sidebars( 1,
array(
‘name’ => ‘mysidebar’,
‘before_widget’ => ‘‘,
‘after_widget’ => ‘‘,
‘before_title’ => ‘‘,
‘after_title’ => ‘‘
)
);then within my newly created file called mypage.php i have the following code:
<?php if ( !function_exists('dynamic_sidebar')
|| !dynamic_sidebar(‘mysidebar’) ) : ?><a href="/wp-admin/widgets.php?s=&show=&sidebar=mysidebar”>then i added the site activity widget in the admin to the mysidebar that I created.
So far it all works great. my problem is that when the widget gets added to my custom page mpage.php it pretty much goes all over the page and messes up things like the left hand side navigation menu, options-bar etc.
even placing it within html table doesnt help as it seems that it is trying to conform to the 3 widget areas I have on other sections of my site (like home page etc).
How do I control the location of the widget’s content on a custom page like that?Help is much appreciated!
Thanks,
Shai
May 12, 2010 at 4:58 pm #77812cherryblossommjMember1. Which version of WP/MU are you running?
WP2.9.2
2. Did you install WP/MU as a directory or subdomain install?
subdomain
3. If a directory install, is it in root or in a subdirectory?
4. Did you upgraded from a previous version of WP/MU? If so, from which version?
5. Was WP/MU functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting.
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?
8. Do you have any plugins other than BuddyPress installed and activated?
commentluv, smartlinks, akismet, blogroll page, blogroll widget with RSS feed, buddypress album+, group activity subscription, import from ning, tdlc birthdays,
9. Are you using the standard BuddyPress themes or customized themes?
standard
10. Have you modified the core files in any way?
added a frame for blockquotes
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?
don’t know
13. Please provide a list of any errors in your server’s log files.
n/a
14. Which company provides your hosting?
hostgatorWould someone please help me. More and more people are having issues either with registration in the first place or with changing profiles. I’m debating whether buddypress was the right way to go at all. I would really love some help here.
May 12, 2010 at 5:14 am #77744jalienParticipantI finally sat down and read through the whole discussion. Some great points. I don’t know how possible it would be to do this, but what about multiple streams? @Sadr made a great point that the activity stream should have elements that users could subscribe to or not subscribe to. Right now there is one stream that either has too much information or doesn’t have the right kind of information. With multiple streams, each of which could be put on a different page or within a different area on a main page, the information flow could be tailored by each site designer and user to serve their needs and the needs of their communities.
Another point that was brought up was navigation, now I know that this is partially the theme setup, but in a default install even if a user is redirected to their groups, it is still another click away to a the groups wiki, blog, forum or documents or whatever your groups are based around. It needs to be easier to place the sub areas of a Buddypress site where you want them. Maybe the new menus in WP 3.0 address this (I haven’t had a chance to play with them much) but navigation needs to have small blocks that can be quickly and easily rearranged in order to design navigation paths that fit your community. And navigation is all about menus; activity streams are a form of navigation if they send you quickly to the information you are interested in. Couldn’t the profile, for example, be more widget ready so that either admins or users could pick and choose the pieces they want (think iGoogle).
@Peterverkooijen made a good point about members profile / privacy. It is possible to do it now to a certain extent, but this needs to be easier and more comprehensive.
As many people said the users are who are important and poor UI will drive people away, but Buddypress is used in such a wide variety of situations, that it needs to be easy to customize for each communities needs. To use an analogy I don’t want Buddypress to be like Moodle, for example; if you’ve seen one Moodle site you’ve seen 98% of all Moodle sites. The strength of WordPress is the ease with which one can customize not just the functionality but the looks and UI of the site, let’s not lose that.
May 6, 2010 at 5:35 pm #76955In reply to: BP Album+ || New Features Requests and Discussion
jordashtalonMember@jaxster, I figured out how to make a page that shows every photo ever uploaded
Basically you use the BuddyPress Activity Loop (found here https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/)
And then where it says this `php if ( bp_has_activities( ) ) : bp_the_activity() `
Change to:
`php if ( bp_has_activities( ‘action=bp_album_picture’) ) : bp_the_activity() `
You can filter by any activity that way.
Add the activity Stream code to a custom page php file
Hope that helps
May 5, 2010 at 4:20 am #76724r-a-yKeymasterI’m quite sure you can’t tack on just any component in the bp_is_active() function.
It should be like this:
if ( bp_is_active('profile') || bp_is_active('activity') || ... etc ) {
The easiest thing would be to list what you want publically available.
Here’s a function to build on:
https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/how-to-make-a-private-community/?topic_page=2&num=15#post-44616May 3, 2010 at 6:32 pm #76474Mike PrattParticipantPossible bug?: When on a displayed user’s profile page the “personal” tab shows all mentions of the user NOT just that user’s activity, this can be verified by clicking @username mentions a few links to the right.
bp-default does not duplicate this issue so I am guessing it found its way in via bp.org customization
May 3, 2010 at 2:27 pm #76433Hugo AshmoreParticipant@Mike Pratt yes there is really a distinction to be made between blogs and forums, but deciding on which to use? If one disables forums in groups one is simply left with ‘updates’ there is no blog functionality per se (I’m ignoring plugins in the context of this thread) and I’m thinking that the nature of ‘Updates’ is tending to be confusing to users?
“BP tends to be better at constructing grown up environments that focus on quality content contributions” I would agree but not sure why. Quality content contributions are what I perceive as the core of a community or social network as designed using apps such as BP or Ning whereas I tend to view FB as somewhat ephemeral nonsense (sorry not one of those that consider FB or Twitter as hugely vital) My biggest issue is that as things stand I’m struggling to see my way to a custom configuration based around default BP that does actually facilitate the quality content – this isn’t necessarily a BP ‘fault’ but there are issues that I feel need highlighting such as the confusion that tends to arise around the sitewide activity stream
@lph2005 This is the sort of feedback that I felt would play a crucial part in this thread, so it would be interesting if you could explore this further and update the thread. As regards the static front page I’m guessing that this static page did not include the hubbub that is the Site Wide Activity Stream?
May 3, 2010 at 2:20 pm #76431finni3ParticipantSlowly I am beginning to realize that Buddy press is not a straight-out-of-the-box solution. It is not like wordpress. In order to create a proper Buddypress community you really have to *develop* your community.
The negative with this is that the default install is confusing. Comments/updates in the activity stream, forum posts, comments on forum posts, comments on blog posts. Not only do you have different types of comments but you also have meta comments. No wonder things are confusing!
I am tempted to use an analogy of Linux vs Apple. You can do a lot with linux, but all the choices may lead to confusion and an unproductive environment. Apple on the other hand knows the importance of keeping things simple. The iPad is an example of this. It has less features than regular computers, and this makes it easier to use and less confusing. It does fewer things but it does them well.
So what has Apple and Linux got to do with Buddypress? I believe that Buddypress should have several options. (as it has today), but it should be easier to customize Buddypress in order to suit every individual communities` needs. You develop the site to suit you needs. Use what your community needs and remove everything else. Less noise and less confusion and more Apple like
As it is right now, in order to really customize the default install, you have to know PHP etc. This is good if you are a programmer, but unfortunately not all of us are. It seems to me like a lot of the BPusers are non-programmers who just want to add a social layer to their WP site. If Automattic wants to cater to these people, it will be necessary to make it easy to customize BP without having to dive into the code.
I suggest expanding on the options (toggles) in the Admin panel in order to customize the BP install more. That way you can really streamline your community experience.
Example:
– disable commenting for ALL activity-items at the homepage, or choose which one you want to disable. (forum/blogs etc)
– disable activity streams on groups (if admin wants to use forums instead.)
-Choose what is displayed in the activity feed. (Friend connections, blog posts etc)What is apparent, just by reading the previous posts are that we all have different needs:
“Built-in forums are increasingly clashing with commenting on blogs and wires and the social networking structure. There is no reason to have old-fashioned forums in a next generation social network.”
vs
“I think it’s best to strip out sitewide activity stream as well as the groups activity stream. Force users to post content in forums and use their own profile activity stream to post a message to a specific user.”
People want different things, so why not let them have a choice. The new Bp.org is proof that all these different features are useful. They all have their advantages.(although it could use some more improvements to streamline the experience)
I agree with RAYs view:
“For groups, you can either go one way – embrace the activity stream or embrace the forums. It’s not the best thing to try and have it both ways. But this is a decision the BP admin should make (which it is right now). At the end of the day, BP gives you free reign to customize your community all you want.”SUMMARY: My thoughts are that Buddypress needs an easier and more complete way of designing the community through the admin panel.
May 1, 2010 at 4:08 am #76245anaxentMember@Modemlooper @apeatling what if this forums activity situation could be fixed by not allowing one to post to their activity unless it is to only update there status profile only if that feature is enabled on the site. In this situation the activity stream could show everything i does not but would not confuse someone in thinking they are making a blog post or even a forum post. Each activity entry that is plugin enabled could have it’sown preset links to go to the group page for viewing or posting. I really like the idea of groups having all the options that buddypress has but I agree that it is confusing using groups with forums with the activity stream. Though this solution would alow the activity stream to be a real time site update page for all plugins/pages with in the wp/buddyress site that would also show data for all subsites with in mu or 3.0
I am one of the developers for wowroster.net and I have been following buddypress for sometime now as I would like to use it for our main site. When we started back in 04 we used phpbb2, then when to DragonflyCMS after we suffered a magor data loss due to an outage, and now we currently use phpbb3. We know we have limitations with phpbb3 and after I have been using WP along with buddpress I can really see the potential our site can have with our community. Though most of our community is accustom to forums rather than cms or now all that including a social networking layer….. I have peronally been able to weed though the nuances with the way buddypress deals with forums, blogs, and activity, though I feel if one would not be able to add content to the activity stream directly from the page it would ease the understanding on where one should be posting information. I personally see the activity stream being just that showing what is going on through out the whole site. If one wants to post they do it from the forums, if one wants to update a status they do it from thier profile and or group page they are an admin or mod too. and then anything that happens with in the site and update to profile, group, blog, and or any plugin should show in the activity stream for real time(with refreshes) viewing.
April 30, 2010 at 12:39 am #76086In reply to: Sidebar Widgets
Michael McCleveParticipantI asked a very similar question related to putting widgets in the sidebar with the Activity stream as the home page, rather than the blog as the home page. I got a very helpful answer from @pcwriter. You can read my question and the answer at this post: https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/can-you-customize-the-activity-stream-page/
Not sure if that answers your question specfically, but maybe it will help.
April 29, 2010 at 11:26 pm #76078In reply to: Can you customize the Activity stream page?
pcwriterParticipantGreat site! I’m glad the template’s working for you. I would however recommend a slight mod to the css of http://citizensofinfluence.com/forums/
The “Unsubscribe” buttons overlap into the right sidebar. To correct, add this to your theme’s custom.css file:
table.forum td.td-poster, table.forum td.td-group {
min-width:100px;
}You’ll find the original in bp-default (default.css) on line 940 where the column width is set to a minimum of 130px.
April 29, 2010 at 2:43 pm #75954In reply to: Can you customize the Activity stream page?
Michael McCleveParticipantThat was a GREAT lead for me, @pcwriter! Modemlooper has actually created 2 widget-supported themes and I’ve been playing around with both of them. I like the 3-column theme for what I want to show up on the site. It’s working well.
If you’d like to take a look, see: http://citizensofinfluence.com
April 29, 2010 at 1:50 pm #75944In reply to: Can you customize the Activity stream page?
Michael McCleveParticipantThanks for the heads up, @pcwriter! I’ll take a look at that.
April 28, 2010 at 9:02 pm #75818In reply to: Can you customize the Activity stream page?
pcwriterParticipantTry Modemlooper’s widgetized theme as a child theme of bp-default. It might be just what you’re looking for.
April 26, 2010 at 7:22 pm #75317In reply to: Admin Blog + Custom Homepage [SOLVED]
agrundnerMemberApril 26, 2010 at 7:05 pm #75313In reply to: Admin Blog + Custom Homepage [SOLVED]
agrundnerMember@r-a-y So close… I followed the instructions:
1) Login to the WP backend, navigate to “Pages > Add New”. Create an empty, new page called “News” or “Blog” or whatever you want. This page will contain the blog updates.
2) Under “Settings > Reading”, set front page to “Activity Stream” and your posts page to the new page that you just created.
—-Using: Default BP Theme
Front page shows “Activity Sream” but the new “Blog” page I created shows a normal page similar in format to the About page, not the blog’s latest posts.Page attributes:
Parent > Main Page (no parent)
Template > Default Template
Order > 0April 22, 2010 at 7:08 pm #74756In reply to: oEmbed for BuddyPress plugin – out now!
r-a-yKeymasterI don’t have a file named config.php in the plugin that has the lines you posted above.
The next release (which I’ve been teasing for awhile now) will allow you to customize the size in the activity stream, and hopefully the activity permalink page.
April 22, 2010 at 2:05 am #74694In reply to: Custom register.php
thomallenMemberActually, I’m trying to get BP features to work with the Thesis Theme. I need to use the registration/activation feature, and several other features like Members and Activity.
What I tried to do is create a custom template with the register.php code, and assigned it to a page called Register.
Anyway, I’ve looked for days on topics to integrate Thesis and BuddyPress. So I decided I wanted to try and get these plugins to work. I’ve gone down the Thesis road pretty far.
April 20, 2010 at 11:12 am #74382WildrotParticipant*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.
April 20, 2010 at 12:12 am #74328In reply to: Group-Rights Plugin
3sixtyParticipantHmm, 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.
April 18, 2010 at 1:59 pm #74052GianfrancoParticipant@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.
April 11, 2010 at 5:35 pm #72746In reply to: Getting a list of users activity count
dre1080Membergot 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 ) ?>
April 9, 2010 at 5:13 pm #72564Chris HoughtonParticipantHmm – 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
April 7, 2010 at 7:18 pm #722403sixtyParticipantI’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…
April 7, 2010 at 1:57 am #72130In reply to: How do you show a member's total post count?
snarkParticipantThanks @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.
-
AuthorSearch Results