Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Chris

Pages: 1 ... 84 85 86 87 [88] 89 90 91
1306
Discussion & Troubleshooting / Yeah but you can disable drag-and-drop too!
« on: September 01, 2002, 02:10:28 AM »
Okay.  We have a javascript that disables right clicking so we can prevent the user from saving our images.

Okay.  Javascript can be disabled by the user in their browser and we could go one step further and check for it before allowing them into the galleries.

But using IE, the user can still drag-and-drop the image from the browser onto their desktop.  Or can they???

You won't be able to do this from my website.  Saving the page using File>Save As... will produce an error.  Drag-and-drop the image and you'll get a spacer gif instead.  So how did I do it?

It's a simple technique and I've only tested it with jpeg files since that's all I'll be using on my site.  The concept is simple.  Make the table background the image itself and place a single pixel transparent gif in the table cell.  


Here's what I have in my media/jpg.html template:
Code: [Select]
<table width="{image_width}" height="{image_height}" border="0" cellspacing="0" cellpadding="0" background="{media_src}">
<tr>
<td><img src="{template_url}/images/spacer.gif" width="{image_width}" height="{image_height}" alt="" />
</td>
</tr>
</table>


Obviously this technique requires {image_height} and {image_width}.  That means the images must be stored locally on the server or your database must have the information.

For a complete solution, you should also ensure the user's browser has javascript enabled to prevent them from right clicking and selecting "Save background as..."

1307
Mods & Plugins (Requests & Discussions) / phprint.php works well
« on: September 01, 2002, 01:41:35 AM »
I use phprint.php to generate printer friendly versions of my image pages.  It's a simple, clickable link that I've placed between my download and ecard buttons.

http://www.mikenew.net/printfriendly.php

1308
Discussion & Troubleshooting / Works for me
« on: August 14, 2002, 04:20:08 AM »
I can send email to my runbox.com account using the BCC field just fine.  I tested by using another freemailer myrealbox.com, not 4images though.

1309
Chit Chat / Try the demo
« on: August 02, 2002, 05:27:28 PM »
033:

Have a look at:  http://4homepages.de/4images/demo.php

The best way to learn about the features is to try the demo.  I also looked at gallery before deciding on 4images.  Gallery doesn't hold a candle to what 4images has in the way of features and support.

1310
Feedback & Suggestions / It never stops
« on: August 02, 2002, 12:25:05 AM »
Awesome!

This product just gets better and better all the time.  It rocks!

1311
Mods & Plugins (Requests & Discussions) / Alternatives
« on: July 23, 2002, 02:29:56 PM »
Why not put your PHP include statements in the template file footer.html?

I'm using pphlogger found at http://www.phpee.com  It's a nice PHP/mySQL web site statistics and visitor tracking logger.  It even includes full click paths taken by each visitor.  Best of all, it's FREE.  All you have to do is paste one line of javascript into footer.html.  Couldn't be any easier.

1312
Code: [Select]
$sql = "SELECT a.image_id, a.cat_id, a.image_name, a.image_active, a.image_thumb_file, a.image_comments
FROM ".IMAGES_TABLE." a, ".CATEGORIES_TABLE." b
WHERE a.image_active=1
AND a.cat_id=2
AND b.auth_viewcat=".AUTH_ALL."
AND b.auth_viewimage=".AUTH_ALL."<br>
LIMIT $number, 1";


I don't think the HTML tag <br> belongs in either of the SQL statements.  Try deleting them or download the script again to use the original source code.

1313
Feedback & Suggestions / Script for cron job?
« on: July 20, 2002, 10:51:47 PM »
Does any script exist that we can add to a cron job to delete account past the activation period?

It's not a big deal for me if there is no such script already.

1314
Feedback & Suggestions / HTML email for 4images 1.6.1
« on: July 20, 2002, 02:57:46 AM »
Open includes/email.php and search for this code fragment:

Code: [Select]
 function create_header() {
    global $config;
    $header = "";


After $header = ""; add the following line:

Code: [Select]
   $header .= "Content-Type: text/html\r\nContent-Transfer-Encoding: 8bit\r\n";

This seems to work for me.  

NOTE:  You will need to update lang/<your language>/email/admin_email.html with HTML tags.

1315
Discussion & Troubleshooting / What can I say?
« on: July 20, 2002, 02:40:09 AM »
I think 4images is the BEST PHP/mySQL image gallery solution out there.  And I can understand the value of integrating it with forum scripts like vBulletin and phpbb, etc.  But I also like the fact that the author(s) is focusing on maturing the script and adding new features.

As a photographer with a personal web site, this solution suits me perfectly since I don't use forums... well that's half true.

I would still like to see some API (interface) developed to allow for user login information to be shared with other scripts.  Even though I don't use a forum script, I'd like to integrate it with a 3rd party shopping cart solution for my customers to purchase prints on-line.  I'm seriously looking at SunShop http://www.turnkeywebtools.com and it has its own user maintenance, etc.  (If anyone has integrated 4images with a cart system that uses PayPal and a printable order form, please let me know!)

So perhaps an API could be developed in some future release to support integration of member info with 3rd party scripts.

Just my two cents...

1316
Feedback & Suggestions / Seems to be a long delay
« on: July 20, 2002, 02:33:28 AM »
I noticed that too.  But I just ignored it because it wasn't an issue for me at the time.  A few weeks later, the users who had not activated their account were deleted.  Perhaps there is a bug or hardcoded time limit?

1317
Mods & Plugins (Requests & Discussions) / Can I get one too?
« on: July 16, 2002, 01:48:32 PM »
I was hoping the button(s) would be posted here.   Any chance I can get them too?

1318
Yeah, that's it !

Can you post the code for me?

1319
First, thanks to Niky and Jan for this random mod.  It's nice and compact and I think I might use it in other parts of my web site.

But ideally, I'd like to use a random image in a different way.  For my web site home page, I'd like to display a random image.  But instead of displaying the thumbnail and using the random image html template file, I'd like to only display the full image as shown in details.php and I'd like that image to be a link to the details.php page for it.

How would I do this???

1320
If your web server is running Apache, you can use .htaccess to prevent people from loading images in their browser by entering the full URL in the address bar.

For an explanation of what the .htaccess file is all about and how to use it, read the article here:  http://www.javascriptkit.com/howto/htaccess10.shtml

This part of the article talks about hot linking but it will serve your purpose.

Code: [Select]
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://(www\.)?YourWebSite.com/.*$ [NC]
RewriteRule \.(gif|jpg)$ - [F]


That code will instruct the Apache web server to return a "403 - Forbidden, access denied" error page back to the user should they try to access the image file directly.

HERE'S THE CATCH:

The user can always dig through their browser's cache and locate the file given to them by details.php.  They might also use a web site copier tool, or......  there are several other ways of getting the image.  So basically, the .htaccess approach will only work if you had a download image different from than the one served up by details.php

My two cents:  I'm not at all in favor of storing the images in the database itself.  It would introduce performance issues.

Pages: 1 ... 84 85 86 87 [88] 89 90 91