Forum Replies Created
-
In reply to: function for logged in blog domain
It’s a WordPress Multisite question, not a BuddyPress one – this function would be a starting point: it returns all the blogs a user has access to:
get_blogs_of_user( )
In reply to: how to create a home page exactly like FacebookYes, use a PHP conditional statement to check whether they are logged in and include the appropriate code.
As @modemlooper points out, it’s straightforward work for a web developer, but does require knowledge of PHP, HTML and CSS
In reply to: Enterprise Nation: a 64,000 member BuddyPress siteThere are no spam members on there (or no more than a small handful). The site is monitored and administered on a daily basis.
Enterprise Nation is a very successful company supporting UK small businesses. The membership comprises regular members, and special campaign sign ups.
Spam sign ups are prevented through a number of techniques – including the alternative sign up page (it’s more than just a renaming of register), and the use of a membership plugin. Captcha is just an additional layer of protection in this case.
10K Twitter followers, and 5K Facebook likes is a pretty impressive conversion ratio!
In reply to: List Buddpyress users ordered by meta_valueUsing the WP API you can sort by meta_value on posts (WP_Query), but not on users (WP_User_Query).
You’d either have to do it in 2 passes, or write your own custom SQL statement.
If you have a lot of users, and scores change infrequently, you might want to consider caching your results for a period.
The following can be used on a single post page to give you a link to the author’s buddy press profile:
`$author_id = get_the_author_meta( ‘ID’ );
…
<a href="” rel=”bookmark” class=”fn url”>…`In the members loop you can use: bp_get_member_user_id() to get the id
It’s not well documented, I remember spending a while tracking through the code to find it.
Then, yes, you can use that ID to fetch the email address.
In reply to: time traveling should not be encouragedYou’ll lose your amendments as soon as you upgrade BuddyPress – it’s not a good practice to be hacking core files.
The safest way to address this one, would be to add a filter on: bp_get_the_profile_field_datebox
In there, you’d have to do a bit of PHP string manipulation – replacing the option value parts for year in the HTML string, with the range that you want.
It’s not straightforward, but it’ll work through a core upgrade.
In reply to: Does anybody know how they made this?@enderandrew – yes – there are quite a few sites now going with the tiled approach, e.g. the ‘new’ look Facebook friends page tiles 3 per row, and linkedIn has some tiled directories (with the profile tiles having a business card type feel). You’ll also find lots of smaller community / event site examples.
As HTML5 / CSS3 transitions become more prevalent, I expect to see more and more nice hover effects on the tiles – e.g. opening up in place to reveal more details about the member along with the ‘friend’ and ‘send message’ buttons. Andy Clarke’s “Hardboiled Web Design” book has some interesting examples of the type of effects that can be achieved, and the zurb playground is worth a look.
In reply to: Does anybody know how they made this?@aminima – we undertake that sort of complex development work on a commercial basis, almost invariably as part of full site builds. We contribute on the forums to give general advice and guidance, and sometimes to give short outline code snippets and pointers, but not to provide fully coded components.
If you need a developer to help build custom features for your site, we’d be happy to provide a quote, or you should be able to find other good BuddyPress developers who are available to take on freelance contracts.
In reply to: Worship Ministry@mercime – yes, I paid them a lot of money to feature that video on the home page – I knew you’d appreciate it
In reply to: Worship MinistryThanks Tammy et al – the graphic design was done by Rebecca – she also produced the Hello Eco Living and Bitsy designs amongst others. I’ll make sure she checks in on the feedback.
The header font is league gothic – which is available from typekit.com . We’re working with another header font from there on a new site – museo slab – which is giving similar strength to the layout
I should mention the clients for Worship Ministry as well – they came up with a lot of great ideas, and we got some really productive debates going on both functional and design concepts.
In reply to: Enterprise Nation: a 64,000 member BuddyPress siteHi Shane – thanks for the feedback.
The site has now passed 75,000 members, but traffic has scaled back with the pausing of a business funding competition. There are some other new features coming online in the next few weeks though, so we’ll see how that affects server performance.
The site is being cloud hosted, in conjunction with Harriman House’s online presence – a publishing company and part owner of Enterprise Nation.
Unfortunately, I don’t have too many details on their hosting setup – with our efforts concentrated on front end strategic features of the site. I can report that initial hosting on a reasonably specced VPS box ran into some difficulties coping with the number of sign ups.
Best regards, Roger
In reply to: Does anybody know how they made this?Hi there –
really pleased you like the way we layed out the members directory on Stuconnect.
We’ve experimented with a few different directory setups – the row of ’tiles’ being one of our favourites. We’ve used a similar approach on http://www.enterprisenation.com/members , and on our latest BuddyPress based site: http://www.worshipministry.com/members
The standard layout in bp-default is not very space efficient. The ’tile’ approach allows us to show more members in the same screen real estate, as well (in our opinion) as looking cleaner and more aesthetically pleasing.
It’s a combination of work on two template files in the theme: /members/index.php and /members/members-loop.php . In our sites, we tend to rework all of the theme from scratch, but do stick with a similar folder-file structure as bp-default – as well as re-using some of the basic PHP loop structures.
The clever work on the http://stuconnect.co.uk/members/ page is in creating the filter by University on the directory – we grab the name of the University from the query vars, and then do a little pre-filtering of the user IDs before passing them into the member loop (some restrictions on the BuddyPress loop filtering prevent us doing this in one step).
Best regards, Roger. http://21inspired.com
Hi Paul… PHP error_log is blank
In reply to: Massive load issues with buddypressYes, we used the predecessor plugin debug-queries, but debug-objects is the plugin author’s recommended update
You need to hook on to the authenticate functions in WordPress:
http://www.generalthreat.com/2012/02/adding-externally-authenticated-users-to-buddypress/In reply to: Massive load issues with buddypressBP does bring a lot of additional queries into the mix, so can increase load (sometimes dramatically as you’ve experienced).. but often there are optimisations you can try to overcome this (some server configuration, but others in your template code loops).
Try profiling your database queries – that may give you some pointers to where the load on the system is coming from. Your top member lists (number of images, etc.) might be a likely candidate in how they interact with the BP profiles.
In reply to: Is buddypress right for me? Job Recruitment SiteWe have job postings and different user roles running on a couple of our BuddyPress based websites.
Essentially though, it’s a task that requires a skilled developer, rather than being a simple configuration.
You’ll need a bespoke build – in our case, we have our own custom post types for jobs, use WordPress user roles & capabilities to differentiate between user types, and ‘hook’ them in to BuddyPress as a new component. For the bells and whistles, we also integrate payments and cron jobs to monitor and tidy up when job ads expire.
In reply to: Using BP content / API to create an iphone appYou’ve also got the problem that a lot of the API isn’t clean – it churns out presentation HTML (targeted for the bp-default theme) rather than just performing function (as you’d hope).
So, as well as adding a JSON API, you’d have the additional challenge of filtering / cleaning the API (already enough of a challenge when developing on BP for standard platforms).
—
Note: if you are accessing an external API, i.e. needing the app to have an Internet connection, then you would probably be wiser to create it as an HTML5 mobile optimised site, rather than a full blown app.
If you want it to operate offline as well – then you may be better creating your own streamlined platform, that can work well within the restrictions of local data storage on the mobile.
In reply to: Remove the “DashBoard” from the adminbarJust doing the plain: remove_action call in bp-custom.php isn’t working for me either on 1.5.n
Instead, to get it to work, put the remove_action call in a hook on init in your bp-custom.php
add_action("init","my_on_init");
function my_on_init(){
remove_action('bp_adminbar_menus', 'bp_adminbar_thisblog_menu', 6);
}
@boonebgorges – the sites go out to clients, so it’s not good to have warning messages littering wp-admin
jqueryui has an autocomplete widget you can work with (or have a look at the older autocomplete plugin that’s used already in BuddyPress for usernames e.g. when you send a message). http://jqueryui.com/demos/autocomplete/
The correct way to set up it up in a WP environment is by getting the autocomplete plugin to make an AJAX request to admin-ajaxurl, which will call on to an action that you create to return suggested names.
It’s not straightforward, but a Google around will retrieve details on how to best setup an Ajax call in WP – alternatively the book “Professional WordPress Plugin Development” has a good chapter on it.
In reply to: Message replies are sent twiceok, we are experiencing the same problem on one of our client sites
You need to create / edit the bp activity item for that post directly in your gravity forms filter.. As you are not saving / updating the post, so missing the default bp hook that does the activity admin for you
A couple of points:
1. You are passing the post_id into your my_set_post_thumbnail() function – so don’t know why don’t just use that, rather than doing a get_post with that id, and then trying to use the ID from that post. Similarly, with your thumbnail ID.
2. Naming your variable $post may be causing some conflict with the global $post – at the very least, it makes your function difficult to read