Page 1 of 1

Autotitle

Posted: Fri Apr 03, 2009 12:01 pm
by onli
Autotitle is a plugin that automatically insert the title of a linked site as title-tag into the link. This way, the user reading the blogentry normally sees a tooltip with a more clear description what the linked site is about when he hovers the link.

The plugin does this by fetching the first 4KB of the linked site and searching for the title-tag. Because this normally is located in the header (and in the first few bytes) it should be found every time it is present.
Because waiting for the other server's response may take a lot of time even if only fetching a small part it caches the title of the url, so the waiting time is only triggered once a week (the preview of a written post is enough for caching the entry, so a new post won't result in waiting-time for the first visitor).

Please give me a hint if something like this already exist.

This is version 0.1 which worked really well in my tests, but probably needs a lot more testing. I'll be glad about every feedback: Download.

Re: Autotitle

Posted: Mon Apr 06, 2009 12:31 pm
by garvinhicking
Hi!

This looks good. I don't really remember any plugin that specifically deals with this. The trackexits plugin does something similar in regards to <a> matching, but its functionality is quite different.

Would you like me to add your plugin to Spartacus?

Regards,
Garvin

Re: Autotitle

Posted: Mon Apr 06, 2009 3:29 pm
by onli
Yes, that'd be great. Tested it today with my "productive"-blog and seemed to work well.
sincerely

PS. Ah, testing revealed there was a debug-line still present... better use the attached version. I also removed some requirements, I don't think smart is really required in a specific version (but maybe you can have a look on these?).

Re: Autotitle

Posted: Mon Apr 06, 2009 4:02 pm
by garvinhicking
Hi!

Great! Committed! :-)

Regards,
Garvin

Re: Autotitle

Posted: Thu Apr 23, 2009 4:55 pm
by onli
I just got a report about invalid HTML on my site and it turned out that the plugin placed a " too much into the link. 0.1.1 fixes only this issue.

Re: Autotitle

Posted: Fri Apr 24, 2009 10:32 am
by garvinhicking
Hi!

Thanks & Committed.

Regards,
Garvin

Problems with Autotitle

Posted: Tue Mar 01, 2011 10:24 am
by konus
Hello,
today, I tried to change something in my template. Because I did not see the effect immediately I deleted the content of template_c completely. After I did this, my blog did not work correctly any more and showed severe load problems with errors 500 and 503. :-(

I think that serendipity_event_autotitle creates the load. I shouldn't deleted the cache, because now autotitle polls every web page again.

But wouldn't be the load problem be the same, if someone installs the plugin the first time? Other than deactivation the plugin, what are my options to ease the server load?

Could the plugin be modified to spread the load over a greater amount of time (i.e. only pulls up to 10 new links at a time)?