Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • hotsd101 Friend
    #181808

    how 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 Friend
    #471495

    Anyone can advise ?

    HeR0 Friend
    #471529

    Hi 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 Friend
    #471567

    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 ?

    HeR0 Friend
    #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 Friend
    #471739

    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

    hotsd101 Friend
    #471899

    anyone have this answer ??

    hotsd101 Friend
    #472164

    What 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 Moderator
    #472240

    Here 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 Friend
    #472280

    Mr 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 folder

    Thanks you

    Ninja Lead Moderator
    #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,


    1. ja_lensv25.zip
    hotsd101 Friend
    #472388

    thanks 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 Moderator
    #472479

    Look at my screenshot to know more what i changed.


    1. JA_LenV25
Viewing 13 posts - 1 through 13 (of 13 total)

This topic contains 13 replies, has 3 voices, and was last updated by  Ninja Lead 11 years, 10 months ago.

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