Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: jjson on April 27, 2023, 11:54:37 PM

Title: Random topic
Post by: jjson on April 27, 2023, 11:54:37 PM
How do I have users redirected to a random topic when they click on a menu called "random topic?" Every time a new random topic should be shown.
Title: Re: Random topic
Post by: Arantor on April 28, 2023, 03:57:44 AM
What version of SMF?
Title: Re: Random topic
Post by: Doug Heffernan on April 28, 2023, 05:10:26 AM
Quote from: jjson on April 27, 2023, 11:54:37 PMHow do I have users redirected to a random topic when they click on a menu called "random topic?" Every time a new random topic should be shown.

Is that menu added by a custom mod? You should give us more details.
Title: Re: Random topic
Post by: jjson on April 28, 2023, 12:35:44 PM
Quote from: Doug Heffernan on April 28, 2023, 05:10:26 AM
Quote from: jjson on April 27, 2023, 11:54:37 PMHow do I have users redirected to a random topic when they click on a menu called "random topic?" Every time a new random topic should be shown.

Is that menu added by a custom mod? You should give us more details.

I'd like to add a text in the upper menu, let's call it Random Topic, and when it's clicked on I want the user to be redirected to a random topic in the forum. Every time a user clicks on this link, the topic they're redirected to changes.
Title: Re: Random topic
Post by: Arantor on April 28, 2023, 01:34:25 PM
And what version of SMF? You originally opened this in the 1.1 board...
Title: Re: Random topic
Post by: jjson on April 28, 2023, 03:39:09 PM
Quote from: Arantor on April 28, 2023, 01:34:25 PMAnd what version of SMF? You originally opened this in the 1.1 board...

That would be the 1.1.21
Title: Re: Random topic
Post by: Arantor on April 28, 2023, 03:50:32 PM
It has been a long long time since I programmed for 1.1. Worst of all I even need to know which theme you're using because in 1.1 menu buttons are hardcoded into the theme.

Before I go any further and dig out the relevant code for 1.1 - do you have any plans to upgrade? I ask because SMF 1.1.x has long since been declared end of life, isn't getting patches for known security upgrades and doesn't support PHP 5.6 let alone a version that isn't 5 years old and long since no longer getting security patches.
Title: Re: Random topic
Post by: Kindred on April 28, 2023, 10:07:56 PM
1.1.x is end of life. Upgrade ASAP