Subject: Wasn't there a hack or a plugin...

Posted on: 09/01/07 06:00pm
By: Don

...that lets you display the latest 5 stories in a centerblock? I must be having brain freeze, because I've searched for every term I can think of, but can't seem to find it anywhere on the site.

Apologies if this is in the wrong forum. It's just bugging me that I can't find it. TIA.

- Don

Re: Wasn

Posted on: 10/01/07 03:02am
By: scroff

I don't know how this will work with 1.4.1, but is this what you were looking for?

http://www.geeklog.net/article.php?story=20041001094603120&query=centerblock%2Bstories

Re: Wasn't there a hack or a plugin

Posted on: 10/01/07 10:13am
By: Don

Scroff,

That looks like it! Thanks!

Now why is my Add A New Block page not showing a Centerblock option? I just checked in two sites that are running GL 1.4.1 and I'm not seeing that option in either one. Weird.

Anyway, I'll give the code a try. Thanks again.

- Don

Re: Wasn't there a hack or a plugin

Posted on: 10/01/07 01:59pm
By: Dirk

Quote by: Don

Now why is my Add A New Block page not showing a Centerblock option?


Because you can't have blocks as centerblocks, confusing as this may sound. You can have static pages as centerblocks, though.

bye, Dirk

Re: Wasn't there a hack or a plugin

Posted on: 11/01/07 10:38am
By: Don

I realized that after I posted, Dirk. Sometimes the fingers move faster than the brain. Confused

- Don

Re: Wasn't there a hack or a plugin

Posted on: 11/01/07 09:22pm
By: Don

Just FYI - the above code that Scroff posted didn't work with 1.4.1. Just brings up a blank page.

Thanks anyway.

- Don

Re: Wasn't there a hack or a plugin

Posted on: 16/01/07 08:45am
By: Anonymous

I was able to get it to work in 1.4.1b2 by adding the following statement at the start of the code:
global $_TABLES;

Hope this helps..
..Geoff

Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=73471