Feature request, add twitter to Show links to services like

Creating and modifying plugins.
Post Reply
m750
Regular
Posts: 23
Joined: Sun Nov 11, 2007 7:49 am

Feature request, add twitter to Show links to services like

Post by m750 »

I was wondering if anyone knew the steps to add twitter to the 'Show links to services like Digg, Technorati, del.icio.us etc related to your entry.' plugin. I see you can add a tweet this link in the twitter plugin, but I'm already using this plugin, so I'd like to incoperate it in the same space.
Thanks,
Aaron
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Feature request, add twitter to Show links to services like

Post by garvinhicking »

Hi!

Basically, this plugin has a template file "serendipity_event_findmore/plugin_findmore.tpl" where you can insert simple HTML code; so if you research the HTML that is necessary for "tweet this", you could easily add it to that template file?

However, looking at that file, it already has twitter-Support?!? Do you use the most recent version?

Regards,
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/
m750
Regular
Posts: 23
Joined: Sun Nov 11, 2007 7:49 am

Re: Feature request, add twitter to Show links to services like

Post by m750 »

Well, that was odd. I think I had two problems. First I'm wondering if the version of the pluggin is accurate. Either spartacus couldn't idenfity the version correctly, or something is up with my system.
My version was 1.13, but it didn't contain twitter. Sparticus lists 1.1.3 as the latest, but from investigating CVS, looks like 1.15 might be current... I have a hard time understanding version.

Looking at the file, twitter support was added in revision 1.10, Thu Dec 17 16:22:36 2009 UTC.

To resolve my issue, I tried adding it to the .tpl and it didn't show up. I removed the plugin, then readded it. And nothing.
I then removed it, and it's directory from my server, then reinstalled and I was having some odd behavior. It was ignoring the configuration info, showing up twice, and not removing the deactivated services. Then, I removed it, checked the db, and noted that there were two entries for the plugin in the db, so I removed them both, and reinstalled. Now I'm g2g.

It's possible that my db is crufty, but I'm not sure of a good way to clean it up.
Thanks for your help.
Aaron
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Feature request, add twitter to Show links to services like

Post by garvinhicking »

Hi!

Basically, CVS versions and plugin versions are not related. One is the always incremented version number of CVS, and the other the actual version shown to end users.

The CVS header of a file (first line) shows the CVS version. The plugin version is later inside the introspect() method, a $propbag->add('version', 'XXX').

As for your DB problems, it might have been that two different directories were used, and the plugin gets a unique ID when installed. Removing a directory does not remove the plugin from the plugin container, so you'd need to first "uninstall" the plugin from the s9y plugin configuration screen, and then you can remove the directory.

However, in any case, uploading new plugin files over the current directory of that plugin should always help. But in your case, it's now working with the recent version, right?

Regards,
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/
m750
Regular
Posts: 23
Joined: Sun Nov 11, 2007 7:49 am

Re: Feature request, add twitter to Show links to services like

Post by m750 »

It is working as expected, after clearing, and reinstalling.
Thanks,
Aaron
Post Reply