[RC2] Collapsed Categories By Default 2.0.0

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
derebo
Registered User
Posts: 24
Joined: Sat Jun 30, 2007 7:48 pm

Re: [RC2] Collapsed Categories By Default 2.0.0

Post by derebo » Wed Jul 11, 2007 10:16 pm

2.0.0a up and running. Wicher that's a great MOD of yours.

Greetings,

Fisch.666
Registered User
Posts: 219
Joined: Sat Jul 30, 2005 10:58 am

Re: [RC2] Collapsed Categories By Default 2.0.0

Post by Fisch.666 » Wed Jul 11, 2007 10:25 pm

Hi Wicher,

before you've posted the update from 1.9.0 to 2.0.0 i've compare the 2 install files from 1.9.0 and 2.0.0. There is an second part of the forum_admin_body.tpl to edit:

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/forum_admin_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<a href="{U_WICHERMOD}" target="_blank">
#
#-----[ IN-LINE FIND ]------------------------------------------
#
<img src="../{I_WICHERMOD}" alt="{L_WICHERMOD}" title="{L_WICHERMOD}" border="0" align="left"></a>
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
<img src="../{I_WICHERMOD}" alt="{L_WICHERMOD}" title="{L_WICHERMOD}" border="0" align="left" /></a>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM 

User avatar
Wicher
Registered User
Posts: 1806
Joined: Wed May 07, 2003 10:33 pm
Location: Netherlands or Holland, your choice..
Contact:

Re: [RC2] Collapsed Categories By Default 2.0.0

Post by Wicher » Thu Jul 12, 2007 12:53 pm

Thanks, but thats allready in the re-pakked zip 2.0.0a now.

diabolic.bg
Registered User
Posts: 447
Joined: Mon Dec 11, 2006 3:41 pm
Location: Bulgaria, Sofia
Contact:

Re: [RC2] Collapsed Categories By Default 2.0.0

Post by diabolic.bg » Thu Jul 12, 2007 1:23 pm

Thanks Wicher!
This is already the right update 1.9.0 - 2.0.0. :D

Fisch.666
Registered User
Posts: 219
Joined: Sat Jul 30, 2005 10:58 am

Re: [RC2] Collapsed Categories By Default 2.0.0

Post by Fisch.666 » Thu Jul 12, 2007 3:39 pm

Wicher wrote:Thanks, but thats allready in the re-pakked zip 2.0.0a now.
Shure, but its not in the included update file 1.9.0-2.0.0.txt...

diabolic.bg
Registered User
Posts: 447
Joined: Mon Dec 11, 2006 3:41 pm
Location: Bulgaria, Sofia
Contact:

Re: [RC2] Collapsed Categories By Default 2.0.0

Post by diabolic.bg » Thu Jul 12, 2007 4:14 pm

Fisch.666 wrote:Shure, but its not in the included update file 1.9.0-2.0.0.txt...
Update file 1.9.0-2.0.0.txt is in updates folder. :D You must download again latest update from the link.

Fisch.666
Registered User
Posts: 219
Joined: Sat Jul 30, 2005 10:58 am

Re: [RC2] Collapsed Categories By Default 2.0.0

Post by Fisch.666 » Fri Jul 13, 2007 10:58 am

diabolic.bg wrote: Update file 1.9.0-2.0.0.txt is in updates folder. :D You must download again latest update from the link.
I think you don't understand me...

The included 1.9.0-2.0.0.txt file has only this update in it:

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/forum_admin_body.tpl
#
#-----[ FIND ]------------------------------------------
#
      <td class="catLeft" colspan="3">
#
#-----[ IN-LINE FIND ]------------------------------------------
#
<img src="{catrow.U_CAT_ACP_DEFAULT_IMG}" border="0">
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
<img src="{catrow.U_CAT_ACP_DEFAULT_IMG}" border="0" />
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM 
But there is another update needed which i've posted above:

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/forum_admin_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<a href="{U_WICHERMOD}" target="_blank">
#
#-----[ IN-LINE FIND ]------------------------------------------
#
<img src="../{I_WICHERMOD}" alt="{L_WICHERMOD}" title="{L_WICHERMOD}" border="0" align="left"></a>
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
<img src="../{I_WICHERMOD}" alt="{L_WICHERMOD}" title="{L_WICHERMOD}" border="0" align="left" /></a>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM 

diabolic.bg
Registered User
Posts: 447
Joined: Mon Dec 11, 2006 3:41 pm
Location: Bulgaria, Sofia
Contact:

Re: [RC2] Collapsed Categories By Default 2.0.0

