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)

yahoooh 05-19-2008 07:18 AM

how to make it work with vba dynamics script and also vblog and others
i need some hint on this

y2ksw 05-19-2008 07:59 AM

Quote:

Originally Posted by yahoooh (Post 1524462)
how to make it work with vba dynamics script and also vblog and others
i need some hint on this

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 ... :confused:

kether1 05-26-2008 10:18 PM

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

y2ksw 05-27-2008 11:36 AM

Quote:

Originally Posted by kether1 (Post 1532303)
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

you may edit the attached PHP file in order to read also the images from your site, but probably you will run in the problem to cache the images again and again, each time somebody makes a change or replies to a message with a cached image.

kether1 05-27-2008 11:04 PM

Quote:

Originally Posted by y2ksw (Post 1532812)
you may edit the attached PHP file in order to read also the images from your site, but probably you will run in the problem to cache the images again and again, each time somebody makes a change or replies to a message with a cached image.

Thanks for the information! :up: Is there a specific piece of code in the PHP file that I should look for to make this change?

Regards,
Kether

y2ksw 05-28-2008 06:42 AM

Quote:

Originally Posted by kether1 (Post 1533520)
Thanks for the information! :up: Is there a specific piece of code in the PHP file that I should look for to make this change?

Regards,
Kether

Around line 55:

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'] = '';
        }
    }
    */

:)

y2ksw 05-28-2008 06:46 AM

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 ;)

kether1 05-28-2008 10:30 PM

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:

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
Also, I am not sure if you are telling me that making this change is a bad idea or if you mean something else.

Thanks for your help,
Kether

y2ksw 05-29-2008 10:25 AM

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

kether1 05-29-2008 11:56 PM

Quote:

Originally Posted by y2ksw (Post 1534915)
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

Oh, I have tested it, Giovanni. It doesn't make a cache of the image. The link will simple be: [img]http://www.mysite.com/forum/imagehosting/34827686d769c2.gif[/img]

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


All times are GMT. The time now is 03:04 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.01458 seconds
  • Memory Usage 1,744KB
  • 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_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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