vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Image Cache (https://vborg.vbsupport.ru/showthread.php?t=123338)

Mazinger 08-22-2008 10:59 PM

What are system requirements?

y2ksw 08-23-2008 07:35 AM

Quote:

Originally Posted by Mazinger (Post 1604824)
What are system requirements?

The access to external files through the file_get_contents() function must be granted, thus fopen() on URL's must work.

Mazinger 08-23-2008 03:03 PM

Thanks!

Working now with safe mode off.

snotek 09-22-2008 01:48 PM

It would seem as though we have a need for this, but some updates and new features would be nice - so long as vB 3.7.x doesn't allow this already. We're not going to install this until we update though. Soon.

We run an information based site and notable threads get placed in our archives. Currently the mods have to manually edit the source of every external image and upload it as an attachment before moving the thread(s) to the archives.

This mod would make this work effort obsolete.

Questions:
If two people link to the same offsite image but in different threads, does this mod track that and link to the same image? Or does it simply cache it again.

Can this mod be made so that instead of caching the images it simply makes them an "attachment" as the user that posted the thread?

Are any future updates planned for this mod or is it final as-is?

Are there options that allow us to determine which images get cached and which don't?

Is there a way to clean up the cache over time for images that are in threads that we are not archiving and are no longer relevant?

y2ksw 09-22-2008 03:44 PM

Quote:

Originally Posted by snotek (Post 1627741)
It would seem as though we have a need for this, but some updates and new features would be nice - so long as vB 3.7.x doesn't allow this already. We're not going to install this until we update though. Soon.

We run an information based site and notable threads get placed in our archives. Currently the mods have to manually edit the source of every external image and upload it as an attachment before moving the thread(s) to the archives.

This mod would make this work effort obsolete.

Questions:
If two people link to the same offsite image but in different threads, does this mod track that and link to the same image? Or does it simply cache it again.

Can this mod be made so that instead of caching the images it simply makes them an "attachment" as the user that posted the thread?

Are any future updates planned for this mod or is it final as-is?

Are there options that allow us to determine which images get cached and which don't?

Is there a way to clean up the cache over time for images that are in threads that we are not archiving and are no longer relevant?

It works on my 3.7.x forums as-is perfectly well.
  • If two people link to the same offsite image but in different threads, does this mod track that and link to the same image? Or does it simply cache it again? The images are cached again. However, if a user copies an already cached image, it will just copy the reference.
  • Can this mod be made so that instead of caching the images it simply makes them an "attachment" as the user that posted the thread? This would create a cached image of any copy and thus raise the memory amount sensibly.
  • Are any future updates planned for this mod or is it final as-is? There is an unpublished modification which retrieves also images from imageshack and many other services, together with preview icons and expanded images. However it is rather complicated to use and maintain. So at the moment it remains as-is.
  • Are there options that allow us to determine which images get cached and which don't? None yet.
  • Is there a way to clean up the cache over time for images that are in threads that we are not archiving and are no longer relevant? You may look at the FTP time stamp of the files and delete those which are probably out of date.

Shamil. 10-03-2008 10:13 AM

Would you be able to add a watermarking option to this mod?

y2ksw 10-03-2008 11:41 AM

Quote:

Originally Posted by ct2k7 (Post 1636371)
Would you be able to add a watermarking option to this mod?

Yes, sure (GD only). Please note, that adding a watermark could require quite some resources, since the image(s) must be loaded into memory. On the other hand, this would allow also to resize and save in a common file format.

mac-warez 10-07-2008 11:06 AM

This works good on vbulletin 3.73 i have had it running for about a month with no problems

Super Jinni 10-25-2008 05:08 PM

thanks for the great mod Giovanni

I've a question?
is there anyway to change the images extension from the png to the original image extension (gif, jpg, etc..)? or even to another extension instead of png extension?
I want this cause I've most of users use IE 5 and 6 which they have issues with pngs transparency.

hope to here soon from you..

thanks

:)

y2ksw 10-25-2008 06:22 PM

Quote:

Originally Posted by Super Jinni (Post 1652545)
thanks for the great mod Giovanni

I've a question?
is there anyway to change the images extension from the png to the original image extension (gif, jpg, etc..)? or even to another extension instead of png extension?
I want this cause I've most of users use IE 5 and 6 which they have issues with pngs transparency.

hope to here soon from you..

thanks

:)

You may try to change the png extension at line 103 (y2kswimgcache.php) to something else. The change will apply to new images only.

The images are not transformed though, thus they may or may not work either way. The png extension was given to avoid XSS issues by Internet Explorer 6/7, but in fact the extension does not dictate in any way how images are shown.

AnabolicResourc 11-18-2008 08:15 PM

Clicks Installed !!

Correct me if i'm wrong.
Saving a copy to the imgcache is only working with new posts ?
Old posts needs pressing the edit button and saving again ?
Is there a way to make that easier ? So every old post with linked pictures are stored in imgcache ?

