4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 31, 2014, 09:20:37 AM

Login with username, password and session length
Search:     Advanced search
You're looking for some 4images templates and styles? Then visit this thread to show websites with 4images templates to download.
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Modifications / Modifikationen
| |-+  Mods & Plugins (Releases & Support) (Moderators: mawenzi, Rembrandt)
| | |-+  [Mod] Download Ja / Nein
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
This topic has not yet been rated!
Author Topic: [Mod] Download Ja / Nein  (Read 2247 times)
Rembrandt
Moderator
4images Guru
*****
Offline Offline

Posts: 4089

Thank You
-Given: 108
-Receive: 860

Vienna


View Profile WWW
« on: February 03, 2013, 04:20:52 PM »

Hi!

Grundlage zu dieser Modifikation ist dieser hier: http://www.4homepages.de/forum/index.php?topic=11539.0

User 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:
1
{if captcha_upload}
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}&nbsp;&nbsp;&nbsp;
              <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}&nbsp;&nbsp;&nbsp;
              <input type="radio" name="image_allow_download" value="0"{image_allow_download_no}>
              {lang_no}
            </td>
          </tr>
        </table>


mfg Andi

* install_download_yn.php (5.83 KB - downloaded 5 times.)
« Last Edit: February 04, 2013, 04:53:39 AM by Rembrandt » Logged

Meine 4Images Modifikationen  Now over 100 Modification Online!    Meine 4images Demo Seite


Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Jan-Lukas
Addicted member
******
Offline Offline

Posts: 1229

Thank You
-Given: 140
-Receive: 42


View Profile WWW
« Reply #1 on: February 03, 2013, 07:52:26 PM »

Hallo Andy, hast du nicht etwas vergessen
1.) ...  Wink

LG Harald
Logged

Danke Harald

Rembrandt
Moderator
4images Guru
*****
Offline Offline

Posts: 4089

Thank You
-Given: 108
-Receive: 860

Vienna


View Profile WWW
« Reply #2 on: February 03, 2013, 08:00:09 PM »

ge, ich Vergess doch nichts, ich wollte dich nur Testen  Mr. Green Embarassed

Danke!

mfg Andi
Logged

Meine 4Images Modifikationen  Now over 100 Modification Online!    Meine 4images Demo Seite


Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.264 seconds with 20 queries.