PunBB Resource

Your ultimate PunBB resource!

Keywords:

    (Extended)

You are not logged in.


Login to move these ads to the bottom of the page

#1 2005-08-11 07:39:45

pabb
Member
From: Sweden
Registered: 2005-07-23
Posts: 15

Sub Forum Mod 1.0

Code:

##
##
##        Mod title:  Sub Forum Mod
##
##      Mod version:  1.0
##   Works on PunBB:  1.2.6
##     Release date:  2005-08-11
##           Author:  pabb
##
##      Description:  This mod lets Administrators add subforums to forums.
##
##   Affected files:  index.php
##                    viewtopic.php
##                    viewforum.php
##                    admin_forums.php
##
##       Affects DB:  Yes
##
##            Notes:  Um.. none.
##
##       DISCLAIMER:  Please note that "mods" are not officially supported by
##                    PunBB. Installation of this modification is done at your
##                    own risk. Backup your forum database and any and all
##                    applicable files before proceeding.
##
##

Download here

Offline

 

#2 2005-08-11 07:44:08

pabb
Member
From: Sweden
Registered: 2005-07-23
Posts: 15

Re: Sub Forum Mod 1.0

Offline

 

#3 2005-08-11 14:09:25

Mark
Moderator
From: North West England
Registered: 2005-06-06
Posts: 1259

Re: Sub Forum Mod 1.0

i've seen lots of people asking for this.
well done.


Cant find something you want? try searching
Also try the wiki
MSN - mark@21s6.com

Offline

 

#4 2005-08-11 14:50:20

Socalrunner951
New member
Registered: 2005-07-26
Posts: 4

Re: Sub Forum Mod 1.0

Nice mod thank you very much

Offline

 

#5 2005-08-12 19:48:12

Metsuo
Member
Registered: 2005-02-02
Posts: 154
Website

Re: Sub Forum Mod 1.0

Great mod smile


chown -R us ./base
Archtype-K

Offline

 

#6 2005-08-15 01:04:50

sornman
Guest

Re: Sub Forum Mod 1.0

Just wanted to give a 'heads-up' for anyone attempting to install this mod on PostgreSQL. The install_mod.php does not properly alter the tables. Simple change out the following line:
            $db->query('ALTER TABLE '.$db->prefix.'forums ADD COLUMN parent_forum_id INTEGER UNSIGNED DEFAULT 0;');

for:
            $db->query('ALTER TABLE '.$db->prefix.'forums ADD COLUMN parent_forum_id INTEGER;');
            $db->query('ALTER TABLE '.$db->prefix.'forums ALTER COLUMN parent_forum_id SET DEFAULT 0;');

This has not been thoroughly tested, only on my install using PostgreSQL 7.4.2. Use at your own risk.

 

#7 2005-08-24 20:02:04

iota
Guest

Re: Sub Forum Mod 1.0

can someone who has this installed on a relatively fresh copy of punBB make a patch style diff? i've gone through this install a couple of times and whenever i try to go to admin_index.php, the webserver just hangs. rolling back to a previous revision of my codebase (before the mod install) and that goes away. i have a feeling i'm just overlooking something or have some other code thats interfering.

 

#8 2005-09-10 03:21:47

Philippe Worontzoff
Member
Registered: 2005-09-08
Posts: 26

Re: Sub Forum Mod 1.0

Hi,

I have got PunBB 1.2.7 and I can't install this mod.

Does it work on PunBB 1.2.7? If yes, how can I install it? And if no, did you plan to make a version for the 1.2.7 of you Sub Forum Mod and when may I expect to have it (if it is possible to give a approximative release date)?

This mod would realy be usefull to me, I hope that I'll be able to use it.

Thanks in advance for your answer.

Last edited by Philippe Worontzoff (2005-09-10 04:50:08)

Offline

 

#9 2005-09-10 13:47:56

gizzmo
Member
From: Earth, Milkyway Galaxy
Registered: 2004-08-04
Posts: 266

Re: Sub Forum Mod 1.0

this mod will work on 1.2.7 you just have to edit in the version number into the install


Gizzmo

Offline

 

#10 2005-09-13 12:52:44

Philippe Worontzoff
Member
Registered: 2005-09-08
Posts: 26

Re: Sub Forum Mod 1.0

Yes, it works. :-) Thanks.

I found out a very little html mistake :

In the readme, line 134 there is :

Code:

<div id="vf" class="blocktable">

