Simple Subforums

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
196
61%
Very Good
59
18%
Good
34
11%
Fair
7
2%
Poor
26
8%
 
Total votes: 322

User avatar
quahappy
Former Team Member
Posts: 1416
Joined: Tue Dec 12, 2006 8:19 pm
Location: South Yorkshire
Name: Andy Green

Re: Simple Subforums

Post by quahappy » Mon Aug 27, 2007 8:04 pm

JetWash wrote:Can I ask a weird question?

If I erase my forum but backup the templates I have modified with this Mod, The I re do the Forum add the Subforum files etc and just up my Templates will the subforums automatically apply to the Forum?
Not a strange question at all! I'm guessing you are wanting to do a fresh install of phpBB2? Well, providing your forum you are going to erase and template is the latest version (2.0.22) and you had no other MODs installed other than Simple Subforums MOD that affects your template otherwise you'll have to re-install your other MODs too.

This is how I would do it (and I've done this on my Test Forum but from fresh phpBB2 install and new MySQL d/b):

Save your template Folder and files to PC.
Fresh install of phpBB2 (through your website root CP Panel)
Install eXtreme Styles MOD
Install EasyMOD
Install Simple Subforums MOD
Upload and install your template (one with modded Subforum files).
All done.

Reason for installing Subforum MOD before installing your template is purely to give a 100% successful install using EasyMOD with the standard Subsilver template as you won't have added your own template yet. Once you've uploaded your template Folder and files, install it, Subforums will then work.

Hope that all helps! ;)
If you don't ask.....

JetWash
Registered User
Posts: 88
Joined: Mon Jun 04, 2007 12:45 am
Location: Kempsey, NSW, Australia
Contact:

Re: Simple Subforums

Post by JetWash » Tue Aug 28, 2007 7:53 am

Thanks quahappy. he he, Will sure give it a shot. If anyone can look for me also I have the Template 10466 added, The issue is that the Subforums have been added to the Actual Post but it will not show under it (ie)

Microsoft Windows Vista (This is how I want it too look)
- Tips and Techniques -Tips and Guides

Now that is how I want it to look but this is how it shows:

Microsoft Windows Vista
Troubleshooting and general questions about Microsoft's latest version of Windows.
No new posts Microsoft Windows NT/2000/XP

Microsoft Windows NT/2000/XP

Microsoft Windows 95/98/Me

UNIX/Linux

Apple Macintosh

DOS/PDA/Other

Vista Tips and Techniques

Tips and Guides

The two iat the bottom "Vista Tips and Techniques" and "Tips and Guides" I want under the Microsoft Windows Vista as shown above, But they show down here?
How can I fix this?

Sean
NorahTech Community Forum - Come and Visit a friendly community :)

User avatar
quahappy
Former Team Member
Posts: 1416
Joined: Tue Dec 12, 2006 8:19 pm
Location: South Yorkshire
Name: Andy Green

Re: Simple Subforums

Post by quahappy » Tue Aug 28, 2007 10:50 am

JetWash wrote:Thanks quahappy. he he, Will sure give it a shot. If anyone can look for me also I have the Template 10466 added, The issue is that the Subforums have been added to the Actual Post but it will not show under it (ie)

Microsoft Windows Vista (This is how I want it too look)
- Tips and Techniques -Tips and Guides

Now that is how I want it to look but this is how it shows:

Microsoft Windows Vista
Troubleshooting and general questions about Microsoft's latest version of Windows.
No new posts Microsoft Windows NT/2000/XP

Microsoft Windows NT/2000/XP

Microsoft Windows 95/98/Me

UNIX/Linux

Apple Macintosh

DOS/PDA/Other

Vista Tips and Techniques

Tips and Guides

The two iat the bottom "Vista Tips and Techniques" and "Tips and Guides" I want under the Microsoft Windows Vista as shown above, But they show down here?
How can I fix this?

Sean
Providing the Subforums MOD has been installed correctly, check my post here: http://www.phpbb.com/community/viewtopi ... 7#p3156967. It shows how to set-up Subforums.

Let me know how you get on. :D
If you don't ask.....

User avatar
quahappy
Former Team Member
Posts: 1416
Joined: Tue Dec 12, 2006 8:19 pm
Location: South Yorkshire
Name: Andy Green

