Skip to content

Multi-User YOURLS Plugin.

NOTA: Plugin desenvolvido com a versão do SVN. Incompatibilidades com versão 1.5+

Um plugin para YOURLS que habilita a possibilidade de multi usuários.

Como funciona:
Habilitando este plugin serão criadas duas novas tabelas no seu banco de dados. Uma para registro de usuários. Outra para manter registro de qual url pertence a qual usuário. O plugin permite que as estátisticas sejam publicas ou privadas (ao dono do dominio e administrador do site). O usuário, sendo dono, pode remover, ou atualizar links (não recomendado, pois urls já divulgadas não serão mais válidas.)

Como instalar:
- Copiar os arquivos do plugin para a pasta /user/plugins/multi-user/
- Acessar area de administração e habilitar o plugin.
- Para acessar página de usuários acessar seusite.com/user/plugins/multi-user (criar link na pagina inicial é recomendado)

Configurações:
Se quizer alterar alguma configuração default, altere seu arquivo de configurações
YOURLS_MULTIUSER_PROTECTED - TRUE/FALSE - Estatisticas são privadas ao administrador e donos da URL encurtada.
YOURLS_DB_TABLE_URL_TO_USER - Tabela que vai armazenar URL para cada USUARIO
YOURLS_DB_TABLE_USERS - Tabela que vai armazenar os USUARIOS
YOURLS_MULTIUSER_CAPTCHA - Habilita CAPTCHA para se registrar.
YOURLS_MULTIUSER_CAPTCHA_PUBLIC_KEY - Public API Key para o Recaptcha, pegue o seu: https://www.google.com/recaptcha/admin/create
YOURLS_MULTIUSER_CAPTCHA_PRIVATE_KEY - Private API Key para Recaptcha.
YOURLS_MULTIUSER_CAPTCHA_THEME - tema ReCAPTCHA.
YOURLS_MULTIUSER_ANONYMOUS - True se usuarios Anonimos podem encurtar URL, false se somente usuarios registrados e logados.

Ajuda: http://forum.matbra.com/

Changelog 1.7 beta:
- Bugs arrumados.

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

Versões anteriores:
Multi-user YOURLs Plugin - Versão 1.6 (beta)
Multi-User YOURLS Plugin - Versão 1.5 (beta)
Multi-User YOURLS Plugin - Versão 1.3 (beta)
Multi-User YOURLS Plugin - Versão 1.0 (beta)

134 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 am so grateful for your blog article.Really thank you! Fantastic. adkefdgbeefbadef

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

  22. bilal bilal

    i managed to create an account but when signing in i get to a page which only shows a token for that account and unable to make any url? what am i doing wrong?
    Also were do i see a list of users who have signed up?
    Thanks

  23. Antonio Cisternino Antonio Cisternino

    I managed to execute the plugin in the current version. Is there source code on github so I can contribute?

  24. Промокод может быть однократным (один покупатель — одна покупка) или многократным (и сам покупаешь со скидкой, и с другом поделишься заветным паролем).

  25. whoah this blog is excellent i love reading your articles. Keep up the good work! You realize, lots of individuals are looking round for this info, you can aid them greatly.

  26. This is my first time pay a visit at here and i am genuinely impressed to read everthing at alone place.

  27. Yay google is my world beater helped me to find this outstanding internet site!

  28. Is version 1.9 still available now?

  29. eu fico muito feliz quando encontro com artigos tão bem redigidos quanto o que encontrei aqui . Continuarei acessando esta página já que gostei muito dos seus artigos .

  30. Some supplies such as glass, paper and PTFE, which have high resistivity, are very superior electrical insulators.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.