0
Welcome Guest! Login
0 items Join Now

Problem with Joomla 2.5 template migration

    • newbietoo's Avatar
    • newbietoo
    • Jr. Rocketeer
    • Posts: 23
    • Thanks: 0

    Problem with Joomla 2.5 template migration

    Posted 13 years 2 weeks ago
    • Hi,

      I originally posted this in the template forum (HiveMind) but got no response; apologies then if I'm in the wrong place, but I need a resolution...

      I have just upgraded a site to from HiveMind 1.5 to 2.5 using jupgrade and was frankly quite impressed with how it went. There were a few issues, most of which I have fixed, however I still have two problems:

      1) Search Box: There are two titles displaying (neither is the module title) and I can't see where to suppress the spurious one.

      2) Print and Email icons: I did have text links in the 1.5 version, but can't recall how I did that

      I'd appreciate any assistance:

      2.5 Site: www.traxor.com/jupgrade/index.php/how

      1.5 Site: www.traxor.com/Concepts/relate.html

      Thanks
      Patrick
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: Problem with Joomla 2.5 template migration

    Posted 13 years 2 weeks ago
    • Hi,

      1. I think that something went wrong with search module. Can you tr to find the following folder:
      /your_template/html/mod_search (or similar to that)

      In that folder you should see some php files. In one of them try to find the following code and remove it:
      <label for="mod-search-searchword">Search...</label>

      2. email icons should be configured in the article config screen
    • Check my services at: Mihha-Vision
    • newbietoo's Avatar
    • newbietoo
    • Jr. Rocketeer
    • Posts: 23
    • Thanks: 0

    Re: Problem with Joomla 2.5 template migration

    Posted 13 years 2 weeks ago
    • Hi Igor,

      Thank you for your help...

      1) unfortunately there is no folder referring to 'search' in any of the template subfolders. Nevertheless, to be sure, I looked in all the php files in all folders that were there and none of them had any mention of search. Is there anywhere else I could look?

      2) I tried configuring the icons in the Article config page, but it didn't work. However, I also tried the same thing in the J1.5 version of the site and it worked!

      Post scipt: (2) did work when I changed it in Category options; so we're making progress :)

      Patrick
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: Problem with Joomla 2.5 template migration

    Posted 13 years 2 weeks ago
    • Try to find the same search in /modules/ folder
    • Check my services at: Mihha-Vision
    • newbietoo's Avatar
    • newbietoo
    • Jr. Rocketeer
    • Posts: 23
    • Thanks: 0

    Re: Problem with Joomla 2.5 template migration

    Posted 13 years 2 weeks ago
    • Thanks Igor,

      Yes, I found it in the main page template (index.php)

      <!--
      <?php if ($this->countModules('search')) : ?>
      <div id="mod-search">
      <jdoc:include type="modules" name="search" style="xhtml" />
      -->

      I tried removing the bit you suggested (I am not a coder) and editing or commenting out different lines; I get various effects, but none that I want. BTW, this is exactly the same code as in the J1.5 template which works fine, so seems to me there is something else at play here

      Patrick
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: Problem with Joomla 2.5 template migration

    Posted 13 years 2 weeks ago
    • Well, I suggested to edit mod_search source files in the /modules folder and not template index.php file
    • Check my services at: Mihha-Vision
    • newbietoo's Avatar
    • newbietoo
    • Jr. Rocketeer
    • Posts: 23
    • Thanks: 0

    Re: Problem with Joomla 2.5 template migration

    Posted 13 years 2 weeks ago
    • OK, I didn't realise the the same thing would be in a few places. Anyway; this is modules/mod_search/mod_search.php. But I don't see the specific string you mentioned


      <!-- <?php
      /**
      * @package Joomla.Site
      * @subpackage mod_search
      * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
      * @license GNU General Public License version 2 or later; see LICENSE.txt
      */

      // no direct access
      defined('_JEXEC') or die;

      // Include the syndicate functions only once
      require_once dirname(__FILE__).'/helper.php';

      $lang = JFactory::getLanguage();

      if ($params->get('opensearch', 1)) {
      $doc = JFactory::getDocument();
      $app = JFactory::getApplication();

      $ostitle = $params->get('opensearch_title', JText::_('MOD_SEARCH_SEARCHBUTTON_TEXT').' '.$app->getCfg('sitename'));
      $doc->addHeadLink(JURI::getInstance()->toString(array('scheme', 'host', 'port')).JRoute::_('&option=com_search&format=opensearch'), 'search', 'rel', array('title' => htmlspecialchars($ostitle), 'type' => 'application/opensearchdescription+xml'));
      }

      $upper_limit = $lang->getUpperLimitSearchWord();

      $button = $params->get('button', '');
      $imagebutton = $params->get('imagebutton', '');
      $button_pos = $params->get('button_pos', 'left');
      $button_text = htmlspecialchars($params->get('button_text', JText::_('MOD_SEARCH_SEARCHBUTTON_TEXT')));
      $width = intval($params->get('width', 20));
      $maxlength = $upper_limit;
      $text = htmlspecialchars($params->get('text', JText::_('MOD_SEARCH_SEARCHBOX_TEXT')));
      $label = htmlspecialchars($params->get('label', JText::_('MOD_SEARCH_LABEL_TEXT')));
      $set_Itemid = intval($params->get('set_itemid', 0));
      $moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx'));

      if ($imagebutton) {
      $img = modSearchHelper::getSearchImage($button_text);
      }
      $mitemid = $set_Itemid > 0 ? $set_Itemid : JRequest::getInt('Itemid');
      require JModuleHelper::getLayoutPath('mod_search', $params->get('layout', 'default'));
      -->
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: Problem with Joomla 2.5 template migration

    Posted 13 years 2 weeks ago
    • Pates the whole source code of the module here. Put it inside tag[code] tag
    • Check my services at: Mihha-Vision
    • newbietoo's Avatar
    • newbietoo
    • Jr. Rocketeer
    • Posts: 23
    • Thanks: 0

    Re: Problem with Joomla 2.5 template migration

    Posted 13 years 2 weeks ago
    • Is this what you mean?

      <?php /** * @package Joomla.Site * @subpackage mod_search * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ // no direct access defined('_JEXEC') or die; // Include the syndicate functions only once require_once dirname(__FILE__).'/helper.php'; $lang = JFactory::getLanguage(); if ($params->get('opensearch', 1)) { $doc = JFactory::getDocument(); $app = JFactory::getApplication(); $ostitle = $params->get('opensearch_title', JText::_('MOD_SEARCH_SEARCHBUTTON_TEXT').' '.$app->getCfg('sitename')); $doc->addHeadLink(JURI::getInstance()->toString(array('scheme', 'host', 'port')).JRoute::_('&option=com_search&format=opensearch'), 'search', 'rel', array('title' => htmlspecialchars($ostitle), 'type' => 'application/opensearchdescription+xml')); } $upper_limit = $lang->getUpperLimitSearchWord(); $button = $params->get('button', ''); $imagebutton = $params->get('imagebutton', ''); $button_pos = $params->get('button_pos', 'left'); $button_text = htmlspecialchars($params->get('button_text', JText::_('MOD_SEARCH_SEARCHBUTTON_TEXT'))); $width = intval($params->get('width', 20)); $maxlength = $upper_limit; $text = htmlspecialchars($params->get('text', JText::_('MOD_SEARCH_SEARCHBOX_TEXT'))); $label = htmlspecialchars($params->get('label', JText::_('MOD_SEARCH_LABEL_TEXT'))); $set_Itemid = intval($params->get('set_itemid', 0)); $moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx')); if ($imagebutton) { $img = modSearchHelper::getSearchImage($button_text); } $mitemid = $set_Itemid > 0 ? $set_Itemid : JRequest::getInt('Itemid'); require JModuleHelper::getLayoutPath('mod_search', $params->get('layout', 'default')); [code][code]
      <?php
      /**
      * @package Joomla.Site
      * @subpackage mod_search
      * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
      * @license GNU General Public License version 2 or later; see LICENSE.txt
      */

      // no direct access
      defined('_JEXEC') or die;

      // Include the syndicate functions only once
      require_once dirname(__FILE__).'/helper.php';

      $lang = JFactory::getLanguage();

      if ($params->get('opensearch', 1)) {
      $doc = JFactory::getDocument();
      $app = JFactory::getApplication();

      $ostitle = $params->get('opensearch_title', JText::_('MOD_SEARCH_SEARCHBUTTON_TEXT').' '.$app->getCfg('sitename'));
      $doc->addHeadLink(JURI::getInstance()->toString(array('scheme', 'host', 'port')).JRoute::_('&option=com_search&format=opensearch'), 'search', 'rel', array('title' => htmlspecialchars($ostitle), 'type' => 'application/opensearchdescription+xml'));
      }

      $upper_limit = $lang->getUpperLimitSearchWord();

      $button = $params->get('button', '');
      $imagebutton = $params->get('imagebutton', '');
      $button_pos = $params->get('button_pos', 'left');
      $button_text = htmlspecialchars($params->get('button_text', JText::_('MOD_SEARCH_SEARCHBUTTON_TEXT')));
      $width = intval($params->get('width', 20));
      $maxlength = $upper_limit;
      $text = htmlspecialchars($params->get('text', JText::_('MOD_SEARCH_SEARCHBOX_TEXT')));
      $label = htmlspecialchars($params->get('label', JText::_('MOD_SEARCH_LABEL_TEXT')));
      $set_Itemid = intval($params->get('set_itemid', 0));
      $moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx'));

      if ($imagebutton) {
      $img = modSearchHelper::getSearchImage($button_text);
      }
      $mitemid = $set_Itemid > 0 ? $set_Itemid : JRequest::getInt('Itemid');
      require JModuleHelper::getLayoutPath('mod_search', $params->get('layout', 'default'));
      [code]
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: Problem with Joomla 2.5 template migration

    Posted 13 years 2 weeks ago
    • OK. This is getting nowhere. Please PM me login details and I will take a look
    • Check my services at: Mihha-Vision

Time to create page: 0.299 seconds