50
You can create a simple code in preferences and templates like this:
xoops_version.php file:
le="color: #000000"><?php $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:
le="color: #000000"><?php $display_pdf = $publisher->getConfig('display_pdf'); $xoopsTpl->assign('display_pdf', $display_pdf);
Specifically, the template file, create this condition:
le="color: #000000"><?php <{if $display_pdf}> Here the specific html code... <{/if}>
Update module via admin.