Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Image Cache Details »
Image Cache
Mod Version: 1.0.3.0, by y2ksw (Coder) y2ksw is offline
Developer Last Online: Jul 2020 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.5.4 Rating: (11 votes - 4.73 average) Installs: 78
Released: 07 Aug 2006 Last Update: 21 Aug 2007 Downloads: 578
Supported DB Changes Uses Plugins Additional Files  

Y2K Software Image Cache

Compatible at least with vBulletin 3.5.4 and 3.6.4

Please click here for the product Import External Images for vBulletin 4

This product caches images from external sites to a local board folder (including signatures) located at:

http://www.domain.tld/[forum/]imgcache

Installation
  1. Please create at your vBulletin board directory a folder called: imgcache and give it the following access rights: CHMOD 777 (read/write/modify to all users)
  2. Create an empty index.html file in this folder to avoid file exploring and direct download on some systems.
  3. Copy the y2kswimgcache.php file to your vBulletin board (forum home) directory.
  4. Close your forum temporarily to the public.
  5. Install the product product-y2kswimagecache.xml to your board (allow overwrite if already present).
    The installer will add a table called '[prefix]y2ksw_imgcache' with one field (int ID AUTOINCREMENT) to your board database.
    Please note: Although the uninstaller is provided, it is commented out. By removing the table, and reinstalling the plugin later, the cached images would be overwritten, because of the field counter restarting from 1.
    By leaving the table in your database, you may reinstall the plugin later without collision problems.
  6. Test the product: New thread, reply, edit. If errors occur (or white pages), make sure your imgcache/ folder has the required access rights.
  7. Reopen your forum to the public.
  8. DONE!
How it works

When a board user opens a new thread or message, or edits an existing one (all advanced, quick-reply and ajax), and pastes an image from all but the local cache directory (or by copy and paste, or by specifying [IMG] tags), upon submission the image is read from the external url and written to the local (server) image cache folder.
This avoids to show a placeholder image when the source link is dead or temporarily unavailable.

The link to the image is accordingly replaced.

The script scans first all image references and creates a table of unique images in the current message. It creates a new database table entry in y2ksw_imgcache for each image, reads the new ID and creates a sequence of new images for each url it happens to be readable, and creates for each successful read an imgcache/<id>.png file.

After this sequence, the files are cached locally and may disappear from their sources without leaving an unreferenced image pointer at the local board.

Known bugs

When an image link contains dynamic data, vBulletin would show the image in preview, but change also the IMG tags to URL.
This causes to loose the reference and the plugin will not attempt to recover. A possible solution is to allow dynamic contents for IMG tags on your board.

Version history

1.0.3.0 2007-08-19 Repaired browser (IE 7) issue for images of a different file extension than the officially recognized types. For this issue, newly cached files have now the *.png extension.
1.0.2.0 2006-08-27 Image caching of signatures ([IMG] tags for signatures must be enabled); added a donation button inside readme.htm for specific user requests, which will help us to keep this product always up-to-date.
1.0.1.2 2006-08-07 Release changes for vbulletin.org
1.0.1.1 2006-08-06 Image size verification to avoid caching of invalid images
1.0.1.0 2006-07-17 Collision-free unique cache ID's
1.0.0.0 2006-07-17 Product creation

Download Now

Only licensed members can download files, Click Here for more information.

Addons

Supporters / CoAuthors

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #46  
Old 02 Apr 2007, 18:48
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
The plugin has been written for entire sites, not for selections of forums and subforums. Unless I will release a version which allows selecting forums, I do not suggest to make a change to templates. I corrected a typo, in a hypothetically working template modification.
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
  #47  
Old 13 Apr 2007, 16:44
home9000 home9000 is offline
 
Join Date: Aug 2005
very nice product
let assume that I disable the product after one month what is the impact ?
I will lose all images , is this right ?
Reply With Quote
  #48  
Old 14 Apr 2007, 09:26
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
No, the images you have stored on your server remain. After uninstalling/disabling, newly pasted images will not be stored to your server any more. That's all
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
  #49  
Old 17 Apr 2007, 08:39
home9000 home9000 is offline
 
Join Date: Aug 2005
Is it possible to print logo over the images that store in the site ?

like this
http://www.vbulletin.org/forum/showt...ight=watermark
or this
http://www.vbulletin.org/forum/showt...ight=watermark
Reply With Quote
  #50  
