[DISC] Improved pseudo sub-forums MOD 1.0.6

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
niekas
Registered User
Posts: 562
Joined: Sun Sep 23, 2001 7:34 am

[DISC] Improved pseudo sub-forums MOD 1.0.6

Post by niekas » Fri Apr 08, 2005 4:46 pm

I posted originally this in harishankar's thread, but people were asking for support via PM's. Since harishankar abandoned this mod i thought i'll post iit as new.

Pseudo attached subforum mod allows you to have simple subforums one level deep:

Code: Select all

Forum 1
 |____ Forum 2 (subforum of forum 1)
 |____ Forum 3 (subforum of forum 1)
[1.0.6]
[x] Display parent forum in navigation bar in viewforum.php, viewtopic.php and posting.php
[x] Admin panel displays tree of parent/child subforums
[x] improved sepration of content and logic in index.php (thanks Merri)


[1.0.5]
[x] EasyMod Compatible
[x] Improved Admin backend

[1.0.4]
[x] Detect new posts on children forums when viewing parent forum

[1.0.3]

[x] Displays last topic title on index and subforums.
[x] Combine subforum post/topic count together with parent forum stat count
[x] Display newest post on index as if subforums/parent forum were single forum

[1.0.2]
[x] optimized for mysql (removed querries inside the loops )
[x] added indicator to display if there are new posts on index
[x] Added last post link on subforums on viewforum.php
[x] doesn't querry mysql on viewforum.php if forum has no attached subforums

Code: Select all

##********IMPORTANT *****
## Execute this query from phpMyAdmin because Easy Mod can't handle it for some reason
##

 ALTER  TABLE  `phpbb_topics`  ADD  INDEX (`topic_last_post_id`);
or you can use this script to execute above query (if you don't have phpMyAdmin):
http://www.phpbb.com/phpBB/viewtopic.ph ... 06#1574106


download http://www.freedomlist.com/files/pseudo ... ms_106.zip


screenshots:

index.php:

Image


viewforum.php:

Image

navigation:

Image

admin forums:

Image
Last edited by niekas on Sat May 14, 2005 4:03 pm, edited 11 times in total.

Scali
Registered User
Posts: 51
Joined: Wed Dec 01, 2004 8:54 pm
Location: http://www.monloup.net
Contact:

Post by Scali » Fri Apr 08, 2005 5:05 pm

Very good idea !

Thank you very much niekas !

_PuG_
Registered User
Posts: 23
Joined: Fri Feb 21, 2003 12:17 pm

Post by _PuG_ » Fri Apr 08, 2005 5:53 pm

Hi, thanks for reposting it :) really is a great mod.

Ive got a slight problem though, for some reason my page headings have question marks either side of the text:

�Forum� �Topics� �Posts� �Last Post�

Though when I installed the forums on my localhost (simply by downloading the files) , the question marks disappear?

Secondly, is it possible to have the 'Last Post' counter to also include the subforums post count, and also the title of the posts last posted within the forums rather than just the date and posters name?

Cheers!

User avatar
yexusbeliever
Registered User
Posts: 586
Joined: Mon Dec 08, 2003 8:49 pm
Location: Olympus phpBB3

Post by yexusbeliever » Sat Apr 09, 2005 4:47 am

Any demo?

From the sound of this mod, I think I will prefer it over the C.H. subforums. Seems like it will not interfere with alot of mods. So that sounds good. :D

kratzer54847
Registered User
Posts: 143
Joined: Wed Oct 15, 2003 9:46 pm
Location: Wannsee
Contact:

Post by kratzer54847 » Sat Apr 09, 2005 7:14 am

hi there,

maybe we can combine your MOD with my "Attached Forums Pro" which was also developped upon harishankars MOD.

Would be great if you could PM me your opinion about this!

thanks,

Johny
I do phpBB work for money.
Just contact!

»»EDDY««
Registered User
Posts: 220
Joined: Mon Jun 02, 2003 10:14 am
Location: Poland/Slupsk
Contact:

Post by »»EDDY«« » Sat Apr 09, 2005 9:21 am

Demo pls.
Make a Tiny URL in excellent domain heh.pl


cooling system & water cooling

User avatar
stickerboy
Former Team Member
Posts: 7349
Joined: Mon Mar 29, 2004 2:27 pm
Location: Airdrie, UK (127.0.0.1)
Name: Kenny Cameron
Contact:

