Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • islandview Friend
    #133810

    Hi – I have a serious problem which is crashing my site….

    The JA News module creates thumbnail images based on what’s in the original articles – however where my original images folders start with an uppercase letter, JA News can’t cope and errors / crashes – It seems to recreate the folder all lowercase – but then complains because the image it is looking for isn’t in that new folder….. It’s in the one with the upper case letter that it can’t see!!!!

    Other components on my site auto-create folders for my users – and they are often with an uppercase letter -so for example I have a folder, ‘Natasha’ – JA News can’t cope with that upper case N – and creates a new folder natasha – but of course it’s empty and then the system crashes saying the image file can’t be found.

    Is there a way to hack JA News / improve it with a future update, so that it can cope with upper case letters?!!? Thanks!

    Sherlock Friend
    #273389

    Hi acbonner !
    Please send url of your site !

    Menalto Friend
    #273392

    hainn:
    Is there a way to hack JA News / improve it with a future update, so that it can cope with upper case letters?

    Sherlock Friend
    #273404

    Hi
    please edit helper.php(modulesmod_janews folder)
    1Search line:

    $image=strtolower($image);
    remove it

    2.search line:

    $ext = strtolower(substr(strrchr($image, '.'), 1));
    Change to

    $ext =substr(strrchr($image, '.'), 1);

    3.Search line:

    $rzname = strtolower(substr($image, 0, strpos($image,'.')))."_{$tn_width}_{$tn_height}.{$ext}";
    change to

    $rzname = (substr($image, 0, strpos($image,'.')))."_{$tn_width}_{$tn_height}.{$ext}";

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 3 voices, and was last updated by  Sherlock 16 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum