Forum Replies Created
-
bp-custom.php needs to go in your plugins directory, not in wp-content/
In reply to: How to add a profile link to navigation bar@modemlooper, @danpkraus, @charlietech
You can enhance the WordPress menu system to support dynamic links (including BuddyPress profile links) – there is a specific filter that you need to use.
Please take a look at this other recent forum thread, and the link on there which has all the details: https://buddypress.org/community/groups/creating-extending/forum/topic/how-to-create-new-dynamic-menu-including-bp-links/
You’ll need to be a competent PHP developer, but if so, it’s relatively straightforward
@shawn38 – as @karmatosed and I have pointed out, you won’t be able to make the Corporate Theme ‘responsive’ just by setting a percentage width for the outer wrapper.
It will probably take a lot of work, and just for starters you’ll have to consider the knock on effect of changing the outer container to a percentage width on all the elements it contains. Do they have fixed widths, margins, etc, etc. specified, how will floating elements react, and so on.
In reply to: How to validate custom profile fields.If you want validation as they type / enter — hook some jQuery onto your form. [That’s standard jQuery form validation, for which you’ll be able to Google for plenty of examples]
In your jQuery, you can call out (POST) to your PHP validation function. Look up AJAX in WordPress for details on how to do this – in particular you are interested in using admin-ajax.php and registering your function as an action. You then specify that action in your jQuery AJAX call.
You might also want to look at some of the WordPress data validation functions.
Responsive web design (as it’s known) is a major subject area — basic fluid designs are one approach (percentage widths and so on, and will help with your white space concern), but it’s a much richer field than just that.
Check out a book such as: http://www.abookapart.com/products/responsive-web-design/
You can also look at some of the responsive ‘frameworks’ as a base for your site – twitter’s bootstrap, zurb’s foundation, or Andy Clarke’s 320 and up.
You’ll also find plenty of responsive themes for WordPress (2011 included), that can be enhanced to support BuddyPress.
Logically bp_get_group_is_public() is the function you want to use —
That said, I can’t find anywhere in the core code where is_public is getting set, or getting used in the default theme. @djpaul – is this a set of functions that should be stripped out – they appear unused and not working.
Instead, the default template makes use of bp_get_group_type(), which in turn uses the $group->status attribute (as you’ve tried). In your case, are you sure you’ve setup your $group variable correctly?
In reply to: Buddypress for restaurant reviews website?It’s a standard WordPress question, rather than BuddyPress specific.
Have a look at some of the actions on new user registration in WordPress – you would simply need to hook a function onto the appropriate action, and write to your alternative database in that function.
If you are not familiar with ‘action’ programming in WordPress, take a look at Codex documentation, there is plenty of info in there.
In reply to: Best Strategy?Yes, it works really well for this organisation – their build has been running for over two years now, and we add new features on a fairly continual basis.
There are some added twists that the shared user base lets us introduce – e.g. as well the main domain being the corporate home, we are able to offer personalised versions of the main site that the members can ‘present’ to their colleagues and connections.
Meanwhile, the member area (BuddyPress based) remains hidden away, and only visible to logged in members.
In reply to: Best Strategy?@StSmith – we use exactly this setup on one of our client builds.
They have a standard WP install on the root domain for their corporate front end, with a BuddyPress install on a subdomain for their members to access social elements, book events and so on.
They share the same database, and we even ‘share’ some stories from the corporate site direct in the member domain, and vice versa with some photo uploads.
In reply to: Buddypress users – buy and sellThere are lots of options in addition to multisite – e.g. bespoke code to integrate a shop built from scratch with the profile, or integration of an existing shop into profile, with a member front end for product upload.
For an off the shelf solution, you can have a look at MarketPress from wpmu.
In reply to: Some pages not reading CSS properlyYour pages are reading the CSS perfectly correctly.
It’s your templates that need adjusting – you’ve installed a photo plugin, and not rewritten the templates to work with your theme.
You may find a kindly soul on here who’ll rewrite your templates for free for you – alternatively, you could try posting on the job board for a developer: https://buddypress.org/community/groups/bp-jobs-board/forum/
In reply to: How to create new dynamic menu including BP links?.. and here’s a write up on how to use hooks (or in this case filters), to add your dynamic menu item:
http://stackoverflow.com/questions/10644384/dynamic-url-in-wordpress-navigation
Obviously, you’ll have to adapt the code to add your BuddyPress profile links.
You can also ignore the comment about playing with the priority number for ordering (that’s nonsense). You’d have to take the item list (incoming parameter), and manipulate that – inserting your menu at the right point.
It’s not ‘cut and paste’ though, and you’ll need some reasonable PHP development skills to get it set up correctly.
In reply to: How to create new dynamic menu including BP links?The ‘dynamic’ links, e.g. to a members profile, require PHP (to work out the path to the current member). You can’t add links that include PHP using the built-in WordPress nav menu system.
You’ll either have to add those menu options in your template files, or perhaps find a way to hook in to the WordPress nav menu system (read up on WordPress action hooks) to extend its capabilities to support dynamic PHP based URLs.
In reply to: Forum Default instead of Activity Default in Groupsp.s the article I got the code from is: http://wpnyc.org/groups/buddypress-troubleshooting-and-support/forum/topic/changing-default-tab-for-groups/ — see comments for the 1.5 version
In reply to: Forum Default instead of Activity Default in GroupsHi Zoe,
you can try this code: http://pastebin.com/UDXwYxYf
Placing it in your bp-custom.php file in /plugins
I haven’t tried it, and am a bit uncomfortable with the hard coded component names, but it’s worth a try.
Cheers, Roger
ok… as I guess you know, modifying the core code isn’t a good solution!
Am not sure why your original code isn’t working, as the later $r = wp_parse_args( $args, $defaults ); call should overwrite user_id with the one you supplied anyway.
Did you check that $curauth->ID was set correctly?
In reply to: bbpress wordpress pluginIt appears you are already getting lots of support re: this question over on bbPress forums. Where, they’ve pointed out that you have your urls configured incorrectly.
You also appear to have explained on there, that it’s not the actual pagination that’s broken, but actually your ability to navigate the pages.
Please feedback on this thread, when you’ve worked out the solution from the support you are receiving on bbPress.
In reply to: bp_profile_field_data( ‘field= … doesn’t work@PJ – not sure why the function isn’t working for you — have you got the field name correct?
Paste your code in this thread, and someone might be able to spot what you are doing wrong.
In reply to: bp_profile_field_data( ‘field= … doesn’t work@modemlooper – the new function I’ve given handles array data types, so you don’t have to write any of your own conditional code to catch and process array types.
You should switch your code to use bp_member_profile_data()
I haven’t tried it myself, but according to in file comments, you should be able to get autocomplete to use all members (rather than just friends), by defining the constant:
BP_MESSAGES_AUTOCOMPLETE_ALL
Have a look at the file ajax.php in the default theme
In reply to: bp_profile_field_data( ‘field= … doesn’t workTry bp_member_profile_data() instead.
The documentation in the code is incorrect and as you’ve noticed bp_profile_field_data() doesn’t work for the complex data types.
In reply to: How do I replace website text with images?You can replace text with images in your CSS files.
There are a variety of techniques you can use. It’s not really a BuddyPress question, and you’d be better looking them up in a guide to CSS, or on some CSS specific forums.
Try googling ‘CSS image replacement’ as a starting point.
In reply to: Enterprise Nation: a 64,000 member BuddyPress site@elangley – BuddyPress is used to provide the backbone for member accounts on Enterprise Nation. Customised activity stream loops are also used (e.g. clicking on discussions a sidebar option from some pages) takes you to a custom activity stream showing new forum threads, and blog comments & threads.
The profiles are currently being overhauled – with a raft of new functions coming on board in the next month or so (e.g. shop account integration, and some bespoke BuddyPress components for directory listings).
In reply to: How can I find my topic@djpaul – has anything changed recently, as the ‘Load More’ AJAX in my profile activity stream no longer works for me. Pretty sure, this was functioning correctly a couple of weeks back. Without this, it makes it even harder to find previous topics.