[MODDB] Simple Subforums MOD

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.
Locked
User avatar
Arty
Former Team Member
Posts: 16654
Joined: Wed Mar 06, 2002 2:36 pm
Name: Vjacheslav Trushkin
Contact:

[MODDB] Simple Subforums MOD

Post by Arty »

MOD Title: Simple Subforums MOD
MOD Description: This MOD is a simple subforums MOD that doesn't include any extras and makes only one small database change. It supports only one level deep subforums that should be enough for most forums.
MOD Version: 1.0.0 RC2

MOD Download: Download
Last Stable Version: in MOD Validation queue

Demo Board: www.phpbbstyles.com or www.pentapenguin.com
Demo Username: n/a
Demo Password: n/a


Update to RC2 from RC1
Download


Update to RC2 from 0.0.4
Download
WARNING! -- MAKE A FULL BACKUP BEFORE INSTALLING!!!

This MOD has had many changes from 0.0.4 to RC2 and this MOD install guide may have errors.
If you have any errors, please start a new thread here.
(The reason I ask for you to post on my site for updating errors is so I can keep track of it better. Thanks.)

MOD Features:
- Simple one level deep subforums.
- Very easy to MOD files. You don't have to rebuild whole forum.
- Flexible template code so it can be easily customized.
- Compatible with phpBB so forum can be easily updated to phpBB 3.0 or any other forum software without loosing data in subforums.

Requirements:
- eXtreme Styles MOD 2.x [Download]

eXtreme styles MOD is required because MOD uses extended syntax in template files. Without xs_mod template modification would be much more complex. If you don't want to install whole eXtreme Styles MOD then you can only install template.php from that MOD and skip all other files in the package.
Last edited by Arty on Sat Nov 12, 2005 2:56 pm, edited 11 times in total.
Vjacheslav Trushkin / Arty.
Free phpBB 3.1 styles | New project: Iconify - modern SVG framework
DKing
Registered User
Posts: 751
Joined: Sat Jul 03, 2004 8:38 pm

Post by DKing »

Isn't Improved Pseudo SubForums the exact same thing?

-DKing
-DKing
Latest phpBB Version: 2.0.21
Search For a MOD: MOD Search
User avatar
Arty
Former Team Member
Posts: 16654
Joined: Wed Mar 06, 2002 2:36 pm
Name: Vjacheslav Trushkin
Contact:

Post by Arty »

It is similar mod, but this one is easier to install, it uses less sql queries and its more flexible for style designers so it can be better customized.
Vjacheslav Trushkin / Arty.
Free phpBB 3.1 styles | New project: Iconify - modern SVG framework
DKing
Registered User
Posts: 751
Joined: Sat Jul 03, 2004 8:38 pm

Post by DKing »

Later on, will you be able to go down more levels? Because I am looking for a lessened version of Categories Hierarchy; it only has the subforums function, but it would allow you to go as far down as you want. That's my only need.

-DKing
-DKing
Latest phpBB Version: 2.0.21
Search For a MOD: MOD Search
User avatar
Arty
Former Team Member
Posts: 16654
Joined: Wed Mar 06, 2002 2:36 pm
Name: Vjacheslav Trushkin
Contact:

Post by Arty »

No, I'm not planning to do it. This mod is supposed to be very simple and one level subforums is enough for almost all forums.
Vjacheslav Trushkin / Arty.
Free phpBB 3.1 styles | New project: Iconify - modern SVG framework
User avatar
Anon
Former Team Member
Posts: 7019
Joined: Fri Jan 02, 2004 7:33 am
Location: Christchurch, New Zealand

Post by Anon »

Great MOD CyberAlien :D

Thanks for including the Premod files, they are great for installing on a vanilla forum

Methinks that 10 minutes install is a little optimistic though :wink:

Works great with the Iris theme after a little tweaking (Mostly to do with the post icons)


I have found 1 bug though, and it is if you make a forum, then set it to be it's own category, it disappears, without so much as a warning
User avatar
tahoebuff
Registered User
Posts: 1429
Joined: Tue Jul 20, 2004 12:33 am
Location: Nevada
Name: Michael
Contact:

Post by tahoebuff »

I just installed this mod on a fresh 2.0.15 install on my computer. I get the following error when I try to viewforum...( I did install your extremestyles mod first)

Code: Select all

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in c:\easyphp1-8\www\forum1\viewforum.php on line 397

Warning: Cannot modify header information - headers already sent by (output started at c:\easyphp1-8\www\forum1\viewforum.php:397) in c:\easyphp1-8\www\forum1\includes\sessions.php on line 329

Warning: Cannot modify header information - headers already sent by (output started at c:\easyphp1-8\www\forum1\viewforum.php:397) in c:\easyphp1-8\www\forum1\includes\sessions.php on line 330