Re: Simple Subforums

Post by quahappy » Tue Aug 28, 2007 8:29 pm

sean2007 wrote:hallo

how many forums i can dd like a sub forum in this moid whay you said one level did you means that the mod can support one forum only like a subforum

thank you
If I've read your query right (forgive me if I haven't), you can create as many Forums as you like and make these Sub-forums of a Forum. Check out http://www.phpbbstyles.com website for a better idea. You'll see at that website on the Index page, many Forums containing Subforums.

Hope that helps. ;)
If you don't ask.....

A2day
Registered User
Posts: 88
Joined: Mon Oct 23, 2006 9:42 am

Re: Simple Subforums

Post by A2day » Wed Aug 29, 2007 8:55 am

I've installed successfully this mod.
It works like a charm. This is the cheery on the top for my forum.... thanks a lot!!!

Just have one doubt.
When someone posts inside a subforum, on the main page the last post user/date is not updated, and it shows the last user/date that posted on the parent forum.

Can this be fixed?

Cheers,
A2day

Irn-Bru
Registered User
Posts: 11
Joined: Wed Aug 29, 2007 1:56 pm

Re: Simple Subforums

Post by Irn-Bru » Wed Aug 29, 2007 2:25 pm

Hey all.

First off, I'm new here and new to phpBB in general but I have been learning fast. :)

I was wondering if someone could help me out with this little problem. Forgive me if the solution has been posted before, but I had a look and couldn't see it. (Feel free to point me in the direction of it though) After a few problems installing 'Simple Subforums', I finally managed to get it working. The only thing is, it works fine on the default subSilver style, (I know other styles need editing) but not fully on our xabbBlue one. As you can see below:

subSilver:
Image

xabbBlue:
Image

...the 'Test' forum shows up on xabbBlue in both Subforum style and Normal style. What do I do to fix it? Anyone got any clues? I've struggled for the last day or two to find a fix but it's gotten the better of me.

By the way, it's a 'phpBB 2.0.22' forum, and the mod is 'simple subforums 1.0.2.' installed with easymod.

Thanks,
IB.

User avatar
quahappy
Former Team Member
Posts: 1416
Joined: Tue Dec 12, 2006 8:19 pm
Location: South Yorkshire
Name: Andy Green

Re: Simple Subforums

Post by quahappy » Wed Aug 29, 2007 5:57 pm

Pentapenguin- Minor question and one down to personal preference I guess...

I don't use Subsilver but noticed that any Forum that has Moderators is listed before Subforums. On my Aphrodite template, Moderator list is added after Subforums, which I think looks better. Is it quick and easy enough to swap code for Moderator(s) and subforum line for Subsilver? Maybe have this as standard in the MOD?

Just my own opinion of course. Tell me to take a hike if need be LOL.

EDIT: Ok, I've found the solution. To anyone that is interested in placing Moderators under Subforums, below are the changes.

If installing Simple Subforums MOD MANUALLY for the first time with Subsilver template, do the following:

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/index_body.tpl

#
#-----[ FIND ]------------------------------------------
#
<span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
	<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
	<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>

#
#-----[ REPLACE WITH ]------------------------------------------
#
	  <!-- BEGIN sub --><!-- DEFINE $HAS_SUB = 1 --><!-- IF catrow.forumrow.sub.NUM > 0 -->, <!-- ELSE --><span class="genmed">{L_SUBFORUMS}: <!-- ENDIF -->{catrow.forumrow.sub.LAST_POST_SUB} <a href="{catrow.forumrow.sub.U_VIEWFORUM}" <!-- IF catrow.forumrow.sub.UNREAD -->class="topic-new"<!-- ENDIF --> title="{catrow.forumrow.sub.FORUM_DESC_HTML}">{catrow.forumrow.sub.FORUM_NAME}</a><!-- END sub -->
	  <!-- IF $HAS_SUB --></span><!-- UNDEFINE $HAS_SUB --><br /><!-- ENDIF -->
<!-- IF catrow.forumrow.MODERATORS --><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}<br /></span><!-- ENDIF -->
	</td>
	<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOTAL_TOPICS}</span></td>
	<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOTAL_POSTS}</span></td>
