| Author |
Message |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Tue Jan 14, 2003 1:29 pm |
  |
Edit the following file:
includes/auth.php
Located at line 148 is this:
| Code: |
| if ( !($f_access = $db->sql_fetchrow($result)) ) |
Change it to this:
| Code: |
| if ( !($f_access = $db->$sql_fetchrow($result)) ) |
Notice, it lacked a key "$".
Fix brought to you first by Nuke Cops. |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
waiel
Nuke Soldier


Joined: Jan 14, 2003
Posts: 16
Location: USA
|
Posted:
Tue Jan 14, 2003 2:38 pm |
  |
are you sure this is a correct action cuz it didn't work with me
plus it seems that sql_fetchraw is a function not a variable |
|
|
   |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Tue Jan 14, 2003 2:41 pm |
  |
worked for me.
This is a Nuke 6.5 bug fix waiel.
ArtificialIntel |
|
|
   |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Tue Jan 14, 2003 2:41 pm |
  |
For PHPNuke 6.5 beta 5 this is indeed the solution. That is the only code that I've changed to get the list of all forums to show when moving a thread. Without that fix, only a single forum shows in the selection list. |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
waiel
Nuke Soldier


Joined: Jan 14, 2003
Posts: 16
Location: USA
|
Posted:
Tue Jan 14, 2003 2:55 pm |
  |
well my problme is it only show me ! No Forums !
not even a singel forum
but it give me the error
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `'{'' or `'$'' in auth.php on line 148
Fatal error: Call to undefined function: auth() in /modules/Forums/index.php on line 280 |
|
|
   |
 |
waiel
Nuke Soldier


Joined: Jan 14, 2003
Posts: 16
Location: USA
|
Posted:
Tue Jan 14, 2003 2:57 pm |
  |
yes i have phpnuke 6.5 from the club member area in phpnuke site |
|
|
   |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Tue Jan 14, 2003 3:01 pm |
  |
the latest beta version?
ArtificialIntel |
|
|
   |
 |
waiel
Nuke Soldier


Joined: Jan 14, 2003
Posts: 16
Location: USA
|
Posted:
Tue Jan 14, 2003 3:01 pm |
  |
this is what i did
| Code: |
if ( empty($f_access) )
{
$forum_match_sql = ( $forum_id != AUTH_LIST_ALL ) ? "WHERE a.forum_id = $forum_id" : '';
$sql = "SELECT a.forum_id, $a_sql
FROM " . FORUMS_TABLE . " a
$forum_match_sql";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Failed obtaining forum access control lists', '', __LINE__, __FILE__, $sql);
}
$sql_fetchrow = ( $forum_id != AUTH_LIST_ALL ) ? 'sql_fetchrow' : 'sql_fetchrowset';
if ( !($f_access = $db->$sql_fetchrow($result)) )
{
message_die(GENERAL_ERROR, 'No forum access control lists exist', '', __LINE__, __FILE__, $sql);
}
$db->sql_freeresult($result);
} |
|
|
|
   |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Tue Jan 14, 2003 3:03 pm |
  |
what file and what function?
ArtificialIntel |
|
|
   |
 |
waiel
Nuke Soldier


Joined: Jan 14, 2003
Posts: 16
Location: USA
|
Posted:
Tue Jan 14, 2003 3:04 pm |
  |
Ok i have found the problem ...
it seems the editor i'm using is not saving the file
i loged using remote access and modified it on the server and it works fine
Thanks a lot guys ^_^
any new bug fixes for the phpnuke 6.5 Beta 5 ?! |
|
|
   |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Tue Jan 14, 2003 3:05 pm |
  |
it's what we're here for.
Spread the word - this is where the help is
ArtificialIntel |
|
|
   |
 |
waiel
Nuke Soldier


Joined: Jan 14, 2003
Posts: 16
Location: USA
|
Posted:
Tue Jan 14, 2003 3:07 pm |
  |
sure thing  |
|
|
   |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Tue Jan 14, 2003 3:10 pm |
  |
| waiel wrote: |
any new bug fixes for the phpnuke 6.5 Beta 5 ?! |
The more participation will yield more bugs, hence shall yield more fixes. AI is right, help spread the word. We just opened up this week. |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
|
|