Jump to content

Invision Community Blog


Managing successful online communities

bfarber
Sign in to follow this  
 

IP.Content 2.1 Dev Update: Block Improvements

Blocks are a core concept in IP.Content, allowing you to easily create widgets that you can embed on any page (within IP.Content or otherwise). IP.Content 2.1 introduces several useful updates for blocks that we believe will help you customize your pages even further than before.


Status Updates Plugin Block

IP.Board 3.1.0 improved status update functionality greatly, adding multiple status update support, commenting, and more. Along with this new functionality, the status updates sidebar plugin that is displayed on the forum index was updated to support the new features.

IP.Content 2.1.0 introduces a new plugin block that allows you to display this status update plugin on any IP.Content pages you wish.


New Feed Blocks

As of IP.Content 2.1.0, you will now be able to create feed blocks of both profile comments and status updates (and replies). This new feed block is available in addition to the previously mentioned status updates plugin block. You can filter both feeds to control what content is pulled based on the poster and receiver information (for instance, show all profile comments made by my friends, or show all profile comments received by the admin of the site). These feed types can be useful for creating social networking style pages - perhaps you want to show a feed of all profile comments for the currently logged in user, or perhaps you want to show a feed of all recent status updates from the logged in user's friends. These new feed types can be used in creative ways to create social pages your users will love.


New Filter Options: Members Feeds

Beginning with IP.Content 2.1.0 some new filtering options have been added for member feeds. You can now restrict a member's feed to only show members you are friends with. This can be useful to create a "friends feed", for instance, in order to list all of a particular user's friends. You can also now filter member feeds to only show logged in users. You could, for example, combine this with the option to only show friends for a user to show all of your currently online friends. These two new filter options can be used in creative ways to make interesting member feeds for your community.


Dynamic Filtering for Databases

In IP.Content 2.0, you can filter database and article feed blocks based on arbitrary data in up to 5 fields. This can be useful to create content-driven feeds based on specific fields in your database, however it has the drawback that the feeds are always static based upon the configuration in the ACP.

Beginning in IP.Content 2.1.0, you can now configure the database and article feeds to filter based on input variables. For instance, you can embed one of these feed blocks on a page, and then when you link to the page you can add an input variable that will allow for dynamic filtering of the content. This is probably explained easiest through an example.

Let's say you have a page "results.php" that you have embedded a database feed block in. This ecan create a feed of results from your database based on the block configuration in the ACP. With IP.Content 2.1.0, you could set one of the custom filter fields to search one of your database fields for "@title". The @ symbol here tells IP.Content to obtain the filter from the input variables - in this case an input variable named 'title'. When linking users to this page, you would use a URL similar to "mysite.com/results.php?title=hello". When IP.Content loads this page and parses the block, it will use the value from the input variable ("hello" in this example) to search in the field, finding all records that have "hello" in the title.

This feature may be hard to understand at first, but affords developers with powerful ways to create unique pages without having to manually configure feeds for every possible scenario. We will be posting some documentation on how to use this feature following the release of IP.Content 2.1.0.



We hope you find these updates to the blocks in IP.Content 2.1.0 useful and look forward to your feedback!

Sign in to follow this  

Comments

Recommended Comments

Some excellent additions there :)

Any chance of feed pagination? For example, I have a database with multiple categories. For the main page I want to list the latest records from all categories. I can do this with feeds, but its limited to X records. Ideally I'd like an option of 'all records, X per page'. If this could make it onto the list of things to do (or alternatively, create a special category which pulls records from all categories) I'd much appreicate it!

Share this comment


Link to comment
Share on other sites

[quote name='tomturd2' date='13 September 2010 - 03:28 PM']
Some excellent additions there :)

Any chance of feed pagination? For example, I have a database with multiple categories. For the main page I want to list the latest records from all categories. I can do this with feeds, but its limited to X records. Ideally I'd like an option of 'all records, X per page'. If this could make it onto the list of things to do (or alternatively, create a special category which pulls records from all categories) I'd much appreicate it!


Please post your ideas in the feature suggestions forum. I know this probably sounds redundant from us, but honestly we do review the feature suggestion forums frequently and heavily. Most of the additions in IP.Content 2.1 are direct results of internal and external feature suggestions. The input filtering for blocks is from a feature suggestion, for instance.

http://community.invisionpower.com/topic/312458-custom-database-search/

The problem with adding suggestions here in the comments area is that they'll get lost and forgotten about, where-as we can filter and review the suggestions easier when they are posted in separate topics in the feature suggestions forum. :)

Share this comment


Link to comment
Share on other sites

This is cool and all but something I would liked to seen since IP.C was created is "forum blocks". The option to make a page and include a forum section on a page "Invision Power Services, Inc.", "IPS Customer Services" etc.

This way we could make hub pages for each section and have forum info on them pages. Any chance we'll see something like this?

Share this comment


Link to comment
Share on other sites

[quote name='Nervosa' date='14 September 2010 - 01:06 PM']
This is cool and all but something I would liked to seen since IP.C was created is "forum blocks". The option to make a page and include a forum section on a page "Invision Power Services, Inc.", "IPS Customer Services" etc.

This way we could make hub pages for each section and have forum info on them pages. Any chance we'll see something like this?


Please see my previous reply. :)

Share this comment


Link to comment
Share on other sites

Hopefully the status update block allows the user to post their own status and comment on others, just like the status updates page. I would like to restore my old Portal page that had blocks for all recent activity.

Share this comment


Link to comment
Share on other sites

Sounds good.

You may want to redesign the default 'Who's Online Block'. The current one is rather fugly. The Welcome block is also rough. Latest Poll block should be redesigned far appearance as well and also be configurable to use just the latest poll or an admin desired url. Be nice to have a decent looking stats block as well.

Yes, I know--you make them look however blah, blah. Just a default one that functions and looks good would be a nice thing default..

Share this comment


Link to comment
Share on other sites

@bfarber

Dynamic database filtering.. you have no idea how much I had been hoping for this feature. I think this is going to allow for a tremendous amount of flexibility in block creation now.

Thank you so much!! The developers definitely listen to suggestions and that's what makes IPS such a great company for web developers to buy into.

Share this comment


Link to comment
Share on other sites

When I try to make a Feed block for my forums I get this error message:

The contents that you submitted would create a parser error when compiled into appropriate PHP code. Please verify any PHP code, template tags and template plugin tags (such as parse blocks) and resubmit your data.

Anyone know what I'm doing wrong and how I can fix it?

Share this comment


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...