Does a random entry sidebar plugin exists?

Creating and modifying plugins.
Post Reply
Fabien
Regular
Posts: 204
Joined: Wed Mar 15, 2006 1:02 pm
Location: Paris (France)
Contact:

Does a random entry sidebar plugin exists?

Post by Fabien »

Hello,

My blog have a lots of entries and I woul like to have a sidebar plugin that just display a link called "Random Entry". If clicked, a random entry is displayed.

I have been unable to find this. Does it exist?

Thanks, Fabien
Fabien Chabreuil (blog)
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Does a random entry sidebar plugin exists?

Post by Don Chambers »

Sort of. There is a sidebar plugin for recent entries. It shows the title of entries (not the entry body). It can fetch from any or all categories, and can also be set to show random entries.
=Don=
Fabien
Regular
Posts: 204
Joined: Wed Mar 15, 2006 1:02 pm
Location: Paris (France)
Contact:

Re: Does a random entry sidebar plugin exists?

Post by Fabien »

Thanks a lot, Don. Exactly what I wanted!

Just a question: how can I apply a specific style to the text displayed in the sidebar?

Warm regards, Fabien
Fabien Chabreuil (blog)
Don Chambers
Regular
Posts: 3657
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Does a random entry sidebar plugin exists?

Post by Don Chambers »

Fabien wrote:Thanks a lot, Don. Exactly what I wanted!

Just a question: how can I apply a specific style to the text displayed in the sidebar?

Warm regards, Fabien
The recent entries text, or any text in the sidebar?

If you are referring to the recent entries text, it is all within a div class="container_serendipity_plugin_recententries". The list of entries is a definition list. The entry title is dt class="serendipity_recententries_entrylink" and the entry's date is dd class="serendipity_recententries_entrydate".

So, in your stylesheet, you could do this:

Code: Select all

.container_serendipity_plugin_recententries {
    /* rules here will impact entire recent entries sidebar output */
}

.serendipity_recententries_entrylink {
    /* rules here will impact just the entry title */
}

.serendipity_recententries_entrydate {
    /* rules here will impact just the entry date */
}
=Don=
Fabien
Regular
Posts: 204
Joined: Wed Mar 15, 2006 1:02 pm
Location: Paris (France)
Contact:

Re: Does a random entry sidebar plugin exists?

Post by Fabien »

Thanks again, Don.
Fabien Chabreuil (blog)
Fabien
Regular
Posts: 204
Joined: Wed Mar 15, 2006 1:02 pm
Location: Paris (France)
Contact:

Re: Does a random entry sidebar plugin exists?

Post by Fabien »

Hello,

Bug or design? There is in the recent entries plugin an option: "Only recent entries that are not on the front page will be shown." But this option is used only for recent entries and not for random entries. Is it possible to have this option applicable for both?

Warm regards, Fabien
Fabien Chabreuil (blog)
Post Reply