If you already have Subforums installed:

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/index_body.tpl

#
#-----[ FIND ]------------------------------------------
#
<!-- IF catrow.forumrow.MODERATORS --><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}<br /></span><!-- ENDIF -->
	  <!-- BEGIN sub --><!-- DEFINE $HAS_SUB = 1 --><!-- IF catrow.forumrow.sub.NUM > 0 -->, <!-- ELSE --><span class="genmed">{L_SUBFORUMS}: <!-- ENDIF -->{catrow.forumrow.sub.LAST_POST_SUB} <a href="{catrow.forumrow.sub.U_VIEWFORUM}" <!-- IF catrow.forumrow.sub.UNREAD -->class="topic-new"<!-- ENDIF --> title="{catrow.forumrow.sub.FORUM_DESC_HTML}">{catrow.forumrow.sub.FORUM_NAME}</a><!-- END sub -->
	  <!-- IF $HAS_SUB --></span><!-- UNDEFINE $HAS_SUB --><!-- ENDIF -->
	</td>
	<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOTAL_TOPICS}</span></td>
	<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOTAL_POSTS}</span></td>

#
#-----[ REPLACE WITH ]------------------------------------------
#
	  <!-- BEGIN sub --><!-- DEFINE $HAS_SUB = 1 --><!-- IF catrow.forumrow.sub.NUM > 0 -->, <!-- ELSE --><span class="genmed">{L_SUBFORUMS}: <!-- ENDIF -->{catrow.forumrow.sub.LAST_POST_SUB} <a href="{catrow.forumrow.sub.U_VIEWFORUM}" <!-- IF catrow.forumrow.sub.UNREAD -->class="topic-new"<!-- ENDIF --> title="{catrow.forumrow.sub.FORUM_DESC_HTML}">{catrow.forumrow.sub.FORUM_NAME}</a><!-- END sub -->
	  <!-- IF $HAS_SUB --></span><!-- UNDEFINE $HAS_SUB --><br /><!-- ENDIF -->
<!-- IF catrow.forumrow.MODERATORS --><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}<br /></span><!-- ENDIF -->
	</td>
	<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOTAL_TOPICS}</span></td>
	<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOTAL_POSTS}</span></td>
Last edited by quahappy on Wed Aug 29, 2007 6:46 pm, edited 1 time in total.
If you don't ask.....

User avatar
quahappy
Former Team Member
Posts: 1416
Joined: Tue Dec 12, 2006 8:19 pm
Location: South Yorkshire
Name: Andy Green

Re: Simple Subforums

Post by quahappy » Wed Aug 29, 2007 6:19 pm

Irn-Bru wrote:Hey all.

First off, I'm new here and new to phpBB in general but I have been learning fast. :)

I was wondering if someone could help me out with this little problem. Forgive me if the solution has been posted before, but I had a look and couldn't see it. (Feel free to point me in the direction of it though) After a few problems installing 'Simple Subforums', I finally managed to get it working. The only thing is, it works fine on the default subSilver style, (I know other styles need editing) but not fully on our xabbBlue one. As you can see below:

subSilver:
Image

xabbBlue:
Image

...the 'Test' forum shows up on xabbBlue in both Subforum style and Normal style. What do I do to fix it? Anyone got any clues? I've struggled for the last day or two to find a fix but it's gotten the better of me.

By the way, it's a 'phpBB 2.0.22' forum, and the mod is 'simple subforums 1.0.2.' installed with easymod.

Thanks,
IB.
PM sent. ;)
If you don't ask.....

Irn-Bru
Registered User
Posts: 11
Joined: Wed Aug 29, 2007 1:56 pm

Re: Simple Subforums

Post by Irn-Bru » Thu Aug 30, 2007 12:43 am

Just wanted to thank quahappy for fixing the problem I asked about. It ended up being an issue with:

Code: Select all

<!-- IF ! forumrow.PARENT -->
...being in the wrong place in the <yourtemplate>index_body.tpl file. Tried his suggestions and they worked perfect.

Thanks a lot, quahappy, much appreciated...another satisfied customer! :D

User avatar
quahappy
Former Team Member
Posts: 1416
Joined: Tue Dec 12, 2006 8:19 pm
Location: South Yorkshire
Name: Andy Green

