Menu

Developer Update 6/6/13

Hello once again! We've been hard at work with our encryption system, and believe it is almost time for a demo. We aren't sure exactly when this demo will be released, but we can tell you it'll be great!

Posted by Syntax Media 2013-06-06
  • googlework.com

    googlework.com - 2013-06-20

    SMLS Config file

    Lines with a "#" at the start are ignored

    Lines with a "$" are variable names

    Their value goes on the line below it

    SETTINGS

    $usergroups
    Non-Member
    Member
    Moderator
    Admin

    $defaultgroup
    Member

    $openregistration
    true

     
  • googlework.com

    googlework.com - 2013-06-20

    Start
    Setup
    Changing Variables
    Working With SMLS
    Editing the Code
    Attracting Users to Your Site
    What Now?

    Start
    Hello, and (again?) welcome to the Syntax Media Login System, or SMLS for short. This HTML file will help you on your way to being a SMLS master. Some of this tutorial is also on the SMLS wiki, which can be found at http://www.sourceforge.com/p/syntaxlogin/wiki/Home/. Let's begin.

    Setup
    In this tutorial, we'll show you how to set up your SMLS. First of all, you need to install PHP onto your website. We can't help you there as everyone uses different web server software. Once you're done with that, download SMLS here. There should be a link close to the top that says "Looking for the latest version? Download X vX.X.zip (X.X kB)." You should click on it to download it. If you're looking for an older version, just go into the respective folders. After that, you have it up and running! In the next tutorial, we'll show you how to change variables in the PHP files so that you can actually use it. Before we continue though, try to create a user named Admin.

    Changing Variables
    Hello, and again, welcome to the SMLS help files. In this tutorial, we'll show you how to change variables within the PHP files, or in this case, inside the logged.php file, which is what validates your login. Open it up in your favorite code editor. We suggest using Notepad++. Continuing, if you don't know what a PHP variable looks like, they look like this: $variable_name = $some_other_variable; Inside of logged.php, there are lots of variables near the top. Here's some of them and what they do:

    $num: For while loops and nothing else. Please don't change it unless you know what you're doing.
    $usrname: This is the name atribute of the text input tag for the username on the page that's directing to this.
    $usrpswd: Same as last, except for passwords.
    $destination2: This is where the user will be redirected after login.
    $destination: Unless you have your own page for setting cookies, you don't need to change this.
    $found: This is for the system only. You shouldn't have to change this.
    

    If you'd like, you can go in and change some of these variables. When you're finished, you can come back here for the next tutorial.

    Working With SMLS
    Once again, welcome the the SMLS tutorials. This tutorial will show you how to make webpages that work with SMLS's stock webpages. For this tutorial, we'll make a login page. Start by making a new HTML or PHP page. It doesn't really matter unless you plan to add PHP code to that page, in which case you should make it a PHP file. Start with a basic HTML shell. You should know how to make one if you're here. After that, make a form with it's action set to "logged.php" and it's method set to "post." After that, add an input with the type as text and the name as whatever $usrname is set to in logged.php. After that, add an input with type set to password and name as whatever $usrpswd is set to in logged.php. When you're done with that, add an input with type as submit. Name it whatever you like. After that, if done correctly, you should be able to create new accounts through your new page.

    Editing the Code
    In this tutorial, we'll show you what you can do by editing the code. This will be a short tutorial. By editing the code of SMLS, you can make it work however you like. Just remember that it's licensed under the GPL v3 license, which means that you are allowed to edit it as you please and distribute it under the GPL v3 license. It also means that somewhere where it would be easy to find, you must include a statement that says that you are not the original creator of the system. It also states that if you distribute it, you can distribute it in anyway you like, including paid. However, if you bought this, you cannot release it for less than you paid for it. But, now that we're beyond the license stuff, let's get onto showing you how to edit the code. Also, we very highly suggest that you learn PHP as well as you can before continuing. Let's get started. Open logged.php. Find the section of the code that has a comment saying "pointless messages". Now, you can change the text within the echo section to whatever you please. Now, you could go and try it out, but you wouldn't see anything. So let's edit another section of the code. Near the top, find the section titled "redirect". You should comment out the next line. When you login the next time, you will see your edited messages. Now this is only a simple thing you can do by editing the code of SMLS. You can make it work entirely different if you please, using SMLS as a base. That's all for this tutorial.

    Attracting Users to Your Site
    So now you have a site, but what now? How will you attract users to it? That's what this tutorial aims to cover in little detail. To attact attention to your website, there are a number of different ways to do it.

    Tell family and friends
    Paid advertising
    Non-paid advertising
    

    There are pros and cons to each option.

    Tell family and friends: While this will attract a bit of attention, it won't be all that effective in the long run. It is however good for starting your site to make it not look inactive.
    Paid advertising: This costs money, and doesn't always work. But, it is the most effective way described here.
    Non-paid advertising, or spam as it is often called, just might be the least effective way here. Whatever you do, do not use non-paid advertising anywhere. It will give you and your site a bad reputation.
    

    Hopefully this helps!

    What Now?
    So, you've set up a website, you've editing all of the variables, you've worked with SMLS, and you've edited the code, you've attracted users to your site. But what's next? What you can do is go to the Sourceforge page for SMLS and go to the forums. You can also work on your own version of SMLS and release it somewhere. If you want, you can also contact us via a ticket and ask if you can be a developer. You can also ask if you can become a wiki editor. Good luck!

     
  • googlework.com

    googlework.com - 2013-06-20
    • <user>
      <name>template</name>
      <id>0</id>
      <pswd>tEmPlAtE</pswd>
      I am the template user.
      <sig>template</sig>
      <beentouserpage>no</beentouserpage>
      <tutorial>no</tutorial>
      <banned>no</banned>
      <group>Member</group>
      <money>0</money>
      </user>
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.