50
You can create a simple code in preferences and templates like this:
xoops_version.php file:
$i++;
$modversion['config'][$i]['name'] = 'display_pdf';
$modversion['config'][$i]['title'] = '_MI_PUBLISHER_DISPPDF';
$modversion['config'][$i]['description'] = '_MI_PUBLISHER_DISPPDFDSC';
$modversion['config'][$i]['formtype'] = 'yesno';
$modversion['config'][$i]['valuetype'] = 'int';
$modversion['config'][$i]['default'] = 0;
and set to 0 default check.
On the user side, look for the php files associated with the template and add this line of code:
$display_pdf = $publisher->getConfig('display_pdf');
$xoopsTpl->assign('display_pdf', $display_pdf);
Specifically, the template file, create this condition:
<{if $display_pdf}>
Here the specific html code...
<{/if}>
Update module via admin.