Skip to content

Multi-User YOURLS Plugin.

NOTE: This plugin is developed with SVN Version. There are incompatibilities with 1.5 version

A plugin for YOURLS that allow multi users in the system

How it works:
Enabling this plugin it will be created two new tables in your data base. One to user registers and other to record what URL is from what user. The plugin allow public or private (owner and admin) access to statistics. The user when creates a new shortned link can change it and remove it. (not recommended becaause urls already published will become not valid.)

How to install:
- Copy plugin files to /user/plugins/multi-user/ folder.
- Access the administration area and activate the plugin.
- To access user pages use yoursite.com/your-yourls/user/plugins/multi-user (create a link in homepage is highly recommended)

Setup:
If you want something different than default setup, achange your config file.
YOURLS_MULTIUSER_PROTECTED - TRUE/FALSE - Stats is private to admin and owners of shortned links.
YOURLS_DB_TABLE_URL_TO_USER - Specific the name of database table to be used as URL to USER table.
YOURLS_DB_TABLE_USERS - Specific the name of the database table to be user as USERS table.
YOURLS_MULTIUSER_CAPTCHA - Enable user CAPTCHA to Sign in.
YOURLS_MULTIUSER_CAPTCHA_PUBLIC_KEY - Public API Key to Recaptcha, get yours: https://www.google.com/recaptcha/admin/create
YOURLS_MULTIUSER_CAPTCHA_PRIVATE_KEY - Private API Key to Recaptcha.
YOURLS_MULTIUSER_CAPTCHA_THEME - ReCAPTCHA theme.
YOURLS_MULTIUSER_ANONYMOUS - True if Anonymous user can shorturl, false if just logged users can shorturl.

HELP: http://forum.matbra.com/

Changelog 1.7 beta:
- Bug Fixes

Download:
Multi -user YOURLS Plugin - Versão 1.7 (beta)

Older Versions:
Multi-user YOURLs Plugin - Versão 1.6 (beta)
Multi-user YOURLs Plugin - Version 1.5 (beta)
Multi-User YOURLS Plugin - Version 1.3 (beta)
Multi-User YOURLS Plugin - Version 1.0 (beta)