Re: Simple Subforums

Post by quahappy » Thu Aug 30, 2007 6:23 pm

Irn-Bru wrote:Just wanted to thank quahappy for fixing the problem I asked about. It ended up being an issue with:

Code: Select all

<!-- IF ! forumrow.PARENT -->
...being in the wrong place in the <yourtemplate>index_body.tpl file. Tried his suggestions and they worked perfect.

Thanks a lot, quahappy, much appreciated...another satisfied customer! :D
No worries and thanks for your kind words. :D

For the benefit of others installing Simple Subforums MOD with templates other than Subsilver, when doing this manually please check that any [ FIND ] from the Subforums install file is not repeated within any one of your template file.

In the case of Irn-Bru, he had manually installed the MOD exactly to the install.txt file. What has happened is that within the <yourtemplate>/index_body.tpl file, the following [ FIND ] was required:

NOTE: The [ OPEN ] below is NOT part of the subforums install text file! This is an example.

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
templates/<yourtemplate>/index_body.tp

l#
#-----[ FIND ]------------------------------------------
#
  <!-- BEGIN forumrow -->
Within the Subsilver template, the above can only be found once. In other templates, if you have additional MOD's and extra tools installed, there could be more than one <!-- BEGIN forumrow -->. This was the case with Irn-Bru and the [ ADD, AFTER ] was - unbeknown to him - inserted in the wrong place.

The advice here is to ensure that if you do find any duplicate [ FIND ] within any one template file because you have additional MOD's and extra code, and are unsure exactly where to place the Subforum code, please post here (with code from your template file) and someone will assist.
If you don't ask.....

ch1ngon
Registered User
Posts: 10
Joined: Sat Sep 01, 2007 3:09 am

Re: Simple Subforums

Post by ch1ngon » Sat Sep 01, 2007 3:49 am

plz help me =[...THX in advance :D
i told me to navigate to a file and edit it but it says to go to to subSilver the default theme but i don not have it no more. i was wondering if i have to do any other changes to install it.

here are the instructions:
Open: templates/subSilver/index_body.tpl
Find
Tip: This may be a partial find and not the whole line.

Code: Select all

<span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
   <td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
   <td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
Replace With
Tip: Replace the preceding line(s) to find with the following lines.

Code: Select all

    <!-- IF catrow.forumrow.MODERATORS --><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}<br /></span><!-- ENDIF -->
         <!-- BEGIN sub --><!-- DEFINE $HAS_SUB = 1 --><!-- IF catrow.forumrow.sub.NUM > 0 -->, <!-- ELSE --><span class="genmed">{L_SUBFORUMS}: <!-- ENDIF -->{catrow.forumrow.sub.LAST_POST_SUB} <a href="{catrow.forumrow.sub.U_VIEWFORUM}" <!-- IF catrow.forumrow.sub.UNREAD -->class="topic-new"<!-- ENDIF --> title="{catrow.forumrow.sub.FORUM_DESC_HTML}">{catrow.forumrow.sub.FORUM_NAME}</a><!-- END sub -->
         <!-- IF $HAS_SUB --></span><!-- UNDEFINE $HAS_SUB --><!-- ENDIF -->
       </td>
       <td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOTAL_TOPICS}</span></td>
       <td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOTAL_POSTS}</span></td>
here is the files code:

Code: Select all

here is the files code:



    <!-- ************************************************************************************************** -->

    <table width="100%" cellspacing="0" cellpadding="2" border="0" align="center">
    <tr>
    <td align="left" valign="bottom"><span class="gensmall">
    <!-- BEGIN switch_user_logged_in -->
    {LAST_VISIT_DATE}<br />
    <!-- END switch_user_logged_in -->
    {CURRENT_TIME}<br /></span><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td>
    <td align="right" valign="bottom" class="gensmall">
    <!-- BEGIN switch_user_logged_in -->
    <a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a><br /><a href="{U_SEARCH_SELF}" class="gensmall">{L_SEARCH_SELF}</a><br />
    <!-- END switch_user_logged_in -->
    <a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a></td>
    </tr>
    </table>



    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td class="tableborder">


    <table width="100%" border="0" cellspacing="1">
    <tr>
    <td width="73%" class="forumcolumns">&nbsp;{L_FORUM}&nbsp;</td>
    <td width="6%" class="forumcolumns">&nbsp;{L_TOPICS}&nbsp;</td>
    <td width="6%" class="forumcolumns">&nbsp;{L_POSTS}&nbsp;</td>
    <td width="15%" class="forumcolumns">&nbsp;{L_LASTPOST}&nbsp;</td>
    </tr>

    <!-- BEGIN catrow -->

    <tr>
    <td colspan="4" class="categorybar">

    <table border="0">
    <tr>
    <td><img src="templates/SiteGroundPHPbb2/images/category_icon.gif" /></td>
    <td><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></td>
    </tr>
    </table>

    </td>
    </tr>

    <!-- BEGIN forumrow -->
    <!-- IF ! forumrow.PARENT -->

    <tr>
    <td class="row1">

    <table border="0">
    <tr>
    <td valign="top"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" /></td>
    <td valign="top"><a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />
    <span class="gensmall">{catrow.forumrow.FORUM_DESC}</span><br />
    <span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
    </tr>
    </table>
    </td>
    <td class="row1" align="center"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
    <td class="row1" align="center"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
    <td class="row1" align="center"><span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
    </tr>
    <!-- ENDIF -->
    <!-- END forumrow -->
    <!-- END catrow -->

    </table>


    </td>
    </tr>
    </table>

    <table width="100%" cellspacing="0" border="0" align="center" cellpadding="2">
    <tr>
    <td align="left">
    <!-- BEGIN switch_user_logged_in -->
    <span class="gensmall"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a></span>
    <!-- END switch_user_logged_in -->
    </td>
    <td align="right"><span class="gensmall">{S_TIMEZONE}</span></td>
    </tr>
    </table>


    <br />

    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td class="tableborder">

    <table width="100%" border="0" cellspacing="1">
    <tr>
    <td colspan="2" bgcolor="#0C0C0C" class="categorybar">

    <table border="0">
    <tr>
    <td><img src="templates/SiteGroundPHPbb2/images/category_icon.gif" /></td>
    <td><span class="cattitle"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></span></td>
    </tr>
    </table>

    </td>
    </tr>
    <tr>
    <td class="row1" align="center" valign="middle" rowspan="2" width="6%"><img src="templates/SiteGroundPHPbb2/images/whoisonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
    <td class="row1" align="left" width="94%"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}</span></td>
    </tr>
    <tr>
    <td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}<br /><i>{L_ONLINE_EXPLAIN}</i></span></td>
    </tr>
    </table>
    </td>
    </tr>
    </table>

    <br />

    <!-- BEGIN switch_user_logged_out -->
    <form method="post" action="{S_LOGIN_ACTION}">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td class="tableborder">

    <table width="100%" border="0" cellspacing="1" cellpadding="3">
    <tr>
    <td colspan="3" bgcolor="#0C0C0C" class="categorybar">

    <table border="0">
    <tr>
    <td><img src="templates/SiteGroundPHPbb2/images/category_icon.gif" /></td>
    <td><a name="login"></a><span class="cattitle">{L_LOGIN_LOGOUT}</span></a></td>
    </tr>
    </table>

    </td>
    </tr>
    <tr>
    <td class="row1" align="center" valign="middle">
    <span class="gensmall"><strong>{L_USERNAME}</strong>&nbsp;&nbsp;<input class="post" type="text" name="username" size="10" /></span>
    </td>
    <td class="row1" align="center" valign="middle">
    <span class="gensmall"><strong>{L_PASSWORD}</strong>&nbsp;&nbsp;<input class="post" type="password" name="password" size="10" maxlength="32" /></span>
    </td>
    <td class="row1" align="center" valign="middle">
    <!-- BEGIN switch_allow_autologin -->
    <span class="gensmall"><input class="text" type="checkbox" name="autologin" style="background-color : #060606;" /> {L_AUTO_LOGIN}</span>
    <!-- END switch_allow_autologin -->
    </td>
    </tr>
    <tr>
    <td class="row1" align="center" colspan="3">
    <input type="submit" class="mainoption" name="login" value="{L_LOGIN}" />
    </span>
    </td>
    </tr>
    </table>

    </td>
    </tr>
    </table>
    </form>
    <!-- END switch_user_logged_out -->

    <br />

    <table cellspacing="3" border="0" align="center" cellpadding="0" style="background-color:#cccccc;">
    <tr>
    <td>&nbsp;&nbsp;</td>
    <td width="20" align="center"><img src="templates/SiteGroundPHPbb2/images/folder_new.gif" alt="{L_NEW_POSTS}"/></td>
    <td><span class="gensmall">{L_NEW_POSTS}</span></td>
    <td>&nbsp;&nbsp;</td>
    <td width="20" align="center"><img src="templates/SiteGroundPHPbb2/images/folder.gif" alt="{L_NO_NEW_POSTS}" /></td>
    <td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
    <td>&nbsp;&nbsp;</td>
    <td width="20" align="center"><img src="templates/SiteGroundPHPbb2/images/folder_lock.gif" alt="{L_FORUM_LOCKED}" /></td>
    <td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
    </tr>
    </table>

