Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: 1 [2]   Go Down

Author Topic: Settings to show image location  (Read 10921 times)

0 Members and 1 Guest are viewing this topic.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Settings to show image location
« Reply #20 on: January 31, 2012, 02:52:20 pm »

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

what would I need to show the button to all except user id 201
This:
Code: [Select]
    $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;
Logged
Pages: 1 [2]   Go Up
 

Page created in 0.016 seconds with 19 queries.