Archived : Techno Babble

This is the archived version of my b2evolution code blog.
If you require any help regarding b2evolution then
visit it's support forums

You can find my current blogs here
Code : {@link : WafflesOn}
Personal : {@link : InnerVisions}

« Playing with an RSS readerPhotozoom 3 takes steroids »

tinkering with the bloglist

Posted on 20th Dec 2007 in : Plugins & Widgets

This plugin has now been released on AstonishMe ( Bloglist widget )

Controlling the blog list

Now that the evocore has stabilised a tad we decided that it was time we brought AstonishMe out of the stone age and upgraded it to 2.x. which means that we have quite a bit of custom work to redo. At the same time we decided to convert a skin we'd been playing with a while ago. In for a penny in for a pound and all that. One of the main problems we had was with the core bloglist widget, we needed it to do more than what it currently does .... so we decided to recode it and make it a tad more *flexible* and then we threw in some new bits.

The main problems we needed to overcome were :

  1. The ability to display public blogs , no problem the current widget already does this
  2. The ability to display members blogs to logged in members
  3. The ability to hide certain blogs from everybody ( including ourselves )
  4. The ability to add each blogs description to the blog list
  5. The ability to re-order the blogs to suit ourselves

What does it do?

This is basically a direct replacement for the current widget except it comes with a fair few new settings. The main ones are the "Current Blog" and "Other Blog" settings which allow you to enter the html to use, either in the settings or from your skin, both settings have some replacement values to allow further customisation :

  • $blog_url$ replaced with the blogs url
  • $blog_shortname$ replaced with the blogs short name
  • $blog_name$ replaced with the blogs name
  • $blog_desc$ replaced with the blogs long description
  • $blog_ID$ replaced with the blogs ID

What about the blog order?

To achieve the rest we decided it was time to abuse the blogs *notes* field .... mainly because we don't personally use it and it's one of the few fields that you don't end up fighting later. Ordering of the blogs is done by sorting them on the blogs notes field, so depending on what text you have in there depends on where they appear in your blog list ( ours start with "blogorder:1" "blogorder:2" etc ). If you happen to be one of the rare people that actually uses the notes field then just ignore the first line when yer reading them. Since we were abusing the notes field anyway we decided to abuse it a bit more. When the blog list is being displayed the plugin looks for the text "bloglist:hide" anywhere in the notes field. If it finds it then it skips ahead to the next blog in the list.

So where is it?

Until we finish recoding AstonishMe you can find the plugin here. Unzip it, upload it, install it, play with settings. As well as the other settings we threw a few in for Afwas although the rest of you may or may not find them useful. Once we have AstonishMe recoded you'll be able to find all our plugins on one easy page. As always, remember that this is a pre-release version of the plugin, so if you find any bugs or quirks let me know and we'll work at ironing them out.

¥

Tags: bloglist

13 comments

Comment by Gary { @link http://garysblog.co.uk } on 20/12/07
Sounds good, do you guys ever rest ? I will wait for the stable release version and let you talk me through it ;)

Have fun bloggin'

Have you got your tree up yet, you bah humbug ;)

All the best

Gary
Comment by Gary { @link http://garysblog.co.uk } on 20/12/07
Hi Paul.
There's a problem in leaving a comment mate on your blog, After you send the comment it fails and if I crash out then it appears on your blog.
Just to let you know :)
Gz
Comment by Gary { @link http://garysblog.co.uk } on 20/12/07
This is the error, if it helps you ?

Notice: Undefined variable: id in /path/html/plugins/am_subscriptions_plugin/_am_subscriptions.plugin.php on line 330

Notice: Undefined variable: id in /path/html/plugins/am_subscriptions_plugin/_am_subscriptions.plugin.php on line 333

Notice: Undefined index: comment_message in /path/html/plugins/am_subscriptions_plugin/_am_subscriptions.plugin.php on line 441

Notice: Undefined index: comment_subject in /path/html/plugins/am_subscriptions_plugin/_am_subscriptions.plugin.php on line 442
An unexpected error has occured!

If this error persits, please report it to the administrator.

Go back to home page
Comment by ¥åßßå on 20/12/07
Bugger, yeah I'm half way through coding some new stuff into that plugin, hence it can either be considered half working or half broke, depending on how full your glass is ;)

I've disabled it for now so the errors should be gone.

¥
Comment by Gary { @link http://garysblog.co.uk } on 21/12/07
Lol, I am sure you will fix it, have you wrapped tinsel around your tree yet ?

Gz ;)
Comment by ¥åßßå on 21/12/07
and deprive the mighty V of a job!

¥
Comment by Gary { @link http://garysblog.co.uk } on 21/12/07
Happy Birthday to you, happy birthday to you, happy birthday dear Vic-tor-ia, happy birthday to you:)

Many happy returns of the day Vicky. :p

Hope you have a lovely day.

Gary
Comment by Lurker on 22/12/07
Hey! The MIGHTY V has a day? 88|

I almost (checks watch) missed it!

Happy Birthday Victoria. May lots of electric sanders be offered, as well as a foot-rub, breakfast in bed and whatever else that you normally does that Yabba could be doing. :D
Comment by Lurker on 22/12/07
Lurker my ass. :|
Comment by ¥åßßå on 22/12/07
*points to date*

You need a gmt watch ;)

¥
Comment by Gary { @link http://garysblog.co.uk } on 24/12/07
Well its not long now until Santa pops down your chimney.

Wishing you and Vickie a very Merry Christmas, Seasons Greetings and that, all the best.

Gary
Comment by ¥åßßå on 24/12/07
I'm not letting that drunken git into my house, we have loads of booze under the tree!

He can leave our pressies at the door :|

Have a fantastic Christmas Gary ;)

¥
Comment by Gary { @link http://garysblog.co.uk } on 25/12/07
MERRY CHRISTMAS

Hope you havn't drank all that booze yet !
Remember a turkeys for Christmas and not for life :)

'tis the season to be jolly, tra la la la la, la la la lah.

All the best
Gz
Page archived : 11th Nov 2009
 

X