Pages:
Author

Topic: CONTEST: design loyce.club home page - page 3. (Read 2200 times)

legendary
Activity: 2352
Merit: 6089
bitcoindata.science
October 08, 2020, 07:39:15 AM
#43
You're right, I made another mistake in my description. It once again shows how much your search tool for this is needed!
I can fix this on my own:
Code:
if (msg.length >= 3)

I also added a
to get rid of the red on in Firefox.

Testing link: https://loyce.club/archive/members/

Very nice to see it working! And I saw that you already made the 404 page!

I see you prefer red colors. I changed button colors to red.

You can see the result here:
https://bitcoindata.science/LoyceV/searchtool.html

I also changed the font tag to style css, as font tag is obsolete.

legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
October 08, 2020, 05:03:42 AM
#42
fixed!  I forgot to add the rule for low values.
Fix confirmed, thanks!

Replace the last 2 digits of the msgID by xx, and add .html (if there are 2 or less digits, use 0xx): 282xx.html
I got confused now. Is the rule "(if there are 5 or less digits, use 0xx)"  2 digits or less?
You're right, I made another mistake in my description. It once again shows how much your search tool for this is needed!

I can fix this on my own:
Code:
if (msg.length >= 3)

I also added a
to get rid of the red on in Firefox.

Testing link: https://loyce.club/archive/members/
legendary
Activity: 2352
Merit: 6089
bitcoindata.science
October 07, 2020, 09:34:20 PM
#41
Sorry it took me a bit, but I found a few bugs:
topicID: 10 gives https://loyce.club/archive/topics/10/10.html instead of https://loyce.club/archive/topics/0/10.html

fixed!  I forgot to add the rule for low values.


Replace the last 2 digits of the msgID by xx, and add .html (if there are 5 or less digits, use 0xx): 282xx.html

I got confused now. Is the rule "(if there are 5 or less digits, use 0xx)"  2 digits or less?



Edit: posting in the wrong topic by mistake  Grin
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
October 07, 2020, 02:31:08 PM
#40
Tell me if you notice any bug.
Sorry it took me a bit, but I found a few bugs:
msgID: 200 gives https://loyce.club/archive/oldposts/0/0xx.html#msg200 instead of https://loyce.club/archive/oldposts/0/2xx.html#msg200
topicID: 10 gives https://loyce.club/archive/topics/10/10.html instead of https://loyce.club/archive/topics/0/10.html

The topicIDs and userIDs will work much better if I process all data I have. I should have time to fix this in the weekend.
Todo for myself: Finished! I should make a custom 404 that contains your search box for anything under https://loyce.club/archive/posts (and more URLs) Smiley
legendary
Activity: 2352
Merit: 6089
bitcoindata.science
October 05, 2020, 11:29:24 AM
#39
I missed a 5, the high number is 55310200.
With this clarified: is it possible to combine "msgID" and "Old Posts" into one field, with post 51904009 being the first one to go to "msgID" and anything lower than that going to "Old Posts"? That would be much better than having to explain the difference.

Just did!
Now both scripts oldposts and msgID are combined in the same input box.
 I made a few tests and it looks ok. Tell me if you notice any bug.

This was quite easy to do, I can help you with similar demands if you need.

https://bitcoindata.science/LoyceV/searchtool.html
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
October 05, 2020, 06:52:59 AM
#38
~snip code~
How would I use this? (total n00b here) Don't spend too much time on it though, it looks like bitmover's solution works just fine already.

I want to practice my skills as well.
You're doing just fine Smiley

Quote
Done. Just removed all unused CSS. There is now a single file with 14kb, no more css file.
Great!

Quote
A small correction:
Remove the last 5 digits from the msgID to get the directory name (if there are less than 5 6 digits, use 0):
Very sharp! I made that mistake a couple more times. I changed it to "5 or less".

Quote
Quote
Ideally, this should be included in the same search field: if someone searches for a low post number (say 25000030), it should give this link: https://loyce.club/archive/oldposts/250/250000xx.html#msg25000030.
But if someone searches for a high number (say 55310200), it should give this link: https://loyce.club/archive/posts/5531/55310200.html.
I didn't understand. Your low post number (25000030) is higher than the high post number (5310200). Is it the opposite?
I missed a 5, the high number is 55310200.
With this clarified: is it possible to combine "msgID" and "Old Posts" into one field, with post 51904009 being the first one to go to "msgID" and anything lower than that going to "Old Posts"? That would be much better than having to explain the difference.

Quote
Please feel free to change text/instructions/title etc
I will Smiley

Quote
Where is satoshi page in your database? Shouldn't it be here?
https://loyce.club/archive/members/0/3.html
I haven't added "oldposts" to the member/topic-directories yet. I need some time to script it, it would indeed be better to have all posts archived in all categories.
legendary
Activity: 2352
Merit: 6089
bitcoindata.science
October 04, 2020, 06:19:02 PM
#37
It's a good start, but can I be a bit demanding? Wink
Sure, let's make it work properly. I want to practice my skills as well.


