Post
Topic
Board Services
Merits 45 from 4 users
Re: CONTEST: design loyce.club home page
by
bitmover
on 03/10/2020, 22:29:27 UTC
⭐ Merited by LoyceV (42) ,bL4nkcode (1) ,0x256 (1) ,ETFbitcoin (1)
What I need is basically automating this:
How to use it
  • Find the msgID, userID or topicID you need. Let's use msgID 51902990.
  • Remove the last 4 digits from the msgID to get the directory name (if there are less than 4 digits, use 0): 5190.
  • Put everything together behind the (above) URL and add ".html": http://loyce.club/archive/posts/5190/51902990.html.
So a search box, someone enters a number, and gets forwarded to the correct URL.

Hi LoyceV.
I had to make 3 search boxes. 
But I think that is what you want.

You can check it out here:
https://bitcoindata.science/LoyceV/searchtool.hml

Very simple code, as I said. Pure JS, no addons.

Code:
function gomsg () {
    var msg = document.getElementById('msgID').value;
    var msgfolder = msg.slice(0, 4);
    window.location.href = ("http://loyce.club/archive/posts/" + msgfolder +"/"+ msg+".html");
}