Settings to show image location - Page 2 Settings to show image location - Page 2
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Settings to show image location

Started by Visitor, August 12, 2011, 02:10:49 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ΑndrĂ©

It works exactly as supposed. It hides the button for the ID you enter.

Quote from: Visitor on January 31, 2012, 11:21:45 AM
what would I need to show the button to all except user id 201
This:
    $change_pwd = USER_ID == 201 ? '' : '<button type="submit" class="button" name="change_pass" id="change_pass" value="'.$lang_register_php['change_pass'].'">'.$icon_array['password'].$lang_register_php['change_pass'].'</button>';
    echo <<< EOT
<tr>
    <td colspan="2" align="center" class="tablef">
        <button type="submit" class="button" name="change_profile" id="change_profile" value="{$lang_common['apply_changes']}">{$icon_array['ok']}{$lang_common['apply_changes']}</button>
        &nbsp;
        $change_pwd
    </td>
</tr>
EOT;