Sneak preview: http://loyce.club/archive/oldposts/
How to use:
  • Find the msgID you need. Let's use 28228
  • Remove the last 5 digits from the msgID to get the directory name (if there are less than 5 digits, use 0): 0
  • Replace the last 2 digits of the msgID by xx, and add .html (if there are less than 5 digits, use 0xx): 282xx.html
  • Add "#msg" and the msgID: #msg28228
  • Put everything together and go to http://loyce.club/archive/oldposts/0/282xx.html#msg28228

Done

A small correction:
  • Remove the last 5 digits from the msgID to get the directory name (if there are less than 5 6 digits, use 0): 0

Wink

Quote
Ideally, this should be included in the same search field: if someone searches for a low post number (say 25000030), it should give this link: https://loyce.club/archive/oldposts/250/250000xx.html#msg25000030.
But if someone searches for a high number (say 5310200), it should give this link: https://loyce.club/archive/posts/5531/55310200.html.
Can you pull that off?
I didn't understand. Your low post number (25000030) is higher than the high post number (5310200). Is it the opposite?


Please feel free to change text/instructions/title etc

Edit:
Where is satoshi page in your database? Shouldn't it be here?
https://loyce.club/archive/members/0/3.html
full member
Activity: 384
Merit: 101
October 04, 2020, 05:46:45 PM
#36
Sneak preview: http://loyce.club/archive/oldposts/
How to use:
  • Find the msgID you need. Let's use 28228
  • Remove the last 5 digits from the msgID to get the directory name (if there are less than 5 digits, use 0): 0
  • Replace the last 2 digits of the msgID by xx, and add .html (if there are less than 5 digits, use 0xx): 282xx.html
  • Add "#msg" and the msgID: #msg28228
  • Put everything together and go to http://loyce.club/archive/oldposts/0/282xx.html#msg28228

for oldposts:

Code:
// Get $searchType from the input, where oldmsgID=>oldposts
$searchType = "oldposts"; // by oldmsgID

// Get $ID from the input (should be >= 1)
// $ID = "28228";
$ID = "25000030";

$dirName = (strlen($ID) <= 5 ? "0" : substr($ID, 0, -5));
// $pageName = substr($ID, -2);
$pageName = (strlen($ID) < 5 ? "0xx" : substr($ID, 0, -2) . "xx");
$url = "http://loyce.club/archive/$searchType/$dirName/$pageName.html#msg$ID";
echo $url;

// http://loyce.club/archive/oldposts/0/282xx.html#msg28228
// http://loyce.club/archive/oldposts/250/250000xx.html#msg25000030

And by adding posts, topics and members we get:

Code:
$urlBase = "http://loyce.club/archive";

// Get $searchType from the input, where oldmsgID=>oldposts, msgID=>posts, topicID=>topics and userID=>members
$searchType = "posts"; // by msgID

// Get $ID from the input (should be >= 1)
$ID = "28228";

$countDigits = ($searchType === "oldposts" ? 5 : 4);
$dirName = (strlen($ID) <= $countDigits ? "0" : substr($ID, 0, -$countDigits));
$pageName = (strlen($ID) < $countDigits ? "0xx" : substr($ID, 0, -2) . "xx");
$url = ($searchType === "oldposts" ? "$urlBase/$searchType/$dirName/$pageName.html#msg$ID" : "$urlBase/$searchType/$dirName/$ID.html");

echo $url;



Ideally, this should be included in the same search field: if someone searches for a low post number (say 25000030), it should give this link: https://loyce.club/archive/oldposts/250/250000xx.html#msg25000030.
But if someone searches for a high number (say 5310200), it should give this link: https://loyce.club/archive/posts/5531/55310200.html.

What is the logic of detecting low/high post numbers?
full member
Activity: 384
Merit: 101
October 04, 2020, 10:03:46 AM
#35
It would also be nice to have a tiny bit of PHP (or whatever) that allows for an input field, and converts a number into an URL.
Examples

Code:
// Get $searchType from the input, where msgID=>posts, topicID=>posts and userID=>members
$searchType = "posts"; // by msgID

// Get $ID from the input (should be >= 1)
$ID = "4567891";

// testing
// $ID = "45678";
// $ID = "4567";
// $ID = "456";
// $ID = "45";
// $ID = "4";

$dirName = (strlen($ID) <= 4 ? "0" : substr($ID, 0, -4));
$url = "http://loyce.club/archive/$searchType/$dirName/$ID.html";
echo $url;

// http://loyce.club/archive/posts/456/4567891.html
// http://loyce.club/archive/posts/4/45678.html
// http://loyce.club/archive/posts/0/4567.html
// http://loyce.club/archive/posts/0/456.html
// ...

