Plugin for Yourls.

Post plugins and custom CSS snippets here
User avatar
acaranta
Bear Rating Trainee
Bear Rating Trainee
Posts: 15
Joined: 30 Mar 2013, 10:30

Re: Plugin for Yourls.

Postby acaranta » 12 Apr 2013, 10:12

Exactly what I did at first ;)

cy8aer
Bear Rating Master
Bear Rating Master
Posts: 109
Joined: 19 Apr 2010, 13:29

Re: Plugin for Yourls.

Postby cy8aer » 19 Apr 2013, 16:11

Repair pull request for 1.7.9 on the way

User avatar
acaranta
Bear Rating Trainee
Bear Rating Trainee
Posts: 15
Joined: 30 Mar 2013, 10:30

Re: Plugin for Yourls.

Postby acaranta » 22 Apr 2013, 10:47

Thx, Merged ;)

User avatar
acaranta
Bear Rating Trainee
Bear Rating Trainee
Posts: 15
Joined: 30 Mar 2013, 10:30

Re: Plugin for Yourls.

Postby acaranta » 22 Apr 2013, 22:01

OK I actually reverted your changes on master branch, because with 1.7.9 changes the plugin does not work on latest stable 1.7.8.

I therefore created a 1.7.9 branch on which your changes are merged (if I made everything right, I am not yet comfortable with git :p)

drmartin
Bear Rating Trainee
Bear Rating Trainee
Posts: 6
Joined: 06 Apr 2013, 10:57

Re: Plugin for Yourls.

Postby drmartin » 16 May 2013, 11:28

1.7.9 is now the current stable so maybe the applicable version should be pushed to the main branch? :D

User avatar
acaranta
Bear Rating Trainee
Bear Rating Trainee
Posts: 15
Joined: 30 Mar 2013, 10:30

Re: Plugin for Yourls.

Postby acaranta » 27 May 2013, 18:33

True, I'll do that ASAP ;)

User avatar
acaranta
Bear Rating Trainee
Bear Rating Trainee
Posts: 15
Joined: 30 Mar 2013, 10:30

Re: Plugin for Yourls.

Postby acaranta » 27 May 2013, 19:15

done thx

User avatar
markwaters
Bear Rating Trainee
Bear Rating Trainee
Posts: 32
Joined: 20 May 2008, 13:10
Location: France
Contact:

Re: Plugin for Yourls.

Postby markwaters » 28 May 2013, 09:47

Thanks for implementing and fixing this.

jdelamater99
Bear Rating Master
Bear Rating Master
Posts: 109
Joined: 11 Apr 2013, 17:45

Re: Plugin for Yourls.

Postby jdelamater99 » 28 May 2013, 16:13

I was getting a ton of these messages in my tt-rss->preferences->error log

Code: Select all

E_WARNING (2)   plugins/yourls/init.php:15   curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set


So, in init.php, I commented out line 13

Code: Select all

curl_setopt($this->curl_yourls, CURLOPT_FOLLOWLOCATION, true);


and added this in it's place.

Code: Select all

if (!ini_get('safe_mode') && !ini_get('open_basedir')){
   curl_setopt($this->curl_yourls, CURLOPT_FOLLOWLOCATION, true);
}


The plugin still works exactly the same, but I no longer get the error message in the error log.

This is in the 1.7.8 compatible version, so I'm not sure if you've already addressed that in 1.7.9+ versions or not. Might help someone else out.

User avatar
acaranta
Bear Rating Trainee
Bear Rating Trainee
Posts: 15
Joined: 30 Mar 2013, 10:30

Re: Plugin for Yourls.

Postby acaranta » 31 May 2013, 18:51

Mmmmh this seems to be a "problem" with your hosting platform. Safemod, etc, etc.

however, this is only a warning, so it shouldn't be a problem ;)

However i'll check your code and add it to the git repository if it's ok ;)


Thanks!

User avatar
acaranta
Bear Rating Trainee
Bear Rating Trainee
Posts: 15
Joined: 30 Mar 2013, 10:30

Re: Plugin for Yourls.

Postby acaranta » 20 Jun 2013, 00:21

Added, comitted and merged to dev branch ;) Thanks jdelamater99

sven
Bear Rating Trainee
Bear Rating Trainee
Posts: 6
Joined: 17 Jan 2015, 03:43

Re: Plugin for Yourls.

Postby sven » 28 Sep 2015, 22:30

I've tested it and it looks like it doesn't work anymore. Anyone has an idea?

User avatar
aware
Bear Rating Trainee
Bear Rating Trainee
Posts: 1
Joined: 18 Nov 2015, 01:49

Re: Plugin for Yourls.

Postby aware » 21 Nov 2015, 16:43

Hi,

I try to use yourls plugin, but i have an error :
- when i click icon yourls in article
Image

- in tt-rss/system/log :
Image

Anyone has an idea?

(tt-rss version : 1.15.3, yourls version : 1.7)

User avatar
Andyt8
Bear Rating Disaster
Bear Rating Disaster
Posts: 83
Joined: 19 Mar 2013, 17:02
Location: Austria
Contact:

Re: Plugin for Yourls.

Postby Andyt8 » 08 Mar 2016, 11:13

Is it possible to get an version without CURL? I don't know really much about CURL, but I know that my Webspace have open_basedir restrictions. Yes, that is not my own webserver - there are several points why it is in that way. However, if I want to use that plugin, I get really much Warnings and that fill up the error log.

I tried to add "//" for example to line 11 for testing => "// curl_setopt($this->curl_yourls, CURLOPT_FOLLOWLOCATION, true);" - plugin still work, but I don't know what that mean? The Warning will be reduced, but there are still some more with other lines - so is it safe to disable all?

I know, a good way would be to use "if (!ini_get('safe_mode') && !ini_get('open_basedir')) {"

JF13
Bear Rating Trainee
Bear Rating Trainee
Posts: 1
Joined: 05 Mar 2017, 15:03

Re: Plugin for Yourls.

Postby JF13 » 05 Mar 2017, 15:08

Hi everyone. I'm not sure if this post is still active. A few questions.

Does this plugin automatically add a YOURLs shortened URL for every article in an RSS feed?

If not, how does this plugin work?

Jeffrey


Return to “Themes and plugins”

Who is online

Users browsing this forum: No registered users and 1 guest

cron