• Resolved TB54

    (@tb54)


    Hello, and thanks for the plug-in !

    I have a website where the “random” link is used frequently and multiple times in a row (a quiz mode). Even if I have ~100 posts, after a few tries, already-seen posts logically begin to come back several times for the visitor repetitively using the “random” link.

    Would it be possible to add a function (maybe more close to a “shuffle” mode) where the random post doesn’t call the same post twice as long as all the posts have been already called ?

    It’s maybe too far from what the plugin proposes, and probably implies other things (cookies ?) in order to work, but because i’m a newbie to web coding, there are maybe easy solutions i haven’t considered.

    (sorry for the bad english, i’m not a native speaker !)

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Christoph

    (@camthor)

    Thanks for the suggestion!

    This would be really complicated, because the list of “already seen” posts needs to be different for every visitor. Cookies could indeed be a way how to go about it. So the plugin would always need to read the cookie, then adjust the list for that visitor and update the cookie again. But I’m not sure if cookies are able to store long lists of post ids.

    I don’t want to use the database – until now the plugin works without.

    For a quiz it would almost make sense to create a completely new plugin.

    I will check when I have more time if there is a way how to implement that feature, but I cannot promise it. 🙂

    Thread Starter TB54

    (@tb54)

    Ok. Thanks !

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Feature Request: Random post without repeat’ is closed to new replies.