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
pentapenguin
Former Team Member
Posts: 11030
Joined: Thu Jul 01, 2004 4:15 am
Location: GA, USA

Post by pentapenguin »

Hi.
James78 wrote: I know that you guys said that the subforums only go one level deep, but I was wondering how to make it so that you could have multiple levels of subforums. You don't have to help me, I'm just curious. :D

Sorry, I'm not going to add deeper levels unless it's rather easy (and I don't think it is).
There's a reason this is called Simple Subforums. ;)
If you want multiple levels, use the Categories Hierarchy MOD.

If anyone knows of a way to add multiple levels and not add much complexity, feel free to PM me.
Support Resources: Support Request Template
If you need professional assistance with your board, please contact me for my reasonable rates.
User avatar
KenzieGIRL
Registered User
Posts: 48
Joined: Fri Aug 19, 2005 2:20 pm
Contact:

Post by KenzieGIRL »

i installed this with the cash mod. works great. AWESOME alternative to category heirarchy.

*two thumbs up* :)
kulinar
Registered User
Posts: 657
Joined: Thu Feb 17, 2005 7:31 pm
Contact:

Post by kulinar »

I've been using since beta stage ver 0.0.4 with no problems and still badly need an update file to 1.0.0
>agb<
Registered User
Posts: 50
Joined: Wed Aug 10, 2005 5:19 am

Post by >agb< »

kulinar wrote: I've been using since beta stage ver 0.0.4 with no problems and still badly need an update file to 1.0.0


Update from 0.04 to RC2
gamehardy
Registered User
Posts: 19
Joined: Sun May 22, 2005 10:49 am

Post by gamehardy »

a simple mod and i managed to muck it up :P lol
i sort 1 problem out and it finds another problem. i will get there though :wink:
brilliant idea though :lol:
`checho`
Registered User
Posts: 63
Joined: Fri Nov 12, 2004 7:08 pm
Contact:

Post by `checho` »

Hello to everyone,

I am now installing this mod on my board that is heavily-modded. I want to discuss some instructions I cannot do due to problems mentioned below.

This is in index.php

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
								$folder_image = ( $unread_topics ) ? $images['forum_new'] : $images['forum']; 
								$folder_alt = ( $unread_topics ) ? $lang['New_posts'] : $lang['No_new_posts']; 


#
#-----[ AFTER, ADD ]------------------------------------------
#	

								// Begin Simple Subforums MOD
								$folder_images = array(
									'default'	=> $folder_image,
									'new'		=> $images['forum_new'],
									'sub'		=> ( isset($images['forums']) ) ? $images['forums'] : $images['forum'],
									'subnew'	=> ( isset($images['forums_new']) ) ? $images['forums_new'] : $images['forum_new'],
									'subalt'	=> $lang['No_new_posts'],
									'subaltnew'	=> $lang['New_posts'],
									);
								// End Simple Subforums MOD


viewforum.php:

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
if ( $mark_read == 'topics' )
{


#
#-----[ AFTER, ADD ]------------------------------------------
#

	// Begin Simple Subforums MOD
	$mark_list = ( isset($HTTP_GET_VARS['mark_list']) ) ? explode(',', $HTTP_GET_VARS['mark_list']) : array($forum_id);
	$old_forum_id = $forum_id;
	// End Simple Subforums MOD


#
#-----[ FIND ]------------------------------------------
#
				setcookie($board_config['cookie_name'] . '_f', serialize($tracking_forums), 0, $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']);


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

				// Begin Simple Subforums MOD
				$set_cookie = true;
				if( isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) )
				{
					$HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f'] = serialize($tracking_forums);
				}
				// End Simple Subforums MOD


#
#-----[ FIND ]------------------------------------------
#
		$template->assign_vars(array(
			'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id") . '">')


#
#-----[ BEFORE, ADD ]------------------------------------------
#

		// Begin Simple Subforums MOD
		if( $set_cookie )
		{
			setcookie($board_config['cookie_name'] . '_f', serialize($tracking_forums), 0, $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']);
		}
		$forum_id = $old_forum_id;
		// End Simple Subforums MOD



These instructions from this mod are not able to be done, because the Keep unread mod wanted remove for the lines we need to find. So, I skipped the things I noted above.

Please tell me, is it safe to skip them and what problems (if any) may I expect on the board this way?
User avatar
pentapenguin
Former Team Member
Posts: 11030
Joined: Thu Jul 01, 2004 4:15 am
Location: GA, USA

Post by pentapenguin »

gamehardy wrote: a simple mod and i managed to muck it up :P lol
i sort 1 problem out and it finds another problem. i will get there though :wink:
brilliant idea though :lol:

Well, if you need help just tell us your problem. ;)
Support Resources: Support Request Template
If you need professional assistance with your board, please contact me for my reasonable rates.
User avatar
pentapenguin
Former Team Member
Posts: 11030
Joined: Thu Jul 01, 2004 4:15 am
Location: GA, USA

Post by pentapenguin »

`checho` try this.
Open index.php
Find:

Code: Select all

							$folder_image = ( $unread_topic ) ? $images['forum_new'] : $images['forum'];
							$folder_alt = ( $unread_topic ) ? $lang['New_posts'] : $lang['No_new_posts'];
After add:

Code: Select all

                        // Begin Simple Subforums MOD
                        $folder_images = array(
                           'default'   => $folder_image,
                           'new'      => $images['forum_new'],
                           'sub'      => ( isset($images['forums']) ) ? $images['forums'] : $images['forum'],
                           'subnew'   => ( isset($images['forums_new']) ) ? $images['forums_new'] : $images['forum_new'],
                           'subalt'   => $lang['No_new_posts'],
                           'subaltnew'   => $lang['New_posts'],
                           );
                        // End Simple Subforums MOD
The viewforum.php code isn't absolutely needed -- it just keeps track of which posts you have read and the like.
Support Resources: Support Request Template
If you need professional assistance with your board, please contact me for my reasonable rates.
gamehardy
Registered User
Posts: 19
Joined: Sun May 22, 2005 10:49 am

Post by gamehardy »

can sum1 help me out with setting this up to another theme appart from subsilver :cry:
Last edited by gamehardy on Tue Nov 15, 2005 2:08 pm, edited 2 times in total.
kulinar
Registered User
Posts: 657
Joined: Thu Feb 17, 2005 7:31 pm
Contact:

Post by kulinar »

Thanks. But there is a small mistake in this file which makes update impossible. If anyone is interested, just let me know and I will tell you.
CoRuP7ioN
Registered User
Posts: 215
Joined: Thu Jul 21, 2005 6:58 am

Post by CoRuP7ioN »

pentapenguin wrote:
CoRuP7ioN wrote:I have xs installed..but i think i did something wrong with the installation...

I installed subforums, and had a few errors (missing lines) but did them manually... and it installed fine... and i click on my site.. and my portal works fine... but when my forums load.. the only thing that shows is the overall header.. no forums at all.. what did i do wrong..? and where do I actually add subforums to a forum and such? it didnt add anything to the admin control panel... was it supposed to?? Someone please help!!!


somebody said its uner forum>settings or sumthing... can sum1 tell me whats causeing my forums to not work? I think its index.php

You forgot

Code: Select all

<!-- ENDIF -->
before

Code: Select all

<!-- END forumrow -->


Where did i forget it?
User avatar
pentapenguin
Former Team Member
Posts: 11030
Joined: Thu Jul 01, 2004 4:15 am
Location: GA, USA

Post by pentapenguin »

You need to add that before

Code: Select all

<!-- END forumrow -->
in index_body.tpl
Support Resources: Support Request Template
If you need professional assistance with your board, please contact me for my reasonable rates.
CoRuP7ioN
Registered User
Posts: 215
Joined: Thu Jul 21, 2005 6:58 am

Post by CoRuP7ioN »

A little closer.. but still messed up... Now look at it...


http://www.adventgamers.com

Heres my code for Index_body.tpl (oh btw i fixed what u told me to)

Code: Select all

<table class="forumborder" width="100%" cellspacing="0" cellpadding="0" border="0" align="center">
	<tr>
  		<td colspan="2" class="title2" style="border-top:0px;" width="100%">
		Go to </td>
	</tr>
	<tr>
		<td class="colour1" align="left"><a href="{U_INDEX}">{L_INDEX}</a></td>
	</tr>
</table>
<br />
<table class="forumborder" width="400" cellspacing="0" cellpadding="0" border="0" align="center">
	<tr>
  	<td colspan="2" class="title2" style="border-top:0px;" width="100%">
	Site Info // Options
	</td>
	</tr>
	<tr>
	<td class="colour1" align="left" style="border-right:1px solid #656B78">
	<!-- BEGIN switch_user_logged_in -->
	{LAST_VISIT_DATE}<br />
	<!-- END switch_user_logged_in -->
	{CURRENT_TIME}<br />
	{S_TIMEZONE}<br />
		</td>
		<td class="colour2" align="right">
		<!-- BEGIN switch_user_logged_in -->
		<a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><br />
		<a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a><br />
		<!-- END switch_user_logged_in -->
		<a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a><br />
		<a href="{U_MARK_READ}">{L_MARK_FORUMS_READ}</a>
	</td>
	</tr>
</table>
<!-- BEGIN switch_user_logged_out -->
<table class="forumborder" width="400" cellspacing="0" cellpadding="0" border="0" align="center" style="border-top:0px;">
	<tr>
  	<td colspan="2" class="title2" style="border-top:0px;" width="100%">
	{L_LOGIN}
	</td>
	</tr>
	<tr>
	<td class="colour1" align="center">
<form method="post" action="{S_LOGIN_ACTION}">
	{L_USERNAME}:
            <input class="singline" type="text" name="username" size="10" />
&nbsp;&nbsp;&nbsp;{L_PASSWORD}:
      <input class="singline" type="password" name="password" size="10" maxlength="32" />
<br />{L_AUTO_LOGIN}
      <input type="checkbox" name="autologin" />
&nbsp;&nbsp;&nbsp;
      <input type="submit" class="button" name="login" value="{L_LOGIN}" />
</form>
	</td>
	</tr>
	</table>
<!-- END switch_user_logged_out -->
<br />
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="forumborder">
  <tr> 
	<th colspan="2" class="title1" height="25" nowrap="nowrap">&nbsp;{L_FORUM}&nbsp;</th>
	<th width="50" class="title1" nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</th>
	<th width="50" class="title1" nowrap="nowrap">&nbsp;{L_POSTS}&nbsp;</th>
	<th class="title1" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th>
  </tr>
  <!-- BEGIN catrow -->
  <tr> 
	<td class="title2" colspan="2"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></td>
	<td class="title2" colspan="3" align="right">&nbsp;</td>
  </tr>
  <!-- BEGIN forumrow -->
  <!-- IF ! forumrow.PARENT -->


  <!-- 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>
        <td class="colour2" align="center" valign="middle" height="50" nowrap="nowrap">{catrow.forumrow.LAST_POST}</td>
  </tr>
<!-- ENDIF -->  <!-- END forumrow -->
  <!-- END catrow -->
</table>
<br />
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="forumborder">
  <tr> 
	<td class="title1" colspan="2" style="border-bottom:1px solid #656B78"><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a> <span class="smalltitletext">({L_ONLINE_EXPLAIN})</span></td>
  </tr>
  <tr> 
	<td class="colour1" align="center" valign="middle" rowspan="2"><img src="templates/chunkstyle/imagesnew/btns/index_online.gif" alt="{L_WHO_IS_ONLINE}" /></td>
	<td class="colour1" align="left" width="100%">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}
	</td>
  </tr>
  <tr> 
	<td class="colour1" align="left">{TOTAL_USERS_ONLINE} &nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</td>
  </tr>
</table>
<br clear="all" />

<table cellspacing="3" border="0" align="center" cellpadding="0">
  <tr> 
	<td width="20" align="center"><img src="templates/chunkstyle/images/folder_new_big.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/chunkstyle/images/folder_big.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/chunkstyle/images/folder_locked_big.gif" alt="{L_FORUM_LOCKED}" /></td>
	<td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
  </tr>
</table>
User avatar
pentapenguin
Former Team Member
Posts: 11030
Joined: Thu Jul 01, 2004 4:15 am
Location: GA, USA

Post by pentapenguin »

You made several mistakes in index_body.tpl
I would just recommend restoring your backup of that file and reinstalling this MOD.
In this:

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>
Make sure you ONLY replace a section that has these variables:
{catrow.forumrow.L_MODERATOR}
{catrow.forumrow.MODERATORS}
{catrow.forumrow.TOPICS}
{catrow.forumrow.POSTS}
Support Resources: Support Request Template
If you need professional assistance with your board, please contact me for my reasonable rates.
CoRuP7ioN
Registered User
Posts: 215
Joined: Thu Jul 21, 2005 6:58 am

Post by CoRuP7ioN »

wait.. I dont exactly understand what you mean about the replacing thing...


Secondly.. i didnt make a backup, (stupidity) and I need to know where I made errors, so i can fix them.. Because the only other way is using the original template file, which probably will screw up other mods i have installed.

EDIT: i found the backup, and its all working agian, But I do need to get this mod installed correctly, so could you point out all the errors i made? I have to do it manually, and im not good at it.. -_-

I installed it with easymod, and it had 3-4 warnings, that i had to manually fix.. but i didnt really fix them.. did i?

Another thing, is theres no configuration for this mod in the admin panel. Perhaps thats another installation error? what do i have to to do get that to work also? (what files do i have to edit)

Thanks so much for your support!!!!
Post Reply

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