124 Comments

  1. Tom Tom

    Hi

    First - Great Plugin !

    Puzzled: If I am logged in as Admin and I also log in as a user. The user account when viewing stats has a link to the admin??? Is it reading my IP and knows that "the user" in this case is also the admin? Otherwise that appears to be a problem.

    I am also getting the problem where the user can not "edit", instead I get (firewall?) message "if I want to open or save admin-ajax.php" The user can edit for a short time, but if they leave the page ie. to view stats and then try to edit...they can't. Instead it wants to open or save admin-ajax.php which is blank when you choose open.

    YOURLS v 1.6-polyglot

    BTW. I know it near impossible to keep multi-user working with every tweek of svn and I don't care which version I run as long as multi-user works with it. Do you have or point me to a link of a zipped version that multi-user is compatible with. What about the current version (non svn) 1.5.1?

    Thanks
    Tom

  2. Chris Chris

    I'm encountering a problem with reCaptcha. From what I can tell, it's working, outside of the new user is not being added to the database. Let me explain.

    Captcha shows up in the form properly.
    I fill out user name / password / captcha.
    When I hit submit, all fields are cleared, a new captcha appears, and the form is redisplayed.
    I check the database, and the user name/password has not been added.

    Doing some error checking, if I enter a wrong captcha, I get a valid error response.

    I added an echo statement in, put the correct captcha in, and get a response that it was correct. However even with a valid response back from google, the form is not being submitted to the database.

    So, what did I do wrong? or Where can I fix it?

  3. Chris Chris

    Nevermind, it appears that this is a database call issue, not a Captcha issue. If you leave the table definitions blank in the config file, it doesn't seem to use the default names. If you add the table names into the config setting it works.

  4. RouteOne RouteOne

    Hi Matheus,

    please excuse my first more than lousy English. I use the Google translator for this 🙂

    I just registered for this forum, but I can not login. It always comes back the message, even though I enter it right.

    "An Error Has Occurred! The letters you typed do not match the letters that were shown in the picture."

    So I describe my problem here.

    I use Yourls 1.6 and have your multi-user YOURLs Plugin - Version 1.6 (beta) installed. It works perfectly except for 2 things. I can not delete or modify the short URL.

    When I click on edit only appears a white page. When I click delete, only the delete button disappears but nothing else happens.

    Where can be the cause for this problem?

    I hope you can help me, because I would like to use your plugin.

    Thank you very much
    RouteOn

  5. how exactly do i add users for login

  6. John John

    I have installed the plugin in YOURLS 1.7. Everything seems fine but the Action buttons are not working correctly. When I click on them, they disappear but when I am logeedin with Admin, then all action button works perfectly. Please guide me with the situation. You can reply me by mail as well. Waiting for your reply. Thanks.

  7. NetNut404 NetNut404

    I noticed that when enabling this plugin and I have debugging turned on I get these two messages..

    Notice: Constant YOURLS_MULTIUSER_CAPTCHA already defined in /usr/share/yourls/user/plugins/multi-user/mufunctions.php on line 19

    Notice: Constant YOURLS_MULTIUSER_CAPTCHA already defined in /usr/share/yourls/user/plugins/multi-user/mufunctions.php on line 22

    is there something I should edit, and does this happen just for me?

  8. NetNut404 NetNut404

    I register a user at the multi-user site by email address and then I get this message... Fatal error: Call to undefined function yourls_plural() in /usr/share/yourls/user/plugins/multi-user/admin.php

    any pointers?

  9. Hey John, right now the plugin is not supporting the YOURLS 1.7 sorry. I will let you know if I have any update on this.

  10. I tried to install this for 1.7 and I just see the token after logging in. Is that the only result from the current beta?

  11. NetNut404, the reason 1.7 is failing is because in YOURLS 1.7 the yourls_plural() function is depreciated. It's a super simple function thankfully that just adds a "s" if > 1. Stick it back in your functions.php and comment it out in functions-deprecated.php and you'll be back in business!

    // Return word or words if more than one
    function yourls_plural( $word, $count=1 ) {
    return $word . ($count > 1 ? 's' : '');
    }

    Or update the Multi-User code to use yourls_n() instead. See the function in https://code.google.com/p/yourls/source/browse/trunk/includes/functions-l10n.php?r=891 e.g. yourls_n("day","days",$num)

  12. Great plugin! Almost does what I need 😉 Is there a way to make the plugin use a Drupal website's users? Thanks!

  13. @Charles,

    I'm not working on multi-user plugin to YOURLS 1.7 yet. I want to, but I need to buy some time.

    @Mark Emery,

    Good point. Thanks for helping then. I'm definitely out of time.

    @Francesco,

    It should be possible, but I don't have plans to add this to it.

  14. sai sai

    Hello every one...I need help from you guys.I am using multi-user plugin V1.7 on Yourlsv1.6.The problem i am facing was,The Short URL created by users cannot see the stats of the link only main admin can see the stats of those.

    I want users not only to just see url created by them in their account but also stats of their shor urls .Can anyone help me..

  15. Marisa Giancarla Marisa Giancarla

    Does this work with 1.7 yet? Mu server is http://ccm.bz

  16. Todavia, tradicionalmente, Viagra está sócia exclusivamente com os homens, o tempo que existe tesão de vaca, embora esta classe de viagra não é tão popular quanto masculino, de todos os modos, foi aprovada a sua eficácia.

  17. Jeffrey E. Hundstad Jeffrey E. Hundstad

    I downloaded this plugin at "commit 58a12bb8301fc94ca305cfb8e0bffee9dced80f9".

    On top of Yourls at 1.7.1 at "commit 58a12bb8301fc94ca305cfb8e0bffee9dced80f9

    I was able to use this plugin by appending the following two lines directly after the initial "<?php" line on user/plugins/multi-user/mufunctions.php :

    require '/var/www/includes/ezSQL/ez_sql_mysql.php';
    require '/var/www/includes/functions-deprecated.php';

  18. For the reason that the admin of this web page is working, no doubt very
    rapidly it will be famous, due to its feature contents.

  19. com can be a good option for these online magazines. He has performed at venues like the Princess Grace Theatre in Monaco and the Winter garden theatre in Berlin. Online casino roulette is a fun game; just don't get it into your heads.

  20. I favor this weblog a good deal, Its a very nice place to read and receive info.

  21. I feel this is one of the so much vital info for me. And i am happy studying your article. But wanna observation on few basic issues, The site style is perfect, the articles is really great : D. Good job, cheers

Leave a Reply

Your email address will not be published. Required fields are marked *