By GM on Friday, 12 June 2015
Posted in General Issues
Replies 2
Likes 0
Views 756
Votes 0
Hello,

Have renewed license today and upgraded Easy discuss
Glad to come back and rejoin as Stack member - feeling awesome.

Good point is New version is fast and Have done all customization which was there in easydiscuss

However - baffling up in only 2 things where objective is - Ask a Question should always land on Category=1 and when a user clicks on it should land in - index.php?option=com_easydiscuss&view=ask&category=1&Itemid=78



a) Default URL while asking question is - http://www.mycarhelpline.com/index.php?option=com_easydiscuss&view=ask&category=0&Itemid=78
Would intend to change to
http://www.mycarhelpline.com/index.php?option=com_easydiscuss&view=ask&category=1&Itemid=78

Earlier - some changes were done in helper/router.php file - as the file been changed - unsure what all

b) In com_easydiscuss/themes/simplisctic/toolbar.php
Earlier this line was pasted in line 160
<?php if( $acl->allowed( 'add_question' ) && $system->config->get( 'layout_toolbarcreate' ) ){ ?>
<div class="discuss-tablecell discuss-searchbar--right">
<a class="btn btn-<?php echo $system->config->get('layout_ask_color'); ?> btn-ask pull-left" href="<?php echo DiscussRouter::_('index.php?option=com_easydiscuss&view=ask&category=1&Itemid=78');?>"><?php echo JText::_( 'COM_EASYDISCUSS_OR_ASK_A_QUESTION' );?></a>

</div>
<?php } ?>

Pl advise which line to change in new version so that category=1&Itemid=78 should come in while asking questio
Hello,

Attaching the Old - Files of easydiscuss 3.1
> Helper/Router.php
> themes/simplisctic/toolbar.php

as modified for changing default URL Path from
index.php?option=com_easydiscuss&view=ask&category=0&Itemid=78 or
index.php?option=com_easydiscuss&view=ask&Itemid=78

to

index.php?option=com_easydiscuss&view=ask&category=1&Itemid=78

Could you advise on changes to be done in Easydiscuss 3.2 for same in same files as looks like code been modified and am unsure on how to make the changes.
GM
·
Sunday, 14 June 2015 20:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Gagan Modi,

I am really sorry for the delay of this reply as it is a weekend for us here.

Seems like we already changed some html structure, so you have to modify on this file ->
JoomlaFolder\components\com_easydiscuss\themes\simplistic\searchbar.php

// LINE 57
<a class="btn btn-<?php echo $system->config->get('layout_ask_color'); ?> btn-ask pull-left" href="<?php echo DiscussRouter::getAskRoute( $categoryId );?>"><?php echo JText::_( 'COM_EASYDISCUSS_OR_ASK_A_QUESTION' );?></a>

// Replace with
<a class="btn btn-<?php echo $system->config->get('layout_ask_color'); ?> btn-ask pull-left" href="<?php echo DiscussRouter::_('index.php?option=com_easydiscuss&view=ask&category=1&Itemid=78');?>"><?php echo JText::_( 'COM_EASYDISCUSS_OR_ASK_A_QUESTION' );?></a>


Can you give it a try and see how it goes?
·
Sunday, 14 June 2015 22:05
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post