- This topic is empty.
-
AuthorPosts
-
June 7, 2014 at 1:40 am #172114Chris LowlesParticipant
Like if a user logs in the site returns a log of data he has made, like the localStorage API but utilizing user profiles so they can be accessed from multiple devices.
June 7, 2014 at 4:48 am #172128Paulie_DMemberHuh?
June 7, 2014 at 5:08 am #172129Chris LowlesParticipantLets say a user named derpytester logs into the site, the site loads derpytester’s container of data.
I heard it may be possible in PHP and I’m willing to learn some, do you think there is a kind of method in doing that.June 7, 2014 at 6:17 am #172140Chris CoyierKeymasterYeah you might wanna sketch out the idea somehow or explain in a different way. The way it’s explained here is like any login system on any website.
June 7, 2014 at 6:30 am #172141Chris LowlesParticipantThank god you came to write here, so do you think there are any examples to get me started on making a login system? maybe the Facebook API?
June 7, 2014 at 1:05 pm #172145__ParticipantI heard it may be possible in PHP and I’m willing to learn some…
How much do you already know? Realize that creating a login system from scratch —even a “simple” one— is not exactly a “simple” task. Your needs might be better served by a CMS, such as Kirby or WordPress…? You should check out your options.
If you do need (or just really want) to make your own, then, like chriscoyier says, you’d need to explain what it is you need a bit more clearly. What are “containers of data”? Is there something specific you’re trying to build/ accomplish? You mentioned “like localstorage” —do you just want an arbitrary key:value store? how do you want users to be able to access/edit it?
June 8, 2014 at 1:29 am #172171Chris LowlesParticipantThe user would have a set collection of text snippets that, over time, will be created, edited and deleted by them, when they save an already made text snippet, it affects the text snippet in the server and changes to fit what was entered.
Also for that localStorage thing, I’m using localStorage as a fill in, it currently does what I need it to do but it only stores the data (raw text) locally, and what I’m aiming for is something like localstorage but is able to be accessed from multiple devices.
June 8, 2014 at 6:12 pm #172194__ParticipantSetting up something to save text snippets for a particular user is pretty straightforward, but you’d need a user login system first, which is more complicated. At the very least, you’d need a simple name+password combination (not necessarily a full user “account”) to access each snippet.
How do you intend to access / save each “snippet”? via AJAX?
June 8, 2014 at 9:39 pm #172200Chris LowlesParticipantA user types into the form, he/she then types a name to be used as the name of the text snippet into the Hero Box (the input box that says “Make, Load, Overwrite”) and then goes to the navigation box to either click Save or Load.
The Save button saves the text snippet as a new file, and if a text snippet with a the same name already exists, it counts as a overwrite of the file, clicking Load loads a text snippet named whatever is in the Hero Box, lets say the Hero Box has the word “test3” in it, if the user clicks Load, the text snippet named test3 loads into the form as an insertion of a value of the piece of data.
A neat little add-on I made is if the box is empty it is either saved or loaded under the name “Main”, the Main file is loaded upon the site loading so if you just want to quickly copy/paste something, you just leave the Hero Box empty and click save, clicking load with the Hero Box being empty loads the Main text snippet.
-
AuthorPosts
- The forum ‘Back End’ is closed to new topics and replies.