Just listening to ...
preceded by
Album: Naja, ich hab' mein Bestes gegeben!
Developer Notes
Howto: Hack the Metaweblog API to work with Simple Tags
Recently I was approached by Jake Mauer who uses Windows Live Writer in combination with ExpressionEngine’s Metaweblog API Module (MWAM) to update his weblog.
He’s using Simple Tags and setup Live Writer’s keywords-field to populate his tag-field in ExpressionEngine but noticed that the entries don’t show up in the tag-list when a tag is clicked.
Due to the complete lack of extension hooks in the MWAM posting, updating or deleting entries in Live Writer will not be noticed by Simple Tags. Hence the tag-table won’t be up-to-date unless you manually update the entries directly in the Control Panel or rebuild your index under Modules > Simple Tag.
While I normally don’t advocate hacks to core-files, sometimes there’s no alternative to make things work.
The following hack is intended to make the MWAM play nice with Simple Tags. To achieve this code snippets must be inserted in four locations of one file.
This hack assumes that you map the "Keywords Field" in the MWAM to your Simple Tags tag-field.
Remember that anytime you update your ExpressionEngine, you must either re-apply this hack afterwards or find out beforehand whether EllisLabs's original mod.metaweblog_api.php remained unchanged and can be omitted during the update.
While this IS tedious work it must NEVER deter you from doing regular EE updates.
And now for the hack:
Inside your system-directory find the file /modules/metaweblog_api/mod.metaweblog_api.php and open it.
Note: The following line numbers refer to ExpressionEngine 1.6.7 Build 20090515. Should the MWAM be updated by EllisLab sometime in the future, the actual line numbers may change.
We'll work through the changes from bottom to top so our code insertions don't affect subsequent numeration.
1.
At the bottom of the file locate line 2215
and insert the following snippet
2.
Locate Line 1901
and insert the following snippet
3.
Locate Line 779
and insert the following snippet
4.
Locate Line 433
and insert the following snippet
Save the changes and you are done.
Related entries:• Simple Tags 1.6.5 (1 tags in common)
• Google custom search (1 tags in common)
• Simple Tags 1.7 released (1 tags in common)
• Simple Tags 1.6.3 (1 tags in common)



