Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Random Button on front page ?

  • 22-10-2005 1:12pm
    #1
    Moderators, Recreation & Hobbies Moderators, Science, Health & Environment Moderators, Technology & Internet Moderators Posts: 93,559 Mod ✭✭✭✭


    How about a random button on the front page that jumps to a random thread ?
    Post edited by Shield on


Comments

  • Closed Accounts Posts: 11,848 ✭✭✭✭Doctor J


    That's a pretty good idea :)


  • Registered Users, Registered Users 2 Posts: 22,231 ✭✭✭✭Sparky


    like in the biki


  • Subscribers Posts: 9,716 ✭✭✭CuLT


    Heh, I like it.


  • Registered Users, Registered Users 2 Posts: 15,258 ✭✭✭✭Rabies


    As long as it doesn't drag up old threads then it could work.


  • Closed Accounts Posts: 2,767 ✭✭✭Hugh Hefner


    I would definately use something like that. It could be programmed to only jump to threads on Page 1 of a forum.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 22,231 ✭✭✭✭Sparky


    yeah i have something simular on mine where it will pick a thread in a certain catagory on any page you allow it to.

    So i wouldnt say its a hard thing to implement

    something simualr to the phpbb code:
    $sql = "SELECT forum_id, forum_name
    	FROM " . FORUMS_TABLE . "
    	ORDER BY forum_order";
    if ( !($result = $db->sql_query($sql)) )
    


  • Closed Accounts Posts: 3,357 ✭✭✭secret_squirrel


    Sounds like a good plan.

    Would it be truly random or could it be based on say only the last day/weeks posts but wieghted towards the fora which get less traffic.

    (on the assumption that there are some gems to be found off the beaten track)


  • Registered Users, Registered Users 2 Posts: 22,231 ✭✭✭✭Sparky


    id have to say the one i have is truly random, but only in the catagory i allow it to select from


  • Registered Users, Registered Users 2 Posts: 8,679 ✭✭✭Chong


    Sounds cool gets my vote.


  • Subscribers Posts: 9,716 ✭✭✭CuLT


    Sparky_S wrote:
    id have to say the one i have is truly random, but only in the catagory i allow it to select from
    Pah, no such thing as truly random with computers.

    </anal>


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 14,163 ✭✭✭✭danniemcq


    CuLT wrote:
    Pah, no such thing as truly random with computers.

    </anal>

    the time they crash is 90% of the time, the other 10 is just before you save something


  • Closed Accounts Posts: 10,730 ✭✭✭✭simu


    Well, it would certainly be handy for the uberbored. Cool idea!


  • Registered Users, Registered Users 2 Posts: 8,488 ✭✭✭Goodshape


    Yea, why not.

    Support++


  • Registered Users, Registered Users 2 Posts: 1,077 ✭✭✭joe.


    I like this idea.


  • Registered Users, Registered Users 2 Posts: 18,960 ✭✭✭✭Mimikyu


    This post has been deleted.


  • Registered Users, Registered Users 2 Posts: 3,141 ✭✭✭masteroftherealm


    Defo supprt here


  • Registered Users, Registered Users 2 Posts: 3,353 ✭✭✭radiospan


    Maybe if it picked a "virgin" thread, or one with few replies (kinda like secret_squirrel's idea?)


  • Registered Users, Registered Users 2 Posts: 12,309 ✭✭✭✭Bard


    God idea yes, as long as it, as said, doesn't drag up really old threads.


  • Registered Users, Registered Users 2 Posts: 10,658 ✭✭✭✭The Sweeper


    Yeah, the bumpage factor could be painful... otherwise sounds cool.


  • Moderators, Regional East Moderators Posts: 21,504 Mod ✭✭✭✭Agent Smith


    nice idea,

    could it be labeled " do not press! "


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 3,280 ✭✭✭regi


    I'll put it on the list!


  • Registered Users, Registered Users 2 Posts: 3,225 ✭✭✭JackKelly


    definitely a nice idea.


  • Closed Accounts Posts: 88,972 ✭✭✭✭mike65


    I like the idea but I'd want ancient threads to be bumped. Its interesting to see once-famous names that no longer post or topics that now look soooooo 1999.

    Mike.


  • Registered Users, Registered Users 2 Posts: 5,335 ✭✭✭Cake Fiend


    Regi wrote:
    I'll put it on the list!

    You're on my list now, buddy...

    How about an accompanying button to choose a random thread from this day 5 years ago? Kind of like The Register. Or maybe better, the most popular thread of the day 5 years ago today.


  • Moderators, Recreation & Hobbies Moderators, Science, Health & Environment Moderators, Technology & Internet Moderators Posts: 93,559 Mod ✭✭✭✭Capt'n Midnight


    For a very heavy bias towards recent posts a likely looking function to pick the post number is something like

    p = n * Exp( (rnd-1) / s )

    p = picked post or thread
    n = total no of them ( - 100 cos they can be found in new posts anyway )
    Exp = exponential
    rnd = random number 0-1
    s = skewness - let user pick a number 0-1 that is stored in their settings
    ( or maybe use the log of this number s= log( 1+ x/y) x=0-9 y=10 or something

    0.1 - half of picks in most recent 0.7% of posts
    0.2 - half in last 10%
    0.3 - half of picks in last 19% of posts
    0.5 - 2/3 of picks in last 1/3 posts
    1.0 - nearly linear


  • Registered Users, Registered Users 2 Posts: 68,317 ✭✭✭✭seamus


    select thread.threadid from thread,
    (SELECT COUNT(*) as numrows FROM thread) tot_rows
    where thread.createdate > RAND(NOW()) * 10000000000 order by rand(tot_rows.numrows) LIMIT 0, 1

    Or something..


  • Closed Accounts Posts: 17,208 ✭✭✭✭aidan_walsh


    Use LavaRnd.


  • Closed Accounts Posts: 9,193 ✭✭✭[Jackass]


    nice idea,

    could it be labeled " do not press! "

    Haha, I'd like that, only boards search would probably crash 'cause everyone would press it. :D

    Great idea though...it could just choose any thread that has had a post in the last 7 days (or maybe 14? :confused:)

    Gets my vote.


  • Subscribers Posts: 9,716 ✭✭✭CuLT


    DubGuy wrote:
    Haha, I'd like that, only boards search would probably crash 'cause everyone would press it. :D

    Great idea though...it could just choose any thread that has had a post in the last 7 days (or maybe 14? :confused:)

    Gets my vote.
    Actually I like the idea of random threads from yonks ago getting randomly read (but god help you if you reply to it O_O).


  • Advertisement
  • Closed Accounts Posts: 9,193 ✭✭✭[Jackass]


    heh..true I guess. But a lot of people who press it wont have read this thread or any thread regarding its use and wont read the dates in thread...and inevitably reply :rolleyes: But yeah, it would be cool for really old ones :)
    Plus sometimes you'd love to reply to really old threads but cant if your searching through them for something.


  • Closed Accounts Posts: 2,767 ✭✭✭Hugh Hefner


    *Looks shifty* .... Ya knowwwww..... It'd be.. kinda cool... if there was a special forum for old threads.... Yeah... Sure would.....

    *Fains surprise* What's this?! Very good.


  • Registered Users, Registered Users 2 Posts: 5,049 ✭✭✭Cloud


    Erm, well the random thingy is harder than it sounds because we have so many threads and numbers missing in sequence (due to deletion etc.) you can't just pick a number between 1 and 350000 or whatever - and using a SELECT with the RAND() function in MySQL takes 5 seconds.

    So for now what I've done is put a "Thread Of The Day" link in the main boards.ie menu up top - every day a new thread will be selected from the past day's posts. We might increase the duration to the past week or something, but it is random and better to have a recent post than some post from the dead...

    J.
    --


  • Closed Accounts Posts: 2,767 ✭✭✭Hugh Hefner


    Cloud wrote:
    Erm, well the random thingy is harder than it sounds because we have so many threads and numbers missing in sequence (due to deletion etc.) you can't just pick a number between 1 and 350000 or whatever - and using a SELECT with the RAND() function in MySQL takes 5 seconds.
    Ah well, it's not like it was a vital addition to the site.

    Cloud wrote:
    So for now what I've done is put a "Thread Of The Day" link in the main boards.ie menu up top - every day a new thread will be selected from the past day's posts. We might increase the duration to the past week or something, but it is random and better to have a recent post than some post from the dead...
    Sexcellent.


  • Registered Users, Registered Users 2 Posts: 22,231 ✭✭✭✭Sparky


    Cloud wrote:
    Erm, well the random thingy is harder than it sounds because we have so many threads and numbers missing in sequence (due to deletion etc.) you can't just pick a number between 1 and 350000 or whatever - and using a SELECT with the RAND() function in MySQL takes 5 seconds.

    So for now what I've done is put a "Thread Of The Day" link in the main boards.ie menu up top - every day a new thread will be selected from the past day's posts. We might increase the duration to the past week or something, but it is random and better to have a recent post than some post from the dead...

    J.
    --

    yeah was thinking that alright, takes a good bit of server time to generate a page, especially with this size of site, and i could only imagine how big your sql database is.


This discussion has been closed.
Advertisement