FoOlRulez
Hover here to close
U
N
R
E
A
D
N
A
V
I
G
A
T
I
O
N
Blog
The blog where we announce every release, and give our very own breaking news about the world of scanlation and tech.
Forum
The mysteriously very active forum where we chill out and spam to our heart's desire, and share our good stuff.
FoOlChan
The place where only 18+ can enter, where all the scum of FoOlRulez is stored. You can come post anonymously any image.
IRC
The place where the cool kids in FoOlRulez hang, featuring trolls, doctors, translators and whatever we got in FoOls.
WebIRC
Just as above, but by clicking here you will open an IRC client into your browser, so you can chat anytime, anywhere.
aNi-N-gin
The weird anime recommendation system we coded, that will either give you childish cartoons or top level anime, not randomly.
Manga Reader
Where you can read our fresh manga, without going anywhere else and with very high quality.
Manga DDL
Manga Direct DownLoad. Nude and crude, the files at the highest possible quality, just a click away.
Blog | Forums | FoOlChan | IRC | WebIRC | Manga reader | Manga Direct Download
FoOlRulez is looking for more proofreaders! Follow this link for more information!
To hide all advertisings and get direct downloads, login or register.
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. And, most likely, younger than you are!

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/

  • Latest posts:

  • 16 Responses to “YOURLS widget released”

    1. woxxy woxxy says:

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

    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. M says:

      I AM APPROVE

    4. scizzer12 says:

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

    5. 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.

    6. woxxy says:

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

    7. Marcos says:

      Thank you very much. :)

    8. baron says:

      Works great, thank you

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

    10. 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!

    Leave a Reply

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