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)

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)


All times are GMT. The time now is 05:07 PM.

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.01347 seconds
  • Memory Usage 1,745KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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