Recent Topics

1 Dec 19, 2010 20:07    

I've seen a few sites around the Internet that have a scrolling marquee at the top of their pages. This would be a nice feature for b2evo.

An example can be seen (currently) at:
http://www.todaysiphone.com/

The marquee takes the top four posts, probably selected by the blog owner, and scrolls a teaser from right to left. Clicking on an article takes you to that post.

2 Dec 19, 2010 20:38

fairly easy to do.But there is a catch;
b2 loads only 1 featured post by default, not all featured posts.
i dont know if there's a setting to change that.

3 Dec 20, 2010 01:03

The posts don't have to be featured, you can use most visited or most commented posts for example.

This is a matter of creating an ItemListLight object with filters. I can help with getting posts from the database. Any volunteers to make a plugin and do Javascript & CSS parts? :roll:

4 Dec 20, 2010 02:07

sam2kb wrote:

This is a matter of creating an ItemListLight object with filters. I can help with getting posts from the database. Any volunteers to make a plugin and do Javascript & CSS parts? :roll:

Well, i can help with that.Btw, if we choose to get&show posts from a selected category for example "showcase" category, can we exclude that from the post loop, so that they wouldn't exist twice ?

5 Dec 20, 2010 04:10

Not a problem. Just pass a list of IDs to exclude

Latest b2evo news without 4.0.2 release
http://b2evolution.net/news/?pl=-305432

Since there is no easy way to alter MainList filters, we'll have to cheat and declare a fake GET param with IDs to exclude

$_GET['pl'] = '-2,54,7,987';

6 Dec 20, 2010 08:30

sam2kb wrote:

Not a problem. Just pass a list of IDs to exclude

Latest b2evo news without 4.0.2 release
http://b2evolution.net/news/?pl=-305432

Since there is no easy way to alter MainList filters, we'll have to cheat and declare a fake GET param with IDs to exclude

$_GET['pl'] = '-2,54,7,987';

I quite didn't get it. where does pl come from ? and how do we use it in a plugin again ?

7 Dec 20, 2010 17:36

pl is a GET param, it stands for "post IP list". You can request specific posts by ID

yourblog.tld/index.php?pl=1,2,5,88

You can also exclude some posts from displayed results preceding the pl param with a minus

yourblog.tld/index.php?pl=-5,88


In the above request we exclude posts #5 and #88

You make a plugin (if you want to), and I'll figure out how to get the posts and exclude them (if needed) from the main list.

8 Dec 20, 2010 18:14

sam2kb wrote:

You make a plugin (if you want to), and I'll figure out how to get the posts and exclude them (if needed) from the main list.

deal


Form is loading...