Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • skylabz0rz Friend
    #177658

    I have JA Voice 1.7 installed and when I try to search for a voice I get a 404 error.

    I have done some modifications to the component as I am using it for a user based rating system, meaning instead of an idea the users provide a business then others can vote for it.

    Some of other mods I am using are as follows:

    • Rockettheme – Mootools, Gantry, Rok components and such.
    • Login Radius module and plugin for taking care of the log ins on the site.

    The specific error that is returned with the 404 is:
    404 – Category not found

    I was looking for the Category assignments but can’t seem to find it.


    1. Capture1
    MoonSailor Friend
    #455830

    Hi skylabz0rz!

    Because you have edited file “/components/com_javoice/views/items/tmpl/default_forums.php” and you removed code

    <input type="hidden" id="forums-<?php echo $this->type_id?>" value="<?php echo JRequest::getInt('forums')?>"/>

    so its error :((

    Now, when i add (line 77 in file), it is running normal.

    Please check again.

    Regards.

    skylabz0rz Friend
    #455941

    Thanks for the reply.

    I added the code back in and now the search button does nothing. Hm.

    Also, on my file, the code you gave me resides at line 16, not 77. My entire default_forums.php file is only 42 lines.

    <?php
    /**
    * ------------------------------------------------------------------------
    * JA Voice component for Joomla 1.7
    * ------------------------------------------------------------------------
    * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
    * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html
    * Author: J.O.O.M Solutions Co., Ltd
    * Websites: http://www.joomlart.com - http://www.joomlancers.com
    * ------------------------------------------------------------------------
    */
    defined( '_JEXEC' ) or die( 'Restricted access' );
    global $javconfig;
    ?>
    <?php if(!$javconfig["systems"]->get("is_enable_tagging", 0) || !JRequest::getVar("tagid",0)): ?>
    <input type="hidden" id="forums-<?php echo $this->type_id?>" value="<?php echo JRequest::getInt('forums')?>"/>
    <h3><span>Year:</span></h3>
    <ul class="jav-menu">
    <?php
    $Itemid = JRequest::getInt('Itemid');
    $list_forums = $this->list_forums;
    $status = '';
    if(JRequest::getInt('status')) $status = '&status='.JRequest::getInt('status');
    if($list_forums){
    foreach ($list_forums as $forum){
    $link = JURI::base().'index.php?option=com_javoice&view=items&layout=items&tmpl=component&forums='.$forum->id.'&type='.$this->type_id.'&Itemid='.$Itemid.$status;
    ?>
    <li>
    <a <?php if(JRequest::getInt('forums')==$forum->id){?>class="current"<?php }?> onclick="jav_clean_search(<?php echo $this->type_id?>,<?php echo $forum->id?>); jav_ajax_load('<?php echo $link?>', <?php echo $this->type_id?>); " href="javascript:void(0)">
    <?php echo $forum->title?>
    <small>(<?php echo $forum->total_items?>)</small>
    </a>
    </li>
    <?php }
    }
    ?>
    </ul>
    <?php endif; ?>

    MoonSailor Friend
    #455962

    Hi skylabz0rz!

    When i check, content of file is:

    <?php

    /**

    * ------------------------------------------------------------------------

    * JA Voice component for Joomla 1.7

    * ------------------------------------------------------------------------

    * Copyright (C) 2004-2011 J.O.O.M Solutions Co., Ltd. All Rights Reserved.

    * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html

    * Author: J.O.O.M Solutions Co., Ltd

    * Websites: http://www.joomlart.com - http://www.joomlancers.com

    * ------------------------------------------------------------------------

    defined( '_JEXEC' ) or die( 'Restricted access' );

    global $javconfig;

    ?>

    <?php if(!$javconfig["systems"]->get("is_enable_tagging", 0) || !JRequest::getVar("tagid",0)): ?>

    <input type="hidden" id="forums-<?php echo $this->type_id?>" value="<?php echo JRequest::getInt('forums')?>"/>

    <h3><span>Year:</span></h3>

    <ul class="jav-menu">

    <?php

    $Itemid = JRequest::getInt('Itemid');

    $list_forums = $this->list_forums;

    $status = '';

    if(JRequest::getInt('status')) $status = '&status='.JRequest::getInt('status');

    if($list_forums){

    foreach ($list_forums as $forum){

    $link = JURI::base().'index.php?option=com_javoice&view=items&layout=items&tmpl=component&forums='.$forum->id.'&type='.$this->type_id.'&Itemid='.$Itemid.$status;

    ?>

    <li>

    <a <?php if(JRequest::getInt('forums')==$forum->id){?>class="current"<?php }?> onclick="jav_clean_search(<?php echo $this->type_id?>,<?php echo $forum->id?>); jav_ajax_load('<?php echo $link?>', <?php echo $this->type_id?>); " href="javascript:void(0)">

    <?php echo $forum->title?>

    <small>(<?php echo $forum->total_items?>)</small>

    </a>

    </li>

    <?php }

    }

    ?>

    </ul>

    <?php endif; */?>

    <a href="/index.php/login--logout" target="_self" title="Login or Logout">

    <img src="http://treadyawards.com/images/idcard.jpg" /><br />

    Click the link above to log into the web site with your favorite social networking site or create a profile on our web site!

    </a>

    If you want to remove column forum from position right ( as shown in attached image)

    , please add

    <input type="hidden" id="forums-<?php echo $this->type_id?>" value="<?php echo JRequest::getInt('forums')?>"/>

    Regards.


    1. 6-5-2012-8-58-36-AM
    skylabz0rz Friend
    #457283

    Thanks for getting back to me. Sorry I have been out for the past few days.

    So you want me to add the code:

    <input type="hidden" id="forums-<?php echo $this->type_id?>" value="<?php echo JRequest::getInt('forums')?>"/>

    I already see that code on line 16?

    My ultimate goal is to remove that column and have the search functionality restored 🙂

    Thanks!

    MoonSailor Friend
    #457303

    Hi skylabz0rz,

    Now, the search is running normal.

    If you do have any other problems, pls contact again 🙂

    Thanks 🙂

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

This topic contains 6 replies, has 2 voices, and was last updated by  MoonSailor 12 years, 5 months ago.

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