-
AuthorPosts
-
Anonymous Moderator
JA Developer
- Join date:
- September 2014
- Posts:
- 9914
- Downloads:
- 207
- Uploads:
- 152
- Thanks:
- 1789
- Thanked:
- 2008 times in 1700 posts
June 12, 2009 at 10:29 am #141873Please 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]1 user says Thank You to JA Developer for this useful post
harsa Friendharsa
- Join date:
- August 2008
- Posts:
- 34
- Downloads:
- 0
- Uploads:
- 3
- Thanks:
- 9
- Thanked:
- 1 times in 1 posts
June 15, 2009 at 4:54 am #307909hi,
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
newbieAnonymous ModeratorJA Developer
- Join date:
- September 2014
- Posts:
- 9914
- Downloads:
- 207
- Uploads:
- 152
- Thanks:
- 1789
- Thanked:
- 2008 times in 1700 posts
June 15, 2009 at 4:58 am #307910Hi 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.
1 user says Thank You to JA Developer for this useful post
toddman Friendtoddman
- Join date:
- October 2006
- Posts:
- 118
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 33
- Thanked:
- 8 times in 1 posts
June 17, 2009 at 9:01 pm #308230I 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 Friendtoddman
- Join date:
- October 2006
- Posts:
- 118
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 33
- Thanked:
- 8 times in 1 posts
June 19, 2009 at 3:48 pm #308445Your 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.orgtoddman Friendtoddman
- Join date:
- October 2006
- Posts:
- 118
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 33
- Thanked:
- 8 times in 1 posts
June 19, 2009 at 4:29 pm #308448Not 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 ModeratorJA Developer
- Join date:
- September 2014
- Posts:
- 9914
- Downloads:
- 207
- Uploads:
- 152
- Thanks:
- 1789
- Thanked:
- 2008 times in 1700 posts
June 24, 2009 at 7:19 am #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 Friendtoddman
- Join date:
- October 2006
- Posts:
- 118
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 33
- Thanked:
- 8 times in 1 posts
June 24, 2009 at 10:53 pm #309000JA 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 Friendmayke
- Join date:
- May 2008
- Posts:
- 281
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 55
- Thanked:
- 13 times in 1 posts
June 26, 2009 at 9:15 pm #309191Good news,
Is this solution upgrading from joomla 1.5.7 to 1.5.11 will work for teline II too?
Thanks.Anonymous ModeratorJA Developer
- Join date:
- September 2014
- Posts:
- 9914
- Downloads:
- 207
- Uploads:
- 152
- Thanks:
- 1789
- Thanked:
- 2008 times in 1700 posts
July 1, 2009 at 7:33 am #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. -
AuthorPosts
This topic contains 11 replies, has 4 voices, and was last updated by mayke 15 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum