October 16, 2006

Peekaboo comments and Random banner hack

For KCA and all those who wanted Peekaboo comments in main page badly, Stephen has got it working! Avatar informed me about this and I thought I will inform my readers too. Instructions are in his post. There seems to be quite a few steps and so, apply the hack carefully.

Also, check out Gabriel Lau's nice hack to display a randomly chosen banner at the top in this post. This is one of the famous Wordpress plug-ins which is now doable with Blogger too!

5 comments:

Anonymous said...

:O)
Just a question of times^^

Gabs Lau said...

Ramani, thanks for promoting my hack, and keep up your good work of coming up new hacks!

protesto said...

Hi,

I've modified Annie's code for peekabo labels on the side bar:

To hide and show labels, use the bold code below, replace [] with <> .

Working example

Find the line:

[b:widget id='Label1' locked='false' title='Labels' type='Label']

Modify the code below like this:
[b:includable id='main']
[b:if cond='data:title']
[h2][data:title/][/h2]
[/b:if]
[a aiotitle='click to expand' href='javascript:togglecomments("browselabel")'][+/-] Browse Categories[/a]
[div class='commenthidden' id='browselabel']

[div class='widget-content']
[ul]
[b:loop values='data:labels' var='label']
[li]
[b:if cond='data:blog.url == data:label.url']
[data:label.name/]
[b:else/]
[a expr:href='data:label.url'][data:label.name/][/a]
[/b:if]
([data:label.count/])
[/li]
[/b:loop]
[/ul]

[b:include name='quickedit'/]
[/div]
[/div]

Soumyadip said...

The Peekaboo comments hack seems to override the "Author comment highlighting" hack. And there are also some spacing problems. Applied it, but had to discard it.

Danny Tuppeny said...

I've written a similar script that supports iframe and script based ads, like Google and Amazon!

The full article is here:

http://blog.dantup.me.uk/2007/08/random-banner-ads-on-blogger.html