Pages:
Author

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

legendary
Activity: 3654
Merit: 8909
https://bpip.org
December 11, 2020, 11:05:52 AM
#63
No need to check for length.

I am new to this and still learning.

Why is it better not to use length?  Faster processing?

Shorter cleaner code less prone to failure - will work for any length, or at least while LoyceV keeps 10k files per folder. Might be faster but in this case I don't think it matters much.

Granted right now what you have works fine so no real need to change until we get to 100 million posts Smiley

I'm still a total n00b, but that makes the code more compact, right?

Yes.

I resisted the urge to go full OCD:

Code:
var thread_link = `http://loyce.club/archive/topics/${thread_id / 10000 >> 0}/${thread_id}.html`;

because that might not work in some ancient version of Internet Explorer.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
December 11, 2020, 10:58:41 AM
#62
I'm still a total n00b, but that makes the code more compact, right?
legendary
Activity: 2352
Merit: 6089
bitcoindata.science
December 11, 2020, 10:32:08 AM
#61
No need to check for length.

I am new to this and still learning.

Why is it better not to use length?  Faster processing?
legendary
Activity: 3654
Merit: 8909
https://bpip.org
December 10, 2020, 08:13:33 PM
#60
~

I think integer math works better for folder splits:

Code:
var thread_link = "http://loyce.club/archive/topics/" + (thread_id / 10000 >> 0) + "/" + thread_id + ".html";

No need to check for length.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
November 11, 2020, 02:44:32 PM
#59
delete this
Code:
var topfolder = top.slice(0, 3);

and add this:
Code:
var topfolder = top.substring(0, top.length-4);
Thanks, it works again! I had to edit 4 files (the 404's have a slightly different description).

Found a possible bug:
topic 3064698.
https://loyce.club/archive/topics/306/3064698.html
Not archieved or something wrong?
I didn't archive posts yet when that topic was created. I scraped the posts later, the first post for instance is archived as oldposts #31577013. I have those posts only sorted by msgID, not by topicID. I'm currenly processing all data, but at the rate it's going, it's going to take a few weeks to complete. It's not very efficient, and therefore takes a lot of processing power.
I only now realize I should also process these posts per userID, and I should have done that from the start, so I'll have to restart this. It'll takes a bit longer again Sad
Stuff like this would be so much easier from a database, but luckily I'll only have to do this once (more).
legendary
Activity: 2352
Merit: 6089
bitcoindata.science
November 11, 2020, 02:07:51 PM
#58
So you don't need to take the first 3 digits, you need to remove the last 4 digits. The logic behind this is that I create directories with at most 10,000 files.
I checked for a few userIDs too, those seem to work fine.

You did almost everything for me Smiley
Made a small code change, now it is working.

delete this
Code:
var topfolder = top.slice(0, 3);

and add this:
Code:
var topfolder = top.substring(0, top.length-4);

Or just download it here:
https://bitcoindata.science/LoyceV/LOYCE.html

I made about 10 tests, looks fine.


EDit:
Found a possible bug:
topic 3064698.
https://loyce.club/archive/topics/306/3064698.html
Not archieved or something wrong?
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
November 11, 2020, 01:38:09 PM
#57
if the length is > 4 the folder is the first 3 digits.

I checked what I wrote:
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 4 or less digits, use 0): 5190.
  • Put everything together behind the (above) URL and add ".html": https://loyce.club/archive/posts/5190/51902990.html.
So for topicID 178336, remove the last 4 digits to get the directory name. That gives directory 17. Add a slash, the topicID and .html to get https://loyce.club/archive/topics/17/178336.html.

So you don't need to take the first 3 digits, you need to remove the last 4 digits. The logic behind this is that I create directories with at most 10,000 files.
I checked for a few userIDs too, those seem to work fine.
legendary
Activity: 2352
Merit: 6089
bitcoindata.science
November 11, 2020, 11:59:32 AM
#56
I found a bug Sad If I search for topicID 178336 on https://loyce.club/archive/topics/, it gives https://loyce.club/archive/topics/178/178336.html instead of https://loyce.club/archive/topics/17/178336.html. It works fine for longer topicIDs.

The rule is a bit different than I thought. I wasn't able to find it now in this topic, can you help me?

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

I made a rule that if the length is <= than 4, the folder would be 0. And if the length is > 4 the folder is the first 3 digits.

As 178336 has 6 digits, the script is redirecting it to a 3 digits folder.

When should the folder have only the first 2 digits?
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
November 11, 2020, 05:17:45 AM
#55
This was quite easy to do, I can help you with similar demands if you need.
I found a bug Sad If I search for topicID 178336 on https://loyce.club/archive/topics/, it gives https://loyce.club/archive/topics/178/178336.html instead of https://loyce.club/archive/topics/17/178336.html. It works fine for longer topicIDs.
legendary
Activity: 2352
Merit: 6089
bitcoindata.science
October 11, 2020, 07:42:14 PM
#54
I really think you should leave the basic design (or lack of) as is. I like it.

I like it too.
Take a look at this  Grin
http://bettermotherfuckingwebsite.com/
legendary
Activity: 2716
Merit: 2093
Join the world-leading crypto sportsbook NOW!
October 11, 2020, 11:43:24 AM
#53
I really think you should leave the basic design (or lack of) as is. I like it.
legendary
Activity: 2352
Merit: 6089
bitcoindata.science
October 09, 2020, 05:05:52 PM
#52
You are sending request to their servers, they will save at least your IP request there.
There is no need to do that. You can just download the font and use it in your own server.


No offence, but to me, this sounds a little paranoid, doesn’t it? I mean, we talking here about font style. I am not sure is it possible to be 100% safe over the internet if you use all of his resources.
It can easily change an IP address, restarting router. Maybe I am naive, but I really don't see a serious problem here.

But in this case there is no reason to get the fonts from their servers, and it is like 1kb file, why don't you host it?
It may be paranoid, but it is more a matter of philosophy about the web imo.

..
You just need this code:
Code:
I'm not familiar with this, is this the standard accepted thing nowdadays? Do users not care about external tracking? Or am I just too concerned?

It is bad for privacy and for page loading times. But it is good to keep your libraries updated. Personally, I download everything and I run it in my own server. I don't care about updates.



Quote
I'd like to add a submenu under the top-menu though, like examplens made here. under "MERIT", but it might make it a lot larger and more complicated to make changes (to so many pages) later.
How would I start editing this? Just manual with an editor, or is there a better GUI method to do so? Again: total n00b here when it comes to designing things.

This is called a dropdown.

Bootstrap is a very nice design language, which you will probably like.

You can just copy this code here and start using and editing it:
https://getbootstrap.com/docs/4.5/components/dropdowns/#single-button

You just have to load the dependencies libraries (jquery, bootstrap css and bootstrapbundle.js, then download them to your /css or /js directories).

See a working example, which you can edit. Examplens just used a different css style:
https://jsfiddle.net/jaqkznyo/1/

You just need this code:
Code:





   
   
   
   
   
   
   
I'm not familiar with this, is this the standard accepted thing nowdadays? Do users not care about external tracking? Or am I just too concerned?

I like the top-menu and the simple design to add some more pages. It'll take me a while to figure out all details how everything works to adjust things.
I'd like to add a submenu under the top-menu though, like examplens made here. under "MERIT", but it might make it a lot larger and more complicated to make changes (to so many pages) later.
How would I start editing this? Just manual with an editor, or is there a better GUI method to do so? Again: total n00b here when it comes to designing things.



I made a very simple design, based on your own website. I focused in readability and low file size. Only 22kb.

Please take a look
https://bitcoindata.science/LoyceV/loyce.club.html
I like the simplicity, but I'm really looking for something I can add to all my pages. So a top-menu to add everywhere.
Tables can for sure improve Trust list pages, but that'll also complicate a lot of the things where I use the same HTML. So maybe I'll add this much later, but it's too much work to do that now too.

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'll change colors when the rest of loyce.club has some design.



language/ software to scrape data and to keep it realtime update
Anything you want should work. Sorry for giving a generic answer, but what works for me probably won't work for you. One thing though, if you start the right way, you'll save a lot of time later. I clearly didn't think it through doing this without database.

Quote
How to build up a simple website
Didn't this topic make it very obvious I know nothing about designing a website? Wink Putting it online is as simple as getting hosting and uploading it. Other than that, this isn't the right topic to get into details.
legendary
Activity: 2310
Merit: 4085
Farewell o_e_l_e_o
October 09, 2020, 03:32:45 AM
#46
Interesting. So would you mind giving me some tutorials from which I can start with

  • language/ software to scrape data and to keep it realtime update
  • How to build up a simple website

I am not an IT coder so I am sorry if my questions look like from a noob.  I love stats. Thanks for your help in advance Cheesy
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
October 08, 2020, 09:59:34 AM
#45
I also changed the font tag to style css, as font tag is obsolete.
Nothing on the internet will ever be obsolete Wink

I know you already received many fancy designs from different people and you didn't use.
I just checked what's left earlier, and some of the designs are no longer online. That leaves this:
And this:
Here some idea what it might look like https://landofcrypto.com/Loyce.Club/ also check "TEST table" menu or: https://landofcrypto.com/Loyce.Club/page1.html
I like both a bit, but not the animations. It gave me more of an idea what I want: a menu (CSS?) on top would fit nicely in all (few million) pages I have, so I can add it above for instance https://loyce.club/trust/2020-10-03_Sat_05.09h/1554927.html too. I think that would largely improve usability.
I have to go soon, so I'll continue later.
legendary
Activity: 2352
Merit: 6089
bitcoindata.science
October 08, 2020, 09:06:29 AM
#44
LoyceV,

I know you already received many fancy designs from different people and you didn't use.

I made a very simple design, based on your own website. I focused in readability and low file size. Only 22kb.

Please take a look
https://bitcoindata.science/LoyceV/loyce.club.html
Pages:
Jump to: