40
It seems easy enough to pull variables from a module and feed them to a QR code using the Geekwright module. Slightly different method, but much faster because the QR code is generated on your server, not somebody else's.
As said previously, I can't test Xoops 2.5 or Publisher at present, but the code below worked fine for me using an old version of the 'Content' module (index.php). You obviously need to locate the PHP file + template file combination for the module you want to use and customise the script to suit, or I suppose you could create a module-specific block. Don't send the script any variables that don't actually exist, or it will choke.
// Peekays QR Code Hack **************
$data = $xoopsTpl->get_template_vars('xoops_sitename'); // Add the site name
$data .= ' - '; //Add a separator
$data .= $xoopsTpl->get_template_vars('xoops_pagetitle'); // Add the page title or module name
$data .= "%0A"; // Add a line break.
$query_string = $_SERVER['QUERY_STRING'] ? '?' . $_SERVER['QUERY_STRING'] : '';
$url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] . $query_string;
$oururl = urlencode($url); // Add the link. N.B. this needs to be urlencoded.
$data .= $oururl;
$myqrcode = '<img src="'.XOOPS_URL.'/modules/qr/getqrcode.php?qrdata='.$data.'" />';
$xoopsTpl->assign('myqrcode', $myqrcode);
// end QR Code hack ****************
I'm sure someone could tidy that up and make it more 'elegant'