Author Topic: Random Topic Button  (Read 12146 times)

0 Members and 1 Guest are viewing this topic.

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Random Topic Button
« on: May 15, 2011, 01:30:52 pm »
I doubt this will ever get implemented, but just a random feature request that came to me: could there be a button that takes one to a random unread topic?
I'm only asking because I think it would make browsing new posts more interesting ;D
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline ruler501

  • Meep
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2475
  • Rating: +66/-9
  • Crazy Programmer
    • View Profile
Re: Random Topic Button
« Reply #1 on: May 15, 2011, 03:00:12 pm »
That sounds good but complicated to make.
I currently don't do much, but I am a developer for a game you should totally try out called AssaultCube Reloaded download here https://assaultcuber.codeplex.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/M/S d- s++: a---- C++ UL++ P+ L++ E---- W++ N o? K- w-- o? !M V?
PS+ PE+ Y+ PGP++ t 5? X R tv-- b+++ DI+ D+ G++ e- h! !r y

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Random Topic Button
« Reply #2 on: May 15, 2011, 03:54:31 pm »
Well, all it would have to do would be make an omniurl.tk with a random number after it, up to however many topics there are, then check if a) the person's permitted to read it (staff section, etc.) and b) if it's unread.
Then it would somehow get the message number, and bam.
Vy'o'us pleorsdti thl'e gjaemue

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Random Topic Button
« Reply #3 on: May 15, 2011, 06:16:09 pm »
I fear this would only increase necroposting... :/

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Random Topic Button
« Reply #4 on: May 15, 2011, 06:59:51 pm »
Okay then, random unread topic that's less than 2 weeks old :P
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline ruler501

  • Meep
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2475
  • Rating: +66/-9
  • Crazy Programmer
    • View Profile
Re: Random Topic Button
« Reply #5 on: May 15, 2011, 07:04:17 pm »
It sounds like a good idea. It would just be very hard to implement. You'd have to check when the last post was if the user had read it and find a random thread to do that in.
I currently don't do much, but I am a developer for a game you should totally try out called AssaultCube Reloaded download here https://assaultcuber.codeplex.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/M/S d- s++: a---- C++ UL++ P+ L++ E---- W++ N o? K- w-- o? !M V?
PS+ PE+ Y+ PGP++ t 5? X R tv-- b+++ DI+ D+ G++ e- h! !r y

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Random Topic Button
« Reply #6 on: May 15, 2011, 07:35:48 pm »
Yeah it would be hard. D:

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Random Topic Button
« Reply #7 on: May 15, 2011, 07:38:31 pm »
It'd actually be pretty simple if we had an RSS feed for the newest posts.




Offline z80man

  • Casio Traitor
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 977
  • Rating: +85/-3
    • View Profile
Re: Random Topic Button
« Reply #8 on: May 15, 2011, 07:44:54 pm »
It should also check to see if a topic is locked or not too. But I would think that it should allow different sections to be randomized in because I might not want to see a random topic in the pixel art sub forum for example

List of stuff I need to do before September:
1. Finish the Emulator of the Casio Prizm (in active development)
2. Finish the the SH3 asm IDE/assembler/linker program (in active development)
3. Create a partial Java virtual machine  for the Prizm (not started)
4. Create Axe for the Prizm with an Axe legacy mode (in planning phase)
5. Develop a large set of C and asm libraries for the Prizm (some progress)
6. Create an emulator of the 83+ for the Prizm (not started)
7. Create a well polished game that showcases the ability of the Casio Prizm (not started)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Random Topic Button
« Reply #9 on: May 17, 2011, 11:45:29 pm »
Yeah true. I myself, for example, do not pay much attention to many hardware or math threads.

Also, if that was added, it would take someone to code it too :P

Offline Jonius7

  • python! Lua!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1918
  • Rating: +82/-18
  • Still bringing new dimensions to the TI-nspire...
    • View Profile
    • TI Stadium
Re: Random Topic Button
« Reply #10 on: May 17, 2011, 11:47:44 pm »
It'd actually be pretty simple if we had an RSS feed for the newest posts.
I thought omnimaga has an rss feed of sorts, i can view new posts through opera mail.
The random topic button is a good one but not good for randomising the whole forum. There must be some system of segmenting which topics to randomise and which to not.

