The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Image Cache Details »» | |||||||||||||||||||||||||
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
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 Supporters / CoAuthors Show Your Support
|
Comments |
#102
|
|||
|
|||
how to make it work with vba dynamics script and also vblog and others
i need some hint on this |
#103
|
||||
|
||||
I don't believe there is a simple solution - sounds rather like a major hack, if the standard hooks don't work. Maybe you're lucky with choosing similar hooks and copy & paste the code from the image cache standard hook locations as is ...
|
#104
|
|||
|
|||
Hi Giovanni,
Anyway to edit this to cache images that are from my forum URL? I am thinking of installing the imagehosting modification and would like to be able to cache the images posted in the forum using the [ img ] code so that if a user later deletes his/ her gallery photo, the image would still appear in the thread. Is there a code or something I could edit to change this to capture images from my forum that are linked? Thanks, Kether |
#105
|
||||
|
||||
Quote:
|
#106
|
|||
|
|||
Quote:
Regards, Kether |
#107
|
||||
|
||||
Quote:
Code:
/* // Don't change already cached files --------------------------------------- for($i = 0; $i < $n; $i++) { if(strpos($files[$i]['url'], $forum_home . 'imgcache/') !== FALSE) { $files[$i]['url'] = ''; } } */ |
#108
|
||||
|
||||
Anyway I think you don't have to make this change because it would cache all files on your site, but the ones you already have in the imgcache folder
|
#109
|
|||
|
|||
Hi Giovanni,
Thanks for all of your replies. I am not sure I understand what I am supposed to change in the code quoted in post 106. Do I simply set it to TRUE to capture all linked images? Sorry for being so thick about this. Quote:
Thanks for your help, Kether |
#110
|
||||
|
||||
Well I d'dn't check yet how album images are handled, when they are referred inside a post. I would assume they are simple IMG tags and thus the images should already be cached ... can't you make a test please? If caching works, the link should read [forumhome]/imgcache/[id].png
Regards, Giovanni |
#111
|
|||
|
|||
Quote:
It doesn't get the /imgcache/[id].png like everything linked in from off of my URL. I *think* this is because my forum's URL is included in the link and your modification doesn't cache images from the URL that it is working within. That is why I wanted to know how to change the code in the PHP file to make it capture images that are put into post from my own forum URL. I really appreciate you help with this. I love this modification. Regards, Kether |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|