Neues Microblog Plugin für die Sidebar

Hier können Probleme und alles andere in Deutscher Sprache gelöst werden.
Dr. Love
Regular
Posts: 79
Joined: Wed Jun 21, 2006 5:29 pm
Location: Düsseldorf, Germany
Contact:

Re: Neues Microblog Plugin für die Sidebar

Post by Dr. Love »

Hmm na gut, dann bau ich das JavaScript Feld wohl mal ein. Allerdings sehe ich weiterhin die große Gefahr der Fehlkonfiguration durch unbedarfte User. Es muss doch irgendwo in S9Y der Pfad zum PlugIn Verzeichnis existieren, die werden ja auch irgendwie geladen bzw. steht ja irgendwo, welche geladen werden und welche nicht. Diese Information müsste man dem PlugIn eigentlich nur zugänglich machen. Das mit den Symlinks müsste doch in der Konfig bei "Relativer HTTP-Pfad" abgefangen werden bzw. kann man nicht da einfach eine weitere Konfig-Eigenschaft "Relativer PlugIn-Pfad" einführen für Fälle wie Deinen? Wobei Du die PlugIns ja in zwei Ordners zu haben scheinst. Wie hast Du das denn im System hinterlegt ohne zu hacken?

Das nächste Release wird umbenannt in seredipity_plugin_twitter 2.0, auch wenn mir das nicht gefällt, weil es um mehr als Twitter geht. Jedenfalls wird wohl in absehbarer Zeit kein Userfeedback mehr kommen, also raus damit. *desillusioniertsei*
kbm
Regular
Posts: 55
Joined: Tue Jun 10, 2008 1:22 pm

Re: Neues Microblog Plugin für die Sidebar

Post by kbm »

garvinhicking wrote: @kbm: Sorry, deine Sätze sind mir zu anstrenged zu lesen. :-)
Grüße,
Garvin
Stimmt! Image Wo Du Recht hast, hast Du Recht, Garvin. *schmunzel
Und SORRY, ...wahrscheinlich kapier ich die ganze Thematik eh nicht wirklich.
MfG Klaus
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Neues Microblog Plugin für die Sidebar

Post by garvinhicking »

Hi!
Dr. Love wrote:Allerdings sehe ich weiterhin die große Gefahr der Fehlkonfiguration durch unbedarfte User.
Da der default ja korrekt gesetzt ist, sehe ich das nicht so. In allen anderen Plugins habe ich noch nie wirklich von Problemen gehört.
Es muss doch irgendwo in S9Y der Pfad zum PlugIn Verzeichnis existieren, die werden ja auch irgendwie geladen bzw. steht ja irgendwo, welche geladen werden und welche nicht. Diese Information müsste man dem PlugIn eigentlich nur zugänglich machen.
Auf PHP-Ebene braucht s9y ja nur den "echten" Filesystem-Pfad. Auf HTTP kann man das nicht 1:1 mappen.
Das mit den Symlinks müsste doch in der Konfig bei "Relativer HTTP-Pfad" abgefangen werden bzw. kann man nicht da einfach eine weitere Konfig-Eigenschaft "Relativer PlugIn-Pfad" einführen für Fälle wie Deinen?
Klar könnte man das zentral konfigurierbar machen, aber dann würde jeder eine aktuelle s9y version zwingend eingeben müssen, und da zahlreiche plugins die konfigoption schon haben könnte es hier zu konflikten kommen.
Wobei Du die PlugIns ja in zwei Ordners zu haben scheinst. Wie hast Du das denn im System hinterlegt ohne zu hacken?
Serendipity kann mit unendlich verschachtelten pluginpfaden arbeiten, also ob es plugins/serendipity_event_bla oder plugins/blabla/blablabla/serendipity_event_bla/ heißt ist egal.

Viele Grüße,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Dr. Love
Regular
Posts: 79
Joined: Wed Jun 21, 2006 5:29 pm
Location: Düsseldorf, Germany
Contact:

Re: Neues Microblog Plugin für die Sidebar

Post by Dr. Love »

Ah verstehe. Dann gibts die Konfig-Option. Von welchem PlugIn soll ich das denn abschreiben? Also wo ist das most S9Y-Style gelöst?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Neues Microblog Plugin für die Sidebar

Post by garvinhicking »

Hi!
Dr. Love wrote:Ah verstehe. Dann gibts die Konfig-Option. Von welchem PlugIn soll ich das denn abschreiben? Also wo ist das most S9Y-Style gelöst?
Ja, am besten serendipity_event_lightbox, schau da mal nach "pluginDir".

