Discussions enhancement

12 years 5 months ago - 12 years 2 months ago #1 by geoffc
The discussions component by Codingfish has been enhanced by Macrotone to add a few extra enhancements in the backend. These enhancements include adding the ability to delete posts in the back end and also to improve the menu options so they are options from the main menu item rather than having to navigate through the Dashboard itself. The enhancements have been submitted to Achim for his consideration is a later release. I can give no guarantees as to whether he will include them.

Release 1.4 is now available (28th Dec 2011) but Achim has not included my suggested changes. For those interested I enclose the details of the change required for 1.4 below:

1. Correct register redirection. (1.3 bug still present in 1.4)
In the files

./components/com_discussions/views/category/tmpl/default.php

and

./components/com_discussions/views/thread/tmpl/default.php

there are these 2 lines:

$registerURL = "index.php?option=com_users&view=register";
$loginURL = "index.php?option=com_users&view=login";

Change the word ‘register’ to ‘registration’.

2. Add menu items in administrator component menu
There are several parts to this change. The configuration option was added in release 1.4.

First modify the language files in the admin/language directory. I have added the following lines to the en-GB.com_discussions.sys.ini file:

# Menu titles
COFI_MENU_DASHBOARD="Dashboard"
COFI_MENU_FORUMS="Forums"
COFI_MENU_USERS="Users"
COFI_MENU_POSTS="Posts"
COFI_MENU_CONFIG=”Configuration”

For the en-DE.com_discussions.sys.ini the German equivalent was added:
(I believe the German is correct but can not guarantee it.)

# Menu titles
COFI_MENU_DASHBOARD="Armaturenbrett"
COFI_MENU_FORUMS="Forum"
COFI_MENU_USERS="User"
COFI_MENU_POSTS="Beiträge"
COFI_MENU_CONFIG=”Konfiguration”

Now we need to create the small icons for the menu bar. Using the larger icons already available in the images/dashboard folder we resize them (using PAINT.NET or any other suitable tool) to be 16x16 pixels and place them in the images/sys folder naming them posts-16.png, forums-16.png, users-16.png and configuration-16.png respectively.

Now we have to modify the discussions.xml file by adding the following submenu lines in the administrator part of the file under the existing menu item:

Change braces to chevrons around menu and submenu items in the text below when inserting in the xml manifest file.

[submenu]
[menu view="Dashboard" alt="Discussions/Discussions" img="components/com_discussions/images/system/icon-16-discussions.png" link="option=com_discussions"]COFI_MENU_DASHBOARD[/menu]
[menu view="Forums" alt="Discussions/Forums" img="components/com_discussions/images/system/forums-16.png" link="option=com_discussions&view=forums"]COFI_MENU_FORUMS[/menu]
[menu view="Posts" alt="Discussions/Posts" img="components/com_discussions/images/system/posts-16.png" link="option=com_discussions&view=posts"]COFI_MENU_POSTS[/menu]
[menu view="Users" alt="Discussions/Users" img="components/com_discussions/images/system/users-16.png" link="option=com_discussions&view=users"]COFI_MENU_USERS[/menu]
[menu view="Configuration" alt="Discussions/Configuration" img="components/com_discussions/images/system/configuration-16.png" link="option=com_discussions&view=configuration"]COFI_MENU_CONFIG[/menu]
[/submenu]

Edited by geoffc - 24.01.2012 13:42

Regards
Geoff

Please Log in or Create an account to join the conversation.

12 years 2 months ago #2 by geoffc
Replied by geoffc on topic Re: Discussions enhancement
Previous post updated with changes for Release 1.4 of Discussions.

Regards
Geoff

Please Log in or Create an account to join the conversation.

Time to create page: 0.137 seconds
Go To Top

Joomla! Debug Console

Session

Profile Information

Memory Usage

Database Queries