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)

y2ksw 11-15-2010 07:09 AM

Quote:

Originally Posted by home9000 (Post 2121817)
Is it possible to put the userId or member name part of the file name of the image

I don't believe so ... in theory yes, but it would add more problems than it solves, since images (links) could be copied and then they would not match the users.

home9000 11-15-2010 03:29 PM

Quote:

Originally Posted by y2ksw (Post 2122018)
I don't believe so ... in theory yes, but it would add more problems than it solves, since images (links) could be copied and then they would not match the users.


Yes but I can ignore any link inside the domain so if any one use the image then the original member id will be the same


If you can help I will be appreciated

Baitona 03-18-2011 03:35 PM

script working 100%
however, i have a little question,

if there was an artilce in my forum, which contanis images
all images are hyperlinked to external sites/threads

when the image is imported it will still have the url after the import...

my question is there any chance to strip the forign url, in the thread?

regards

Baitona 03-19-2011 09:13 AM

is it also possible to import the images to other domain?

y2ksw 03-19-2011 10:16 AM

Quote:

Originally Posted by Baitona (Post 2174783)
script working 100%
however, i have a little question,

if there was an artilce in my forum, which contanis images
all images are hyperlinked to external sites/threads

when the image is imported it will still have the url after the import...

my question is there any chance to strip the forign url, in the thread?

regards

"Wrapping" URL's are not removed yet and maybe never will.

y2ksw 03-19-2011 10:21 AM

Quote:

Originally Posted by Baitona (Post 2175030)
is it also possible to import the images to other domain?

Short answer: no :)

You would like to store the images to a media server which would need a lot of more operations. However, if you have Linux, you can use the fsftp file system in order to move imported files into another server, or a symbolic link to move it on the same server to another domain. Together with the Forum URL Replacement option, you may achieve then the desired effect. This applies however only to the newer version, here: https://vborg.vbsupport.ru/showthread.php?t=253309

Manoel J?nior 07-18-2011 02:53 PM

My bro',

Please this version update:

- update all equal to Import External Image (vb4)
- a scan and remove of unused images
- a scan and update of images
- Watermark
- Integrate automatically https://vborg.vbsupport.ru/external/2011/07/5.gif with iMG Cache

Is it possible?

Congratulations, you're a great developer.

y2ksw 07-18-2011 03:38 PM

You may watermark your pictures with external tools (e.g. download - watermark - upload). I will not add this feature for copyright reasons.

All the other requests may be possible, I'll think about it :)

Manoel J?nior 07-18-2011 04:01 PM

Quote:

Originally Posted by y2ksw (Post 2222006)
You may watermark your pictures with external tools (e.g. download - watermark - upload). I will not add this feature for copyright reasons.

All the other requests may be possible, I'll think about it :)

Again, thank you for all the help. Many people still have version 3.8, an update would be very good this product to these people.

Thanks again.

Manoel J?nior 07-21-2011 01:26 AM

Quote:

Originally Posted by y2ksw (Post 2222006)
You may watermark your pictures with external tools (e.g. download - watermark - upload). I will not add this feature for copyright reasons.

All the other requests may be possible, I'll think about it :)

Do not forget us (vb3.8​​) please my friend.

dartho 08-24-2011 10:18 PM

