The Views module can be broken down into three main parts: the query builder, the display builder and the user interface. Usually, we use the interface to control the other two parts, but sometimes situations call for query and display logic that the interface cannot provide.
A good introduction to dynamic views is the function views_embed_view(). [...]
Continue Reading...
Next post
Previous post
It’s an easy fix. I’ll tell you about the hack way to do it, if you like doing it the right way have fun creating 7-8 files.
Continue Reading...
Next post
Previous post
Often, it doesn’t matter whether your Buddypress plugin loads before or after Buddypress. However, if you are using groups API, or extending other Buddypress plugins, your class extensions require that Buddypress be loaded beforehand. Functions hooked into actions that occur before Buddypress loads that use Buddypress functions will cause problems as well if the load [...]
Continue Reading...
Next post
Previous post
Just spent about 5 hours on this one, enjoy …
I’ve seen this question come up on a lot of forums – people want to use email addresses as usernames in Buddypress. It makes sense – emails are easy to remember. But Buddypress has made this difficult to do. Andy Peatling added the following constant to [...]
Continue Reading...
Next post
Previous post
It puzzled me at first when I discovered that activity items are formatted as html before they are stored in the database. This reduces the workload upon retrieval but makes it almost impossible to edit the content of old entries.
Fortunately it is quite easy to change the way activity items are stored in the database. [...]
Continue Reading...
Next post
Previous post
Ajax can really streamline a site’s user experience. The WordPress/WPMU back-end owes much of its ease of use to the presence of many dynamic menus and feedback notices. No one has had time to implement much of this for Buddypress, but I’m going to show you how to put use Ajax in your Buddypress plugins.
Its [...]
Continue Reading...
Next post
Previous post
Widgets are a great way to let people include something cool a bunch of times in their site. The problem is, widget areas are almost always predefined in themes, and usually confined to sidebar areas. So here’s how to make any html element into a widget container.
What exactly does this mean? It means that after [...]
Continue Reading...
Next post
Previous post
Ever want to make a buddypress function that creates a group? Here’s how:
You can do this without writing any SQL. Buddypress uses a class called BP_Groups_Group to handle its group creation. BP_Groups_Group is defined in /groups/bp-groups-classes if you want to see it. I highly recommend taking a look at this, as you will discover other [...]
Continue Reading...
Next post
Previous post