Plugin to automatically embed original/mobilized article

Post plugins and custom CSS snippets here
macfly
Bear Rating Disaster
Bear Rating Disaster
Posts: 82
Joined: 27 Mar 2013, 23:07

Plugin to automatically embed original/mobilized article

Postby macfly » 14 Apr 2013, 15:38

Attachments
auto_embed_original_1.0.zip
(6.72 KiB) Downloaded 275 times

macfly
Bear Rating Disaster
Bear Rating Disaster
Posts: 82
Joined: 27 Mar 2013, 23:07

Re: Plugin to automatically embed original/mobilized article

Postby macfly » 21 Apr 2013, 00:11

New Version, compatible with current trunc version, and does not need any patching.

Installation:

[*]download attached ZIP-File, unzip in the plugins directory, a new directory "auto_embed_original" will be created.
[*]enable auto_embed_original in settings/plugin

from now on, every article will have two new Icons at the bottom:
[*] one "embed" icon, simply toggles between original Article and rss-feed-content
[*] one "embed" icon with gear (=settings). This will allow to setup how the current feed will be displayed.

Hotkey for embedding original content is shift-v

Because this plugin needs to store some Information, two new tables will be created automatically.

feedback is welcome!

regards,
macfly
Attachments
auto_embed_original_1.1.zip
(8.89 KiB) Downloaded 270 times

cqrt
Bear Rating Disaster
Bear Rating Disaster
Posts: 70
Joined: 05 Apr 2013, 00:37

Re: Plugin to automatically embed original/mobilized article

Postby cqrt » 21 Apr 2013, 00:52

Last edited by cqrt on 21 Apr 2013, 01:56, edited 1 time in total.

macfly
Bear Rating Disaster
Bear Rating Disaster
Posts: 82
Joined: 27 Mar 2013, 23:07

Re: Plugin to automatically embed original/mobilized article

Postby macfly » 21 Apr 2013, 01:49

yes, only compatible with trunc, right now. I guess, you have to wait until 1.7.9 then ...

cqrt
Bear Rating Disaster
Bear Rating Disaster
Posts: 70
Joined: 05 Apr 2013, 00:37

Re: Plugin to automatically embed original/mobilized article

Postby cqrt » 21 Apr 2013, 02:01

Man, my question reads like a retard wrote it (fixed :)).

Cheers macfly, all good. I was trying to avoid using trunk on a production install but now is as good a time as ever I guess.

macfly
Bear Rating Disaster
Bear Rating Disaster
Posts: 82
Joined: 27 Mar 2013, 23:07

Re: Plugin to automatically embed original/mobilized article

Postby macfly » 22 Apr 2013, 15:48

New Version.

Bugfix: when on first article in List and pressing hotkey for prev, check, if there is a pref article (instead of accessing the nonexisting article and generating an exception).

compatible with current trunc version only.


feedback is welcome!

regards,
macfly
Attachments
auto_embed_original_1.2.zip
(8.94 KiB) Downloaded 203 times

macfly
Bear Rating Disaster
Bear Rating Disaster
Posts: 82
Joined: 27 Mar 2013, 23:07

Re: Plugin to automatically embed original/mobilized article

Postby macfly » 26 Apr 2013, 15:49

New Version, compatible with master @8cefe38a0a1623db866cb9bf295fe8a591ad5488

Using the correct js-hook for expanding article and the correct hook for feed-settings.

You can configure the feed display-mode with the embed-icon-gear for the current displayed feed or in the feed configuration.

feedback?
Attachments
auto_embed_original_1.4.zip
(9 KiB) Downloaded 512 times

taclm
Bear Rating Trainee
Bear Rating Trainee
Posts: 6
Joined: 29 Apr 2013, 16:59

Re: Plugin to automatically embed original/mobilized article

Postby taclm » 29 Apr 2013, 19:57

Hi macfly,

Been using TTRSS on my shared hosting since they announced the demise of Google Reader, and am totally impressed with it and the work you guys have done with it. I have since purchased the Android app and am loving the integrated experience and have to say I'm a bit addicted now :).

Anyway, one of the things I've been very interested in is seeing the original article for certain feeds display. I've been keeping an eye out for the work you have been doing with this plugin and find it extremely useful. I don't fully get all the issues you are hitting with making this work flawlessly, but I have to say the plugin is working well overall. The latest version is also now displaying elements like web page comments, and some java script functions that earlier versions would not.

I installed the latest master trunk (current version as well as 8cefe38a0a1623db866cb9bf295fe8a591ad5488) and the 1.4 plugin. The shift-v works well and the settings describe are all there. The only thing I can't seem to get working is actually displaying the full article as default, even though the feed settings as set to full original article. It only displays feed content until I change it manually.

Any ideas on this would be greatly appreciated. Also, if you need me to test anything, please let me know.

Thanks!

taclm
Bear Rating Trainee
Bear Rating Trainee
Posts: 6
Joined: 29 Apr 2013, 16:59

Re: Plugin to automatically embed original/mobilized article

Postby taclm » 29 Apr 2013, 20:27

Duplicate - Please ignore :D
Last edited by taclm on 30 Apr 2013, 19:37, edited 1 time in total.

macfly
Bear Rating Disaster
Bear Rating Disaster
Posts: 82
Joined: 27 Mar 2013, 23:07

Re: Plugin to automatically embed original/mobilized article

Postby macfly » 29 Apr 2013, 22:52


taclm
Bear Rating Trainee
Bear Rating Trainee
Posts: 6
Joined: 29 Apr 2013, 16:59

Re: Plugin to automatically embed original/mobilized article

Postby taclm » 30 Apr 2013, 15:24


taclm
Bear Rating Trainee
Bear Rating Trainee
Posts: 6
Joined: 29 Apr 2013, 16:59

Re: Plugin to automatically embed original/mobilized article

Postby taclm » 30 Apr 2013, 16:17

Playing with this a bit more, I decided to change to "Combined feed display" in preferences. Now the full article will show fine within the frame and no JS messages.
autoembed1.png
Pic1
autoembed1.png (158.98 KiB) Viewed 15523 times


I then unchecked Combined feed display, and it only shows Feed Display, although the Full Article is set in embed settings.
autoembed2.png
Pic2
autoembed2.png (153.21 KiB) Viewed 15523 times


Hope this helps

taclm
Bear Rating Trainee
Bear Rating Trainee
Posts: 6
Joined: 29 Apr 2013, 16:59

Re: Plugin to automatically embed original/mobilized article

Postby taclm » 01 May 2013, 00:40


macfly
Bear Rating Disaster
Bear Rating Disaster
Posts: 82
Joined: 27 Mar 2013, 23:07

Re: Plugin to automatically embed original/mobilized article

Postby macfly » 01 May 2013, 15:35

no, the lines

Uncaught ReferenceError: googletag is not defined www.japantimes.co.jp are error-codes from the embedded iframe itself.

I asked fox, if there is any chance, that he implements the hook-call in non-combined-mode. That is the reason, why my plugin does not work - it is simply not called in this mode.

macfly

taclm
Bear Rating Trainee
Bear Rating Trainee
Posts: 6
Joined: 29 Apr 2013, 16:59

Re: Plugin to automatically embed original/mobilized article

Postby taclm » 01 May 2013, 17:35

Got it. I saw your question to Fox - thanks. Let's see if he can implement the hook in that mode.

I've actually been getting used to the combined mode and kinda liking it :) .

Thanks for you assistance.


Return to “Themes and plugins”

Who is online

Users browsing this forum: No registered users and 2 guests