Warning: Cannot modify header information - headers already sent by (output started at c:\easyphp1-8\www\forum1\viewforum.php:397) in c:\easyphp1-8\www\forum1\includes\page_header.php on line 475

Warning: Cannot modify header information - headers already sent by (output started at c:\easyphp1-8\www\forum1\viewforum.php:397) in c:\easyphp1-8\www\forum1\includes\page_header.php on line 477

Warning: Cannot modify header information - headers already sent by (output started at c:\easyphp1-8\www\forum1\viewforum.php:397) in c:\easyphp1-8\www\forum1\includes\page_header.php on line 478
Am I missing something here?

Tahoebuff
User avatar
tahoebuff
Registered User
Posts: 1429
Joined: Tue Jul 20, 2004 12:33 am
Location: Nevada
Name: Michael
Contact:

Post by tahoebuff »

Ok...I got rid of it by doing the following...you have two instances of the following in your installation code changes:
viewforum.php

Code: Select all

#
#-----[ FIND ]------------------------------------------
# Line 395

make_jumpbox('viewforum.'.$phpEx);

#
#-----[ REPLACE WITH ]------------------------------------------ 
#

$all_forums = array();
make_jumpbox('viewforum.'.$phpEx, $forum_id, &$all_forums);
and viewtopic.php

Code: Select all

#
#-----[ FIND ]------------------------------------------
# Line 570

make_jumpbox('viewforum.'.$phpEx, $forum_id);

#
#-----[ REPLACE WITH ]------------------------------------------ 
#

$all_forums = array();
make_jumpbox('viewforum.'.$phpEx, $forum_id, &$all_forums);

(There was a lot more with this one)
I removed the & before each mention of &$all_forums, making it $all_forums. This stopped the error. By doing this...will I mess something else up?

Tahoebuff
User avatar
Anon
Former Team Member
Posts: 7019
Joined: Fri Jan 02, 2004 7:33 am
Location: Christchurch, New Zealand

Post by Anon »

What version of PHP? I used the premodded files and they worked perfectly
User avatar
tahoebuff
Registered User
Posts: 1429
Joined: Tue Jul 20, 2004 12:33 am
Location: Nevada
Name: Michael
Contact:

Post by tahoebuff »

I hand coded it, due to the fact I installed a version of phpBB that had the attach mod included with it. I'm using EasyPHP 1.8 as my personal computer test server. The PHP version is 4.3.10.

I'm not sure why I had this problem...nor, why it stopped when I made the changes. Everything appears to be working at the moment...hmmmm
Tahoebuff
User avatar
Arty
Former Team Member
Posts: 16654
Joined: Wed Mar 06, 2002 2:36 pm
Name: Vjacheslav Trushkin
Contact:

Post by Arty »

Try this:


in includes/functions.php find this:

Code: Select all

function make_jumpbox($action, $match_forum_id = 0, $forums_list = array())
and replace with this:

Code: Select all

function make_jumpbox($action, $match_forum_id = 0)
{
	$list = array();
	return make_jumpbox_ref($action, $match_forum_id, $list);
}

function make_jumpbox_ref($action, $match_forum_id, &$forums_list)
in viewforum.php and viewtopic.php replace this:

Code: Select all

make_jumpbox('viewforum.'.$phpEx, $forum_id, &$all_forums);
with this:

Code: Select all

make_jumpbox_ref('viewforum.'.$phpEx, $forum_id, $all_forums);
Vjacheslav Trushkin / Arty.
Free phpBB 3.1 styles | New project: Iconify - modern SVG framework
Bicet
Registered User
Posts: 58
Joined: Mon Nov 15, 2004 6:52 am
Location: IperUranium
Contact:

Post by Bicet »

Tried on a vanilla and it works like a charm ;)
User avatar
tahoebuff
Registered User
Posts: 1429
Joined: Tue Jul 20, 2004 12:33 am
Location: Nevada
Name: Michael
Contact:

Post by tahoebuff »

I applied those changes and everything is still working fine. I'm not sure what the code is doing...but, as long as it works :D

Tahoebuff
Impreza04
Registered User
Posts: 28
Joined: Sun Sep 19, 2004 4:39 pm
Contact:

Post by Impreza04 »

Wow, someone at last is making a light version of sub Forums.
Keep it up - good luck
Sammyed
Registered User
Posts: 186
Joined: Fri Mar 12, 2004 11:07 pm
Contact:

Post by Sammyed »

Why the eXtreme Styles mod 2.x is a requirement?, for example...I don´t have it. But strongly interested in a light sub-forum mod like yours Cyber.

Cheers.
Locked

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