Search Results for 'custom activity page'
-
AuthorSearch Results
-
August 9, 2014 at 8:33 pm #186371
In reply to: No Idea how Buddy Press works
shanebp
ModeratorThere are plugins like Activity Plus that allow embedding things like a uTube link in the activity page on a member’s profile.
There are several pages in a member’s profile, including a profile page that has data describing that member. There ways to allow for what you want, but it would require some custom coding, iow. not an option out of the box, afaik.
August 7, 2014 at 1:33 pm #186094In reply to: Blog comments not appearing in activity stream
danbp
ParticipantHas the “enable comments” flag an impact on this feature?
Yes. And also “allow search engines”.
Users watch the activity stream to see what happened since the last time they connected.
This means that if they connect each 4 days, they check further. And this became false :
They won’t be looking 3 pages further for a comment that has just been posted a minute ago.SWA is an instant information feed. The’re so many different uses of BP that i wouldn’t give one more than another, but i’m pretty sure that nobody is searching for something that is not/or could be – visible instantly.
If i don’t see an activity called comment, i don’t search for it. And if i would search, i use the SWA show filter.Now back to the problem.
Try this snippet which will force chronological comment display on the SWA.
install it in bp-custom.php or theme’s functions.phpAnd give feedback !
function bpfr_stream( $qs, $object ) { if ( 'activity' != $object ) { return $qs; } $qs = wp_parse_args( $qs, array() ); $qs['display_comments'] = 'stream'; return $qs; } add_filter( 'bp_ajax_querystring', 'bpfr_stream', 20, 2 );
August 7, 2014 at 12:05 am #186059In reply to: Create link to friends activity?
danbp
ParticipantIn the menu settings you can link to the activity page, not to a specific activity (so far i know).
I posted 3 snippets on Github to test and choose what you need/prefer to use.
Copy/paste the code into bp-custom.php
July 23, 2014 at 12:39 pm #185458In reply to: $bp->bp_options_nav wrong user links
danbp
Participanttry by adding this at the begin of your function
$user_id = bp_get_activity_user_id();
If you’re working on the Toolbar, the correct way to add a menu is like on this example:
/* add links/menus to the admin bar*/ /* more details here: http://wpengineer.com/2113/add-menus-to-the-admin-bar-of-wordpress/ */ function mytheme_admin_bar_render() { global $wp_admin_bar; $wp_admin_bar->add_menu( array( 'parent' => 'new-content', // use 'false' for a root menu, or pass the ID of the parent menu 'id' => 'new_media', // link ID, defaults to a sanitized title value 'title' => __('Media'), // link title 'href' => admin_url( 'media-new.php') // name of file 'meta' => false // array of any of the following options: array( 'html' => '', 'class' => '', 'onclick' => '', target => '', title => '' ); ) ); } add_action( 'wp_before_admin_bar_render', 'mytheme_admin_bar_render' );
A similar method is used to add a tab. Here on a user profile.
function bpfr_my_setup_nav() { global $bp; $mytab=array( 'name' => 'My Tab', 'link' => 'http://example.com/wp-content/themes/twentythirteen/my_extra_page.php', 'slug' => 'my-tab', 'css_id' => 'my_custom_tab', 'position' => 100, 'user_has_access' => 1, 'screen_function' => 'xprofile_screen_my_tab' ); $bp->bp_options_nav['profile']['my-tab']=$mytab; } add_action('bp_setup_nav', 'bpfr_my_setup_nav');
June 10, 2014 at 1:25 am #183854In reply to: Change first page shown for user profile
cwjordan
ParticipantInstead of the template change suggested above, it works better to add the following
/* set default BP to profile page instead of activity page */ define( 'BP_DEFAULT_COMPONENT', 'profile' );
in your wp-content/plugins/bp-custom.php file (create that file if it does not exist – see https://codex.buddypress.org/plugindev/bp-custom-php/ for more about that file).
June 10, 2014 at 1:23 am #183853cwjordan
ParticipantIt may be that you need to set:
/* set default BP to profile page instead of activity page */ define( 'BP_DEFAULT_COMPONENT', 'profile' );
in your wp-content/plugins/bp-custom.php file (create that file if it does not exist – see https://codex.buddypress.org/plugindev/bp-custom-php/ for more about that file).
May 25, 2014 at 7:58 pm #183332In reply to: Load more button stops working … sometimes
amckinnell
ParticipantHi Henry, here is the contents of that window:
Request URL: http://photoforte.com/wp-admin/admin-ajax.php
Request Method: POST
Status Code: HTTP/1.1 200 OK
Request Headers 12:51:58.000
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:29.0) Gecko/20100101 Firefox/29.0
Referer: http://photoforte.com/activity/
Pragma: no-cache
Host: photoforte.com
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Content-Length: 97
Connection: keep-alive
Cache-Control: no-cache
Accept-Language: en-gb,en;q=0.5
Accept-Encoding: gzip, deflate
Accept: application/json, text/javascript, */*; q=0.01
Sent Cookie
wp-settings-time-10: 1398959694
wp-settings-10: libraryContent=browse&editor=html&wplink=1&urlbutton=none&imgsize=full&align=center&hidetb=1
wordpress_test_cookie: WP+Cookie+check
wordpress_logged_in_0226a87af55d37f15c17099beebb5b87: amckinnell|1402256837|5ccb9ec3cbdec1dc82a94b7ed790dd41
wordpress_0226a87af55d37f15c17099beebb5b87: amckinnell|1402256837|5b043d1b070ce3f02b6457a112bdfd6a
s2member_tracking: fnIyOk5PVFdEQUJGSk9CeFBsZ2NMV3BiN2Rna3hMQUw0aTZzOmI3ZmEwNjU4NTQ2MGE0OWNiZDlmYTJhZGE2OTIyNDQzfEKGYUXbL9qRK4qkpq9Olm8qeZTiTkNtW3IJQea7fc4a
PHPSESSID: d3jd0dp456hmi7p57ib09rrku7
bp-activity-oldestpage: 1
__utmz: 82912087.1400555092.174.6.utmcsr=Photo Forté Members|utmccn=7ce74da5f7-2014_May_Lesson_Week_3|utmcmd=email|utmctr=0_76b17b8542-7ce74da5f7-
__utmc: 82912087
__utmb: 82912087.7.9.1401047433231
__utma: 82912087.1423870743.1397575542.1400993272.1401047233.201
Response Headers Δ1626ms
X-Robots-Tag: noindex
x-frame-options: SAMEORIGIN
x-content-type-options: nosniff
Transfer-Encoding: chunked
Server: Apache
Pragma: no-cache
Keep-Alive: timeout=5, max=85
Host-Header: 192fc2e7e50945beb8231a492d6a8024
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Date: Sun, 25 May 2014 19:51:50 GMT
Content-Type: text/html; charset=UTF-8
Connection: Keep-Alive
Cache-Control: no-cache, must-revalidate, max-age=0About your other questions, it is a total custom theme, but I haven’t made any changes to it for weeks and this problem just cropped up a couple of days ago. I know for sure it just started because I use that load more all day.
It’s difficult for me to answer the question about whether it happens in the default theme because I don’t want to change my live site because people are using it, and when I create a staging site, the load more button works in the current theme. I cannot understand why the problem only exists on the live site and not the staging site. I am creating the staging site when I am seeing the issue, it only takes a couple of minutes to create it, it’s on the same server, but the load more button works there.
Thanks again for your help.
May 21, 2014 at 1:30 pm #183193In reply to: Translation fails only at "Sitewide Activity"
wpleo
ParticipantThank you @shanebp!
You’re right, I found this strange _x. But it didn’t make the translation work for me.
I got this bp-custom.php:
define( ‘BPLANG’, ‘pt-br’ );
if ( file_exists( WP_LANG_DIR . ‘/buddypress-‘ . BPLANG . ‘.mo’ ) ) {
load_textdomain( ‘buddypress’, WP_LANG_DIR . ‘/buddypress-‘ . BPLANG . ‘.mo’ );
//echo “FOUND IT!!”;
}I’m pretty sure that this fil is being read and that the language file is being found because of the flag that I put: “FOUND IT!!”. In fact everything is being translated but the titles! No title got the proper translation, like:
http://astronomia.blog.br/forum-astronomia/atividades/ (Sitewide Activity)
http://astronomia.blog.br/forum-astronomia/pessoas/ (Members)
http://astronomia.blog.br/forum-astronomia/grupos/ (Groups)Each one of these expressions is translated in the .po and .mo, acording to Loco Translate.
Already deleted the pages and re-created it but nothing.
I’m still trying, if I find a solution I’ll post it here.
Thanks for the help!
May 20, 2014 at 11:03 pm #183167Tbarnes37
ParticipantHi @soran7
I’ve narrowed the problem down further and found a hack that works for me. If you look in buddypress-functions.php, there’s a function at line 739 called bp_legacy_theme_new_activity_comment. At line 770 is the process of inserting the new comment into the activity stream.
It begins by checking if $activities_template->activities[0] is set. I’ve tested this function on an actual group page and found that this returns true, so it’s able to handle the activities effectively. However, on my custom template, this returns false; thus, the new comment data is never inserted. Of course this is separate from the process of saving the new comment to the database, so it makes sense that the comments still show up after refresh.
I’m still hoping to find a less hacky way to do this, because my current solution messes up other activity stream pages, but I’ve managed to get my custom template working by copying buddypress-functions.php into my theme folder and modifying line 768 to have a ‘groups’ scope.
So change line 768 from this:
bp_has_activities( 'display_comments=stream&hide_spam=false&include=' . $comment_id );
to this:
bp_has_activities( 'scope=groups&display_comments=stream&hide_spam=false&include=' . $comment_id );
Hope that helps! And if you’re able to find a better, less damaging way, please let me know. My hangup currently is that even if I manually set $bp->current_action to ‘groups’ in my template, it gets over-written at some point after page load, due to a url check that finds my template to not be at a group home url.
May 19, 2014 at 4:14 pm #183116danbp
ParticipantPlease don’t post BP files, it’s really unnecessary. We’re all BP user ! 👿
Sorry, i didn’t correctly understand your request. I thought you wanted to change the order of the selectbox filters. If you also interested, see this old tread.SWA shows by default all site activities and they can be filtered. It is well documented on the Codex.
If for some reason you don’t want to modify a theme file, you can use a custom function and put it into bp-custom.php
Example ( BP 2.0+ only)
function make_swa_show_notice_only( $retval ) { if ( bp_is_page( 'activity' ) ) { $retval['action'] = 'activity_update'; } return $retval; } add_filter( 'bp_after_has_activities_parse_args', 'make_swa_show_notice_only' );
Now the swa shows only notices (if exist). If you need to see a member activity, you have to go on his profile. Same for groups, the activity is only on the group page.
May 15, 2014 at 2:51 pm #182966In reply to: [Resolved] members profiles and blogs pages 404
islandcastaway
ParticipantOk, after a day of troubleshooting I figured it out. (jump to the end for the stupid answer)
Changing themes did not fix it, but it did open up a whole new can of worms because I was using a custom child theme running off of the bp-default theme. I see that I will have to totally redo my theme because of the changing BuddyPress structure.
I rolled my database back to 4/29/2013 wordpress 3.6 era (3.9 files tho)
deactivated BuddyPress
Installed BuddyPress 1.7
reactivated BuddyPress
buddypress 1.7 worksDid the same for 1.8 – 1.9. They all worked.
I did notice that the title for the “members” list was “directory”, not members.
I also noticed that in the plugins list throughout the updates it always said “There is a new version of BuddyPress available. View version 1.7 details”, even after 1.9Did the same steps for 2.0, still working.
The “members list” page title was now “members” instead of “directory”.Did the same steps for 2.01, still working.
The entire time I never hit upgrade network. When I did, I got an error saying no connection to sites, my dev box has all of the addresses hard coded in the hosts files and the site did pull up, just got the network update errors.
Tried deactivating domain mapping, still errors.
Updated the database with a current backup and BuddyPress was broke again.
Tried the permalink switch again. Never noticed “BuddyPress is almost ready. You must update your permalink structure to something other than the default for it to work.” before.
Went through each of the permalink options and still no go.
Deactivated all plugins except BuddyPress, still no go.
Rolled back the data base to 4/29/2013 and exported the wp_options table
Imported the 3.6 era options into the 3.9.1 database.
Tit worx.
Got a “Fast Secure Contact Form has imported settings from the old version.”
“Site Tracking Directory” is the “blogs” list page title
So I manually flushed the rewrites table in wp_options, no go.
Manually deleted _transient rows, no goCompared the bp-options rows in wp_options in the old and new databases.
“blogs” was missing from “bp-active-components” in the newer database:a:4:{s:8:”xprofile”;s:1:”1″;s:8:”settings”;s:1:”1″;s:5:”blogs”;s:1:”1″;s:7:”members”;s:1:”1″;}
Pasted that into the newer database and BINGO!
Went to the BuddyPress component admin page and no blogs setting, but toggling on/off “Site Tracking” was they key.
One friggin checkbox.
How the ### does “Site Tracking – Record activity for new sites, posts, and comments across your network.” translate into disabling “members profile pages” and the “blogs list”?
That seriously need to have a better description.
So mission accomplished.
Grrrrrrrrrrrrrrrrrrr
April 24, 2014 at 10:38 pm #182021In reply to: Custom classes for profile pages, possible?
jerryskate
ParticipantOk, a bit better 🙂 Still having my profilename outside the classes, but got all the old ones back.
<body jerryclass="activity bp-user my-activity my-account just-me buddypress bbp-user-page single singular bbpress page page-id-5 page-template-default logged-in admin-bar no-customize-support bp-wall adminbar-enable not-responsive this-is-a-member-profile member-profile-of-" class=" customize-support" data-twttr-rendered="true">
April 24, 2014 at 9:04 pm #182010In reply to: Custom classes for profile pages, possible?
jerryskate
ParticipantYeah thats what i was thinking too. Seemed kinda weird to me. body.classname would be the obvious choose for me, but well.. weird output. need to fiddle around with it a little to see if i can get it to work. Too bad it filters out all the other classes though. This is how it looks without the filter:
activity bp-user my-activity my-account just-me buddypress bbp-user-page single singular bbpress page page-id-5 page-template-default logged-in admin-bar bp-wall adminbar-enable not-responsive customize-support
Wish i could keep those classes and have the bodyclass of the user added.
April 13, 2014 at 1:41 pm #181193In reply to: [Bug] BuddyPress 2.0 Beta 2 –
Asynaptic
Participanta couple of things:
- here’s the codex page for customizing the permalink for members or any other component like it:
https://buddypress.org/2009/05/customizable-slugs-in-buddypress/ - while it may not be buddypress’s fault if there was a conflict with a plugin (cubepoints), I would suggest considering moving from cubepoints to myCRED which has a newer code base, support and extensive documentation (mycred.me)
maybe someone else can chime in on the activity update ‘bug’ that you mentioned
February 26, 2014 at 4:04 am #178918In reply to: [Resolved] Remove member last active
Clara
ParticipantHI,
I am attempting this as well.
I went into custom.css in my buddyboss theme (it is reflective mobile ready theme)
I thought I was adding this in the right place by putting it in global area, but it did not work…
have never been near css before so clueless…
here is what the page looks like with my addition… it did not hide the active (how long ago) item…
can someone please advise?? I saw to add it to the bottom, but that seems not right given how this is set up… did I do something wrong with brackets, or spaces or something?
I tried it with, and without, the dot in front of the word span…
/*————————————————————–
This is your custom stylesheet.Add your own styles here to make theme updates easier.
To override any styles from other stylesheets, simply copy them into here and edit away.Make sure to respect the media queries! Otherwise you may
accidentally add desktop styles to the mobile layout.You’re the boss, so have fun editing!
————————————————————–
>>> TABLE OF CONTENTS:
—————————————————————-
1.0 – Global Styles
2.0 – Responsive media queries (mobile styles)
2.1 – MAXIMUM width of 720 pixels (phones landscape)
2.2 – MAXIMUM width of 380 pixels (phones portrait)
2.3 – MINIMUM width of 721 pixels (tablets+)
2.4 – MINIMUM width of 1040 pixels (desktops and laptops)
————————————————————–*/
/*————————————————————–
1.0 – Global Styles
————————————————————–*//*
.span.activity {
display: none;
}
*//*————————————————————–
2.0 – Responsive media queries (mobile styles)
————————————————————–*/
/*————————————————————–
2.1 – MAXIMUM width of 720 pixels (phones landscape)
————————————————————–*/
@media screen and (max-width: 720px) {/*
.just_an_example {
color: black;
}
*/}/* don’t delete this closing bracket */
/*————————————————————–
2.2 – MAXIMUM width of 380 pixels (phones portrait)
————————————————————–*/
@media screen and (max-width: 380px) {/*
.just_an_example {
color: black;
}
*/}/* don’t delete this closing bracket */
/*————————————————————–
2.3 – MINIMUM width of 721 pixels (tablets+)
————————————————————–*/
@media screen and (min-width: 721px) {/*
.just_an_example {
color: black;
}
*/}/* don’t delete this closing bracket */
/*————————————————————–
2.4 – MINIMUM width of 1040 pixels (desktops and laptops)
————————————————————–*/
@media screen and (min-width: 1040px) {/*
.just_an_example {
color: black;
}
*/}/* don’t delete this closing bracket */
February 22, 2014 at 5:00 pm #178760In reply to: Activity Stream – Remove specific activities
shanebp
ModeratorYou can put this function in your theme functions.php or bp-custom.php
It will prevent the creation of activity entries for the items in $exclude
It will only do that going forward – it won’t remove existing entries.You need to find out what the activity type(s) is for achievements and add it to the exclude array.
function dont_save_various_activities( $activity_object ) { $exclude = array( 'friendship_created', 'new_member' ); if( in_array( $activity_object->type, $exclude ) ) $activity_object->type = false; } add_action('bp_activity_before_save', 'dont_save_various_activities', 1, 1 );
You can read more on this great codex page by imath
https://codex.buddypress.org/plugindev/bp_activity_add-2/February 13, 2014 at 3:52 am #178333In reply to: BuddyPress Training or Tutorials
julianprice
Participant@cuisire_ceo It depends but found the following most useful after googling so much to only come up with garbage past dated scraped/syndicated content.
The most important question is what the Purpose for Your BuddyPress Use/Community. The only way I have wrapped my head around it is to work backwards but with that said…
Heres What I consider some of the Best Round Ups and Buddy Pep to Follow:
Tammie Lister @mercime http://wordpress.tv/?s=tammie have some great talks and also have just googled for any slides from the various presentations. If not able to see video.
Also check out her book that only seems most current: https://buddypress.org/2013/11/buddypress-theme-development-by-tammie-lister/
Boone Gorges @boonebgorges http://wordpress.tv/speakers/boone-gorges/ and most notable this presentation: http://wordpress.tv/2013/12/10/boone-gorges-herding-cats-with-the-buddypress-activity-component/
or anything Boone from Youtube via WordPressNYC great example http://www.youtube.com/watch?v=gPpU3ySo5q0 in understanding of GROUPS.Of course John James Jacoby jjj @johnjamesjacoby (sorry jjj: he rambles often:) but found this useful in just using a simple profile I believe this is the session maybe others can reference it “WordPress Profiles” http://wordpress.tv/2013/10/04/john-james-jacoby-everything-you-want-to-know-about-bbpress-and-buddypress/
So you probably thinking Wow but you have not answered anything on installing 🙂 Believe me it helps so much to think big picture of your whole community than start working backwards as single page/components to map similarities to constructed it.
This is one of the most useful tutorial of theme I had purchased which the developer went MIA but it was an AHA moment for me. Because Buddypress are Custom Post Types thats Relational Data/Fields
http://www.youtube.com/watch?v=Cc3Er4S4EeQ & http://www.youtube.com/watch?v=s7b9TFw6ZAQ
. I know what you thinking this is not my intent or not relevant. Start watching #2 at 2:16 to think in context of Simalirty.Finally, The only other best other video tutorial that just a setup instruction. I have found online was BuddyBoss (don’t even own the Theme) http://www.youtube.com/playlistlist=PL5kBYJSuuvEj3KqG_lnAa9MxpZumjtTdY
and Mathis on VIMEO. The biggest problem is finding the resources in a central location so I have to track down.
I hope that helps as resources. It really would depend on how you see your community of your people and how its relational in context
February 10, 2014 at 12:59 pm #178211Joss Winn
ParticipantHi again,
I still have this problem. I’m sure it’s BuddyPress that is the cause, as it still occurs with different themes and with all other plugins deactivated. When I deactivate BuddyPress, the problem stops.
Run your mouse over the links on this page, and you’ll see the issue: http://blogs.lincoln.ac.uk/test/
I was wondering whether it is a legacy of running BuddyPress since alpha/beta and whether there is an old setting in the database or something that I might look out for. Where are the BuddyPress settings stored in the database? None of the wp_bp tables look like they hold global settings.
In my wp-config.php file, I have the following:
define( ‘BP_ENABLE_ROOT_PROFILES’, true ); //removes the /members/ slug
define( ‘BP_DEFAULT_COMPONENT’, ‘custom-profile’ ); //defaults to profile page rather than activity stream of a user
define( ‘BP_ENABLE_USERNAME_COMPATIBILITY_MODE’, true ); //for LDAP compatibility
define ( ‘BP_IGNORE_DEPRECATED’, true );
define(‘BP_USE_WP_ADMIN_BAR’,true);Thanks for any advice,
JossFebruary 6, 2014 at 7:02 pm #178042In reply to: "Load More" in activity stream does nothing
Henry Wright
ModeratorThe Load More button is dependent on the markup (HTML) of the page. If you’ve customised the group activity page HTML then that might be why it doesn’t work any more.
February 5, 2014 at 2:10 pm #177962In reply to: bbPress forum posts not appearing in activity stream
shanebp
ModeratorUsing some custom sql is probably the simplest approach for gathering old entries.
But if it’s in the activity stream, those entries should be pushed off the first page very soon so perhaps you can justify not bothering ? 🙂
January 19, 2014 at 4:39 am #177181In reply to: 2.0 top features – ideas
SK
ParticipantBetter customisation options of the activity stream: ie to be able to define a set of “or” filters for content type, and who. So (with plugin support) I can define a feed to include things from “me or friends or followers” showing “topics and topic replies and posts and new users” (and ideally be able to have a permalink to this with no other fluff on display). The current activity feed selectors are a mess and don’t provide what most people want to see.
There are about 50-75 Premium BuddyPress themes online for sale and 99% of them have the same activity stream page-layout. While all those premium theme developers can do lots of customization to all other pages the activity stream is like Twitter’s Bootstrap to BuddyPress it always tells you it’s a BuddyPress website without looking at the code.
The reason all those themes activity look alike is because previously it was a nightmare to create something that wasn’t derivative of bp-default and it’s heavy-handed javascript. This is not the case anymore.
In other words, this issue has already been fixed. Now it is upto the theme developers to customize the feed aesthetics to their hearts’ content.
January 13, 2014 at 3:21 am #176832In reply to: Activity Streams in Page and Groups
wiste
ParticipantHi @rayela, since your original question never got answered I thought I’d give you an answer:
As you discovered, you can disable all activity feeds for your entire site by unchecking the “activities” component on the BuddyPress settings Components tab, but as you mentioned this results in a blank home page which isn’t good.
Unfortunately, you cannot fix this without writing code because there are no easy options to do this with BuddyPress (I feel your pain, I quit programming for a reason).
You will need to create a functions.php or bp-custom.php as mentioned above to add custom code to. This function will redirect it so that the forum tab is the “home page” for your group and remove the “home” tab so that it’s no longer visible:
function redirect_group_home() { global $bp; $path = clean_url( $_SERVER['REQUEST_URI'] ); $path = apply_filters( 'bp_uri', $path ); if (bp_is_group_home() && strpos( $path, $bp->bp_options_nav[$bp->groups->current_group->slug]['home']['slug'] ) === false ) { if ($bp->groups->current_group->is_user_member || $bp->groups->current_group->status == 'public') { bp_core_redirect( $path . 'forum/' ); } } $bp->bp_options_nav[$bp->groups->current_group->slug]['home'] = false; } add_action('bp_init', 'redirect_group_home');
I’m not sure if you’re still active here but I felt after your amiable responses you deserved a real answer.
December 21, 2013 at 2:49 pm #175885In reply to: 2.0 top features – ideas
Shmoo
ParticipantBetter customisation options of the activity stream: ie to be able to define a set of “or” filters for content type, and who. So (with plugin support) I can define a feed to include things from “me or friends or followers” showing “topics and topic replies and posts and new users” (and ideally be able to have a permalink to this with no other fluff on display). The current activity feed selectors are a mess and don’t provide what most people want to see.
Should be nummer 1.
And I don’t even want lots of new features to the activity stream but first just an easy way to customize the default lay-out would be so much pleasant!
All BP pages are very easy to customize, move code around to give the page an unique feeling but when it comes to the activity stream the code is very fixed.
There are about 50-75 Premium BuddyPress themes online for sale and 99% of them have the same activity stream page-layout. While all those premium theme developers can do lots of customization to all other pages the activity stream is like Twitter’s Bootstrap to BuddyPress it always tells you it’s a BuddyPress website without looking at the code.
December 20, 2013 at 2:27 am #175826In reply to: add_theme_support breaks buddypress
jedifunk
Participant@modemlooper thanks for the help!
yes, the documentation on this site for the theme override is extremely limited and definitely confusing…
the single page on this site talking about the add_theme_support function was very vague, and not worded well… certainly giving the impression that it WAS necessary in order to override.
to use custom pages/loops/etc, do i still need to have the /buddypress/activity/file.php in my theme?
lastly, i don’t like the idea of being required to load another css file to override styles… i’d prefer to just use the styles.css file. it also makes writing the css a pain since everything requires the use of the #buddypress ID… not very elegant IMO.
with 1.8 it was working great, i had the default styles off, and was able to add my bootstrap classes, and style only what i needed.
am i missing something here?
December 8, 2013 at 11:11 am #175246In reply to: Add post featured image in activity stream
Matt McFarland
ParticipantYes this is very easy to do.
Adding the featured image of a wordpress post into a buddypress activity stream can be done by doing one of the following. I’d like to add that I had trouble finding out how to do this at first and it took a lot of searching. The first copypasta I have for you was actually found on these very forums. However, due to so many people asking this question (and not getting answers) it is buried and very difficult to find. So without further ado please enjoy…
You can either edit the activity page activity/entry.php or just copy paste the following function into your functions.php file.
function icondeposit_bp_activity_entry_meta() { if ( bp_get_activity_object_name() == 'blogs' && bp_get_activity_type() == 'new_blog_post' ) {?> <?php global $wpdb, $post, $bp; $theimg = wp_get_attachment_image_src( get_post_thumbnail_id( bp_get_activity_secondary_item_id() ) ); ?> <img src="<?php echo $theimg[0]; ?>" > <?php } } add_action('bp_activity_excerpt_append_text', 'icondeposit_bp_activity_entry_meta');
If you want further customization, I recommend editing activity/entry.php
- here’s the codex page for customizing the permalink for members or any other component like it:
-
AuthorSearch Results