Search Results for 'custom activity page'
-
AuthorSearch Results
-
February 18, 2013 at 11:12 am #153326
In reply to: Custom post types to activity
Unsal Korkmaz
ParticipantWell..
I found my problem..
Btw it seems it was a misunderstood that i was trying to show it on blogs directory as latest post.. Seems my problem is post_type = ‘post’ is hardcoded on buddypress:$paged_blogs[$i]->latest_post = $wpdb->get_row( "SELECT post_title, guid FROM {$blog_prefix}posts WHERE post_status = 'publish' AND post_type = 'post' AND id != 1 ORDER BY id DESC LIMIT 1" );This is just.. wrong. Why not use {$blog_prefix}bp_activity table? why trying to connect to {$blog_prefix}posts?
February 5, 2013 at 6:23 pm #152445In reply to: bbPress menu: parent not highlighting
Mitesh Patel
ParticipantThanks @ubernaut. Yes, that’s a nice idea, but I do want to use site-wide forums.
The page structure is like this, but with more pages
Home
About
Community
-Forums
-Groups
-Activity
ContactAnyway, I don’t think it’s going to be possible without some devine intervention :), as I noticed in testbp.org site, the ‘discussion’ menu is highlighted only when you select it (the page is forum-index). When you go any deeper (select a forum or a topic), the highlight get’s lost, so the issue is, the custom menu is not able to acquire/implement the hierarchy info, which may or may not have been provided by bbpress itself.
The same problem is there with the link you posted as well. On the other hand, all the buddypress menus and sub-menus and sub-sub-menus can correctly highlight the parent ‘community’ page. So, it’s a bbPress/forum specific issue.
January 24, 2013 at 11:19 am #151629In reply to: Blog post comments in activity stream?
Clive Hetherington
ParticipantI’ve found that somewhere down the line a decision was made to only allow comments from posts into the activity stream.
My comments disappeared from activity because 99% of my comments are from pages.
I’m presuming this change was made to accommodate custom post types. I’d suggest that as these types of decision can sink the entire reason for a BP installation (in some cases) that they should be made with some thought or perhaps even a community vote?
Can BP make this an OPTION in the next version please?
Perhaps there should be an option to include or exclude each of the standard wp custom types on installation?
January 22, 2013 at 3:35 pm #151456In reply to: How can I remove the […] from my activity pages
danbpfr
Participanthi @fitnessblogger,
use this in wp-content/plugins/ bp-custom.php
(If you haven’t this file you have to create it first)Tested on 1.6.3
`function bpfr_excerpt($text) {
return trim($text,'[…]’);
}
add_filter(‘bp_activity_truncate_entry’, ‘bpfr_excerpt’, 3, 3 );`if you want to replace […] by ‘xxx’ you use this
`function bpfr_excerpt($text) {
return str_replace( ‘[…]’,’xxx’,$text );
}
add_filter(‘bp_activity_truncate_entry’, ‘bpfr_excerpt’, 3, 3 ); `Take care with copy/pasting from here. Quotes must be single quotes at least.
January 18, 2013 at 8:40 pm #151068In reply to: Activity story aligning
@mercime
Participant@ciumbargi know that those who help out in these forums are all volunteers who generously do their best to assist others even though they are not paid to do so. It is indeed unfortunate that you see an advice about how to find the correct selectors in different browsers as a negative even after some assistance was already given for what was not quite clear in the request.
As I see it, the issue is resolved in your site viewing it using Firefox. If it is not, then I advise you to post at the Pagelines forums and include info about what browser you’re using so that they can fix it … thereby benefiting the rest of the Pagelines customers.
Have a nice day.
January 13, 2013 at 5:54 am #150490In reply to: New filter request for bp_is_single_activity()
digitman2
ParticipantAgain, its not just the body class, as I said its the avatar as well, plus in future there might be other changes introduced which I’d like to be introduced in my custom pages as well. I don’t see why there can’t be a hook added to this function, it will be a one line change and its consistent with all the other hooks that are added.
Is it your decision to add/not add a hook?
January 8, 2013 at 9:50 pm #150027In reply to: How do I resize comment and activity avatar size!?
danbpfr
Participanthi,
see at the bottom of this page how to change avatar size
https://codex.buddypress.org/developer/customizing/changing-internal-configuration-settings/December 28, 2012 at 10:58 am #149120danbpfr
ParticipantHi,
did you set the permalinks to something other than default. Should be done.
Have you checked the yoast plugin ?
The error is probably due to PHPSESSID cookie.
Another cookie is comming from bp-activity-oldestpage. This is a custom setting Check it ! The normal name is bp-activity
December 28, 2012 at 7:49 am #149097In reply to: Group Page Styling/Theme Missing
seppy
ParticipantHi @sbla
On the groups pages (where the styling isn’t correct) it seems to still have in the ‘home’ class in your body tags (which has the transparent background)
`body class=”single-item groups group-home home custom-background”
`So it’s calling this CSS which you don’t want!
`
.home #wrapper {
background-color: transparent;
border: none;
margin: 20px auto 20px auto;
padding: 0;
}
`Where as the page that it is correctly styling hasn’t got “home” in the body classes.
`body class=”directory activity custom-background”`
How are you currently adding the ‘home’ class to body?
`function add_home_class($classes) {
if (is_front_page()) {
$classes[] = “home”
}
return $classes;
}
add_filter(‘body_class’, ‘add_home_class’);`December 25, 2012 at 4:31 pm #148913In reply to: Ideas for my website, need guidance
peterjhead
ParticipantTry this in bp-custom.php
function bp_non_member_redirect() {
global $bp;
if ( bp_is_activity_component() || bp_is_groups_component() /*|| bbp_is_single_forum()*/ || bp_is_forums_component() || bp_is_blogs_component() || bp_is_page( BP_MEMBERS_SLUG ) ) {if(!is_user_logged_in()) { // not logged in user
wp_redirect( get_option('siteurl') . '/register' );
} // user will be redirect to any link to want
}
}
add_filter('get_header','bp_non_member_redirect',1);
NOTE: If your using sitewide forums instead of group forums you will need to remove the comment /* */ around:
|| bbp_is_single_forum()
in the above code. Merry Christmas!December 21, 2012 at 2:22 am #148340In reply to: IE crashes on buddypress pages
samanthar
ParticipantGoing to Members Works
Going to Activity IE comes up with “Internet Explorer has stopped working” A problem caused the program to stop working correctly. Window will close the program and notify you if a solution is available. Close ProgramIt does the above a couple of times before coming up with a blank page.
WP 3.4.2
Buddypress 1.6.2I havent tried changing themes as i am worried about losing all the current customizations, but will do if we have too
December 20, 2012 at 12:47 am #148193In reply to: Collecting Activity ids and displaying them?
shanebp
Moderator>a page where my users can be curators and have collections of custom posts
CPs that they created ? Or created by anyone ?
Usually a profile extension is used for this.
But you say ‘outside of buddypress’ so you mean a WP page… ?
Then, because you want it driven by activity_ids, write a custom query.
Use each activity_id to find the user_id in the activity table, look for posts by that member in the posts table and show the results in a loop.
Use 2 queries if you can’t write a JOIN.December 19, 2012 at 11:54 pm #148187In reply to: Collecting Activity ids and displaying them?
designnz
ParticipantHi @shanebp, thanks for the reply. Im wanting to have a page where my users can be curators and have collections of custom posts (via activity_id). It will fall under its own page outside of buddypress with a special activity page for displaying items.
November 22, 2012 at 8:56 pm #145524drill_sgt.lewis
ParticipantAnother simpler approach would be to created a bp-custom.php and place it in the plugins directory and add the following code
`<?php
function bp_guest_redirect() {
global $bp;
if ( bp_is_activity_component() || bp_is_groups_component() /*|| bbp_is_single_forum()*/ || bp_is_forums_component() || bp_is_blogs_component() || bp_is_page( BP_MEMBERS_SLUG ) ) {
// enter the slug or component conditional here
if(!is_user_logged_in()) { // not logged in user
wp_redirect( get_option(‘siteurl’) . ‘/register’ );
} // user will be redirect to any link to want
}
}
add_filter(‘get_header’,’bp_guest_redirect’,1);
?>`
This code will work to hide buddypress pages and group forums as is, if your using sitewide forums in line 4 remove the comments around:
|| bbp_is_single_forum()
Save and refresh. Works in current versions.November 20, 2012 at 10:10 am #145394In reply to: Buddypress pages suddenly blanko
gar976
ParticipantI have a custom menu but created long ago. In buddypress settings the component directories are set to active pages for activity streams, discussion forums, user groups and members.
Problem extends beyond this to main buddypress menu at top right of screen where profile edit etc are all blank too (not 404 page not found though). I have an active members widget in a sidebar which does actually work so i agree that it seems like a links issue – but the correct page URL displays when links are clicked.
November 16, 2012 at 8:23 am #145122In reply to: Register page not found/No User Profiles
@mercime
Participant== Activity, Groups and Members pages display on the menu bar, but Register does not? ==
You can just add it to the custom menu in Appearance > Themes
== Also if I try and go straight to the URL (entreacting.com/register) it just takes me to the home page. ==
That happens when you’re logged in and go to the register page. Log out and check if you can go to the register page just to double-check everything’s in working order.
== Also I cannot edit my user profile. when I click me name on the right it takes me to “Page not found” ==
Strange. Re-upload BuddyPress manually to wp-content/plugins/ i.e., via FTP/cpanel/etc.
October 31, 2012 at 5:10 am #144293meandering
ParticipantWow thanks for this amazing help!
I did it and I’m getting excited! (Though I didn’t see the “ tags at all for some reason.)
Some pages still seem to have issues fitting:
http://onlinefashionweek.net/activity/
http://onlinefashionweek.net/members/pataphor/forums/
http://onlinefashionweek.net/members/pataphor/friends/I was thinking it might be easier to remove the sidebar, but I wasn’t sure how to go about it.
On the other hand, this test forum I made fits great!
http://onlinefashionweek.net/forums/forum/test-forum
So maybe if I could make them all fit, maybe with that custom CSS somehow, it would be cool.
Although, on a separate note, I’m not sure why Forums is blank …
http://onlinefashionweek.net/forums
Ai yi yi, my head now officially hurts. : )
Really appreciate this insanely helpful support!
October 30, 2012 at 2:45 pm #144256tvansant
ParticipantI found a way to make the default page for members to be the profile page.
`http://www.buddyboss.com/making-profile-the-default-landing-page-in-buddypress/`
and
`https://codex.buddypress.org/extending-buddypress/bp-custom-php/`October 26, 2012 at 8:44 pm #144042Sean Infinitee
ParticipantHey guys-hoping you can help me figure out what I’m doing wrong…if I can’t hide or remove the “community” tab then it would seem to be a pretty simple concept to change the order of the tab, but no luck with the above…not that php or css savvy but the instructions here are pretty straightforward so any help is appreciated!
Using latest wordpress version and just installed buddypress yesterday so I would assume it is also the latest version.
My website is http://www.defendersofturntablism.org
I added the line `define( ‘BP_DEFAULT_COMPONENT’, ‘preferred_default_tab’ ); to wp-config.php above ‘//MySQL settings – You can get this info from your web host **//`
Created bp-custom.php in plugins folder and added
`function bbg_change_profile_tab_order() {
global $bp;$bp->bp_nav = 10;
$bp->bp_nav = 20;
$bp->bp_nav = 30;
$bp->bp_nav = 40;
}
add_action( ‘bp_setup_nav’, ‘bbg_change_profile_tab_order’, 999 );`Unfortunately all this has done is add the above line of code to the header of my site…can anyone help me figure this out??! Seems like it should be very simple. Ideally I want to have see the community tab go away and have the members section contain the buddypress activity, groups, forums, etc.
Thanks in advance!!
October 25, 2012 at 4:41 am #143918EthanVan
SpectatorWe have started out with the following plugins and will be tailoring them to our specific needs:
BP (Obviously)
BP Profile As Homepage
BP Activity Stream Hashtags
BP Docs
BP Friends Online
BP Profile Privacy
BP reCAPTCHA
BP Verified
WP Custom Login Page
Easy Instagram
BP Skeleton Component (for all custom plugins)The above mentioned plugins (aside from BP) will be highly modified and contain only traces of the original code. Credit will be given to the original developers for the provision of the base plugin state and inspiration that leads us to our end result.
October 18, 2012 at 2:47 pm #143652In reply to: Need help with Custom Code
shanebp
Moderatorimo, It’s not clear what you’re trying to do.
On a ‘single activity page’ – you mean the profile activity page for a specific member ?And on that page you want to display, in a sidebar, the 20 most recent updates from all users ?
In your code, you’re only looking for updates that include an image [bpfb_images]
So you only want the 20 most recent updates from all members that include an image ?
If so, you’d be better off writing a custom query. Then you won’t have to do all that string parsing.October 16, 2012 at 9:09 am #143526In reply to: Changing slugs with bp-custom.php: No change!
DaveyWavey
Participant@modemlooper said 4 days, 6 hours ago:
To change slugs you change the page name and URL for that page in the WordPress admin.That worked perfectly. Almost. It seems that links in the activity feed still reference “groups” as opposed to the new slug so for instance the link should be something like this:
http://www.mysite.com/newslugforgroups/groupname/forum/topic/newforumpost/
instead the groups slug somehow persists and reads like this:
http://www.mysite.com/groups/groupname/forum/topic/newforumpost/
And this above link generates a 404 page not found error.
Old slug: groups
New slug: newslugforgroupsThis seems to only occur in the activity feed – everywhere else, your suggestion seems to work just fine.
October 14, 2012 at 7:38 pm #143429In reply to: Making Forum page full screen
tweekage
Participant@WPwebbouw I’m using my own custom theme and used the custom theme plugin for it.
@modemlooper I have done that. I used one I made in the past that works on other pages and even made another one with the code that was in this forum also and that didnt work. I just cant figure this out haha.
I noticed all of the pages “members, activity, etc” never needed code int he page for it to work. I did put [bbp-forum-index] in the page for the forum to pop up.
https://www.dropbox.com/s/0ixigjkptharbms/forums.PNG <– an image of what my page looks like in admin with my options.
https://www.dropbox.com/s/d0ldzkromrx5l6q/forum%20page.PNG <– Result.
https://www.dropbox.com/s/jt0j9kbwfd0q22l/fullpage.php <– is the file I currently use which I did remove the sidebar call at the bottom.
October 12, 2012 at 9:36 pm #143367In reply to: Posting to activity stream issues
fibis
ParticipantI’m having a similar issue. Everything worked fine until I upgraded WordPress and Buddypress day before yesterday to:
WordPress 3.4.2.
Buddypress 1.6.1Now whenever someone posts text the whole page is displayed in the text box for a couple of seconds and then the page makes like it’s going to save, but hangs white. If you stop or refresh the page whilst it’s hanging this is displayed infront of the url http://wyciwyg://62/
I’m using the custom community theme, but have tried using the default them and it still does it. The only person that doesn’t have this problem is me when I’m logged in as admin. All other user levels have this problem though.
I did add bbpress forum after upgrading and have tried deactivating that, but that didn’t fix it. Posting in the forum works fine though.
Any ideas on how to fix this please?
September 26, 2012 at 10:03 pm #142503In reply to: change “My Account” link
grafics
ParticipantSorry – didn’t explain that very well, too many hours messing with this.
I am referring to the “My Account” link in the top buddybar. The drop down has the profile, activity, etc links – those are fine. We just want to redirect the top “My Account” link to the custom page. -
AuthorSearch Results