You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 67 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Admin/Mod Move Bug - Fixed [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Tue Jan 14, 2003 1:29 pm Reply with quoteBack to top

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]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
waiel
Nuke Soldier
Nuke Soldier


Joined: Jan 14, 2003
Posts: 16

Location: USA

PostPosted: Tue Jan 14, 2003 2:38 pm Reply with quoteBack to top

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
Find all posts by waielView user's profileSend private message
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Tue Jan 14, 2003 2:41 pm Reply with quoteBack to top

worked for me.

This is a Nuke 6.5 bug fix waiel.

ArtificialIntel
Find all posts by ArtificialIntelView user's profileSend private message
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Tue Jan 14, 2003 2:41 pm Reply with quoteBack to top

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]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
waiel
Nuke Soldier
Nuke Soldier


Joined: Jan 14, 2003
Posts: 16

Location: USA

PostPosted: Tue Jan 14, 2003 2:55 pm Reply with quoteBack to top

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
Find all posts by waielView user's profileSend private message
waiel
Nuke Soldier
Nuke Soldier


Joined: Jan 14, 2003
Posts: 16

Location: USA

PostPosted: Tue Jan 14, 2003 2:57 pm Reply with quoteBack to top

yes i have phpnuke 6.5 from the club member area in phpnuke site
Find all posts by waielView user's profileSend private message
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Tue Jan 14, 2003 3:01 pm Reply with quoteBack to top

the latest beta version?

ArtificialIntel
Find all posts by ArtificialIntelView user's profileSend private message
waiel
Nuke Soldier
Nuke Soldier


Joined: Jan 14, 2003
Posts: 16

Location: USA

PostPosted: Tue Jan 14, 2003 3:01 pm Reply with quoteBack to top

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);
   }
Find all posts by waielView user's profileSend private message
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Tue Jan 14, 2003 3:03 pm Reply with quoteBack to top

what file and what function?

ArtificialIntel
Find all posts by ArtificialIntelView user's profileSend private message
waiel
Nuke Soldier
Nuke Soldier


Joined: Jan 14, 2003
Posts: 16

Location: USA

PostPosted: Tue Jan 14, 2003 3:04 pm Reply with quoteBack to top

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 ?!
Find all posts by waielView user's profileSend private message
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Tue Jan 14, 2003 3:05 pm Reply with quoteBack to top

it's what we're here for.

Spread the word - this is where the help is Smile

ArtificialIntel
Find all posts by ArtificialIntelView user's profileSend private message
waiel
Nuke Soldier
Nuke Soldier


Joined: Jan 14, 2003
Posts: 16

Location: USA

PostPosted: Tue Jan 14, 2003 3:07 pm Reply with quoteBack to top

sure thing Surprised
Find all posts by waielView user's profileSend private message
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Tue Jan 14, 2003 3:10 pm Reply with quoteBack to top

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. Smile AI is right, help spread the word. We just opened up this week.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.235 Seconds - 198 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::