From: javier w. <jav...@gm...> - 2005-03-15 08:52:56
|
On Mon, 14 Mar 2005 23:39:00 -0800, p dont think <pdo...@an...> wrote: > > >i'm glad about this chnge in mime.php, however, no matter how i change > >['text'] (or unset it) it always get overwirtten by "View", and > >followed by the 'extra' text. > > > > > Overwritten by "View"?? I don't understand. Here's how I get an icon > link to show up for an attachment. I'm not sure how well this will work > for trying to make this much larger (thumbnails), since the layout > wasn't intended for such. > > function attachment_link(&$Args) > { > > $Args[1]['my_plugin']['href'] = SM_PATH . > 'plugins/my_plugin/do_something_exciting.php?' > . 'passed_id=' . $Args[3] . '&mailbox=' . $Args[4] . > '&passed_ent_id=' . $Args[5]; > > // Just show some plain text link: $Args[1]['my_plugin']['text'] > = _("save locally"); > > // Icon image link instead: > $Args[1]['my_plugin']['extra'] = '<img border="0" width="15" > height="15" > src="http://www.irs.gov/irs/cda/common/images/new_icon_pdf.gif" />'; > > At least the IRS is good for something. :) > > } > thanks, i was trying to modify $Args[1]['attachment_common']['text'] linke attachment_doc, but wouldn't work. anyway, here's the plugin, i am using a modified version of download.php as part of this plugin, i guess i should get rid of all the things i don't need from download.php to improve it. |