Old 17 Apr 2007, 12:41
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
Not yet. It has been asked before and when I got time to review this plugin, I may add this feature.
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
  #51  
Old 29 Apr 2007, 08:08
home9000 home9000 is offline
 
Join Date: Aug 2005
Thanks y2ksw
one more question, The hack will be work for the new post . I want to include the old post is there any way like Update Counters
Reply With Quote
  #52  
Old 30 Apr 2007, 00:36
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
Not yet, sorry. Also this feature was asked in the past, but I'm unable to concentrate on addons and changes, since busy in real life

If you know a little PHP you may create a new cron-job and parse the messages one by one (or a small number of messages) at each interval. It is not a huge deal with an additional table where you keep trace of the messages you already parsed, or an additional field in the post table (which I discourage).

The 'update counters' isn't a great idea on large boards, because you need to take care about script timeouts. When you time out, you have to reload the page manually. On certain systems, the timeout can be disabled for cron-jobs, and most of all, they run in the background without the need of a human clicking for hours on a stupid button
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
  #53  
Old 01 May 2007, 20:59
home9000 home9000 is offline
 
Join Date: Aug 2005
Thanks y2ksw

Is it possible to let each month picture have a different folder in this way the number of files not going to effect the performance and it's easy to delete the old files.

my second suggestions and it's good for next release to keep in database the old picture url and you can just replace the url if the picture missing only so the bandwidth not effect in this way
Reply With Quote
  #54  
Old 19 May 2007, 17:02
home9000 home9000 is offline
 
Join Date: Aug 2005
I have problem right now to add any new post because its take time .Maby the problem because all image save in one folder
I have to stop the product right now and I hope we can get fix
Reply With Quote
  #55  
Old 18 Aug 2007, 22:59
ChurchMedia's Avatar
ChurchMedia ChurchMedia is offline
 
Join Date: Dec 2002
Real name: Tim Eason
Any chance on a port to 3.6.8? It stopped working for me a couple of revs back.
Reply With Quote
  #56  
Old 19 Aug 2007, 08:56
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
Originally Posted by ChurchMedia View Post
Any chance on a port to 3.6.8? It stopped working for me a couple of revs back.
I check what's going on ... probably a hook location which has been changed

Thanks for feedback
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
  #57  
Old 19 Aug 2007, 14:50
ChurchMedia's Avatar
ChurchMedia ChurchMedia is offline
 
Join Date: Dec 2002
Real name: Tim Eason
Originally Posted by y2ksw View Post
I check what's going on ... probably a hook location which has been changed

Thanks for feedback
Actually it was because my imgcache folder wasn't chmod to 777. My bad. Sorry!
Reply With Quote
  #58  
Old 20 Aug 2007, 15:48
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
No problem ... there was also an issue on IE7 which may not allow to show correctly *.imgcache images. New files are named *.png now and everything works
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
  #59  
Old 20 Aug 2007, 21:02
KingPin6's Avatar
KingPin6 KingPin6 is offline
 
Join Date: Sep 2006
hello y2ksw thank you for the update, it was always a bit slow with this mod when making posts with pictures but now after this update I cant make posts at all if it contain a few pictures, I see the pictures in the imgcache folder but the post never gets made, I just waited almost 5 minutes and then just canceled, disabled addon and retried, the post was made in a few seconds. any tips would be much appreciated.
__________________

Last edited by KingPin6; 21 Aug 2007 at 18:35. Reason: fixed typo
Reply With Quote
  #60  
Old 21 Aug 2007, 21:46
y2ksw's Avatar
y2ksw y2ksw is offline
 
Join Date: Aug 2003
Real name: Giovanni
Originally Posted by KingPin6 View Post
hello y2ksw thank you for the update, it was always a bit slow with this mod when making posts with pictures but now after this update I cant make posts at all if it contain a few pictures, I see the pictures in the imgcache folder but the post never gets made, I just waited almost 5 minutes and then just canceled, disabled addon and retried, the post was made in a few seconds. any tips would be much appreciated.
Strange ... anyway 17 seconds for a message is long. I'll upload the previous version (1.0.2.0) to allow reverting.

The changes I've made should actually use much less memory, specifically when there are more images in a message, at a single time.
__________________
Giovanni
Italian support: http://www.vbulletin.it/
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 03:12.

Layout Options | Width: Wide Color: