Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • at-least it worked for me.
    After ajax call i called

    easy_fancybox_handler();

    in ajax content page.

    I solved this by changing the src. Go to timthumb.php line number 209 say:

    $this->myHost = preg_replace('/^www\./i', '', $_SERVER['HTTP_HOST']);

    then make a custom path:

    `$my_new_url = sprintf(
    “%s://%s”,
    isset($_SERVER[‘HTTPS’]) && $_SERVER[‘HTTPS’] != ‘off’ ? ‘https’ : ‘http’,
    $_SERVER[‘HTTP_HOST’]
    );
    $arr = explode(‘/’,dirname($_SERVER[‘PHP_SELF’]));
    $myNewSite_name = $arr[‘1’];
    $custom_path = $my_new_url.’/’.$myNewSite_name.’/’;`

    then change line number 212:

    $this->src = preg_replace('/https?:\/\/(?:www\.)?' . $this->myHost . '/i', '', $this->src);

    to

    $this->src = $custom_path.$this->src;

    My solution will explain what is the problem. tx

Viewing 2 replies - 1 through 2 (of 2 total)