installin simple subforum how to???? help

Having problems installing EM? Let's fix that
Forum rules
DO NOT give out any FTP passwords to anyone! There is no reason to do so! If you need help badly enough, create a temporary FTP account that is restricted to only the files that you need help with and give the information for that. Giving out FTP information can be very dangerous!
Locked
shadowcodes
Posts: 77
Joined: Tue Jul 04, 2006 8:47 am
Contact:

Re: installin simple subforum how to???? help

Post by shadowcodes »

thanx buddy.. wil try hehehe man i think its already 5 am there still awake whoaaaa...im gonna have some rest now.credits goes to u cheerz

Nightrider
Registered User
Posts: 7219
Joined: Tue Nov 16, 2004 8:54 pm
Location: Florida, US
Contact:

Re: installin simple subforum how to???? help

Post by Nightrider »

Actually it's after 7 AM. I'm heading to bed real soon...

Image

User avatar
turbojenn
Posts: 14
Joined: Thu Jul 20, 2006 8:43 pm

Re: installin simple subforum how to???? help

Post by turbojenn »

Ok...I've been working on this one for some hours now, and someone said ya'll were very helpful over here, so here goes. I've got a pretty simple board, I run iCGstation as my skin, and I've got that squared away, I think...just one error left when I process the installation through EM. So the thing is, the code that EM is trying to find is not in the installation guide, nor does it appear to be in the /includes/functions.php file....so I'm kind of at a loss here as how to proceed. I'd appreciate any advice you have to offer!

Critical Error

FIND FAILED: In file [includes/functions.php] could not find:

if ( $forum_rows[$j]['cat_id'] == $category_rows[$i]['cat_id'] && $forum_rows[$j]['auth_view'] <= AUTH_REG )

MOD script line #510 :: FAQ :: Report

Nightrider
Registered User
Posts: 7219
Joined: Tue Nov 16, 2004 8:54 pm
Location: Florida, US
Contact:

Re: installin simple subforum how to???? help

Post by Nightrider »

Ok, try this:

OPEN
simple_subforums_1.0.1.txt

FIND

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
if ( $forum_rows[$j]['cat_id'] == $category_rows[$i]['cat_id'] && $forum_rows[$j]['auth_view'] <= AUTH_REG )
REPLACE WITH

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
$forum_rows[$j]['cat_id']
Save, upload, and try again using EM...

Image

User avatar
turbojenn
Posts: 14
Joined: Thu Jul 20, 2006 8:43 pm

Re: installin simple subforum how to???? help

Post by turbojenn »

Thanks for the help, Nightrider!! I really appreciate it!

I'm still getting the same error...I'm stumped, since this line of code doesn't appear in either the install or functions.php file, and my board isn't modded much - I've just got EM, Extreme Styles, and Upload Pic installed....

Critical Error

FIND FAILED: In file [includes/functions.php] could not find:

// if ( $forum_rows[$j]['cat_id'] == $category_rows[$i]['cat_id'] && $is_auth[$forum_rows[$j]['forum_id']]['auth_view'] )

MOD script line #599 :: FAQ :: Report

Nightrider
Registered User
Posts: 7219
Joined: Tue Nov 16, 2004 8:54 pm
Location: Florida, US
Contact:

Re: installin simple subforum how to???? help

Post by Nightrider »

This FIND doesn't make any sense because the following command, an IN-LINE AFTER, ADD command, is modifying a line that is commented out. You really should ask the MOD author why he's doing this...

To get past this point, you can probably do this:

OPEN
simple_subforums_1.0.1.txt

FIND

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
//					if ( $forum_rows[$j]['cat_id'] == $category_rows[$i]['cat_id'] && $is_auth[$forum_rows[$j]['forum_id']]['auth_view'] )
REPLACE WITH

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
$is_auth[$forum_rows[$j]['forum_id']]['auth_view']
or you could remove this whole section:

DELETE

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
//					if ( $forum_rows[$j]['cat_id'] == $category_rows[$i]['cat_id'] && $is_auth[$forum_rows[$j]['forum_id']]['auth_view'] )


#
#-----[ IN-LINE FIND ]------------------------------------------
#
if (


#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
 !$forum_rows[$j]['forum_parent'] && 
Save, upload, and try again using EM...

Image

User avatar
turbojenn
Posts: 14
Joined: Thu Jul 20, 2006 8:43 pm

Re: installin simple subforum how to???? help

Post by turbojenn »

Hmmm....ok, well I fixed that one, which was my last error, but now I've got 5 other errors coming up with the last run through of EM. I'll keep cracking at those, and let you know if I have any more issues. Thanks so much for all your help!

Nightrider
Registered User
Posts: 7219
Joined: Tue Nov 16, 2004 8:54 pm
Location: Florida, US
Contact:

Re: installin simple subforum how to???? help

Post by Nightrider »

I hope the errors are with other MODs. Good luck with them and let me know if I can help...

Image

User avatar
turbojenn
Posts: 14
Joined: Thu Jul 20, 2006 8:43 pm

Re: installin simple subforum how to???? help

Post by turbojenn »

Thanks...its still with the subforum mod...very strange...same errors I was getting yesterday, that I manually fixed, and re-uploaded, and are now popping up again in EM. Most of the errors are with changes in the iCGstation skin that I use, but this one is still haunting me, even though I thought I fixed it:

Here's the error:

Code: Select all

Critical Error

FIND FAILED: In file [index.php] could not find:

while( $category_rows[] = $db->sql_fetchrow($result) );
$db->sql_freeresult($result);

MOD script line #1110 :: FAQ :: Report
 

Here's the install instructions:

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
while( $category_rows[] = $db->sql_fetchrow($result) );
$db->sql_freeresult($result);


#
#-----[ AFTER, ADD ]------------------------------------------
#

// Begin Simple Subforums MOD
$subforums_list = array();
// End Simple Subforums MOD

Here's what I modified it to in my index.php file:

Code: Select all

$category_rows = array();
while ($row = $db->sql_fetchrow($result))
{
	$category_rows[] = $row;
}
$db->sql_freeresult($result);

// Begin Simple Subforums MOD
$subforums_list = array();
// End Simple Subforums MOD

Nightrider
Registered User
Posts: 7219
Joined: Tue Nov 16, 2004 8:54 pm
Location: Florida, US
Contact:

Re: installin simple subforum how to???? help

Post by Nightrider »

I'm not quite sure I understand why you manually modified your index.php file then are trying to add the code again using EM too. YOu really shouldn't manually modify any phpBB files. You should concentrate on making it so that the MOD will install cleanly. So most of the time, you would modify only the MOD script...

This FIND is wrong because for whatever reason, someone decided to change the code from this:

Code: Select all

while( $category_rows[] = $db->sql_fetchrow($result) );
$db->sql_freeresult($result);
to this:

Code: Select all

while ($row = $db->sql_fetchrow($result))
{
   $category_rows[] = $row;
}
$db->sql_freeresult($result);
which does the exact same thing, only it's not nearly as elegant as the initial code. So you would have changed the FIND from this:

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
while( $category_rows[] = $db->sql_fetchrow($result) );
$db->sql_freeresult($result);
to this:

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
while ($row = $db->sql_fetchrow($result))
{
   $category_rows[] = $row;
}
$db->sql_freeresult($result);
or even this:

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
$category_rows[] = $row;
}
$db->sql_freeresult($result);
If you've already modified this part of the index.php file, you don't want to do it again. That would add duplicate code into your files, which could cause some very strange errors...

Image

Locked