Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
PHP JavaScript Scheme Other
branch: master

API Added username login for users

* Username field for user login
* Update existing users with username task
* Added sortable grid field for profile page
latest commit 62f008c123
Marcus Nyeholt authored
Failed to load latest commit information.
SortableGridField
build
cms
dashboards Added refresh methods fordashboards to be able to easily reload a das…
facebook
framework
gearman
google Cleanup registration / login process with external apps
memberprofiles
microblog
multivaluefield
mysite
orderable
queuedjobs Added gearman queue handling. Updated post save process to make sure …
ratings
restrictedobjects Fixed null point references
silvertwit
simplecache
sqlite3 Updated member login process to make sure group creation is run as an…
syncrotron API Added option for creating users if they don't already exist
themes/bootstrap
thirdpartyauth
webservices
widgets
.gitignore Added markdown parsing and preview
README.md Update master
build.xml
phpunit.php
phpunit.xml

README.md

SilverTwit

A social networking platform in SilverStripe

Getting Started

Installation

  • Clone the repository
  • If you have phing, just run phing to create all the default files needed and skip the following bits
  • Otherwise, you'll need to copy the following files manually
    • build/configs/silverstripe/local.conf.sample.php to mysite/local.conf.php
    • build/configs/silverstripe/htaccess.sample to ./.htaccess (note the extra . there)
  • Edit mysite/local.conf.php to reflect appropriate DB settings. The following should work for SQLite

    global $databaseConfig;
    $databaseConfig = array(
            "type" => "SQLiteDatabase",
            "server" => "localhost",
            "username" => "",
            "password" => "",
            "database" => "silverstripe",
    );


    Security::setDefaultAdmin('admin', 'admin');
    // Email::setAdminEmail('admin@example.org');
    define('SS_LOG_FILE', dirname(__FILE__).'/'.basename(dirname(dirname(__FILE__))).'.log');
  • Edit mysite/local.conf.php and update the 'defaultAdmin' settings
  • Create the assets/ directory
  • Create an _ss_environment.php file in the root folder with the following
    // Set the $_FILE_MAPPING for running the test cases, it's basically a fake but useful
    global $_FILE_TO_URL_MAPPING;
    $_FILE_TO_URL_MAPPING[dirname(__FILE__)] = 'http://localhost';
  • Run dev/build : note that you will NEED to run with '?disable_perms=1' as a parameter to make sure the restrictedobjects module doesn't interfere with things
  • All done!

Configuration

A few things will need to be created first, so login to /admin

  • Go to Security
  • Create a "Members" group
  • Go to Settings, and select the permissions tab.
  • Add Access Authority -> for Permission select View, for Groups select "Members", click Create
  • Go to Pages
  • Add new -> Site Dashboard Page -> set name = Site
  • On the Home page, change type to "Redirector page" and make it redirect to the 'Site' page
  • Remove other pages from the menu
  • Add new -> MemberProfilePage -> set name = Profile, just use the default registration options
Something went wrong with that request. Please try again.