Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • Anonymous Moderator
    #141873

    Please try with my guider:

    + Step 1: Open templates/ja_template/ja_templatetools_1.5.php
    – Find following code:

    [PHP]
    if (isset($_GET[$k])){
    $v = $_GET[$k];
    setcookie ($kc, $v, $exp, ‘/’);
    }else{
    if (isset($_COOKIE[$kc])){
    $v = $_COOKIE[$kc];
    }
    }

    [/PHP]

    and change to:

    [PHP]
    if (JRequest::getVar($k, null, ‘GET’) !== null) {
    $v = preg_replace(‘/[x00-x1Fx7F<>;/”‘%()]/’, ”, JRequest::getString($k, ”, ‘GET’));
    setcookie ($kc, $v, $exp, ‘/’);
    }else{
    if (isset($_COOKIE[$kc])){
    $v = $_COOKIE[$kc];
    }
    }

    [/PHP]

    – Find following code section:

    [PHP]
    function getParam ($param, $default=”) {
    if (isset($this->_params_cookie[$param])) {
    return $this->_params_cookie[$param];
    }
    return $this->_tpl->params->get($param, $default);
    }
    [/PHP]

    and change to:

    [PHP]
    function getParam ($param, $default=”) {
    if (isset($this->_params_cookie[$param])) {
    return preg_replace(‘/[x00-x1Fx7F<>;/”‘%()]/’, ”, $this->_params_cookie[$param]);
    }
    return preg_replace(‘/[x00-x1Fx7F<>;/”‘%()]/’, ”, $this->_tpl->params->get($param, $default));
    }
    [/PHP]

    + Step 2: Open templates/ja_template/html/mod_login/default.php file, find following code:

    [PHP]option=com_user&task=register[/PHP]

    and change to:

    [PHP]option=com_user&task=view[/PHP]

    + Step 3: Open all files in templates/ja_template/html/com_content folder, and change as follows:

    – find following code section:
    [PHP]<?php echo $this->params->get(‘pageclass_sfx’) ?>[/PHP]

    and change to:
    [PHP]<?php echo $this->escape($this->params->get(‘pageclass_sfx’)) ?>[/PHP]

    – find following code section:
    [PHP]<?php echo $this->item->title; ?>[/PHP]

    and change to:
    [PHP]<?php echo $this->escape($this->item->title); ?>[/PHP]

    – find following code section:
    [PHP]<?php echo $this->item->section; ?>[/PHP]

    and change to:
    [PHP]<?php echo $this->escape($this->item->section); ?>[/PHP]

    – find following code section:
    [PHP]<?php echo $this->item->category; ?>[/PHP]

    and change to:
    [PHP]<?php echo $this->escape($this->item->category); ?>[/PHP]

    harsa Friend
    #307909

    hi,
    hmm.. we have to do this to all ja templates if we upgrade to 1.5.11? if we do not do this, what will happen?

    /harsa
    newbie

    Anonymous Moderator
    #307910

    Hi harsa

    This version solved some problems with the security. The old template still works fine with joomla 1.5.11 if you don’t want to upgrade.

    This change is from joomla. We have to change our template to the latest version of joomla.

    toddman Friend
    #308230

    I did your manual upgrade & was getting an error /ja_templatetools_1.5.php line 561. To correct my problem I had to download the new file for ja_opal & insert my custom coding again. Is there a typo or code left out in your upgrade for this template?

    toddman Friend
    #308445

    Your step 2 add the following to mod_login “option=com_user&task=view” is sending
    me to a “
    Registered Area” is there a code problem?
    Link: http://www.wsi.wcsports.org

    toddman Friend
    #308448

    Not all templates have the same code for “Create an account”. Please advise which templates need the update. JA-Opal is different than JA-beryl.

    Anonymous Moderator
    #308914

    <em>@toddman 133403 wrote:</em><blockquote>Not all templates have the same code for “Create an account”. Please advise which templates need the update. JA-Opal is different than JA-beryl.</blockquote>

    We have to upgrade all our template.
    I think you should download our template and compare with current your template to know which file have to change.

    toddman Friend
    #309000

    JA Developer;134003We have to upgrade all our template.
    I think you should download our template and compare with current your template to know which file have to change.

    I know you have to make updates, but when you post a manual update you would think it was universal for all templates. Too many files to compare, need a change log of which files you are updating. This would help with any custom coding that has been done. Also a version update of the template would be nice JA-Opal still shows version 1.0 3-13-2009.

    mayke Friend
    #309191

    Good news,
    Is this solution upgrading from joomla 1.5.7 to 1.5.11 will work for teline II too?
    Thanks.

    Anonymous Moderator
    #309621

    <em>@mayke 134371 wrote:</em><blockquote>Good news,
    Is this solution upgrading from joomla 1.5.7 to 1.5.11 will work for teline II too?
    Thanks.</blockquote>

    For this guider, i only check it from joomla 1.5.10 to joomla 1.5.11.
    I am afraid that you have check your version with joomla 1.5.11 to have a full upgrade.

    mayke Friend
    #309721

    Thank you JAD.

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

This topic contains 11 replies, has 4 voices, and was last updated by  mayke 15 years, 4 months ago.

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