The online racing simulator
Site editor - wip.lfs.net
(5 posts, started )
Site editor - wip.lfs.net
I've made a start and created a template and style editing system allowing you to create content for a website. I guess we could start with a layout for www.lfs.net but you could easily create a global style for any other site.

You go to http://wip.lfs.net/ and log in with your regular LFS account.
I recommend not ticking the 'stay logged in box' so that no important cookies are stored. Due to the open editing nature of this site, I cannot guarantee that some joker inserts malicious code. Although I do some safety checks. and malicious code can quickly be traced and removed.

When you are logged in, you will see a style selection and edit button in the bottom right of the screen.
You can select every style anyone has created and view it. You can only edit your own styles, but you can still open any style in the editor to look at the templates. You can also clone someone's style. Then you can edit your cloned version, to make tweaks for example, or suggestions for alternatives.
If there are too many styles in the end and the list becomes too long (which will happen probably), I'll add some filters.

In the editor window you will see a list of page variables to the right. At this time there are just 2 variables that indicate that you're logged in and what your username is. These variables can be used inside your templates.

The remaining part of the screen is dedicated to the editor field where you edit the templates and styles.

The pages are all split up into a global section and a page specific section.
So you can edit the global template (site layout) and style and the current page's template (site content) and style.
For the moment there are just the index page (front page) and the login page. More will follow of course, but I thought I'd introduce you to this first usable site editor now, so you can have a look and get familiar with it all, including how the Mustache templates work.
You can read about using Mustache on the following two pages (or google) :
https://github.com/bobthecow/mustache.php/wiki
https://github.com/bobthecow/mustache.php/wiki/Mustache-Tags

Big features still planned :
-Uploading images. You can already use images in your stylesheets if you host them yourself. But of course you will also have to be able to upload them directly to the site.
-Make the variable list editable.
-Auto preview, so you don't have to keep clicking that button all the time while making changes.
-Other stuff, forgotten for the moment.

I'm sure there are bugs, so if you find any, let me know and I'll have a look.
Also if you have suggestions on how to make it better and more usable, feel free to post.
btw, the example layout of the default style is just that, an example, so that you can see how the template works.
Flame was trying something with responsive layouts and i thought it looked nicely generic, so i made it the default.
#3 - majod
I know this is still about style, but seeing a login form on another site I must ask - will it be possible to implement HTTPS to LFS website? At least for login process...will make things much safer and users will feel better.
Any progress reports ?

Site editor - wip.lfs.net
(5 posts, started )
FGED GREDG RDFGDR GSFDG