Post by diabolic.bg » Fri Jul 13, 2007 1:05 pm

This is all. What do you want more? Maybe one beer? :P
See the mod history:
## MOD History:
##
## 2007-07-09 - Version 2.0.0
## - Fixed approval issues.
## 2007-07-09 - Version 1.9.0
## - Fixed issue in admin_forum.php.
## 2007-05-31 - Version 1.8.0
## - Added collapsing catagories in ACP.
## 2007-02-15 - Version 1.7.0
## - Fixed 2 bugs in index.php.
## 2007-02-15 - Version 1.6.0
## - Fixed bug in index.php.
## 2007-02-15 - Version 1.5.0
## - Now refreshes index at point where the cat is closed or opened.
## 2007-01-28 - Version 1.4.0
## - Fixed bug in index.php.
## 2006-12-28 - Version 1.3.0
## - Replace a misplaced peace of code in this file.
## 2006-12-28 - Version 1.2.0
## - Took bug out index.php.
## 2006-12-28 - Version 1.1.0
## - Added total posts and topics and last post to collapsed catagory.
## 2006-11-21 - Version 0.0.5
## - Added + and - button.
## - Added unread / read image to closed on default categories.
## 2006-11-20 - Version 0.0.4
## - Catagories are now easier set in the forums admin.
## 2006-11-18 - Version 0.0.3
## - added CCbD_db_install.php
##
## 2006-11-15 - Version 0.0.2
##

Fisch.666
Registered User
Posts: 219
Joined: Sat Jul 30, 2005 10:58 am

Re: [RC2] Collapsed Categories By Default 2.0.0

Post by Fisch.666 » Fri Jul 13, 2007 6:26 pm

As wicher wrote before, thats a reason for the mod team to deny the mod... ;)

User avatar
Wicher
Registered User
Posts: 1806
Joined: Wed May 07, 2003 10:33 pm
Location: Netherlands or Holland, your choice..
Contact:

Re: [RC2] Collapsed Categories By Default 2.0.0

Post by Wicher » Fri Jul 13, 2007 6:47 pm

Fisch.666 was corect, the code he mentioned should indeed be updated.
I have repakked the mod to 2.0.0b thus including the update from Fisch.666.
Thanks Fisch.666. :D

diabolic.bg
Registered User
Posts: 447
Joined: Mon Dec 11, 2006 3:41 pm
Location: Bulgaria, Sofia
Contact:

Re: [RC2] Collapsed Categories By Default 2.0.0

Post by diabolic.bg » Fri Jul 13, 2007 7:15 pm

Sorry, Fisch.666 !

bbumbalough
Registered User
Posts: 2
Joined: Thu Jul 19, 2007 7:56 am

Re: [RC2] Collapsed Categories By Default 2.0.0

Post by bbumbalough » Sat Jul 21, 2007 1:56 am

I get this error when trying to install with easymod.


Critical Error

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

if (isset($display_categories[$cat_id]) && $display_categories[$cat_id])
{

MOD script line #215 :: FAQ :: Report


Thanks for any help you might be able to give.

User avatar
Wicher
Registered User
Posts: 1806
Joined: Wed May 07, 2003 10:33 pm
Location: Netherlands or Holland, your choice..
Contact:

Re: [RC2] Collapsed Categories By Default 2.0.0

Post by Wicher » Sat Jul 21, 2007 9:59 am

that probably means that line is already changed by another mod, in that case you have look for it manually.

fastbuck
Registered User
Posts: 20
Joined: Wed Sep 17, 2003 10:07 pm
Contact:

Re: [RC2] Collapsed Categories By Default 2.0.0

Post by fastbuck » Fri Nov 09, 2007 3:49 pm

nice mod. as I'm using my phpBB forum for two different sites with different urls I would like to have one category open for visitors from my first url and another category open for visitors from my second url (and the other one closed. can anyone help me with that? it surely can be done with php... something like
$url = $_SERVER["SERVER_NAME"];
if ($url == ...
but I need directions to integrate it with this mod.

User avatar
Wicher
Registered User
Posts: 1806
Joined: Wed May 07, 2003 10:33 pm
Location: Netherlands or Holland, your choice..
Contact:

Re: [RC2] Collapsed Categories By Default 2.0.0

Post by Wicher » Fri Nov 09, 2007 4:45 pm

You could use something like:

Code: Select all

if ( $userdata['session_logged_in'] )
{
	// do logged in things
}
else
{
	// do logged out things
}

Post Reply

Return to “[2.0.x] MODs in Development”