Grüße,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Dr. Love
Regular
Posts: 79
Joined: Wed Jun 21, 2006 5:29 pm
Location: Düsseldorf, Germany
Contact:

Re: Neues Microblog Plugin für die Sidebar

Post by Dr. Love »

So, hab die Version 2.0 RC1 fertig. Das PlugIn ist jetzt umbenannt in serendipity_plugin_twitter und ersetzt das alte PlugIn in version 0.7 vollständig. Bitte testet das PlugIn!

Vorsicht: Ein Downgrade auf das alte PlugIn ist für Nutzer der Backup-Funktion nur mit manueller Arbeit an der Datenbank möglich!

Changelog:
2.0 RC1:
---

* renamed from serendipity_plugin_microblog 0.2 to serendipity_plugin_twitter 2.0
* now replaces former serendipity_plugin_twitter 0.7
* added a config option for the path to the JavaScript file (for symlinked environments)
* minified the JavaScript file with JSMin

Notice: First time backup is still problematic, so the backup feature keeps marked as experimental

0.2 RC3:
---

* improved DB code for the backup feature with the databases pgSQL and SQLite
* fixed a critical bug in in TwitterApi class that stopped the backup process in most cases (Error in class TwitterApi: Missing mandatory config item cache_file. Check your config.)
* introduced seperate logfiles for backup and output errors (like no cache available and Twitter API down)
* fixed the JavaScript @#!URL parser to work with more than one of one type in one message
* some minor non-critical fixes
Featureliste:
Microblog-PlugIn for Seredipity (S9Y)

Complete rewritten plugin to show and backup microblog entries (like Twitter or identi.ca) in the sidebar.

Features:

* Actual works with Twitter and identi.ca, but can easily be extended with other Twitter-API-compatible services.
(future releases may have the service-URLs configureable to meet special needs without hacking the plugin code)
* Two output favours:
1. Client side JavaScript version for lower server load but with all meaningful features. Minified to only 11KB with JSMin.
2. PHP version for server side API handling.
* Fully templateable HTML output using a Smarty templating mechanism. Comes with two bundled templates and works with both JavaScript and PHP versions.
(future releases may have a template-editor right inside the config page to avoid FTPing of new templates)
* Clickable URLs, @names, #hashtags and !groups (!groups are only supportet with identi.ca) as you know from your favourite Twitter-client.
* A nice readable and internationalized timestamp (i.e. "2 minutes ago"/"vor 2 Minuten" or "Thursday at 02:46 PM"/"Donnerstag um 14:46 Uhr").
(for now, only german and english language files are built in, feel free to add your language)
* "via SOURCE" and clickable "in reply to USERNAME" metadata for each entry.
* Two layered caching mechanism for optimized speed:
1. Server side API calls of the PHP version can be cached for a configureable amount of time (defaults to 300s, set 0 to disable).
2. The whole output can be cached (30s for the PHP version or until the next config change for the JavaScript version).
* Backup feature for microblog entries.
* Reasonable errorhandling with logfiles for backup-events and output-errors.
* Stable and well documentated PHP5 OOP based codebase. Utilizes the TwitterApi class from another project (SimpleLifestream).
* Works with cURL for better errorhandling and support for "allow_url_fopen = off" PHP setting. Alternatively uses "simplexml_load_file()" as a fallback, if cURL is not available.
* Backwards compatible with former Twitter plugin 0.7 (but check the config after update)

Requirements:

* PHP 5.2 or greater
* write access to S9Ys templates_c cache directory for cache- and logfiles
* cURL and SimpleXML extension loaded. If cURL is not available, "allow_url_fopen" must be set to "on" in the php.ini.
* JavaScript version works in all modern browsers (tested with IE6+, Firefox 3+, Opera 9.6+, Safari 3.1+ and Chrome 1+)

Notice:

* Backup feature is experimental! It may stop the first time backup due to script runtime limits or API problems, so check the logfile! It it has stopped the first time backup (or another backup with more than 100 new entries), the missing old entries will never be added. This relys on a limitation of Twitter's API, which only returns the entries in descending order.
Attachments
serendipity_plugin_twitter_v2.0RC1.zip
plugin_serendipity_twitter 2.0 RC1
(29.63 KiB) Downloaded 753 times
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Neues Microblog Plugin für die Sidebar

Post by garvinhicking »

Hi!

Habs bei mir die neue Version hochgeladen. Ich finde jedoch die Verwendung von JSMin nicht so gut, das macht die Wartung des Plugins bei späteren Erweiterungen fast unmöglich. Die paar Bytes die man einspaart relativieren das IMHO nicht, dass es unleserlich wird für Anpassungen....?