Post by stickerboy » Sat Apr 09, 2005 11:21 am

instakked this manually on a clean 2.0.13, but i'm getting an error in index.php
can't really see where it's gone wrong

Code: Select all

Parse error: parse error, unexpected T_ELSE in /home/cherokee/public_html/forums/index.php on line 506
my 506 to 509 is this:

Code: Select all

else
{
	message_die(GENERAL_MESSAGE, $lang['No_forums']);
}
so it must be something further up. i converted my index.php file to text here if you want to have a look :)
I'm a web-designing code-decrypting tech-support musician
|| Twitter || Flickr || phpBB Snippets ||
Formerly known as cherokee red

kratzer54847
Registered User
Posts: 143
Joined: Wed Oct 15, 2003 9:46 pm
Location: Wannsee
Contact:

Post by kratzer54847 » Sat Apr 09, 2005 11:27 am

try to delete one } before!
I do phpBB work for money.
Just contact!

User avatar
battye
Extension Customisations
Extension Customisations
Posts: 10941
Joined: Wed Feb 11, 2004 11:02 am
Location: Australia
Contact:

Post by battye » Sat Apr 09, 2005 11:34 am

cherokee red wrote: instakked this manually on a clean 2.0.13, but i'm getting an error in index.php
can't really see where it's gone wrong

Code: Select all

Parse error: parse error, unexpected T_ELSE in /home/cherokee/public_html/forums/index.php on line 506
my 506 to 509 is this:

Code: Select all

else
{
	message_die(GENERAL_MESSAGE, $lang['No_forums']);
}
so it must be something further up. i converted my index.php file to text here if you want to have a look :)


Is there a semicolon on 505 or 504?
Customisations Team Member

https://github.com/battye/php-array-parser - Give it a Star! :D

»»EDDY««
Registered User
Posts: 220
Joined: Mon Jun 02, 2003 10:14 am
Location: Poland/Slupsk
Contact:

Post by »»EDDY«« » Sat Apr 09, 2005 1:43 pm

»»EDDY«« wrote: Demo pls.

:-p
Make a Tiny URL in excellent domain heh.pl


cooling system & water cooling

niekas
Registered User
Posts: 562
Joined: Sun Sep 23, 2001 7:34 am

Post by niekas » Sat Apr 09, 2005 4:32 pm

_PuG_ wrote: Hi, thanks for reposting it :) really is a great mod.

Ive got a slight problem though, for some reason my page headings have question marks either side of the text:

�Forum� �Topics� �Posts� �Last Post�


Though when I installed the forums on my localhost (simply by downloading the files) , the question marks disappear?


Is it table headers (gold color font)?
Secondly, is it possible to have the 'Last Post' counter to also include the subforums post count, and also the title of the posts last posted within the forums rather than just the date and posters name?

Cheers!


Should be very simple. I'll include it in the next update.

niekas
Registered User
Posts: 562
Joined: Sun Sep 23, 2001 7:34 am

Post by niekas » Sat Apr 09, 2005 4:33 pm

yexusbeliever wrote: Any demo?

From the sound of this mod, I think I will prefer it over the C.H. subforums. Seems like it will not interfere with alot of mods. So that sounds good. :D


You can check it here in action: http://www.freedomlist.com/forum

niekas
Registered User
Posts: 562
Joined: Sun Sep 23, 2001 7:34 am

Post by niekas » Sat Apr 09, 2005 4:37 pm

kratzer54847,

I sent you a PM.

niekas
Registered User
Posts: 562
Joined: Sun Sep 23, 2001 7:34 am

Post by niekas » Sat Apr 09, 2005 4:42 pm

cherokee red wrote: so it must be something further up. i converted my index.php file to text here if you want to have a look :)


add:

Code: Select all

   }
before

Code: Select all

} // for ... categories

User avatar
stickerboy
Former Team Member
Posts: 7349
Joined: Mon Mar 29, 2004 2:27 pm
Location: Airdrie, UK (127.0.0.1)
Name: Kenny Cameron
Contact:

Post by stickerboy » Sat Apr 09, 2005 4:43 pm

i've got it guys, there was a '{' missing from the end ;)
all is working now, thanks neikas :)
I'm a web-designing code-decrypting tech-support musician
|| Twitter || Flickr || phpBB Snippets ||
Formerly known as cherokee red

Locked

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