Search Results for 'buddypress'
-
AuthorSearch Results
-
August 15, 2010 at 8:06 pm #89210
In reply to: Half page of HTML with home / siteurl different
@mercime
Participant@chmac – “Giving WordPress its own directory will not work in WordPress 3.0 with multisite enabled. It interferes with the member blog lookup. “
https://codex.wordpress.org/Create_A_Network#WordPress_Settings_RequirementsAugust 15, 2010 at 7:43 pm #89208In reply to: Half page of HTML with home / siteurl different
Callum Macdonald
ParticipantAugust 15, 2010 at 7:21 pm #89206In reply to: Need to check if bp_profile_field_data() has data
Roger Coathup
ParticipantI’m not really sure what you are trying to do with your code. Whereabouts are you trying to hide fields with no data? In the default theme profile-loop.php, fields without values are already not displayed.
As for quick fixes: You’ll need to replace ‘your-field-id’ with a variable that’s got the field id in it. You’ll also need to write valid PHP e.g. closing the PHP code before beginning your html. I’d steer clear of inline style definitions as well; the default BuddyPress theme comes with a comprehensive set of CSS files, and you’d be better augmenting these with style definitions.
Unfortunately, this forum isn’t really the appropriate place for PHP coding tutorials – You might be better reading up on PHP before attempting to modify the theme templates in any depth.
August 15, 2010 at 7:17 pm #89204In reply to: Future groundbreaking plugins
PJ
Participant@LPH2005 … I see your point. It would be helpful to have Courseware hidden from groups unless they opt-in to using the plugin.
August 15, 2010 at 7:09 pm #89202In reply to: Automatically Add Newly Registered to Group
LPH2005
ParticipantI decided to add “BuddyPress Registration Groups” plugin — but this doesn’t solve most of the issues but it’s a start.
August 15, 2010 at 6:57 pm #89200In reply to: Automatically Add Newly Registered to Group
@mercime
Participant@LPH2005 have you tried this plugin? https://wordpress.org/extend/plugins/buddypress-auto-group-join/
August 15, 2010 at 6:55 pm #89199In reply to: Half page of HTML with home / siteurl different
@mercime
Participant@chmac, What do you mean you put WP at cscomm.org/wordpress – which by the way, is a blank page at this time.
August 15, 2010 at 6:29 pm #89195In reply to: Need to check if bp_profile_field_data() has data
tubruk
Participant@rogercoathup thanks but my php isnt really so good this one dont work:
if (bp_get_profile_field_data(‘field=your-field-id’) === “”) :
div style xy xy xy xy (the part which should be shown when its filled outelse:
you have to fill it out messageendif;
August 15, 2010 at 4:55 pm #89183Roger Coathup
ParticipantAs pointed out by @intimez, this is already in the trac with a fix: https://trac.buddypress.org/ticket/2548
August 15, 2010 at 4:51 pm #89182In reply to: No Title of Each Posts and Pages
Roger Coathup
Participantyes, that’s the same problem as I’m experiencing:
… the !bp_current_component() clause in the if statement in bp_page_title() is what’s causing the problem for sub-page titles.
I’ve identified that in another thread: https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/sub-pages-e-g-about-are-not-getting-the-correct-title-tag-set/
But, hadn’t seen your entry in the trac.
August 15, 2010 at 4:31 pm #89181In reply to: No Title of Each Posts and Pages
@mikey3d
Participant“Don’t just cut and paste my comment and edit in the word “NOT” – it will confuse people.”
Not true, I edit words “the post”, “BUT” and “NOT.”
I’m sorry that you thought it will confuse people. I didn’t cut and paste your comment so therefore I altered your comment to my comment without quote. The quote means it’s your comment. Without quote it means my comment.
“On my default installation post titles DO work correctly, but page title don’t work.”
My post titles DO NOT work correctly. The post title is “My blog | Home”
My page title DO NOT work correctly. The page title is “My blog | Home”
“If they don’t work on your installation, please make this clear in your reply. I’ll have to leave you to figure out why that is giving a problem on your install, or someone else to step in with thoughts.”
There is no problem in my installation. The WordPress is fine and after install BuddyPress is fine too but the title tag is incorrectly. So that means it is BuddyPress problem. You just admitted:
“You are right about pages though: pages such as About are not getting the correct title tag set. I’ll report this as a separate thread.”
I use:
WordPress 3.0.1
BuddyPress: Version 1.2.5.2
Theme: BuddyPress Default 1.2.5.2Thanks, Mikey3D
PS: There is some confusing with words “post title” and “page title.”
My thought of “post title” is after you click the headline link on the FrontPage to see the page and the title tag is the post title tag.
My thought of “page title” is after you click the “About” navigation link to see the page and the title tag is the page title tag because it‘s a static page.
I’m not talking about H1, H2 for title.
August 15, 2010 at 4:20 pm #89180In reply to: No Title of Each Posts and Pages
intimez
ParticipantIf problem is same as this one, try the patch
https://trac.buddypress.org/ticket/2548
Use the same login as buddypress and post your result
August 15, 2010 at 3:21 pm #89178Roger Coathup
ParticipantInvestigating further, the function bp_get_page_title() is not returning the correct result for sub pages:
This if at the start of the function is returning true for all pages not just the home page:
if ( is_front_page() || !bp_current_component() || ( is_home() && bp_is_page( ‘home’ ) ) ) {
$title = __( ‘Home’, ‘buddypress’ ) ;Anyone got ideas?
@johnjamesjacoby – does this need adding as a fix in the trac?
August 15, 2010 at 2:45 pm #89176In reply to: Need to check if bp_profile_field_data() has data
Roger Coathup
Participantin your child theme, wherever you want to hide fields that have no data, you can put a simple if statement, something like:
if (bp_get_profile_field_data(‘field=your-field-id’) === “”) :
// don’t display code
else:
// display code
endif;Which file to edit, all depends where it is you are wanting to display / hide the profile field. The most likely file for displaying profile fields is profile-loop.php in members/single/profile, but that already skips blank fields (using a call to bp_field_has_data(); that function has to be used inside the profile field loop).
August 15, 2010 at 2:08 pm #89173In reply to: Need to check if bp_profile_field_data() has data
tubruk
Participant@rogercoathup where do I have to add this and what do I need to change?
thanks you
August 15, 2010 at 1:46 pm #89171In reply to: Page Title doesn’t change on sub-pages
Roger Coathup
Participant@djpaul – I think this might be a wider problem – I investigated this for another user.
I’ve installed the default BuddyPress installation, and using the default theme. If I click on the “about” page, the title tag still displays “home”
August 15, 2010 at 1:34 pm #89170In reply to: No Title of Each Posts and Pages
@mikey3d
ParticipantI’m glad you did ask. That is where bottom line is the whole point of this discussion. Anyone who installs BuddyPress will have no headline in their title tags of each post and page. Ex:
The post is “Hello world!”
The title tag is “My blog | Home”
The headline is “Hello world!”
The title tag with headline is supposed to be “Hello world! | My blog”The page is “About”
The title tag is “My blog | Home”
The headline is “About”
The title tag with headline is supposed to be “About | My blog”The BuddyPress’s title tags are so very wrong with its. I can’t believe no one knows about it.
I have not mention about Meta title and h1, h2 tags. Only about title tags.
Thanks, Mikey3D
August 15, 2010 at 1:10 pm #89169In reply to: Profile field
Roger Coathup
ParticipantAugust 15, 2010 at 1:09 pm #89167In reply to: Profile field
Roger Coathup
ParticipantAugust 15, 2010 at 12:03 pm #89160In reply to: Facestream and Tweetstream for Admin only
guigoz
MemberI’ve placed this code before button display. But I think it will be better to charge the plugin only if the admin is logged in, just after to have checked if buddypress is runing, I don’t know how to do that. Excuse my english..
if ( $bp->loggedin_user->is_site_admin ) {
August 15, 2010 at 11:56 am #89158In reply to: No Title of Each Posts and Pages
@mikey3d
ParticipantI put the code in bp-custom.php from between line 896 to 950 in bp_core_templatetags.php and I get an error…
Fatal error: Cannot redeclare bp_page_title() (previously declared in /path-to/wp-content/plugins/bp-custom.php:3) in /path-to/wp-content/plugins/buddypress/bp-core/bp-core-templatetags.php on line 898.
Here’s the code I put in bp_custum.php:
function bp_page_title() {
//CUSTOM CODE FROM BP_CORE_TEMPLATETAGS,PHP
//between line 893 to 948return apply_filters( ‘bp_page_title’, $blog_title . ‘ | ‘ . esc_attr( $title ), esc_attr( $title ) );
}How would I code what I want but the default one doesn’t work to begin itself with no headline title of posts and pages?
Thanks for helping, Mikey3D
August 15, 2010 at 10:52 am #89156In reply to: Plugins required
Roger Coathup
ParticipantSome thoughts:
1. Forums – WordPress are developing a new approach to forums, releasing bbPress as a plugin. A beta is due mid September, with a key BuddyPress developer leading the initiative. Have a Google / Bing and check that one out
2. Tutorials – I suggest creating these in a sub-blog dedicated to tutorials (each tutorial is a separate post in the blog – video / image uploading is then no problem). Maybe use a forms plugin (e.g. gravity) if you want front end posting. There should a standard WP plugin that allows post ratings
3. Job Board – these is a plugin out there from @travel-junkie : https://buddypress.org/community/groups/third-party-components-plugins/forum/topic/introducing-jobboardr/
4. Community Store – check out some of the WP extensions for e-commerce. Shopp and WP-commerce seem to be the main contenders
5. There is a facebook connect plugin (have a search in these forums) and @modemlooper is doing some work with twitter. It depends whether you are talking about connecting accounts (e.g. facebook connect), or simply sharing activity on social sites (facebook like, tweet this, etc.). There are loads of plugins / code snippets you can install for sharing (check out shareThis and their snippets for WordPress)
Cheers, Roger
August 15, 2010 at 10:20 am #89155In reply to: only for logged in members
Roger Coathup
ParticipantYou could look at using functions like:
groups_is_user_member( $user_id, $group_id )
To test if the user is in a specific group, and only show the page if they are in the appropriate group. This is defined in bp-groups.php.bp_is_member()
To simply check whether the current user is a member (and logged in). This is defined in bp-core-templatetags.phpThere is also a group blogs plugin: https://buddypress.org/community/groups/bp-groupblog/
I don’t know if this can be adapted to implement the private pages for your group members.
Cheers, Roger
August 15, 2010 at 10:01 am #89154In reply to: Favourite Posts in WPMU / BuddyPress
Roger Coathup
ParticipantThis plugin does a lot of what you are after as well, although it was designed for external links: https://buddypress.org/community/groups/buddypress-links/
It requires you to type in a URL from the links page. It would be nice it if had a “pop up” form / button, that you could attach to posts throughout your site.
August 15, 2010 at 8:28 am #89151In reply to: Adding the default sidebar to another theme
Matthew Hui
ParticipantMy other theme is buddypress-widget-theme and I need to add the sidebar to the third column of my widgets
Look at the column here http://glumbo.com
-
AuthorSearch Results
