Hi!
Grundlage zu dieser Modifikation ist dieser hier:
http://www.4homepages.de/forum/index.php?topic=11539.0User können selber entscheiden ob man ihre Bilder "Downloaden" darf oder nicht.
1.) Lade die Datei "install_download_yn.php"aus dem Anhang herrunter, und speicher sie in dein Galerie Stammverzeichnis,
Melde dich als Admin an und rufe die Datei auf.
2.) suche in der includes/db_field_definition.php "?>" und füge darüber ein:
1
| $additional_image_fields['image_allow_download'] = array($lang['image_allow_download'], "radio", 0);
|
3.) suche in includes/main.php "?>" und füge darüber ein:
1
| $lang['image_allow_download'] = "Download erlauben?";
|
4.) suche in includes/functions.php:
1
| if (!check_permission("auth_download", $image_row['cat_id'])) {
|
und ersetze es mit:
1
| if (!check_permission("auth_download", $image_row['cat_id']) || !$image_row['image_allow_download']) {
|
5.) suche in deinen Template/member_uploadform.html:
füge darüber ein:
1 2 3 4 5 6 7 8 9
| <tr> <td class="row1" valign="top"><b>{lang_image_allow_download}</b></td> <td class="row1"> <input type="radio" name="image_allow_download" value="1"{image_allow_download_yes}> {lang_yes} <input type="radio" name="image_allow_download" value="0"{image_allow_download_no}> {lang_no} </td> </tr>
|
6.) suche in deinen Template/member_editimage.html:
1 2 3 4
| <textarea name="image_keywords" cols="30" rows="10" wrap="virtual" class="textarea">{image_keywords}</textarea> </td> </tr> </table>
|
und ersetze es mit:
1 2 3 4 5 6 7 8 9 10 11 12 13
| <textarea name="image_keywords" cols="30" rows="10" wrap="virtual" class="textarea">{image_keywords}</textarea> </td> </tr> <tr> <td class="row1" valign="top"><b>{lang_image_allow_download}</b></td> <td class="row1"> <input type="radio" name="image_allow_download" value="1"{image_allow_download_yes}> {lang_yes} <input type="radio" name="image_allow_download" value="0"{image_allow_download_no}> {lang_no} </td> </tr> </table>
|
mfg Andi