By L'Eclaireur SARL on Tuesday, 29 November 2016
Posted in General Issues
Likes 0
Views 470
Votes 0
Hi,

I have 2 questions about categories:

1 - I use easydiscuss search module with post button.
I am on "forum psycho" page and I click on post button. And I don't stay in "forum psycho" page, I go on "forum ape" page:
URL are: /forum-ape/ask otherwise forum-psycho/ask. Do you know why ?

2 - In wich file is created the list categories (select) ?

Thank's
Hello Virginie,

Kindly please find my response to your inquiries below:


1 - I use easydiscuss search module with post button.
I am on "forum psycho" page and I click on post button. And I don't stay in "forum psycho" page, I go on "forum ape" page:
URL are: /forum-ape/ask otherwise forum-psycho/ask. Do you know why ?

In order for you to be able to achieve this, you need to use the following SEO settings as shown here, http://take.ms/cFTe0


2 - In wich file is created the list categories (select) ?

This is not available on the theme files but if you need to modify the output, you could modify /administrator/components/com_easydiscuss/includes/easydiscuss.php and look at the method @populateCategories
·
Tuesday, 29 November 2016 21:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Thank's !!!

1- I haven't seen this option !

2- There is no option to say: I post in this category, so disable the others in list categories ?

Virginie
·
Tuesday, 29 November 2016 22:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Unfortunately it is not possible to do that currently Virginie but you could easily hack the theme file to detect if there is a category id in the query string, then do not display the output of the dropdown
·
Tuesday, 29 November 2016 22:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Oh yes I want hack theme file but it's not this one : /administrator/components/com_easydiscuss/includes/easydiscuss.php ?
·
Tuesday, 29 November 2016 23:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Virginie,

Kindly find my response to your inquiries below:
2- There is no option to say: I post in this category, so disable the others in list categories ?
Correct me if I'm wrong here, do you mean you want to disable some of the category to be listed when create a discussion here: http://screencast.com/t/rpFG68FijYh ?
If yes, you actually can manage the permission of the category (Categories>Select Category>Permission) just tick the group the can create a discussion in that particular category. http://screencast.com/t/tXPVFDO4N99q
If I'm wrong here, maybe you can elaborate more, maybe some screenshot might help a lot
·
Wednesday, 30 November 2016 10:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

In fact, I would like 4 different forums. Because my users are not accustomed with forums.
So I have several links to seperate each categories (as containers) , and when an user post in a category, I would like show only this one (and sub-categories).

It's not a ACL question because it's not defined by group user.

I don"t know if you see what I mean ?

So which file I can change to disable categories, I hope it's a theme files to override ....

best regards
·
Wednesday, 30 November 2016 21:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Take a look at the file /components/com_easydiscuss/themes/wireframe/ask/default.php at line 50,

[gist]
<?php echo $categories; ?>
[/gist]

This is the code responsible to output the category dropdown. In your case, you can detect if there is a category id in the query string and if it does, do not display this code but instead display a hidden input with the category. Vice versa if it doesn't have a category id.
·
Wednesday, 30 November 2016 23:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

It's a little more complex

See the 2 files: I have cat1.png and when I click on "new post" in Forum APE, I would like cat2.png

I have override mod_easydiscuss_search/default.php to pass id category in url. But in /components/com_easydiscuss/themes/wireframe/ask/default.php I don't know how can I just display container and their sub-categories.

Are you an idea ?
·
Thursday, 01 December 2016 21:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Virginie,

You need to write php codes to retrieve those categories and subcategories when there is a category id in the url. I am sorry but this is beyond the scope of our support and I believe we have already provided the necessary path to the files which you need to edit but we can't be writing those codes for you

Should you require customization works, feel free to get in touch with us at https://crm.stackideas.com to request for a quote.
·
Friday, 02 December 2016 01:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

No problem, I've finished and it's work well !!!

Thank you !
·
Friday, 02 December 2016 17:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

As a gentle reminder, kindly start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiry. I will lock and mark this thread as resolved.
·
Friday, 02 December 2016 18:06
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post