A watermark option would be so very nice !!
On my gallery and vB attachments i already have it, now i only need it on linked images and allbums pics.

y2ksw 11-18-2008 11:09 PM

Quote:

Originally Posted by AnabolicResourc (Post 1668287)
Clicks Installed !!

Correct me if i'm wrong.
Saving a copy to the imgcache is only working with new posts ?
Old posts needs pressing the edit button and saving again ?
Is there a way to make that easier ? So every old post with linked pictures are stored in imgcache ?

A watermark option would be so very nice !!
On my gallery and vB attachments i already have it, now i only need it on linked images and allbums pics.

I have somewhere also a procedure which imports old images from amost all kind of storages (incl. 3 different imageshack versions) but needs to be assisted a little and uses quite some resources. Also I'm lacking of time to supervise or explain it. It's only worth it to use if you have a dedicated server and may change PHP settings (timeout, no safe mode, memory usage). On shared servers it would have so many caveats that it probably will cause more problems than it solves.

But for a good start you could use this plugin :)

And oh well with vbulletin 3.5 there were no albums and so, thus really will save only pasted images of new posts...

Mazinger 12-04-2008 04:44 PM

Possible to cache images on external server?

y2ksw 12-05-2008 05:00 PM

Quote:

Originally Posted by Mazinger (Post 1678539)
Possible to cache images on external server?

Nope. The idea was to import the images to the local server in order to keep images permanently in reach.

If they would be stored on an external server, the problem of missing images would reappear each time the external server is down. ;)

Mazinger 12-06-2008 06:09 AM

Actually, i wanted to put images on another website (on the same server).

Something I think Yahoo! and Google follows for uploading their content images.

Yahoo!, for example have the website yimg.com which contains nearly most of the images displayed on Yahoo! and that fastens the loading speed of the parent Yahoo!, site I belive.

Having the images on the same website will consider them content images, and will slow forum.

e7saas 03-05-2009 11:35 AM

good work

y2ksw 03-05-2009 01:19 PM

You're welcome :)

yahoooh 06-13-2009 04:53 AM

is there away to make it work with :
vblog
vba dynamic

y2ksw 06-13-2009 10:40 AM

Quote:

Originally Posted by yahoooh (Post 1828789)
is there away to make it work with :
vblog
vba dynamic

I'm sorry, I currently don't have enough time to dedicate.

Bill from Cleve 06-15-2009 01:10 AM

Just found this hack thanks to Gasper. Are you going to update it to fix the bugs? This hack is what I am looking for, but has many issues that seem can be fixed to make it perfect.

Bill from Cleve 06-15-2009 02:13 AM

Sorry, forgot to add this, can you make it to grandfather in all the older posts before installation?

y2ksw 06-15-2009 08:33 AM

Sorry, I'm in a kind of lack of time and can't dedicate on this hack in order to make it better.

In my archives I have an application which pulls in old images from a wide variety of services (e.g. ImageShack), which I'm willing to supply, but still I can't give support on that, either. :)

bahattab 08-17-2009 08:36 PM

hi

is there any new ver. for 3.8.x

thanks
regards

Bill from Cleve 09-01-2009 02:37 PM

Quote:

Originally Posted by bahattab (Post 1869382)
hi

is there any new ver. for 3.8.x

thanks
regards

worked great on my 3.8.3.

rubke 09-01-2009 06:33 PM

Quote:

Originally Posted by y2ksw (Post 1829959)
Sorry, I'm in a kind of lack of time and can't dedicate on this hack in order to make it better.

In my archives I have an application which pulls in old images from a wide variety of services (e.g. ImageShack), which I'm willing to supply, but still I can't give support on that, either. :)

Is this a script to check the old postings and store the image ?
where can i find it ? no support needed ;)

thanks for this mod !

mhackl 10-14-2009 02:38 AM

Three questions:

1. Does this cross any lines as far as copyrights are concerned. Since you are essentially making a copy of the image and redistributing it?

2. Is the original link no longer available for the user to reference?

3. Does this only cache remote (off domain) images? If not, is it possible to do that? Answered

Bill from Cleve 11-23-2009 07:12 PM

Is there a way I can make it NOT cache images in the .PNG format? The problem is, it caches them as .PNG's, but they are actually JPG's and GIF's. This causes watermarking apps to fail because they don't understand the format.
I have tried pretty much every single option for watermarking including the .HTACCESS, but non work with this option enabled. I really love the image cache and do not want to disable it.

Is there any easy way to convert the PNG's back to the original formats without killing anything?

sarangan 11-27-2009 06:45 AM

Your plugin is very good, i am using on my very large forum. But the problem is i have about 120000 images in the imgcache folder. Because of too much images in a single folder it crashes the server harddisk to get the images and load.

