Categories hierarchy Mod & Extra permission mod

This mod will make it posible to specify permissions to all "special pages, like MEMBERLIST, PROFILE VIEW and so on.
The permissions support USERGROUP, making this tool very powerfull

Moderator: Moderators

Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

Categories hierarchy Mod & Extra permission mod

Postby william91 on Sat 27. Sep, 2003 07:06

Hi,
I have install Categories hierarchy Mod
Categories hierarchy Mod change some code in admin/admin_forumauth.php, so i can't find the code below:
Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
admin/admin_forumauth.php

#
#-----[ FIND ]------------------------------------------
#
//
// Get required information, either all forums if
// no id was specified or just the requsted if it
// was
//
$sql = "SELECT f.*
      FROM " . FORUMS_TABLE . " f, " . CATEGORIES_TABLE . " c
      WHERE c.cat_id = f.cat_id   $forum_sql
   ORDER BY c.cat_order ASC, f.forum_order ASC";
if ( !($result = $db->sql_query($sql)) )
{
   message_die(GENERAL_ERROR, "Couldn't obtain forum list", "", __LINE__, __FILE__, $sql);
}

$forum_rows = $db->sql_fetchrowset($result);
$db->sql_freeresult($result);

#
#-----[ REPLACE WITH ]------------------------------------------
#
//
// Get required information, either all forums if
// no id was specified or just the requsted if it
// was
//
$sql = "SELECT f.*
   FROM " . FORUMS_TABLE . " f
   WHERE f.cat_id=0
   $forum_sql
   ORDER BY f.forum_name ASC";
if ( !($result = $db->sql_query($sql)) )
{
   message_die(GENERAL_ERROR, "Couldn't obtain special pages list", "", __LINE__, __FILE__, $sql);
}
$forum_rows = $db->sql_fetchrowset($result);
$db->sql_freeresult($result);

$sql = "SELECT f.*
   FROM " . FORUMS_TABLE . " f, " . CATEGORIES_TABLE . " c
   WHERE c.cat_id = f.cat_id
   $forum_sql
   ORDER BY c.cat_order ASC, f.forum_order ASC";
if ( !($result = $db->sql_query($sql)) )
{
   message_die(GENERAL_ERROR, "Couldn't obtain forum list", "", __LINE__, __FILE__, $sql);
}
$forum_rows = array_merge($forum_rows,$db->sql_fetchrowset($result));
$db->sql_freeresult($result);


How can i do? i only can find:
Code: Select all
//
// Get required information, either all forums if
// no id was specified or just the requsted if it
// was
//
//-- mod : categories hierarchy --------------------------------------------------------------------
//-- delete
// $sql = "SELECT f.*
//   FROM " . FORUMS_TABLE . " f, " . CATEGORIES_TABLE . " c
//   WHERE c.cat_id = f.cat_id
//   $forum_sql
//   ORDER BY c.cat_order ASC, f.forum_order ASC";
// if ( !($result = $db->sql_query($sql)) )
// {
//   message_die(GENERAL_ERROR, "Couldn't obtain forum list", "", __LINE__, __FILE__, $sql);
// }
//
// $forum_rows = $db->sql_fetchrowset($result);
// $db->sql_freeresult($result);
//-- fin mod : categories hierarchy ----------------------------------------------------------------

Please help me :cry:
Thanks

~william91
william91
Poster
Poster
 
Posts: 6
Joined: Thu 29. May, 2003 15:35

Postby william91 on Fri 03. Oct, 2003 13:30

Hi,
then i try to install it...but follow, it have
Code: Select all
Couldn't obtain special pages list

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE forum_id = -101 ORDER BY f.forum_name ASC' at line 4

SELECT f.* FROM phpbb_forums f WHERE f.cat_id=0 WHERE forum_id = -101 ORDER BY f.forum_name ASC

Line : 209
File : d:\appserv\www\phpbb\admin\admin_forumauth.php


And.......I think this problem is categories hierarchy can not work with this mod.......

Please Help me..... :cry:

bye
~william91
william91
Poster
Poster
 
Posts: 6
Joined: Thu 29. May, 2003 15:35

Postby Chavez on Tue 10. Feb, 2004 20:29

HM everybody has solve this problem? I've got it too.
Chavez
Poster
Poster
 
Posts: 7
Joined: Fri 06. Feb, 2004 20:12

Postby TERMINATRIX on Mon 23. Feb, 2004 14:38

Oh, YES !! Waiting for a solution about this myself - :roll:
TERMINATRIX
Poster
Poster
 
Posts: 3
Joined: Thu 18. Dec, 2003 19:31

Postby sitherious on Thu 11. Mar, 2004 02:52

same problem here :(
sitherious
Poster
Poster
 
Posts: 12
Joined: Fri 16. Jan, 2004 10:15

Postby sitherious on Mon 15. Mar, 2004 14:09

will this ever get fixed?
sitherious
Poster
Poster
 
Posts: 12
Joined: Fri 16. Jan, 2004 10:15

Postby darkrick on Mon 12. Apr, 2004 15:21

well, seeing that it was originally posted in september 2003, i'm going to go with "no".
darkrick
Poster
Poster
 
Posts: 1
Joined: Mon 12. Apr, 2004 10:19

Postby Kinfule on Mon 13. Dec, 2004 16:24

i hope someone can fix this
Kinfule
Poster
Poster
 
Posts: 1
Joined: Sun 12. Dec, 2004 05:33

Next

Return to Extra permission [2.0.6/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron