Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ianbarber/Yourls-Separate-Users
Very simple plugin for separating user URLs
https://github.com/ianbarber/Yourls-Separate-Users
Last synced: 14 days ago
JSON representation
Very simple plugin for separating user URLs
- Host: GitHub
- URL: https://github.com/ianbarber/Yourls-Separate-Users
- Owner: ianbarber
- License: bsd-2-clause
- Created: 2011-06-16T15:44:08.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2018-09-08T02:02:03.000Z (about 6 years ago)
- Last Synced: 2024-08-02T06:17:10.031Z (4 months ago)
- Language: PHP
- Homepage:
- Size: 165 KB
- Stars: 15
- Watchers: 5
- Forks: 13
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - Separate Users - Adds a username to each created URL, and filters the admin interface. (Plugins / S)
README
A simple YouRLS plug to hide different users information from each other.
To install, just copy the plugins/separate-users folder to your plugins folder (usually user/plugins). Once activated, any new links created will only be visible in the admin to the user that created them, and the + stats page will also be restricted to only the user that created it. Users cannot create shortcodes the same as one already created by another user.
If an account named 'admin' is created, it will be able to view all links. The specific name can be changed by defining SEPARATE_USERS_ADMIN_USER in the config, e.g.
define ('SEPARATE_USERS_ADMIN_USER', 'tony');
to give the account 'tony' full access.
If you want to define multiple users, here are the steps to follow.
define('SEPARATE_USERS_ADMIN_USER', serialize(array('tony', 'jack')));
to give the accounts 'tony' and 'jack' full access.
Please note: currently this plugin is designed mainly to clean up the admin interface for different users, and doesn't guarantee there's no way for one user to influence or access the links of another!