ichabod1799
Registered User
Posts: 1
Joined: Sat Sep 01, 2007 1:43 pm

Re: Simple Subforums

Post by ichabod1799 » Sat Sep 01, 2007 1:57 pm

Okay, sorry guys for asking, and sorry if the problem has been reported before somewhere (it's just there's so many pages, and there's so little I read before falling asleep - so if the answer is somewhere, I would appreciate just being pointed in the right direction.)

First of all this simple sub forum mod is really good, well done - though it took me a while to install 5 hours to be exact, but I'm slow and new to this php and sql modifying.

Now I'm not sure which version of the mod I used, well I only have the file for version 1.0.2b

And the problem I have is when I make a sub forum in another forum, the new sub forum also duplicates its self on the main board, so I have two of the same forums. I.e, I made a games forum in the off topic section, but the games forum also appears on the main page with the rest of the forums.

http://thegreencat.ichabod1799.net/index.php - that's my forum if you need to look at the problem

Everything else works fine though, just this little problem.

I found something to try and fix it here - http://www.phpbb.com/community/viewtopi ... 4#p1582084

but the only difference in that and the mod that I downloaded is when I add this step
// Modify a forum in the DB
$forum_id = intval($HTTP_POST_VARS[POST_FORUM_URL]);
$row = get_info('forum', $forum_id);
$list = explode(',', $HTTP_POST_VARS[POST_CAT_URL]);
$new_cat = count($list) ? intval($list[0]) : intval($HTTP_POST_VARS[POST_CAT_URL]);
$new_parent = isset($list[1]) ? intval($list[1]) : 0;
if(!$row['forum_parent'] && $row['cat_id'] !== $new_cat)
{
// move subforums to new category
$sql = "UPDATE " . FORUMS_TABLE . " SET cat_id='{$new_cat}' WHERE forum_parent='{$forum_id}'";
$db->sql_query($sql);
}
into the admin/admin_forums.php - then the whole administration section doesn't work.

I hope someone can help me :)

User avatar
quahappy
Former Team Member
Posts: 1416
Joined: Tue Dec 12, 2006 8:19 pm
Location: South Yorkshire
Name: Andy Green

Re: Simple Subforums

Post by quahappy » Sat Sep 01, 2007 5:49 pm

ichabod1799 wrote:Okay, sorry guys for asking, and sorry if the problem has been reported before somewhere (it's just there's so many pages, and there's so little I read before falling asleep - so if the answer is somewhere, I would appreciate just being pointed in the right direction.)
Yes, many pages and can seem bewildering. Using the "Search" option doesn't always specifically give the answers you want lol.
ichabod1799 wrote:First of all this simple sub forum mod is really good, well done - though it took me a while to install 5 hours to be exact, but I'm slow and new to this php and sql modifying.

Now I'm not sure which version of the mod I used, well I only have the file for version 1.0.2b
Version 1.0.2b is the latest. ;)
ichabod1799 wrote:And the problem I have is when I make a sub forum in another forum, the new sub forum also duplicates its self on the main board, so I have two of the same forums. I.e, I made a games forum in the off topic section, but the games forum also appears on the main page with the rest of the forums.

http://thegreencat.ichabod1799.net/index.php - that's my forum if you need to look at the problem