It makes that there are two vf id in the same page and there must be only one id with that name on each page. So, I suggest to replace it by :

Code:

<div id="vsf" class="blocktable">

For "View Sub-Forum" instead of "View Forum" (that is what I guess vf is).

When replaced, the instructions in the readme.txt may be followed.

Then, there is another changes to do in the /style/imports/base.css file (Author schould add it to the readme.txt if he made the previous suggested changes) :
Find the lines :

Code:

#punindex TABLE, #vf TABLE {TABLE-LAYOUT: fixed}

.tcl {TEXT-ALIGN: left; WIDTH: 50%}

.tc2, .tc3, .tcmod {WIDTH: 9%; TEXT-ALIGN: center}

.tcr {WIDTH: 32%; TEXT-ALIGN: left}

#punsearch #vf .tcl, #punmoderate #vf .tcl {WIDTH: 41%}

#punsearch #vf .tc2 {WIDTH: 18%; TEXT-ALIGN: left}

And replace it by :

Code:

#punindex TABLE, #vf TABLE, #vsf TABLE {TABLE-LAYOUT: fixed}

.tcl {TEXT-ALIGN: left; WIDTH: 50%}

.tc2, .tc3, .tcmod {WIDTH: 9%; TEXT-ALIGN: center}

.tcr {WIDTH: 32%; TEXT-ALIGN: left}

#punsearch #vf .tcl, #punsearch #vsf .tcl, #punmoderate #vf .tcl, #punmoderate #vsf .tcl {WIDTH: 41%}

#punsearch #vf .tc2, #punsearch #vsf .tc2 {WIDTH: 18%; TEXT-ALIGN: left}

Last edited by Philippe Worontzoff (2005-09-13 12:56:40)

Offline

 

#11 2005-10-18 04:01:36

skoruppa
Member
Registered: 2005-10-18
Posts: 25

Re: Sub Forum Mod 1.0

Last post on sybforum not working hmm

"Bad request. The link you followed is incorrect or outdated."

see... her not working to

http://stfu.frac.dk/mods/subforum/viewforum.php?id=1

pls, help

Offline

 

#12 2005-10-21 03:08:54

NeoTall
New member
Registered: 2005-10-21
Posts: 8

Re: Sub Forum Mod 1.0

skoruppa wrote:

Last post on sybforum not working hmm

"Bad request. The link you followed is incorrect or outdated."

see... her not working to

http://stfu.frac.dk/mods/subforum/viewforum.php?id=1

pls, help

Hi for All...

You can download the newest version Sub Forum Mod 1.0.1. Fixed by NeoTall. All CopyRight by pabb.


Respects, NeoTall

Offline

 

#13 2005-10-21 06:11:50

skoruppa
Member
Registered: 2005-10-18
Posts: 25

Re: Sub Forum Mod 1.0

cool now working big_smile NeoTall can you change a search to? in search subforum looking like forum

Offline

 

#14 2005-10-22 07:14:30

NeoTall
New member
Registered: 2005-10-21
Posts: 8

Re: Sub Forum Mod 1.0

skoruppa wrote:

cool now working big_smile NeoTall can you change a search to? in search subforum looking like forum

I'm test my forum http://ru.uus4u.com/forum/search.php (it's russian forum). You can try enter "I386" for testing... Search works fine (Info: punBB ver.1.2.9 + Sub Form Mod 1.0.1)

Last edited by NeoTall (2005-10-22 07:16:39)


Respects, NeoTall

Offline

 

#15 2005-10-24 10:53:19

NeoTall
New member
Registered: 2005-10-21
Posts: 8

Re: Sub Forum Mod 1.0

Hi for ALL...

You can download the newest version Sub Forum Mod 1.0.2. Fixed by NeoTall. All CopyRight by pabb.

History:
                      in version 1.0.2
                       - Correctly displaying Last Post, Last Poster and Last Posted Time
                       - Correctly displaying Total Topics and Total Posts
                      in version 1.0.1
                       - Correctly creating Last Post link
                       - Correctly displaying word "Topics" on SubForum header


Respects, NeoTall

Offline

 

#16 2005-10-24 11:04:22

skoruppa
Member
Registered: 2005-10-18
Posts: 25

Re: Sub Forum Mod 1.0

im waiting for wersion witch fixed search big_smile

Offline

 

#17 2005-10-24 21:12:32

NeoTall
New member
Registered: 2005-10-21
Posts: 8

Re: Sub Forum Mod 1.0

