-
AuthorPosts
-
hotsd101 Friend
hotsd101
- Join date:
- March 2015
- Posts:
- 95
- Downloads:
- 2
- Uploads:
- 4
- Thanked:
- 8 times in 1 posts
October 30, 2012 at 3:51 am #181808how and where can it be change baseurl and tplurl.
i relocated template name and location from normal position /templates/ja_lens/ to other location and name.
please asistence. thanks you
hotsd101 Friendhotsd101
- Join date:
- March 2015
- Posts:
- 95
- Downloads:
- 2
- Uploads:
- 4
- Thanked:
- 8 times in 1 posts
October 30, 2012 at 11:10 pm #471495Anyone can advise ?
HeR0 FriendHeR0
- Join date:
- August 2011
- Posts:
- 3626
- Downloads:
- 0
- Uploads:
- 61
- Thanks:
- 33
- Thanked:
- 588 times in 549 posts
October 31, 2012 at 5:00 am #471529Hi Hotsd,
You can change name of template but do not should change path of this folder. It is structure which is defined by Joomla framework.
Regards,
<em>@hotsd101 344252 wrote:</em><blockquote>Anyone can advise ?</blockquote>hotsd101 Friendhotsd101
- Join date:
- March 2015
- Posts:
- 95
- Downloads:
- 2
- Uploads:
- 4
- Thanked:
- 8 times in 1 posts
October 31, 2012 at 12:36 pm #471567i not think you understand. i must change template name so much change this.
where can i define baseurl and tplurl so template can understand new path ?
HeR0 FriendHeR0
- Join date:
- August 2011
- Posts:
- 3626
- Downloads:
- 0
- Uploads:
- 61
- Thanks:
- 33
- Thanked:
- 588 times in 549 posts
November 1, 2012 at 4:21 am #471635<em>@hotsd101 344346 wrote:</em><blockquote>i not think you understand. i must change template name so much change this.
where can i define baseurl and tplurl so template can understand new path ?</blockquote> I can understand your idea. But as normal, you should only change name in template setting. If you want to change all, you must get a developer for done that. Hope you understand us.
Regards,
hotsd101 Friendhotsd101
- Join date:
- March 2015
- Posts:
- 95
- Downloads:
- 2
- Uploads:
- 4
- Thanked:
- 8 times in 1 posts
November 2, 2012 at 6:51 am #471739ok ples let me ask simple question.
which file in template
1. define baseurl
2. define tplurl
this not hard question, i can do rest of develop
hotsd101 Friendhotsd101
- Join date:
- March 2015
- Posts:
- 95
- Downloads:
- 2
- Uploads:
- 4
- Thanked:
- 8 times in 1 posts
November 5, 2012 at 6:22 am #471899anyone have this answer ??
hotsd101 Friendhotsd101
- Join date:
- March 2015
- Posts:
- 95
- Downloads:
- 2
- Uploads:
- 4
- Thanked:
- 8 times in 1 posts
November 7, 2012 at 12:57 pm #472164What is happen here ?
where is support team. i ned help on the this and waiting very long time.
please assistance
<em>@hotsd101 344594 wrote:</em><blockquote>ok ples let me ask simple question.
which file in template
1. define baseurl
2. define tplurl
this not hard question, i can do rest of develop</blockquote>
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
November 8, 2012 at 4:31 am #472240Here you are
+ baseurl
<blockquote>open libraries/joomla/document/html/html.php file</blockquote>
protected function _fetchTemplate($params = array())
{
// Check
$directory = isset($params['directory']) ? $params['directory'] : 'templates';
$filter = JFilterInput::getInstance();
$template = $filter->clean($params['template'], 'cmd');
$file = $filter->clean($params['file'], 'cmd');if (!file_exists($directory . '/' . $template . '/' . $file))
{
$template = 'system';
}// Load the language file for the template
$lang = JFactory::getLanguage();
// 1.5 or core then 1.6$lang->load('tpl_' . $template, JPATH_BASE, null, false, false)
|| $lang->load('tpl_' . $template, $directory . '/' . $template, null, false, false)
|| $lang->load('tpl_' . $template, JPATH_BASE, $lang->getDefault(), false, false)
|| $lang->load('tpl_' . $template, $directory . '/' . $template, $lang->getDefault(), false, false);// Assign the variables
$this->template = $template;
$this->baseurl = JURI::base(true);
$this->params = isset($params['params']) ? $params['params'] : new JRegistry;// Load
$this->_template = $this->_loadTemplate($directory . '/' . $template, $file);return $this;
}
+tplurl
<blockquote>templates/ja_lens/index.php</blockquote>
var JADef = {
siteurl: '<?php echo $this->baseurl; ?>/',
tplurl: '<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/',
fmsg: '<?php echo JText::_('TPL_FINISHED_MESSAGE'); ?>',
ltext: '<?php echo JText::_('TPL_LOADING_MESSAGE'); ?>'
};hotsd101 Friendhotsd101
- Join date:
- March 2015
- Posts:
- 95
- Downloads:
- 2
- Uploads:
- 4
- Thanked:
- 8 times in 1 posts
November 8, 2012 at 11:24 am #472280Mr ninja thanks u very much.
Can u also assist please example.
If I rename ja_lens folder to ja_lensv25 its not work as it should.
So please Mr ninja can you assist what must be change when rename this folderThanks you
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
November 9, 2012 at 4:36 am #472368<em>@hotsd101 345336 wrote:</em><blockquote>If I rename ja_lens folder to ja_lensv25 its not work as it should. </blockquote>
I made a copy of your package and did change all files, folders from JA_Lens to JA_Lensv25 to install again. You can get the package from the file attached.
Regards,
hotsd101 Friendhotsd101
- Join date:
- March 2015
- Posts:
- 95
- Downloads:
- 2
- Uploads:
- 4
- Thanked:
- 8 times in 1 posts
November 9, 2012 at 9:40 am #472388thanks you mr ninja. you are very gentleman.
for future so i can know to adjust like you did, can you advise which file need to change to adjust path like you did.
thanks you again
<em>@Ninja Lead 345453 wrote:</em><blockquote>I made a copy of your package and did change all files, folders from JA_Lens to JA_Lensv25 to install again. You can get the package from the file attached.
Regards,</blockquote>
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
November 10, 2012 at 9:15 am #472479AuthorPostsViewing 13 posts - 1 through 13 (of 13 total)This topic contains 13 replies, has 3 voices, and was last updated by Ninja Lead 12 years, 2 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
baseurl and tplurl
Viewing 13 posts - 1 through 13 (of 13 total)