- Posts: 125
- Thank you received: 0
Kunena 7.0.8 Released
The Kunena team has announce the arrival of Kunena 7.0.8 [K 7.0.8] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x./6.1.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0
This category contains miscellaneous, uncategorised user contributions, (templates, modules, plugins and hacks) relating to older versions of Kunena that are no longer supported.
This category may also contain a few topics relating to K 1.6 that may have been moved here possibly by mistake.
The topics in this category are for historical interest only. Owing to the structural differences between K 1.6 and K 1.7, these ideas in these topics will not work with later versions and, for that reason, the topics are locked.
This category may also contain a few topics relating to K 1.6 that may have been moved here possibly by mistake.
The topics in this category are for historical interest only. Owing to the structural differences between K 1.6 and K 1.7, these ideas in these topics will not work with later versions and, for that reason, the topics are locked.
Question Joomla ACL Hack for user groups + Kunena Inherits the groups without any modification!
17 years 2 months ago - 17 years 2 months ago #20401
by JBHawaii
Mahalo,
JBHawaii
Joomla ACL Hack for user groups + Kunena Inherits the groups without any modification! was created by JBHawaii
For those who do not want to hack kunena you can try this... If you want more control over user access to your forums. It works with all versions of kunena.
Note* This not a kunena modification, but I post it here because kunena benefits from this hack.
follow the instructions on this page: www.jeremiahstoddard.com/how-to/5-joomla/4-hacking-joomlas-acl and over here...
docs.joomla.org/Custom_user_groups
Here's a sample of my site...
Joomla 1.5.11 User Manager.
Kunena 1.0.10 and 1.5.3 both inherit the groups.
After you have added the user groups you need to go to the joomla user editor, find your username, make like like your going to change your user group and hit save.
when you finish you can remove the script from view.html.php if you like, but if you add another group you'll have to re-add the script again.
Final Note* I have used this hack since Joomla 1.5.2 so it does work from 1.5.2 -> 1.5.11. I have also used this from Kunena 1.0.8 -> 1.5.3 and it still works fine.
Note* This not a kunena modification, but I post it here because kunena benefits from this hack.
follow the instructions on this page: www.jeremiahstoddard.com/how-to/5-joomla/4-hacking-joomlas-acl and over here...
docs.joomla.org/Custom_user_groups
Here's a sample of my site...
Joomla 1.5.11 User Manager.
Kunena 1.0.10 and 1.5.3 both inherit the groups.
After you have added the user groups you need to go to the joomla user editor, find your username, make like like your going to change your user group and hit save.
when you finish you can remove the script from view.html.php if you like, but if you add another group you'll have to re-add the script again.
Final Note* I have used this hack since Joomla 1.5.2 so it does work from 1.5.2 -> 1.5.11. I have also used this from Kunena 1.0.8 -> 1.5.3 and it still works fine.
Mahalo,
JBHawaii
Last edit: 17 years 2 months ago by JBHawaii.
Please Log in or Create an account to join the conversation.
17 years 2 months ago - 17 years 2 months ago #20407
by 810
Replied by 810 on topic Re:Joomla ACL Hack for user groups + Kunena Inherits the groups without any modifation!
i don't have Open "/administrator/components/com_users/user/view.html.php"
you mean. administrator/components/com_users/views/user/view.html.php .
and don't you need the db-username, or just only the db name and password
you mean. administrator/components/com_users/views/user/view.html.php .
and don't you need the db-username, or just only the db name and password
Last edit: 17 years 2 months ago by 810.
Please Log in or Create an account to join the conversation.
17 years 2 months ago #20409
by JBHawaii
Mahalo,
JBHawaii
Replied by JBHawaii on topic Re:Joomla ACL Hack for user groups + Kunena Inherits the groups without any modifation!
yeah sry, I changed it now.
Mahalo,
JBHawaii
Please Log in or Create an account to join the conversation.
17 years 2 months ago #20412
by 810
Replied by 810 on topic Re:Joomla ACL Hack for user groups + Kunena Inherits the groups without any modifation!
when i do this:
i get in the backend Could not connect: error, when clicking on a user
Code:
<?php
mysql_connect("localhost", "test2", "") or
die("Could not connect: " . mysql_error());
mysql_select_db("joomla15");
// 0-> parent_id in Joomla this is the value of the parent_id field of the Root record
// 1-> start the left tree at 1
rebuild_tree ( 0 , 1);
function rebuild_tree($parent_id, $left) {
// the right value of this node is the left value + 1
$right = $left+1;
// get all children of this node
$result = mysql_query('SELECT id FROM jos_core_acl_aro_groups '.
'WHERE parent_id="'.$parent_id.'";');
while ($row = mysql_fetch_array($result)) {
// recursive execution of this function for each
// child of this node
// $right is the current right value, which is
// incremented by the rebuild_tree function
$right = rebuild_tree($row['id'], $right);
}
// we've got the left value, and now that we've processed
// the children of this node we also know the right value
mysql_query('UPDATE jos_core_acl_aro_groups SET lft='.$left.', rgt='.
$right.' WHERE id="'.$parent_id.'";');
// return the right value of this node + 1
return $right+1;
}
?>
Please Log in or Create an account to join the conversation.
17 years 2 months ago #20414
by JBHawaii
Mahalo,
JBHawaii
Replied by JBHawaii on topic Re:Joomla ACL Hack for user groups + Kunena Inherits the groups without any modifation!
@810 this code must be the first thing in the file "view.html.php" before anything else!
also don't you have pw set for database?
also don't you have pw set for database?
Mahalo,
JBHawaii
Please Log in or Create an account to join the conversation.
17 years 2 months ago #20415
by 810
Replied by 810 on topic Re:Joomla ACL Hack for user groups + Kunena Inherits the groups without any modifation!
yes i have paste the code before anything else.
i'm testing this on jsas. localhost. without any passwords on my databases
i'm testing this on jsas. localhost. without any passwords on my databases
Please Log in or Create an account to join the conversation.
Time to create page: 0.210 seconds