Everything else works fine though, just this little problem.

I found something to try and fix it here - http://www.phpbb.com/community/viewtopi ... 4#p1582084

but the only difference in that and the mod that I downloaded is when I add this step
// Modify a forum in the DB
$forum_id = intval($HTTP_POST_VARS[POST_FORUM_URL]);
$row = get_info('forum', $forum_id);
$list = explode(',', $HTTP_POST_VARS[POST_CAT_URL]);
$new_cat = count($list) ? intval($list[0]) : intval($HTTP_POST_VARS[POST_CAT_URL]);
$new_parent = isset($list[1]) ? intval($list[1]) : 0;
if(!$row['forum_parent'] && $row['cat_id'] !== $new_cat)
{
// move subforums to new category
$sql = "UPDATE " . FORUMS_TABLE . " SET cat_id='{$new_cat}' WHERE forum_parent='{$forum_id}'";
$db->sql_query($sql);
}
into the admin/admin_forums.php - then the whole administration section doesn't work.

I hope someone can help me :)
The "fix" you mentioned is actually from the Mods in development Topic which was when Simple Subforums MOD was submitted to the MODDB and approved. This Topic is for all support of the released version.

Please double-check the code changes required for <your template>/index_body.tpl file. It looks like the following is missing from your template or in the wrong place:

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
<span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
	<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
	<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>


#
#-----[ REPLACE WITH ]------------------------------------------
#
<!-- IF catrow.forumrow.MODERATORS --><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}<br /></span><!-- ENDIF -->
	  <!-- BEGIN sub --><!-- DEFINE $HAS_SUB = 1 --><!-- IF catrow.forumrow.sub.NUM > 0 -->, <!-- ELSE --><span class="genmed">{L_SUBFORUMS}: <!-- ENDIF -->{catrow.forumrow.sub.LAST_POST_SUB} <a href="{catrow.forumrow.sub.U_VIEWFORUM}" <!-- IF catrow.forumrow.sub.UNREAD -->class="topic-new"<!-- ENDIF --> title="{catrow.forumrow.sub.FORUM_DESC_HTML}">{catrow.forumrow.sub.FORUM_NAME}</a><!-- END sub -->
	  <!-- IF $HAS_SUB --></span><!-- UNDEFINE $HAS_SUB --><!-- ENDIF -->
	</td>
	<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOTAL_TOPICS}</span></td>
	<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOTAL_POSTS}</span></td>
The above is my immediate guess. Without seeing all your changed files required for Subforums it can be more difficult to pinpoint.

Apart from that, do you also have eXtreme Styles MOD installed as well? Simple Subforums won't work without it.

Hope the above helps. Please PM me if you wish for me to look for you. ;)
If you don't ask.....

RyMonschau13
Registered User
Posts: 11
Joined: Sat Sep 01, 2007 6:11 pm

Re: Simple Subforums

Post by RyMonschau13 » Sat Sep 01, 2007 6:23 pm

Hello Everyone,
First off, very nice mod was very easy to install and modify (for the most part). I do have one problem though, I can't seem to change the title of the parent forum. I don't really know how to explain so I have provided a SS, I'm sure it is a very simple fix I just can't seem to find the variable to change. :( Any help would be greatly appreciated!
Image

User avatar
quahappy
Former Team Member
Posts: 1416
Joined: Tue Dec 12, 2006 8:19 pm
Location: South Yorkshire
Name: Andy Green

Re: Simple Subforums

Post by quahappy » Sat Sep 01, 2007 6:34 pm

RyMonschau13 wrote:Hello Everyone,
First off, very nice mod was very easy to install and modify (for the most part). I do have one problem though, I can't seem to change the title of the parent forum. I don't really know how to explain so I have provided a SS, I'm sure it is a very simple fix I just can't seem to find the variable to change. :( Any help would be greatly appreciated!
Go to your phpBB2 Administration Panel. In list of options in left pane, click on "Management" under Forum Admin.

On the right will be the full list of all the Categories and Forums you have created. There should be one that reads "Test Forum 1". Click on "Edit" to the right of the text. Change the text then click on Update.

Hope that helps. ;)
If you don't ask.....

Post Reply

Return to “[2.0.x] MOD Database Releases”