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)

bkaul 11-13-2007 10:18 PM

No idea what the cause was, but uninstalling & reinstalling the product fixed it...

BadgerDog 11-14-2007 03:38 PM

Just a clarification please.... :confused:

The instructions say:

Quote:

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.
So, if I install and try this, but it doesn't work or I for whatever other reason I want to un-install it and return my system to its current state, does this mean I can't?

Thanks... :)

Regards,
Badger

y2ksw 11-15-2007 04:41 PM

Quote:

Originally Posted by BadgerDog (Post 1382485)
Just a clarification please.... :confused:

The instructions say:



So, if I install and try this, but it doesn't work or I for whatever other reason I want to un-install it and return my system to its current state, does this mean I can't?

Thanks... :)

Regards,
Badger

It means if you uncomment the uninstallation code (remove starting /* and ending */) from the product uninstallation, it will uninstall completely.

It also means (with removed comments), if you install it later again, the numeric counter will restart from 1 and thus all previously cached images will be gradually overwritten by newly cached images.

If you leave the table in place (not removing comments), you can reinstall at any without this problem. And for this reason it is commented out.

BadgerDog 11-15-2007 04:58 PM

Quote:

Originally Posted by y2ksw (Post 1383155)
It means if you uncomment the uninstallation code (remove starting /* and ending */) from the product uninstallation, it will uninstall completely.

It also means (with removed comments), if you install it later again, the numeric counter will restart from 1 and thus all previously cached images will be gradually overwritten by newly cached images.

If you leave the table in place (not removing comments), you can reinstall at any without this problem. And for this reason it is commented out.

Understood.... :up:

Thank you ... :)

Regards,
Badger

Triky 11-15-2007 08:28 PM

Hi y2ksw, I like this mod. I want to support it becouse it's a really a nice idea, however I think I will not install it on my web site, becouse right now I have a standard hosting plan with not so much bandwidth and web space. :p
By the way, thank you for this modification, I've installed it.. maybe in a future it could be helpfull. :)

y2ksw 11-15-2007 11:28 PM

Thanks, it's always nice to hear from happy users :)

Mazinger 02-15-2008 02:12 PM

Didn't work with me... the images are still have their original url.

y2ksw 02-15-2008 02:51 PM

Does your imagecache folder have modify (chmod 777) permissions? Without it surely won't assign a local URL.

Mazinger 02-15-2008 03:13 PM

It does.

Plus I tried uploading the php file in ASCI and in Binary mode.

I'm using 3.6.8 pl2.

Any other clues?

... And folder name is imgcache not imagecache.

Also, I'm using IE6.

Mazinger 02-18-2008 10:46 AM

Any other clues?

y2ksw 02-18-2008 02:28 PM

Quote:

Originally Posted by Mazinger (Post 1443775)
It does.

Plus I tried uploading the php file in ASCI and in Binary mode.

I'm using 3.6.8 pl2.

Any other clues?

... And folder name is imgcache not imagecache.

Also, I'm using IE6.

Right :)
Quote:

Originally Posted by Mazinger (Post 1445816)
Any other clues?

Sorry, no other ideas ...

Mazinger 02-18-2008 07:12 PM

Is there any other php/server requirements/conditionals that this hack wouldn't work with?

y2ksw 02-18-2008 09:55 PM

Maybe if fopen() would not work. But at this point you would not be able to save attachments on your server as well.

Mazinger 02-27-2008 07:08 AM

I just checked, and fopen() is off in the php info. Is there any way to enable it via .htaccess?

y2ksw 02-27-2008 01:37 PM

Not as far as I know, sorry.

ChurchMedia 03-16-2008 05:01 PM

Hi -- I've been using Image Cache since 2006. Today the imgcache folder is completely empty except for an index.html file! ALL of the images cached for almost 2 years are GONE! Does anyone have any idea what may have caused this? Is there a directory size limit in PHP or something? I hope they are still there and just unreadable...

y2ksw 03-16-2008 09:55 PM

Would it be possible the access rights of the folder have changed and you have no READ and/or LIST permission?

ChurchMedia 03-16-2008 10:10 PM

I have a dedicated server and I have full management over it. I discovered about an hour ago that all of my profile pix have been deleted as well. Myself and a server wiz-kid from Seattle are looking into it. He doesn't think we are being hacked. It may have something to do with GD. UG! Either way it's a nightmare and I'm going to pay for daily backups now.

So, your mod is fine (it's great, in fact :))!

y2ksw 03-16-2008 11:50 PM

Phew (for me) :)

Anyway I've checked the code and there is no possibility of an accidental deletion.

GlitterKill 05-15-2008 02:15 AM

installed on VB 3.7 and working great! Thanks! I have been looking for something like this for a long time!

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

y2ksw 05-30-2008 06:13 AM

At this point try to comment out the code at line 55 and see if anything changes.

kether1 05-30-2008 12:07 PM

Quote:

Originally Posted by y2ksw (Post 1535943)
At this point try to comment out the code at line 55 and see if anything changes.

I tried it, but it did not change. Sorry I missed the


Code:

/*
and
Code:

*/
in the code in post 106 or I would have tested it earlier. The y2kswimgcache.php file still behaves the same way with regards to the imagehosting images and other images that are on my forum's URL. Perhaps there is another place in the code I need to edit?

Thanks again!
kether

y2ksw 05-30-2008 02:30 PM

Maybe these images are virtual or cannot be accessed. The procedures silently fail when a file is not readable for any reason.

kether1 05-31-2008 01:27 AM

Oh, no. Well, I appreciate the time you spent trying to help me. I really appreciate it and your modification. If I can discover a way to make it work, I will PM you and let you know. If you think of something else for me to try, I will be happy to give it a go.

I am just surprised that none of the images from my forum URL are cached after making that code change. I expected some of them to at least cache.

Thanks again,
Kether

booktoweb 06-03-2008 07:26 AM

after edit to
allow_url_fopen = On

this hack worked well

aisais 07-13-2008 01:15 AM

Thank you for sharing this mod.
Is it compatible with 3.7.2 ?

y2ksw 07-13-2008 10:20 AM

Yes, it is running flawlessly on my servers including the versions 3.6.x and 3.7.x :)

aisais 07-14-2008 04:52 AM

Quote:

Originally Posted by y2ksw (Post 1574131)
Yes, it is running flawlessly on my servers including the versions 3.6.x and 3.7.x :)

Great. :up: Thank you y2ksw.

salahunreal 08-12-2008 12:36 PM

Tested on new thread, reply edit with 3.6.8 forum and worked properly.

As other stated before me, would be good idea if there an option to exclude some directories since some forums has their own uploading script.

I agree this option should be included in the 3.7 forums. this is a must have in my opinion.

Thanks for the great work

y2ksw 08-12-2008 10:13 PM

hmmm ... seems as if I will have to make this and some other changes and upgrades soon ... ;)


All times are GMT. The time now is 11:25 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.01322 seconds
  • Memory Usage 1,829KB
  • 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
  • (3)bbcode_code_printable
  • (13)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
  • (40)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