EDIT:???
« Last Edit: May 18, 2011, 08:28:15 pm by jhgenius01 »
Programmed some CASIO Basic in the past
DJ Omnimaga Music Discographist ;)
DJ Omnimaga Discography
My Own Music!
My Released Projects (Updated 2015/05/08)
TI-nspire BASIC
TI-nspire Hold 'em
Health Bar
Scissors Paper Rock
TI-nspire Lua
Numstrat
TI-nspire Hold 'em Lua
Transport Chooser
Secret Project (at v0.08.2 - 2015/05/08)
Spoiler For Extra To-Be-Sorted Clutter:

Spoiler For Relegated Projects:
TI-nspire BASIC
Battle of 16s (stalled) | sTIck RPG (stalled) | Monopoly (stalled) | Cosmic Legions (stalled)
Axe Parser
Doodle God (stalled while I go and learn some Axe)

Offline Jonius7

  • python! Lua!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1918
  • Rating: +82/-18
  • Still bringing new dimensions to the TI-nspire...
    • View Profile
    • TI Stadium
Re: Random Topic Button
« Reply #11 on: May 18, 2011, 05:40:38 am »
So here's a screenshot of the rss from omnimaga working in action:
Might be useful

To activate this in opera there should be a rss icon at the very right of the address bar when you're on the omnimaga page.
« Last Edit: May 18, 2011, 05:43:06 am by jhgenius01 »
Programmed some CASIO Basic in the past
DJ Omnimaga Music Discographist ;)
DJ Omnimaga Discography
My Own Music!
My Released Projects (Updated 2015/05/08)
TI-nspire BASIC
TI-nspire Hold 'em
Health Bar
Scissors Paper Rock
TI-nspire Lua
Numstrat
TI-nspire Hold 'em Lua
Transport Chooser
Secret Project (at v0.08.2 - 2015/05/08)
Spoiler For Extra To-Be-Sorted Clutter:

Spoiler For Relegated Projects:
TI-nspire BASIC
Battle of 16s (stalled) | sTIck RPG (stalled) | Monopoly (stalled) | Cosmic Legions (stalled)
Axe Parser
Doodle God (stalled while I go and learn some Axe)

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Random Topic Button
« Reply #12 on: May 18, 2011, 09:33:32 am »
Hmm, can you find the address? If we have an RSS feed getting a random new post would be too easy.




Offline Jonius7

  • python! Lua!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1918
  • Rating: +82/-18
  • Still bringing new dimensions to the TI-nspire...
    • View Profile
    • TI Stadium
Re: Random Topic Button
« Reply #13 on: May 18, 2011, 08:31:14 pm »
Yes i found it!
http://www.omnimaga.org/index.php?PHPSESSID=ad96e8b528beaf626b653a225157688f&type=rss;action=.xml
works in firefox too but opera has the handy button in the address bar
Programmed some CASIO Basic in the past
DJ Omnimaga Music Discographist ;)
DJ Omnimaga Discography
My Own Music!
My Released Projects (Updated 2015/05/08)
TI-nspire BASIC
TI-nspire Hold 'em
Health Bar
Scissors Paper Rock
TI-nspire Lua
Numstrat
TI-nspire Hold 'em Lua
Transport Chooser
Secret Project (at v0.08.2 - 2015/05/08)
Spoiler For Extra To-Be-Sorted Clutter:

Spoiler For Relegated Projects:
TI-nspire BASIC
Battle of 16s (stalled) | sTIck RPG (stalled) | Monopoly (stalled) | Cosmic Legions (stalled)
Axe Parser
Doodle God (stalled while I go and learn some Axe)

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Random Topic Button
« Reply #14 on: May 18, 2011, 10:10:12 pm »
Thanks, and done!

http://clrhome.co.cc/b/omninew/

Feel free to steal the script:

Quote from: PHP
$feed = new DOMDocument();
$feed->load('http://www.omnimaga.org/index.php?action=.xml;type=rss2');
header('Location: ' . $feed->getElementsByTagName('guid')->item(rand(0,4))->nodeValue);

The problem is that http://www.omnimaga.org/index.php?action=.xml;type=rss only shows the last five posts (so any "random post" is within the last five, which isn't really random). Anybody find a longer version?

EDIT: Update here
« Last Edit: May 29, 2011, 12:30:30 am by Deep Thought »