Do you mean that?
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
October 04, 2020, 07:37:34 AM
#34
I had to make 3 search boxes.  
But I think that is what you want.
It's a good start, but can I be a bit demanding? Wink

Sneak preview: http://loyce.club/archive/oldposts/
How to use:
  • Find the msgID you need. Let's use 28228
  • Remove the last 5 digits from the msgID to get the directory name (if there are less than 5 digits, use 0): 0
  • Replace the last 2 digits of the msgID by xx, and add .html (if there are less than 5 digits, use 0xx): 282xx.html
  • Add "#msg" and the msgID: #msg28228
  • Put everything together and go to http://loyce.club/archive/oldposts/0/282xx.html#msg28228
Ideally, this should be included in the same search field: if someone searches for a low post number (say 25000030), it should give this link: https://loyce.club/archive/oldposts/250/250000xx.html#msg25000030.
But if someone searches for a high number (say 55310200), it should give this link: https://loyce.club/archive/posts/5531/55310200.html.
Can you pull that off?
legendary
Activity: 2352
Merit: 6089
bitcoindata.science
October 03, 2020, 05:29:27 PM
#33
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.html

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");
}

Edit: Just added bootstrap for design/format purposes.
I didn't understand the old posts logic, but I can do it as well if I have more information
legendary
Activity: 2352
Merit: 6089
bitcoindata.science
October 02, 2020, 03:17:43 PM
#32
I can do with pure js. Do you want?

Something very simple , 100% compatible with any  browser.

var number = getDocumentById("input")
var folder = ////slice number

Then some function calling https//...../folder/number
I know nothing about this, so I can't really judge if this is good or not.

I Will make it and I will post the link here in the next few days.

I think it will do what you are expecting
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
October 02, 2020, 12:12:11 PM
#31
I can do with pure js. Do you want?

Something very simple , 100% compatible with any  browser.

var number = getDocumentById("input")
var folder = ////slice number

Then some function calling https//...../folder/number
I know nothing about this, so I can't really judge if this is good or not.
legendary
Activity: 2352
Merit: 6089
bitcoindata.science
October 02, 2020, 06:40:43 AM
#30
ok, I can do it with javascript .
Is that client side? I prefer not to run any scripts

I understand.... I would be a 5 line script. Pure js,  no jqueryor any other extension. . I dont know to do with php

I can do with pure js. Do you want?

Something very simple , 100% compatible with any  browser.

var number = getDocumentById("input")
var folder = ////slice number

Then some function calling https//...../folder/number

Something like that...
legendary
Activity: 3444
Merit: 3469
Crypto Swap Exchange
October 01, 2020, 09:57:53 AM
#29
LoyceV is not a fox despite foxpup avatar  Cheesy
As bitcointalk members will use this website, maybe we should also vote on designs to help LoyceV make better decision.

He needs only CSS file/s to put in all HTML pages, it will already look different.
Now I just find fox.exchange, less known than Metamask. It seems more than similar is as well @Peanutswar design. Red-white colour and Fox with polygon design in there.

legendary
Activity: 2212
Merit: 7064
October 01, 2020, 09:25:34 AM
#28
LoyceV is not a fox despite foxpup avatar  Cheesy
As bitcointalk members will use this website, maybe we should also vote on designs to help LoyceV make better decision.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
October 01, 2020, 09:19:57 AM
#27
ok, I can do it with javascript .
Is that client side? I prefer not to run any scripts.

Quote
do you already have all folders and html files, right?
Yes.
legendary
Activity: 2352
Merit: 6089
bitcoindata.science
October 01, 2020, 07:56:59 AM
#26
This looks easy to do. I if you can be more specific I can try to figure out.
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.
ok, I can do it with javascript .

do you already have all folders and html files, right?
I will do it in the next few days.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
October 01, 2020, 06:38:13 AM
#25
This looks easy to do. I if you can be more specific I can try to figure out.
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.
legendary
Activity: 2352
Merit: 6089
bitcoindata.science
October 01, 2020, 06:21:06 AM
#24
I'm sorry I dont know what metamask is, I just use the reference of the fox came from the avatar of the fox up merit cycling club and make it in a low polygon design, I'm not intended to steal any kind of art work. Sorry if this looks like metamask, I will make a re-design of it thank you on your feed back.
I think the main problem with metamask is that it is not related to bitcoin, making a clear comparison to ethereum (which has nothing to do with the website)

It would also be nice to have a tiny bit of PHP (or whatever) that allows for an input field, and converts a number into an URL.
Examples
This would make it much easier to use 35M posts! View unedited/deleted posts (search per post, per user or per topic), and it's probably quite easy to make for someone who knows this.


This looks easy to do. I if you can be more specific I can try to figure out.
Pages:
Jump to: