Author Topic: [MOD] Transparent image  (Read 5012 times)

0 Members and 1 Guest are viewing this topic.

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
[MOD] Transparent image
« on: February 21, 2008, 12:22:42 PM »
If you would like to stop users to right click on image and save it you can use this simple mod.

Open jpg.html

Replace:
Code: [Select]
<!-- Template file for JPG Files -->
<img src="{media_src}" border="1" alt="{image_name}"{width_height} /><br />

With:
Code: [Select]
<!-- Template file for JPG Files -->
<img style="background:url({media_src}) no-repeat; border: 1px" src="/images/transparent.gif" {width_height} GALLERYIMG="no" alt="{image_name}"  />

Upload transparent.gif image to /images/ folder. (attached file)
« Last Edit: February 21, 2008, 02:08:10 PM by Lucifix »

Offline kai

  • Administrator
  • Addicted member
  • *****
  • Posts: 1.423
    • View Profile
    • 4images - Image Gallery Management System
Re: [MOD] Transparent image
« Reply #1 on: February 21, 2008, 02:00:01 PM »
I don't know if width_preview and height_preview are working in default 4images gallery.

This works fine for me:

Code: [Select]
<!-- Template file for JPG Files -->
<img style="background:url({media_src}) no-repeat; border: 1px" src="/images/transparent.gif" GALLERYIMG="no" alt="{image_name}" {width_height} />
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: [MOD] Transparent image
« Reply #2 on: February 21, 2008, 02:08:45 PM »
If you would like to stop users to right click on image and save it you can use this simple mod.

Open jpg.html

Replace:
Code: [Select]
<!-- Template file for JPG Files -->
<img src="{media_src}" border="1" alt="{image_name}"{width_height} /><br />

With:
Code: [Select]
<!-- Template file for JPG Files -->
<img style="background:url({media_src}) no-repeat; border: 1px" src="/images/transparent.gif" {width_height} GALLERYIMG="no" alt="{image_name}"  />

Upload transparent.gif image to /images/ folder. (attached file)

*EDITED: thanks kai

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] Transparent image
« Reply #3 on: February 21, 2008, 02:15:26 PM »
... this is not a MOD this is "standard" at least since 2003 ... ;)
... http://www.4homepages.de/forum/index.php?topic=4906.msg20791#msg20791 ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Lucifix

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
    • http://www.slo-foto.net
Re: [MOD] Transparent image
« Reply #4 on: February 21, 2008, 02:18:50 PM »
... this is not a MOD this is standard at least since 2003 ... ;)
... http://www.4homepages.de/forum/index.php?topic=4906.msg20791#msg20791 ...

Okey standard, but there you need tables (td) if you want to use it. Mine is much more simple.   :wink:

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [MOD] Transparent image
« Reply #5 on: February 21, 2008, 02:26:21 PM »
... not much more simplier, but without tables ... ;)
... and the same effect ...
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...