Now the suggestion: It will be good if your script can automatically create new folders for everymonth like when we are in november 2009 then folder name have to be /imgcache/112009/, for december 2009 /imgcache/122009/ etc.

If you can modify the script like this, i am sure your plugin will be the best for ever.

Thank you. :)

ThomasR 02-09-2010 07:36 AM

No plans of releasing this plugin for vb 4? I'm looking for such plugin and as the targeted forum use tons of images, like Sarangan, a new folder organization would be welcome :)

Focus2 04-14-2010 12:09 PM

Quote:

Originally Posted by sarangan (Post 1921531)
Your plugin is very good, i am using on my very large forum. But the problem is i have about 120000 images in the imgcache folder. Because of too much images in a single folder it crashes the server harddisk to get the images and load.

Now the suggestion: It will be good if your script can automatically create new folders for everymonth like when we are in november 2009 then folder name have to be /imgcache/112009/, for december 2009 /imgcache/122009/ etc.

If you can modify the script like this, i am sure your plugin will be the best for ever.

Thank you. :)

Just change this:

Code:

            // Create filename
            $f = 'imgcache/' . sprintf('%d', $id) . '.png';

To this:

Code:

            // Create filename
            $kd = "imgcache/" . date("m_Y");
                if (!is_dir($kd)){
                mkdir($kd , 0777);
                $filename = $kd . '/index.html';
                $Content = "Restricted Access\r\n";
                $handle = fopen($filename, 'x+');
                fwrite($handle, $Content);
                fclose($handle);
                }
            $f = $kd . '/' . sprintf('%d', $id) . '.png';

Quote:

Originally Posted by ThomasR (Post 1978120)
No plans of releasing this plugin for vb 4? I'm looking for such plugin and as the targeted forum use tons of images, like Sarangan, a new folder organization would be welcome :)

Works on vb 4.0.1

Focus2 04-14-2010 12:24 PM

Quote:

Originally Posted by Bill from Cleve (Post 1919697)
Is there a way I can make it NOT cache images in the .PNG format? The problem is, it caches them as .PNG's, but they are actually JPG's and GIF's. This causes watermarking apps to fail because they don't understand the format.
I have tried pretty much every single option for watermarking including the .HTACCESS, but non work with this option enabled. I really love the image cache and do not want to disable it.

Is there any easy way to convert the PNG's back to the original formats without killing anything?

Further edit of file will keep the original extension:

Code:

// Create filename
            $ext = end(explode('.', ($files[$i]['url'])));
            $kd = "imgcache/" . date("m_Y");
                        if (!is_dir($kd)){
                        mkdir($kd , 0777);
                        $filename = $kd . '/index.html';
                        $Content = "Restricted Access\r\n";
                        $handle = fopen($filename, 'x+');
                        fwrite($handle, $Content);
                        fclose($handle);
                                    }
            $f = $kd . '/' . sprintf('%d', $id) . '.' . $ext;


ThomasR 04-14-2010 12:40 PM

Focus2: thanks a lot for your edits!!

rubke 04-15-2010 06:58 AM

feature request(s):

- exclude some (sub)forums from caching.
- a scan and remove of unused images
- a scan and update of images

home9000 11-05-2010 04:58 AM

Quote:

Originally Posted by Bill from Cleve (Post 1919697)
Is there a way I can make it NOT cache images in the .PNG format? The problem is, it caches them as .PNG's, but they are actually JPG's and GIF's. This causes watermarking apps to fail because they don't understand the format.
I have tried pretty much every single option for watermarking including the .HTACCESS, but non work with this option enabled. I really love the image cache and do not want to disable it.

Is there any easy way to convert the PNG's back to the original formats without killing anything?

What is the watermarking apps that you use

Manoel J?nior 11-06-2010 03:36 PM

Please,

Watermark!!!

y2ksw 11-07-2010 04:10 PM

For all users who have asked for an equivalent of this product for vBulletin 4, here it is.

Please try and enjoy :)

Manoel J?nior 11-07-2010 04:45 PM

@y2ksw:

I have vB 3.6.8 wor for me!!! But, you can implement watermark this version?

y2ksw 11-08-2010 08:22 AM

Quote:

Originally Posted by Manoel J?nior (Post 2119106)
@y2ksw:

I have vB 3.6.8 wor for me!!! But, you can implement watermark this version?

I suggest to download the images, watermark and upload them back.

Watermarking is beyond the features of image caching :)

Manoel J?nior 11-08-2010 10:13 PM

Quote:

Originally Posted by y2ksw (Post 2119396)
I suggest to download the images, watermark and upload them back.

Watermarking is beyond the features of image caching :)

Thanks, for feedback!

home9000 11-14-2010 04:40 PM

Is it possible to put the userId or member name part of the file name of the image


All times are GMT. The time now is 08:58 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01528 seconds
  • Memory Usage 1,841KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete