dropplets icon indicating copy to clipboard operation
dropplets copied to clipboard

The order of uploaded and visible posts

Open peterrovid opened this issue 13 years ago • 11 comments

Today I realized another problem, now regarding the order of the posts. If I upload more posts in a day, the order of the posts will be as the file names of the posts... It is not so good for me since I write more posts in a day, every day. Now I have to find out how should I name my files better, or try to find a solution to get dropplets organize my files in the uploaded order.

Has somebody an idea maybe?

peterrovid avatar Sep 19 '13 11:09 peterrovid

You could implement a function in which there is the 7th line in the markdown file is checked for a number. Like:

#Title -Name -Twitter -Date -Topic -Status Number

First line (intro)

Rest of the post.

The you would have to only rewrite the check for the intro.

lfuelling avatar Sep 19 '13 16:09 lfuelling

You mean I just have to simply write a number, or add some scripts to one of the php file?

peterrovid avatar Sep 19 '13 17:09 peterrovid

Both. You add a script which reads the number. And then you order it according to the Numbers at the same day.

lfuelling avatar Sep 19 '13 17:09 lfuelling

I thought so :D However I'm a little bit stupid for php. I understand the logic, and thought almost a same solution, but I can not do it myself.

Anyways, thank you for the idea, sounds good.

peterrovid avatar Sep 19 '13 17:09 peterrovid

If you give me an hour or two I'll try to code it for you.

lfuelling avatar Sep 19 '13 17:09 lfuelling

Oh, it can wait. Please don't hurry because of me. Thanks in advance

peterrovid avatar Sep 19 '13 18:09 peterrovid

I experimented with time tagging my posts in the date line on those occasions, and that has worked perfectly so far.

Hibby avatar Sep 19 '13 18:09 Hibby

Okay, that sounds interesting. Could you show it to us somehow?

lfuelling avatar Sep 19 '13 18:09 lfuelling

I've made no changes to the platform itself to achieve this:

post at 1200 post at 2100

list of posts - note the ordering

Is the examples. AFAIK, PHP Date() supports timestamps, but I may be doing it wrong. However... it works for me.

Hibby avatar Sep 19 '13 18:09 Hibby

Thanks Hibby for the answer, I will try it!

Now let's see some other problems ;)

peterrovid avatar Sep 19 '13 19:09 peterrovid

Works like a charm. Thank you!

I close the topic, however it remains a bug which needs to be solved soon ;)

peterrovid avatar Sep 19 '13 19:09 peterrovid