Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • psionic001 Friend
    #167727

    I built site with ja_social templete.
    The subpage’ image disappear when I make friendly url and open mod_rewrite:

    Search Engine Friendly URLs :yes
    Use Apache mod_rewrite :yes

    I searched some solutions, but that is not useful.
    1.set $live_site value in configuration.php.
    2.try to add <base> tag, but I can’t find somewhere to put the tag between head tag. I can’t find <jdoc:include type=”head” /> in ja_social templete.

    Please tell me what should I do now, I have really no idea now. Thanks.

    cyprusmedya Friend
    #408031

    can you give live site link please? also, did you renamed your htaccess.txt file on your host to .htaccess after enabling sef url?

    psionic001 Friend
    #408035

    cyprusmedya, I just fix this problem.
    I change this file : templatesja_socialhtmlcom_contentarticledefault.php

    this way is just replace image src with new src. I use this code only in article.

    add code :

    [PHP]
    $strstr=$this->article->text;

    $domain=”http://constructeng.com.au/ecms/”;
    $regex = “-(<img[^>]+srcs*=s*[‘”])(((?!’|”|http://).)*)([‘”][^>]*>)-i”;
    $strstr = preg_replace($regex, “$1″.$domain.”$2”.”$4″, $strstr);
    [/PHP]

    Thank you~:)

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

This topic contains 3 replies, has 2 voices, and was last updated by  psionic001 13 years, 3 months ago.

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