Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • fade2gray Friend
    #166593

    Joomla 1.7.0 r21909
    purity II 1.1.0
    jat3-2 1.2.9

    Have a problem with unwanted characters at top of page – see attached image.

    I have a work-around but don’t know if it is the correct thing to do.

    Edit “/plugins/system/jat3/jat3/core/joomla/documenthtml.php”

    public function addHeadLink($href, $relation, $relType = ‘rel’, $attribs = array())
    {
    if(strstr($_SERVER{‘HTTP_USER_AGENT’},’Mozilla’)){ return ; } /* add this line of code */
    $attribs = JArrayHelper::toString($attribs);
    $generatedTag = ‘<link href=”‘.$href.'” ‘.$relType.’=”‘.$relation.'” ‘.$attribs;
    $this->_links[] = $generatedTag;
    }

    Any advice please?


    1. jat3-2_firefox
    sakoman Friend
    #402724

    I am seeing the same thing with JA Rave & Firefox.

    Looking at the generated page source I see the following lines that seem to cause the issue:

    <title>My Site Name</title>
    <link href=”/0″ <=”<” />
    <link href=”/1″ <=”<” />
    <link href=”/2″ <=”<” />
    <link href=”/3″ <=”<” />
    <link rel=”stylesheet” href=”/t3-assets/css42599.css?v=10″ type=”text/css” />

    lo30sopa6 Developer
    #402775

    I got the same problem with the blank template in Joomla 1.7 on an iPhone and an iPad..
    I’ll do some research.

    Best,
    Steve

    kso77 Friend
    #403088

    I have changed the method addHeadLink (mentioned above):

    [PHP]
    public function addHeadLink($href, $relation, $relType = ‘rel’, $attribs = array())
    {
    $this->_links[$href][‘relation’] = $relation;
    $this->_links[$href][‘relType’] = $relType;
    $this->_links[$href][‘attribs’] = $attribs;
    }[/PHP]

    Now it works

    chavan Friend
    #403109

    Hi fade2gray

    This is a bug, and we will fix it soon. And you can do as following step to fix it:
    1. Open plugins/system/jat3/jat3/core/framework.php, and comment this line in t3_init() function


    if (!class_exists ('JDocumentHTML', false)) t3import ('core.joomla.documenthtml');

    2. Open plugins/system/jat3/jat3/core/template.php and replace this code in getBuffer() function


    if ($type == 'module' && $name == 'custom') {
    $_tpl->setBuffer(NULL, array('type'=>$type, 'name'=>$name));
    }

    by


    if ($type == 'module') {
    $_tpl->setBuffer(NULL, array('type'=>$type, 'name'=>$name));
    }

    Note: Please notice that it’s not effect when you upgrade new version of T3 plugin.

    lo30sopa6 Developer
    #403169

    <em>@kso77 255671 wrote:</em><blockquote>I have changed the method addHeadLink (mentioned above):

    [PHP]
    public function addHeadLink($href, $relation, $relType = ‘rel’, $attribs = array())
    {
    $this->_links[$href][‘relation’] = $relation;
    $this->_links[$href][‘relType’] = $relType;
    $this->_links[$href][‘attribs’] = $attribs;
    }[/PHP]

    Now it works</blockquote>

    thanks, I’ll try it.

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

This topic contains 6 replies, has 5 voices, and was last updated by  lo30sopa6 13 years, 3 months ago.

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