Skip to Content Skip to Menu

Feature Request: Print message button

15 years 4 months ago #105142 by heritagevt
Feature Request: Print message button was created by heritagevt
Feature Request: Add print message icon to each inbox message where all message content displayed inside the <div class="uddeim-messagebody"></div> can be printed upon clicking the print message icon.

...Or if you know an easy hack for UddeIM v1.6 and 1.7 please let me know. I can try myself

Thank you,
John

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
15 years 4 months ago #105144 by slabbi
Replied by slabbi on topic Re:Feature Request: Print message button
Nice idea.

Could you add it on the feature request tracker on Joomlacode please?

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

15 years 4 months ago #105153 by heritagevt
Replied by heritagevt on topic Re:Feature Request: Print message button
Consider it done: Feature Tracking for Print Email icon for messages found here:
joomlacode.org/gf/project/com_uddeim/tracker/?action=TrackerItemEdit&tracker_item_id=17207

Please Log in or Create an account to join the conversation.

15 years 3 months ago #108713 by heritagevt
Replied by heritagevt on topic Re:Feature Request: Print message button
I am using th Mod_PHP module to embedd a print button for inbox messages. I need to pass the message ID variable for a message opened in the browser fro printing. Assuming that placeholder '$id' calls the correct message ID of a message opened in the web browser, in the code below, what variable should I be using to place the message id at the end of the link:

[code:1]

$link = sefRelToAbs ( 'index2.php option='.$option.'&popup=1&task=show&Itemid=0&messageid='.$id );

[/code:1]

Full code:
[code:1]

<?php
global $option;

global $hide_js;
// if joomla is called with ?hide_js=1 in the URL, PrintIcon won't work
// if you want to ignore this setting, use the following line instead:
// $hide_js = 1;

$popup = intval( mosGetParam( $_REQUEST, 'popup', 0 ) );

$row = new stdClass; // I don't think $row is used at all.

$params = new mosParameters( '' );

// if set to 0, there won't be a print icon at all
$params->set( 'print', '1' );

// set to 0 to use text instead of icon.
$params->set( 'icons', '1' );

// if set to 1, this will invoke the browser's print function.
$params->set( 'popup', $popup );

// lookup sefRelToAbs in the forum if you don't know what it does.
$link = sefRelToAbs ( 'index2.php option='.$option.'&popup=1&task=show&Itemid=0&messageid='.$id );

// if you set status to NULL, or omit it completely,
//these default settings for the print window will be used.
$status = 'status=yes,toolbar=yes,scrollbars=yes,titlebar=yes,menubar=yes,'
.'resizable=yes,width=640,height=480,directories=yes,location=yes';


mosHTML::«»PrintIcon( $row, $params, $hide_js, $link, $status );

?>

[/code:1]

Please Log in or Create an account to join the conversation.

  • drdehart
  • drdehart
  • OFFLINE
  • Posts: 253
  • Thanks: 2
  • Karma: 1
13 years 11 months ago #147536 by drdehart
Replied by drdehart on topic Re:Feature Request: Print message button
I see this Print Message feature request is closed on joomlacode.org, but don't see the feature in uddeIM. Am I missing something, or was it declined?

We have users also that would like to be able to print their messages.

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
13 years 11 months ago #147537 by slabbi
Replied by slabbi on topic Re:Feature Request: Print message button
I do currently not know the reason why I have closed the request but I remember that is was quite difficult to implement since there is no easy way to suppress the Joomla framework output. I have reopened the request maybe I find a solution for one of the next versions.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

Moderators: beatnantslabbikrileon
Powered by Kunena Forum