Grüße,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Dr. Love
Regular
Posts: 79
Joined: Wed Jun 21, 2006 5:29 pm
Location: Düsseldorf, Germany
Contact:

Re: Neues Microblog Plugin für die Sidebar

Post by Dr. Love »

Die nicht minifizierte Version liegt ja ebenfalls bei.
ostfriesengott

Re: Neues Microblog Plugin für die Sidebar

Post by ostfriesengott »

Habe mir das Plugin noch nicht installiert, aber kann man ggf. noch folgendes ergänzen: Im Editor, wo man einen Artikel schreibt, sollte es eine Funktion geben, die beispielsweise aus dem Link eine kurze URL macht und dann eine Twitternews für den eigenen Account generiert bestehend aus Überschrift des Artikels (ggf. modfizierbar ) plus kurze URl...oder geht genau das mit dem Tool?
Dr. Love
Regular
Posts: 79
Joined: Wed Jun 21, 2006 5:29 pm
Location: Düsseldorf, Germany
Contact:

Re: Neues Microblog Plugin für die Sidebar

Post by Dr. Love »

ostfriesengott wrote:Habe mir das Plugin noch nicht installiert, aber kann man ggf. noch folgendes ergänzen: Im Editor, wo man einen Artikel schreibt, sollte es eine Funktion geben, die beispielsweise aus dem Link eine kurze URL macht und dann eine Twitternews für den eigenen Account generiert bestehend aus Überschrift des Artikels (ggf. modfizierbar ) plus kurze URl...oder geht genau das mit dem Tool?
Nette Funktion, aber das PlugIn hier ist ein Sidebar-PlugIn und kann beim Artikel-Schreiben nicht eingreifen. Dafür müsste man ein extra Event-PlugIn schreiben.

Aber in der Tat wäre das ein interessantes PlugIn für viele Leute.
Dr. Love
Regular
Posts: 79
Joined: Wed Jun 21, 2006 5:29 pm
Location: Düsseldorf, Germany
Contact:

Re: Neues Microblog Plugin für die Sidebar

Post by Dr. Love »

Falls jemand das PlugIn tatsächlich noch im Einsatz hat, möchte ich Euch die aktualisierte Version 2.0 RC3 vom 27.02.2012 nicht vorenthalten. Ich habe dem System u.a. den Umgang mit nativen Twitter-Entities beigebracht, so dass es die lästigen t.co maskierten Links auflöst. Außerdem kann man nun in der Config die Anzeige von Retweets ein- und ausschalten. Bei der Gelegenheit habe ich die verwendete Twitter-API-Klasse aktualisiert, die jetzt die Twitter-API per JSON statt XML abfragt, weil das der inzwischen von Twitter vorgezogene Weg ist.

Ich habe nicht getestet, ob das Aus- oder Einblenden der nativen Retweets und die nativen Entities auch mit identi.ca funktionieren. Das hängt davon ab, wie Twitter-kompatibel sich die aktuelle Version von status.net gibt.

Viel Spaß damit, den Download finden Ihr im ersten Post dieses Threads.

Code: Select all

2.0 RC3 2012-02-27:
---

* integrated new version 0.4.0 of twitterapi.class.php, now based on Twitter JSON-API instead of XML and supporting native entities
* supports native entities (#hashtags, URLs and @mentions), can be enabled on the config page and replaces regex-twitter-parsing, resolves those annoying t.co link-masking
* supports native retweets and a new config item to show or hide retweets
blog.brockha.us
Regular
Posts: 695
Joined: Tue Jul 03, 2007 3:34 am
Location: Berlin, Germany
Contact:

Re: Neues Microblog Plugin für die Sidebar

Post by blog.brockha.us »

Wo liegt es denn zum Download? Ich würde es mir beizeiten gerne mal anschauen und sehen, was ich davon vielleicht in das "offizielle" Plugin übernehmen kann/soll. (Wenn ich die uralte Diskussion hier lese, dann scheint es ja keinen Merge der beiden Plugins damals gegeben zu haben, oder?)
- Grischa Brockhaus - http://blog.brockha.us
- Want to make me happy? http://wishes.brockha.us/
Dr. Love
Regular
Posts: 79
Joined: Wed Jun 21, 2006 5:29 pm
Location: Düsseldorf, Germany
Contact:

Re: Neues Microblog Plugin für die Sidebar

Post by Dr. Love »

Den Download findest Du im ersten Post.
Post Reply