PDA

View Full Version : Mini Mods - Random Thread - Allows users to view a random thread on your forum.


MrEyes
12-07-2010, 10:00 PM
Random Thread
v1.0 BETA

This mod is in BETA

Description

This mod will place a phrased 'Random Thread' link under the Forum section of the navbar. If the user clicks this link they will be taken to a random thread on your forum.

This modifications respects user forum permissions therefore a user will not be taken to a thread they are not allowed to see.

You can also:


Configure forums to be excluded from Random Thread (CMS comments forum is auto excluded)
Globally enabled/disable the modification
Set a maximum thread age (in days) - setting this means that only thread newer than the configured age will be selected.
Set a minimum reply count - setting this means that only threads with more (or equal to) the configured value will be randomly selected.


Installation

Installation is simple, just download the attached product XML file and import as normal.

Why BETA? (Tech Alert!)

While developing this modification it became obvious that the MySQL rand function simply did not perform well enough to make this usuable on larger forums. As such the mod selects out all thread identifiers that the user can see and then PHP does the random selection.

Although the functionality is useful, my concerns with rand etc are the reason for the modification having options to restrict by reply count and thread age.

I have run this on my forum for a few days and not seen any real impact, however it seems sensible to get feedback from other admins before committing this modification to gold.

MrEyes
12-08-2010, 10:42 AM
Reserved, for what purpose I do not yet know

gurler
12-08-2010, 03:43 PM
is there any screenshot ?

goxy63
12-09-2010, 01:47 AM
link or screenshot please, thanks

maybe a widget or side block for this?

MrEyes
12-09-2010, 11:32 AM
is there any screenshot ?

No screenshot necessary, visually all the mod does is add a link under "Forum" titled "Random Thread". If the user clicks they are taken to a random thread.

valdet
12-10-2010, 09:59 AM
Does this work on 3.x versions. The other one does not.

Thanks.

MrEyes
12-10-2010, 08:10 PM
Probably not, this was developed on 4.x so I haven't tried it on 3.x

valdet
12-13-2010, 01:45 PM
Thanks,

Can you make it so the random thread URL/link is actually displayed, instead of the link to click so a random thread gets displayed.

I think having the random thread title show up would get more user interest, rather than having a link to display a random thread. Users would turn a blind eye to that after some time.

NovoCiv
12-13-2010, 06:18 PM
Thanks,

Can you make it so the random thread URL/link is actually displayed, instead of the link to click so a random thread gets displayed.

I think having the random thread title show up would get more user interest, rather than having a link to display a random thread. Users would turn a blind eye to that after some time.

On this note, how about have it be a hyperlinked thread title?

lycheepassion
12-13-2010, 06:22 PM
I like it.

valdet
12-14-2010, 12:24 PM
On this note, how about have it be a hyperlinked thread title?

Yes that's what I meant on my post.

That would be better feature, rather than having the link, which when clicked would open a random thread.

Users would quickly turn a blind eye to Random Thread link.

strudinox
12-14-2010, 05:39 PM
Nice idea! Thanks!

I like the ability to exclude certain forums. :D

kirupa
09-14-2011, 02:11 AM
I installed this on 4.1.5, and when I click on the "Random Thread" link, I see HTTP 500 error. You can see an example here: http://www.kirupa.com/forum

Has anybody run into this same problem?

Thanks,
Kirupa :)

HMBeaty
09-14-2011, 02:13 AM
I installed this on 4.1.5, and when I click on the "Random Thread" link, I see HTTP 500 error. You can see an example here: http://www.kirupa.com/forum

Has anybody run into this same problem?

Thanks,
Kirupa :)
I just tested it on your site and it worked just fine for me :confused:

Chadi
06-02-2012, 03:36 PM
Hey guys, installed this and no link shows up in my navbar.

Chadi
06-05-2012, 01:34 AM
Does anyone know what the link should be link so I can set it manually? Otherwise, a fix would be nice.

dlewisr
06-07-2012, 06:53 PM
No link in Nav Bar for me either v4.2.0

Chadi
06-08-2012, 11:32 AM
Yes, it would be great if someone can help out.

Front Range 4x4
06-08-2012, 05:21 PM
Nice, installed. (vBulletin 4.1.12 Patch Level 1)

sodasusu
09-27-2012, 05:42 AM
work with vb 4.2.0 thx

DocZaius
12-07-2012, 08:15 PM
No link in the navbar on 4.2.0 PL3

rohirrim
08-24-2014, 02:21 AM
No link in Nav Bar for me either vb4.2.2

rohirrim
09-29-2015, 07:21 PM
Does anyone know what the link should be link so I can set it manually? Otherwise, a fix would be nice.

Here is the link: /forum/misc.php?do=randomthread

mapleleaffans
09-30-2015, 02:12 AM
Not working; 4.2.3

Pardeep Bagga
06-21-2016, 03:09 AM
can we have this for vbulletin 5

ArcadeSyndicate
06-21-2016, 11:41 AM
works fine on 4.2.3, make sure you use the right link in the navigation manager!

/misc.php?do=randomthread or whatever depending on your installation.

Pardeep Bagga
04-07-2018, 06:40 AM
its not working with Version 4.2.3

Emad ELsayed
04-10-2018, 12:04 PM
not working Version 4.2.5

IggyP
04-10-2018, 04:17 PM
not working Version 4.2.5

not even with the manual link? pretty cool idea really, nice to see that work

jagtpf
08-06-2018, 08:23 AM
This just imports an xml into the manage product area.

How does one do any of these ?
Configure forums to be excluded from Random Thread (CMS comments forum is auto excluded)
Globally enabled/disable the modification
Set a maximum thread age (in days) - setting this means that only thread newer than the configured age will be selected.
Set a minimum reply count - setting this means that only threads with more (or equal to) the configured value will be randomly selected.

I have the Tab showing, and the link is working. Can anyone who has it working, add a little more info to the setup instructions, especially the ability to pick relevant Forums - please ..

Geoff

jagtpf
08-06-2018, 08:31 AM
Chuckles - after pressing the tab 4 times to get 4 different threads, I now am stuck with the last thread picked!

jagtpf
08-06-2018, 10:08 AM
This just imports an xml into the manage product area.

How does one do any of these ?
Configure forums to be excluded from Random Thread (CMS comments forum is auto excluded)
Globally enabled/disable the modification
Set a maximum thread age (in days) - setting this means that only thread newer than the configured age will be selected.
Set a minimum reply count - setting this means that only threads with more (or equal to) the configured value will be randomly selected.

I have the Tab showing, and the link is working. Can anyone who has it working, add a little more info to the setup instructions, especially the ability to pick relevant Forums - please ..

Geoff

All now sorted and working - I could have sworn there wasn't an entry in Options - I even did a search!

Now to add it to the Live Forum :D

:up: