Change background +
FoOlRulez
Where we're flattered by flat.
blog
facebook
forum
Back in the day...
by gebakkenvis - Today at 07:28:06 pm
Cow moo yes no barko
by Guymam - Today at 05:01:44 pm
Question!
by GBolt - Today at 04:51:58 pm
Mekara bimu.
by gebakkenvis - Today at 10:25:00 am
Suicide Edition Contest
by jaara - Today at 08:40:31 am
More Motivation
by jaara - Today at 04:02:41 am
GUYS!
by Guymam - Yesterday at 07:27:30 pm
M's IRL picture!
by Guymam - Yesterday at 07:10:24 pm
unread
manga
download
novels
webirc
IRC
Become a FoOlRulez team member!
YOURLS widget released
Posted: September 1, 2009 at 6:51 pm in Plugins.
Written by woxxy - Bio:
The owner of this website, caretaker of the blog, unstoppable web developer, graphic editor and leader of the FoOlRulez scanlation team.

Twitter: http://twitter.com/woxxy

This widget lets you embed your YOURLS installation (or someone else’s through API) to have a short URL service into your sidebar.
It’s pretty simple as for now and it does its work.

You can see an example right in the sidebar.

I will implement more options as inserting the password directly into the widget options menu (instead of via text-editor) in a few days. If you are using a passworded admin menu you have to edit yourls-widget-config.php. Further info in FAQ section.

Installation

  1. Upload the folder `yourls-widget` (keep the name intact) to the `/wp-content/plugins/` directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Add the widget to your sidebar via the `Appearance/Widgets` menu.
  4. Insert the URL to the API into the widget options. Example: http://yourdomain.com/yourls-api.php
  5. If the YOURLS installation is in “private” configuration (with password to access admin) you have to enter the username and password in the yourls-widget-config.php file. Further info in FAQ section.

Frequently Asked Questions

The widget gives an “Invalid username or password” notice/ I have a private configuration of YOURLS (admin access needs password).

This happens because your YOURLS installation is private configuration.
To fix this you have to edit the yourls-widget-config.php and add user and password in the fields.

Example with username “user and password “password:
< ?php $username = 'insert_your_user'; $password = 'Insert_your_password';?>
becomes:
< ?php $username = 'user'; $password = 'password';?>

Let any website use my API even if I have password protected admin

To do this you have to edit your YOURLS API (yourls-api.php) and remove these lines:

if ( defined(’YOURLS_PRIVATE’) && YOURLS_PRIVATE == true )
require_once( dirname(__FILE__).’/includes/auth.php’ );

This will disable the password protection on the API, but will keep your admin menu passworded. (thanks

Changelog:

0.3
* First simple yet stable release.

http://wordpress.org/extend/plugins/yourls-widget/

  • Recent forum topics:
    Back in the day...
    by gebakkenvis
    Today at 07:28:06 pm
    Cow moo yes no barko
    by Guymam
    Today at 05:01:44 pm
    Question!
    by GBolt
    Today at 04:51:58 pm

    18 Responses to “YOURLS widget released”

    1. woxxy says:

      @gamerz @ozh I took some liberty with the API… “YOURLS widget released” http://foolrulez.org/blog/2009/09/yourls...

    2. Ozh says:

      Hey this is cool :)

      To make the API publicly available while keeping the admin area protected, simply remove the two following lines:

      if ( defined(‘YOURLS_PRIVATE’) && YOURLS_PRIVATE == true )
      require_once( dirname(__FILE__).’/includes/auth.php’ );

      (simply including auth.php triggers the login/pwd requirement)

      Very cool stuff! I’m adding it to the readme again :)

    3. scizzer12 says:

      Woxxy.
      I love the things right below the YOURLS widget.
      Apparently I’d be good watching mushishi, It looks great.

    4. Marcos says:

      Congratulations for the excelent plugin. :)

      Is there any way to insert the form on a page or post, instead the sidebar?

      Have a great day, and thank you in advance for your help.

    5. woxxy says:

      Give me a few days for that, at the moment i am working on the aNi-N-gin too.

    6. Marcos says:

      Thank you very much. :)

    7. baron says:

      Works great, thank you

    8. [...] Yourls-Widget bettet den Shortener in die Sidebar Ihres WP-Blogs ein. So können Ihre Besucher sich schnell einen [...]

    9. Rob Parker says:

      Hi, I’ve just downloaded the most recent version of Yourls, but the lines above to open the API don’t seem to appear anymore in the yourls-api.php file. Do you know what can be done to make it open?
      Thank you very much!

    10. Akif says:

      Wonderful Release by Yours. Admirable!

    11. URL Shortening at your finger tip. :) | Lazy Blogger

    Leave a Reply

    Twitter Users
    Enter your personal information in the form or sign in with your Twitter account by clicking the button below.

    FoOlRulez 2006-2010 Creative Commons License This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
    All the manga featured in this website are property of their publishers. The translations are fanmade and meant to be a preview of material unavailable for western countries. Do not try to profit from this material. If you liked any of the manga you obtained here, consider buying the Japanese versions, or the local translation, where available. Thanks for your support.
    For any need, contact support@[this domain] and we'll get to you as soon as possible.