How to have a dynamic blogroll with single php file and static files in one directory?

DirectorGunner

Space Marshal
Officer
Donor
Sep 17, 2016
2,906
12,670
2,900
RSI Handle
DirectorGunner
I'm having a block and my GoogleFu is shit or maybe Google just sucks now...
I've got an empty directory for my home directory for a website.
I just want to upload single static files as blog post articles to the home directory.
I want the index to be a single PHP file that is like a sudo landing page with blog roll for the lower half.
Just want the php file to index the directory for static files and show thumbnail previews of them.
I am having a hell of a time for the last week finding an existing solution.

Any ideas would be most appreciated!
 
  • Like
Reactions: marcsand2

DirectorGunner

Space Marshal
Officer
Donor
Sep 17, 2016
2,906
12,670
2,900
RSI Handle
DirectorGunner
It's been a long time since I wrote php, but I think you should look for the php gd library. The manual is located at http://php.net/manual/en/book.image.php
Thank you, that's for images, I do have Chevereto for that... I figured there'd be a template out there for something like this but oddly I have not found one... might have to do a flat CMS or 100% static for everything which would be great for server but absolutely suck to update an all static blog.

Have you tried yelling at it?
YES! lol It didn't work

I understood some of these words.
You and me both
 
  • Like
Reactions: Printimus

Vavrik

Space Marshal
Donor
Sep 19, 2017
5,452
21,832
3,025
RSI Handle
Vavrik
I am not sure how important php is for you, all the cool kids do nodejs nowadays, so if you are willing to use that this is probably going to be the route of least resistance...
If I understood you correctly, this is what you want, right?

https://hackernoon.com/how-to-build-a-simple-blog-using-node-js-4ccdce39e78f
Not adding anything here, except to say I don't have enough thumbs to say what I feel about this advice.

Learning curve for someone doing this as a hobby can be a bit steep depending on their experience level, but there are a ton of excellent tutorials online to get someone started - no matter the experience level. If someone writes web software regularly, it's indispensable.
Even if you're using a framework like Angular, React or Vue and whatnot, you should know the basics of node.js.
 

DirectorGunner

Space Marshal
Officer
Donor
Sep 17, 2016
2,906
12,670
2,900
RSI Handle
DirectorGunner
I am not sure how important php is for you, all the cool kids do nodejs nowadays, so if you are willing to use that this is probably going to be the route of least resistance...
If I understood you correctly, this is what you want, right?

https://hackernoon.com/how-to-build-a-simple-blog-using-node-js-4ccdce39e78f
That's beautiful, though I already have Chevereto installed, so it's a LAMP environment I have to work with.
And because I need to keep the load from server processing as low as possible, I have to use static for the public front end for any blog related stuff.
This is Star Citizen related btw... for something which may get heavy loads.. so I'm being as cautious as possible in trying to find the best solution on a budget.
Got a network license for Chevereto and it's installed and working. Just need to do the front end now for blog content.
 
  • Like
Reactions: at-2500

DirectorGunner

Space Marshal
Officer
Donor
Sep 17, 2016
2,906
12,670
2,900
RSI Handle
DirectorGunner
So someone decided to compete with what I've been working on... they registered their domain 12/12 (today)... and posted it to reddit. Why is it.. .whenever I work on something.. someone in the community copies it and calls it their own original idea? This is one of the reasons I don't share my cosplay print 3D files.... I don't want people bypassing all the hard work I went through to make the cosplay files and get licensed by CIG for a limited run... and then some random comes along and abuses the files and starts selling the helmets on eBay.

This happened a few times over the years.. last one I remember was a SC music video, the guy saw my video.. contacted the music artist misrepresenting what he wanted it for (I had a temporary exclusive license I paid for to be the only one to use it for SC related content for a few months..) and then made his own SC video edit to the track I selected and was licensed for.
His video was later removed by YouTube for content ID without a valid license which was good.. but still.

There are community members lurking with no respect for others hard work, they do a patch job, and then rush to post it to reddit.

I shared the website with CIG devs back in November as a WIP and with a few notable community members/groups.
And yesterday I posted about working on this on twitter.. well.. maybe this is my fault.


Anywho.... I'm still looking for a static blog solution for the front end.. but TOS draft 1 is done at least.
 
  • Like
Reactions: Vavrik
Forgot your password?