[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.
User avatar
Wicher
Registered User
Posts: 1806
Joined: Wed May 07, 2003 10:33 pm
Location: Netherlands or Holland, your choice..
Contact:

[RC2] Collapsed Categories By Default 2.0.0

Post by Wicher » Thu May 31, 2007 12:26 pm

Due to the fact of the retiring of phpBB2 soon, any further support for this mod can best be asked at http://www.wichersmods.nl

Validated version 1.3.0 is available at:
http://www.phpbb.com/community/viewtopic.php?t=491482

but contains bugs.

Code: Select all

#################################################################
## MOD Title: Collapsed Categories By Default
## MOD Author: Wicher < N/A > (N/A) http://www.detecties.com/modforum
## MOD Description: This mod lets you by default categories of your choice to be collapsed 
##                  on entering the board.
##                  Users can open and close them by clicking the Categorie name.
##                  Default Collapsed Categories can be set in the ACP/Forum Admin/Management.
##                  In ACP Catagories can be collapsed also, without effecting the index Catagories.
##  
## MOD Version: 2.0.0
## 
## Installation Level:  easy 
## Installation Time:  22 minutes 
## 
## Files To Edit:    index.php
##                   admin/admin_forums.php
##                   language/lang_english/lang_admin.php
##                   templates/subSilver/index_body.tpl
##                   templates/subSilver/subSilver.cfg
##                   templates/subSilver/admin/forum_admin_body.tpl
##                   templates/subSilver/admin/page_header.tpl
## 
## Included Files: N/A
## 
## License:      http://opensource.org/licenses/gpl-license.php GNU General Public License v2 
## 
############################################################## 
## For security purposes, please check: http://www.phpbb.com/mods/ 
## for the latest version of this MOD. Although MODs are checked 
## before being allowed in the MODs Database there is no guarantee 
## that there are no security problems within the MOD. No support 
## will be given for MODs not found within the MODs Database which 
## can be found at http://www.phpbb.com/mods/ 
############################################################## 
## Author Notes:   
##		   This mod has been tested on phpbb 2.0.22 
## 
############################################################## 
## 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 
##   
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 

Download Collapsed_Catagories_By_Default-2.0.0c
Updates from 1.7.0 to 2.0.0 are included

Demo
Image
Last edited by Wicher on Wed Nov 26, 2008 6:52 pm, edited 12 times in total.

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

Re: [BETA] Collapsed Categories By Default 1.8.0

Post by Wicher » Thu May 31, 2007 12:28 pm

[reserved]

User avatar
raygene
Registered User
Posts: 187
Joined: Fri Jan 19, 2007 11:29 pm
Location: Gatineau, QC, Canada

Re: [BETA] Collapsed Categories By Default 1.8.0

Post by raygene » Thu May 31, 2007 7:39 pm

Would I better be off with this version even though it's beta?

Gene

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

Re: [BETA] Collapsed Categories By Default 1.8.0

Post by Wicher » Thu May 31, 2007 10:49 pm

Yes, you would.

User avatar
raygene
Registered User
Posts: 187
Joined: Fri Jan 19, 2007 11:29 pm
Location: Gatineau, QC, Canada

Re: [BETA] Collapsed Categories By Default 1.8.0

Post by raygene » Fri Jun 01, 2007 1:55 am

Wicher wrote:Yes, you would.
Thanks, I'll give it a try (Beta tester, LOL).

Cheers,
Gene

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

Re: [BETA] Collapsed Categories By Default 1.8.0

Post by Fisch.666 » Tue Jul 03, 2007 4:46 pm

Hi!

One question:

Are there any chances to get an option to leave an categorie opened with the + symbol to collapse this categorie?

Thanks in advance for an reply.

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

Re: [RC1] Collapsed Categories By Default 1.8.0

Post by Wicher » Mon Jul 09, 2007 9:31 pm

Updated to 1.9.0

## 2007-07-09 - Version 1.9.0
## - Fixed issue in admin_forum.php.

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

Re: [BETA] Collapsed Categories By Default 1.8.0

Post by Wicher » Mon Jul 09, 2007 9:32 pm

Fisch.666 wrote:Hi!

One question:

Are there any chances to get an option to leave an categorie opened with the + symbol to collapse this categorie?

Thanks in advance for an reply.
Not for the moment no, but i'll see if i can get that to work some day.

marian0810
Former Team Member
Posts: 3011
Joined: Mon May 21, 2007 9:17 pm
Location: The Netherlands
Name: Marian
Contact:

Re: [RC1] Collapsed Categories By Default 1.8.0

Post by marian0810 » Tue Jul 10, 2007 7:01 pm

Default Collapsed Categories can be set in the ACP/Forum Admin/Management.
Would it be possible to set this in individual profiles, so users can decide for themselves what they want collapsed and what not?
You and me, time and space. You watch us run!

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

Re: [RC1] Collapsed Categories By Default 1.8.0

Post by Wicher » Tue Jul 10, 2007 7:26 pm

It migth be possible, but i am not sure howe to do that at the moment.
I am going to submit version 2.0.0 to phpbb real soon, and i will not do anything to change the mod until i hear from the mod team about 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 1.8.0

Post by Wicher » Tue Jul 10, 2007 7:49 pm

Updated to 2.0.0

## 2007-07-09 - Version 2.0.0
## - Fixed approval issues.

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 » Wed Jul 11, 2007 1:45 pm

How can I update from 1.8.0 to 2.0.0 ?
Thanks for the answer! :D

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 » Wed Jul 11, 2007 3:12 pm

download Collapsed_Catagories_By_Default-1.9.0.zip , that includes an update from 1.8.0 to 1.9.0

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 » Wed Jul 11, 2007 3:31 pm

Thanks! :D

EDIT
I already have updated to v. 2.0.0 but I think update Collapsed Categories By Default 1.8.0 - 1.9.0 = Collapsed Categories By Default 1.9.0 - 2.0.0

Code: Select all

Collapsed Categories By Default 1.8.0 - 1.9.0

admin/admin_forums.php
#
#-----[ FIND ]------------------------------------------------
#
		$acp_collapsed_img = ( $category_rows[$i]['acp_cat_collapsed'] ) ? $images['cat_close'] : $images['cat_open'];
# 
#-----[ REPLACE WITH ]------------------------------------------ 
#
		$acp_collapsed_img = ( $category_rows[$i]['acp_cat_collapsed'] ) ? $phpbb_root_path.$images['cat_open'] : $phpbb_root_path.$images['cat_close'];
# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 

Code: Select all

Collapsed Categories By Default 1.9.0 - 2.0.0

admin/admin_forums.php
#
#-----[ FIND ]------------------------------------------------
#
		$acp_collapsed_img = ( $category_rows[$i]['acp_cat_collapsed'] ) ? $images['cat_close'] : $images['cat_open'];
# 
#-----[ REPLACE WITH ]------------------------------------------ 
#
		$acp_collapsed_img = ( $category_rows[$i]['acp_cat_collapsed'] ) ? $phpbb_root_path.$images['cat_open'] : $phpbb_root_path.$images['cat_close'];
# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
:P Wicher, you've done a great MOD! Congratulations!

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 » Wed Jul 11, 2007 9:09 pm

The update 1.9.0 to 2.0.0 should have been this:

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 
Not a real big difference, but its a difference never the less.
Its a reason for the mod team to deny the mod.

Post Reply

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