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)

149 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

  22. You should take part in a contest for one of the highest quality websites on the internet. I will recommend this blog!

  23. I go to see day-to-day a few websites and websites to read posts, however this weblog presents feature based writing.

  24. anônimo não deixa de ser uma simples pesquisa como ele diga no escrito, vamo descontinuar de balela Senhores deste diário virtual, quero ver Tal do Incógnito lucrar almas para Vag a_detalhes: Profissional de ensino física reformado (se tiver registro no CREF, melhor), que gostava da profissão e de bom relacionamento interpessoal.

  25. I am not real excellent with English but I come up this real easy to translate.

  26. I am so grateful for your blog article.Really thank you! Fantastic. adkefdgbeefbadef

  27. Pintura hidrográfica curso passo a passo como visto no mercado livre, auto esporte, youtube, nas capitais SP, Fortaleza e RJ.

  28. Hi there friends, its enormous paragraph on the topic of tutoringand entirely defined, keep it up all the time.

  29. Hello, I would like to subscribe for this web site to obtain hottest updates, thus where can i do it please help.

  30. I loved as much as you will receive carried out right here. The sketch is tasteful, your authored subject matter stylish. nonetheless, you command get got an shakiness over that you wish be delivering the following. unwell unquestionably come further formerly again since exactly the same nearly very often inside case you shield this increase.

  31. I read this post fully about the comparison of newest and earlier technologies, it's awesome article.

  32. Magnificent goods from you, man. I've understand your stuff previous to and you're just too excellent. I really like what you've acquired here, really like what you're saying and the way in which you say it. You make it enjoyable and you still care for to keep it smart. I cant wait to read far more from you. This is really a tremendous website.

  33. Very good article! We will be linking to this particularly great article on our website. Keep up the great writing.

  34. Hurrah! At last I got a blog from where I be capable of genuinely obtain valuable data concerning my study and knowledge.

  35. Hello admin, i must say you have hi quality articles here.
    Your page should go viral. You need initial traffic boost only.
    How to get it? Search for: Mertiso's tips go viral

  36. It's not my first time to go to see this website, i am visiting this web site dailly and take nice data from here every day.

  37. You could definitely see your skills within the work you write. The arena hopes for even more passionate writers like you who aren't afraid to mention how they believe. Always follow your heart.

  38. That is a really good tip especially to those fresh to the blogosphere. Short but very precise information… Appreciate your sharing this one. A must read post!

  39. Fantastic website. Plenty of helpful info here. I am sending it to some pals ans additionally sharing in delicious. And obviously, thank you on your effort!

  40. I am not sure where you are getting your information, however good topic. I needs to spend some time learning much more or working out more. Thank you for magnificent info I used to be in search of this information for my mission.

  41. Hello I am so glad I found your webpage, I really found you by accident, while I was researching on Askjeeve for something else, Regardless I am here now and would just like to say many thanks for a remarkable post and a all round entertaining blog (I also love the theme/design), I don’t have time to look over it all at the minute but I have book-marked it and also added in your RSS feeds, so when I have time I will be back to read a great deal more, Please do keep up the awesome work.

  42. I'm pretty pleased to uncover this website. I want to to thank you for ones time just for this wonderful read!! I definitely savored every bit of it and i also have you bookmarked to check out new things in your web site.

  43. We absolutely love your blog and find the majority of your post's to be exactly I'm looking for. Does one offer guest writers to write content to suit your needs? I wouldn't mind composing a post or elaborating on a number of the subjects you write in relation to here. Again, awesome weblog!

  44. always i used to read smaller posts which as well clear their motive, and that is also happening with this paragraph which I am reading at this time.

  45. Why people still make use of to read news papers when in this technological world all is accessible on web?

  46. What's up colleagues, good article and good urging commented at this place, I am truly enjoying by these.

Leave a Reply

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