Posted on: 06/01/05 03:39pm
By: Dirk
I wrote a simple
Blogroll block[*1] that you can use to display your favorite links in a block on your site. It displays all the links from one category, either sorted or in random order, and either with direct links or going via Geeklog's portal.php (so that links are counted).
Nothing spectacular, but somebody may find it useful ...
bye, Dirk
Simple Blogroll block
Posted on: 06/01/05 04:50pm
By: ronack
Thank you Dirk, Now if we can syndicate this I will be a happy camper.
Simple Blogroll block
Posted on: 06/03/05 12:57pm
By: ppmnt
Thanks Dirk, that's a nice little idea. I'm using it on my
gallery help page[*2] .
However, when I had $random set to true I got different results every time I reloaded the browser. Since there are only 3 links in that category for now (I just created it yesterday) I was able to really notice the difference. Sometimes it returned 2 links, sometimes 1, sometimes all 3, sometimes it had empty bullets (when it was using COM_makeList, no bullets there now, but you get the point).
Any clue what that's all about?
Simple Blogroll block
Posted on: 06/04/05 04:41pm
By: Dirk
[QUOTE BY= ppmnt] Sometimes it returned 2 links, sometimes 1, sometimes all 3, sometimes it had empty bullets (when it was using COM_makeList, no bullets there now, but you get the point).[/QUOTE]
Yeah, that's a bug. I've just uploaded a fixed version (use the link above).
bye, Dirk
Simple Blogroll block
Posted on: 06/04/05 10:23pm
By: ppmnt
Hi Dirk,
I used the same link and diffed the files, they are the same. Are you sure you uploaded the new version?
~Eva
Simple Blogroll block
Posted on: 06/05/05 04:29am
By: Dirk
Hmm, something must be caching those files, both in upload and in download ...
I've now replaced the file on the server (again) - it's 1226 bytes. But when I download it, I still get the old file (1171 bytes). Try clearing your caches.
bye, Dirk
Simple Blogroll block
Posted on: 06/05/05 02:52pm
By: ppmnt
Can't be my browser cache, originally I downloaded it with wget directly to my web server, and when I use my browser (which I hadn't used before) I still get the old file... I would blame a proxy cache but i'm not going through one. And a browser would also notice the time stamp change and refresh the cache.
Weird stuff.
Simple Blogroll block
Posted on: 09/08/05 10:34am
By: beewee
A lovely block Dirk, but how can I limit the number of links to, let's say, 10?
Simple Blogroll block
Posted on: 09/08/05 03:01pm
By: Dirk
[QUOTE BY= beewee] how can I limit the number of links to, let's say, 10?[/QUOTE]
The idea was that it would list all links from a certain link category, so you would restrict it by simply adding not more than 10 links to that category.
bye, Dirk
Simple Blogroll block
Posted on: 09/08/05 05:08pm
By: beewee
My idea was: show 10 random links from a certain category
Simple Blogroll block
Posted on: 09/09/05 03:48am
By: Dirk
[QUOTE BY= beewee] My idea was: show 10 random links from a certain category[/QUOTE]
I was afraid you were going to say that
You would need a counter in that do {...} while loop near the end of the block. Make it break out of the loop once you've assigned 10 links to $newlist[].
bye, Dirk