skoruppa wrote:

im waiting for wersion witch fixed search big_smile

Hi...
What is the problem you have?.. Write "Step-by-Step", please smile


Respects, NeoTall

Offline

 

#18 2005-10-24 22:32:29

skoruppa
Member
Registered: 2005-10-18
Posts: 25

Re: Sub Forum Mod 1.0

ok i install subforum mod, now i go to search and subforum in search loking like forum. DId you understand?

Offline

 

#19 2005-10-25 00:38:21

NeoTall
New member
Registered: 2005-10-21
Posts: 8

Re: Sub Forum Mod 1.0

skoruppa wrote:

ok i install subforum mod, now i go to search and subforum in search loking like forum. DId you understand?

Yes... I think. that I understand the problem... But I don't know its "nature"...now. I'll see the code and may be will correcting this problem...


Respects, NeoTall

Offline

 

#20 2005-10-25 01:11:30

NeoTall
New member
Registered: 2005-10-21
Posts: 8

Re: Sub Forum Mod 1.0

Hi for ALL...

You can download the newest version Sub Forum Mod 1.0.3. Fixed by NeoTall. All CopyRight by pabb.

History:
                      in version 1.0.3
                       - Fixed search in SubForum when using "Non-MultiByted" language
                      in version 1.0.2
                       - Correctly displaying Last Post, Last Poster and Last Posted Time
                       - Correctly displaying Total Topics and Total Posts
                      in version 1.0.1
                       - Correctly creating Last Post link
                       - Correctly displaying word "Topics" on SubForum header


Respects, NeoTall

Offline

 

#21 2005-10-25 04:20:01

skoruppa
Member
Registered: 2005-10-18
Posts: 25

Re: Sub Forum Mod 1.0

no i want this, see now look that:

http://img460.imageshack.us/img460/9558/strona1yw.th.jpg

but i want:

http://img460.imageshack.us/img460/7131/strona28iv.th.jpg

Offline

 

#22 2005-10-25 04:40:43

NeoTall
New member
Registered: 2005-10-21
Posts: 8

Re: Sub Forum Mod 1.0

OK... Now I understand you.
With your help I'm fixed an search at using English language... Thanks... But say me now: Is it very importantly three spaces before subforum name? Excuse me: I think NO...


Respects, NeoTall

Offline

 

#23 2005-10-25 05:01:12

skoruppa
Member
Registered: 2005-10-18
Posts: 25

Re: Sub Forum Mod 1.0

i want to be that space before subforum and subforum benn under hes forum

see:

forum
forum
  subforum
  subforum
  subforum
forum
  sobforum
forum

somthink like this i need this, pls

subforum must by under right forum

Last edited by skoruppa (2005-10-25 05:10:36)

Offline

 

#24 2005-10-25 09:12:38

NeoTall
New member
Registered: 2005-10-21
Posts: 8

Re: Sub Forum Mod 1.0

Hi for ALL...

Update Sub Forum MOD links:
      Sub Forum Mod v.1.0.4 (without Addon "Last Post Link")
      Sub Forum Mod v.1.0.4 (with Addon "Last Post Link")
      Sub Forum Mod v.1.0.3 (without Addon "Last Post Link")
      Sub Forum Mod v.1.0.3 (with Addon "Last Post Link")

History:
      in version 1.0.4
         - Fixed items in combobox "Select where to search"
      in version 1.0.3
         - Fixed search in SubForum when using "Non-MultiByted" language
      in version 1.0.2
         - Correctly displaying Last Post, Last Poster and Last Posted Time
         - Correctly displaying Total Topics and Total Posts
      in version 1.0.1
         - Correctly creating Last Post link
         - Correctly displaying word "Topics" on SubForum header

Fixed by NeoTall. All CopyRight by pabb.

2 skoruppa
Only for you smile

Last edited by NeoTall (2005-10-25 11:08:32)


Respects, NeoTall

Offline

 

#25 2005-10-25 12:04:12

skoruppa
Member
Registered: 2005-10-18
Posts: 25

Re: Sub Forum Mod 1.0

NeoTall, you are the best thx big_smile.... but can i ask you for help witch  that mod http://forums.punbb.org/viewtopic.php?id=7096 i want to add more files than 1 (example 4, like in IPB)  in one post

Offline

 

Board footer

Based on PunBB
© Copyright 2002–2005 Rickard Andersson

© Copyright 2004–2006 Kristoffer Jansson

User contributed files are property of their respective owners.