Excellent. I came a cross an issuie where it would attempt to cache album pictures (vb 3.8.7), but instead it cache a 1x1px img? (vBulletin's cron ?)

This however didn't happen when attachments were used in img tags :confused:

To work around I added the following code to y2kswimgcache.php so that any images in the forums were not cached:

PHP Code:

    // Don't change local files ---------------------------------------
    
for($i 0$i $n$i++)
    {
        if(
strpos($files[$i]['url'], $forum_home) !== FALSE)
        {
            
$files[$i]['url'] = '';
        }
    } 


Manoel J?nior 09-08-2011 12:50 PM

Any news y2ksw??

Thanks

dartho 09-08-2011 04:42 PM

This works well under 3.8.7!

y2ksw 09-09-2011 07:48 AM

Quote:

Originally Posted by Manoel J?nior (Post 2243384)
Any news y2ksw??

Thanks

No news yet ... overrun by work.

SCuN 02-19-2012 09:28 PM

Very nice mod! works very well on 3.8.7, but I noticed a bug, when you give a space after the img bbcode, modification does not work.

y2ksw 02-21-2012 08:54 AM

Quote:

Originally Posted by SCuN (Post 2301357)
Very nice mod! works very well on 3.8.7, but I noticed a bug, when you give a space after the img bbcode, modification does not work.

It's not intended to have a space there ;)

If there are spaces, probably they are intentional in order to show the tags in the post.

dartho 05-18-2012 03:01 AM

After minimal testing, your version of this for VB4 works under vb 3.8 also ... (although there may be an issue with cron logging?)

adwade 08-15-2013 12:47 PM

Quote:

Originally Posted by Manoel J?nior (Post 2221991)
Please this version update:
- a scan and remove of unused images

One quick question: IS there any way to determine if a cached image is no longer in use?(i.e. a thread which had a cached-image in it has been deleted, but the cached-image remains) From what I've gathered reading this thread, if a thread is deleted and the cached-image is no longer needed it still remains (unused) in place. True?

This is a GREAT MOD and has kept our discussions meaningful, no matter how old they are by keeping the images within our threads intact. :cool:

Oh and I'll 2nd Manoel Junior's comment: Congratulations, you're a great developer.

y2ksw 08-16-2013 09:26 AM

Quote:

Originally Posted by adwade (Post 2439004)
One quick question: IS there any way to determine if a cached image is no longer in use?(i.e. a thread which had a cached-image in it has been deleted, but the cached-image remains) From what I've gathered reading this thread, if a thread is deleted and the cached-image is no longer needed it still remains (unused) in place. True?

This is a GREAT MOD and has kept our discussions meaningful, no matter how old they are by keeping the images within our threads intact. :cool:

Oh and I'll 2nd Manoel Junior's comment: Congratulations, you're a great developer.

If a thread is deleted and the cached-image is no longer needed it still remains (unused) in place: True

Because a post may be copied inside and even outside your forums and their images are still in use. Since you link images statically to your site, you are becoming the primary source of that copy, if the original disappears for one or another reason.

I am aware of the space problem, but in the very long run, old images may become very interesting to researchers. And thus, new people are coming to your site, only because you got what they need :)

adwade 08-16-2013 11:33 PM

Quote:

Originally Posted by y2ksw (Post 2439146)
I am aware of the space problem, but in the very long run, old images may become very interesting to researchers. And thus, new people are coming to your site, only because you got what they need :)

I understand and can agree with your logic. :up:

I'm running v1.0.2.0 on vB3.8.6 and it's run flawlessly since I installed it w-a-y back when.(i.e. vB 3.6) My only concern is how many images can I hold in just ONE directory, before it blows up on me? :eek:

And along those lines, is there any way to patch/modify the version I'm running to keep-it-going?(i.e. as Focus2 suggested in post #150 of this thread)

dartho 08-17-2013 02:01 AM

I haven,t looked, but if the number of images in a single directory is the concern, you should be able to modify the code to start placing images in a new directory and leave the existing intact. All existing cached images will still be accessible in their original path and all new ones will go to the new directory? Set a reminder to change things again next year ...

adwade 08-17-2013 06:23 PM

Yes, the number of images in a single directory is my concern. I just don't want it to stop working.

Focus2's suggestion in post #150 is for v1.0.3.0 I think, because I saw the 'png' in the code referenced.

I'm not a coder at all, but given direction I can usually find/replace small segments of such and not tear things up.

Thanxx for the answer though, because I was unsure what the MOD would do with old/existing images in the cache. Now at least I sort of know a work-around is possible for v1.0.2.0 if I can find code similar to what Focus2 was referring to. I just don't want to start renaming all my images (from this point forward) to png, if I don't have to.(i.e. the simpler, the better for me)

y2ksw 08-18-2013 04:24 PM

Quote:

Originally Posted by adwade (Post 2439264)
I understand and can agree with your logic. :up:

I'm running v1.0.2.0 on vB3.8.6 and it's run flawlessly since I installed it w-a-y back when.(i.e. vB 3.6) My only concern is how many images can I hold in just ONE directory, before it blows up on me? :eek:

And along those lines, is there any way to patch/modify the version I'm running to keep-it-going?(i.e. as Focus2 suggested in post #150 of this thread)

If your system is Linux, it won't blow quickly :)

The new version does divide the images.

You may try to change the folder from code and create a new one respectively to this change. But, please test it before ;)


All times are GMT. The time now is 06:50 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.01401 seconds
  • Memory Usage 1,803KB
  • 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
  • (1)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (23)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