[Aphrodite] Simple Subforums MOD

Specific instructions on how to apply certain mods to certain styles.

Moderator: Moderators

[Aphrodite] Simple Subforums MOD

Postby kvfb97 on Sat Dec 31, 2005 11:25 pm

Code: Select all
##############################################################
## MOD Title: Simple Subforums MOD (Aphrodite Changes)
## MOD Author: kvfb97 < info@kvfb97.co.uk > (Robert Dougan) http://www.kvfb97.co.uk
## MOD Description: Aphrodite style changes for the simple subforums mod by pentapenguin
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: 10 Minutes
##
## Files To Edit: 7
## templates/ca_aphrodite/index_body.tpl
## templates/ca_aphrodite/modcp_body.tpl
## templates/ca_aphrodite/modcp_split.tpl
## templates/ca_aphrodite/posting_body.tpl
## templates/ca_aphrodite/ca_aphrodite.cfg
## templates/ca_aphrodite/viewforum_body.tpl
## templates/ca_aphrodite/viewtopic_body.tpl
##
## Included Files: 2
## templates/ca_aphrodite/images/folders.gif
## templates/ca_aphrodite/images/folders_new.gif
##
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
## This is only CA's Aphrodite style changes for this MOD. To get the MOD goto http://www.pentapenguin.com
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

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

#
#-----[ FIND ]------------------------------------------
#
<!-- BEGIN forumrow -->

#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- IF ! forumrow.PARENT -->

#
#-----[ FIND ]------------------------------------------
#
<tr>
   <td class="row3 row-center" width="30"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="25" height="25" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
   <td class="row1h{catrow.forumrow.XS_NEW} row-forum" width="70%" onclick="window.location.href='{catrow.forumrow.U_VIEWFORUM}'"><a class="forumlink{catrow.forumrow.XS_NEW}" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a><br />
     <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
     </span><span class="moderators">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
   <td class="row2 row-center-small">{catrow.forumrow.TOPICS}</td>
   <td class="row2 row-center-small">{catrow.forumrow.POSTS}</td>
   <td class="row3 row-center-small" width="130">{catrow.forumrow.LAST_POST}</td>
</tr>

#
#-----[ REPLACE WITH ]------------------------------------------
#
<tr> 
    <td class="row3 row-center" width="30"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="25" height="25" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td> 
    <td class="row1h{catrow.forumrow.XS_NEW} row-forum" width="70%" onclick="window.location.href='{catrow.forumrow.U_VIEWFORUM}'"><a class="forumlink{catrow.forumrow.XS_NEW}" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a><br /> 
      <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
<!-- 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 -->
        </span><span class="moderators"> <!-- IF catrow.forumrow.MODERATORS -->{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}<br /><!-- ENDIF --> </span></td> 
    <td class="row2 row-center-small">{catrow.forumrow.TOTAL_TOPICS}</td> 
    <td class="row2 row-center-small">{catrow.forumrow.TOTAL_POSTS}</td> 
    <td class="row3 row-center-small" width="130">{catrow.forumrow.LAST_POST}</td> 
</tr> 

#
#-----[ FIND ]------------------------------------------
#
<!-- END forumrow -->

#
#-----[ BEFORE, ADD ]------------------------------------------
#
<!-- ENDIF -->

#
#-----[ OPEN ]------------------------------------------
#
templates/ca_aphrodite/modcp_body.tpl


#
#-----[ FIND ]------------------------------------------
#
<a href="{U_INDEX}">{L_INDEX}</a>

#
#-----[ IN-LINE FIND ]------------------------------------------
#
</a>

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
<!-- IF PARENT_FORUM -->&raquo; <a href="{U_VIEW_PARENT_FORUM}">{PARENT_FORUM_NAME}</a><!-- ENDIF -->

#
#-----[ OPEN ]------------------------------------------
#
templates/ca_aphrodite/modcp_split.tpl


#
#-----[ FIND ]------------------------------------------
#
<a href="{U_INDEX}">{L_INDEX}</a>

#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- IF PARENT_FORUM -->&raquo; <a href="{U_VIEW_PARENT_FORUM}">{PARENT_FORUM_NAME}</a><!-- ENDIF -->

#
#-----[ OPEN ]------------------------------------------
#
templates/ca_aphrodite/posting_body.tpl


#
#-----[ FIND ]------------------------------------------
#
<a href="{U_VIEW_FORUM}">{FORUM_NAME}</a>

#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- IF PARENT_FORUM -->&raquo; <a href="{U_VIEW_PARENT_FORUM}">{PARENT_FORUM_NAME}</a><!-- ENDIF -->

#
#-----[ OPEN ]------------------------------------------
#
templates/ca_aphrodite/ca_aphrodite.cfg


#
#-----[ FIND ]------------------------------------------
#
?>

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

// Begin Simple Subforums MOD
$images['forums'] = "$current_template_images/folders.gif";
$images['forums_new'] = "$current_template_images/folders_new.gif";
// End Simple Subforums MOD

#
#-----[ OPEN ]------------------------------------------
#
templates/ca_aphrodite/viewforum_body.tpl


#
#-----[ FIND ]------------------------------------------
#
<a href="{U_INDEX}">{L_INDEX}</a>

#
#-----[ IN-LINE FIND ]------------------------------------------
#
</a>

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
<!-- IF PARENT_FORUM -->&raquo; <a href="{U_VIEW_PARENT_FORUM}">{PARENT_FORUM_NAME}</a><!-- ENDIF -->


#
#-----[ FIND ]------------------------------------------
#
<tr>
   <td align="left" valign="middle"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" alt="{L_POST_NEW_TOPIC}" /></a></td>
</tr>
</table>

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

<!-- BEGIN catrow -->
<table width="100%" cellspacing="0" class="forumline">
<tr>
   <td colspan="5" class="row-header"><span>{FORUM_NAME}</span></td>
</tr>
<tr>
   <th colspan="2">{catrow.CAT_DESC}</th>
   <th>{L_TOPICS}</th>
   <th>{L_POSTS}</th>
   <th>{L_LASTPOST}</th>
</tr>
<!-- BEGIN forumrow -->
<tr>
   <td class="row3 row-center" width="30"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="25" height="25" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
   <td class="row1h{catrow.forumrow.XS_NEW} row-forum" width="70%" onclick="window.location.href='{catrow.forumrow.U_VIEWFORUM}'"><a class="forumlink{catrow.forumrow.XS_NEW}" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a><br />
     <span class="genmed">{catrow.forumrow.FORUM_DESC}
     </span><br /><span class="moderators">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
   <td class="row2 row-center-small">{catrow.forumrow.TOPICS}</td>
   <td class="row2 row-center-small">{catrow.forumrow.POSTS}</td>
   <td class="row3 row-center-small" width="130">{catrow.forumrow.LAST_POST}</td>
</tr>
<!-- END forumrow -->
</table>
<!-- END catrow -->

#
#-----[ OPEN ]------------------------------------------
#
templates/ca_aphrodite/viewtopic_body.tpl


#
#-----[ FIND ]------------------------------------------
#
<a href="{U_INDEX}" class="nav">{L_INDEX}</a>


#
#-----[ IN-LINE FIND ]------------------------------------------
#
</a>


#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
<!-- IF PARENT_FORUM --> -> <a class="nav" href="{U_VIEW_PARENT_FORUM}">{PARENT_FORUM_NAME}</a><!-- ENDIF -->


#
#-----[ FIND ]------------------------------------------
#
<a href="{U_INDEX}">{L_INDEX}</a>


#
#-----[ IN-LINE FIND ]------------------------------------------
#
</a>


#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
<!-- IF PARENT_FORUM --> -> <a class="nav" href="{U_VIEW_PARENT_FORUM}">{PARENT_FORUM_NAME}</a><!-- ENDIF -->

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM


Image
Image
Last edited by kvfb97 on Sun Jan 01, 2006 10:57 pm, edited 2 times in total.
Tip: Don't argue with idiots, they'll drag you down to their level and beat you with experience.
User avatar
kvfb97
Registered User
Registered User
 
Posts: 1774
Joined: Mon Aug 02, 2004 8:18 am
Location: Northern Ireland, UK

Postby Reiji Kurosaky on Sun Jan 01, 2006 9:05 am

Thanks a lot, I really looked for this.

Theres only one problem, when you make the changes to index_body.tpl in the replace part, as the first part is a table row and the content to replace isn´t, its deform the forum.

Can someone repair this?
User avatar
Reiji Kurosaky
Registered User
Registered User
 
Posts: 858
Joined: Sat Dec 03, 2005 4:05 pm

Postby UseLess on Sun Jan 01, 2006 9:32 am

Greetings,

That's due to the last post cell being missing in the code you replace with... and the styles CSS classes are not used
Movie Quote:
It's not the years honey, it's the mileage...

I do not provide any install services for phpBB, Mods or Styles.
Please do not pm me for support/scripting help - you won't get any reply. If you have a question then make a post in the appropriate forum.
User avatar
UseLess
Registered User
Registered User
 
Posts: 6220
Joined: Mon Sep 27, 2004 2:14 am
Location: North East, UK

Postby Reiji Kurosaky on Sun Jan 01, 2006 5:48 pm

Well, i found the right code;

Code: Select all

#-----[ OPEN ]------------------------------------------ 

templates/ca_aphrodite/index_body.tpl 
 

#-----[ FIND ]------------------------------------------ 

<tr> 
    <td class="row3 row-center" width="30"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="25" height="25" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td> 
    <td class="row1h{catrow.forumrow.XS_NEW} row-forum" width="70%" onclick="window.location.href='{catrow.forumrow.U_VIEWFORUM}'"><a class="forumlink{catrow.forumrow.XS_NEW}" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a><br /> 
      <span class="genmed">{catrow.forumrow.FORUM_DESC}<br /> 
      </span><span class="moderators">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td> 
    <td class="row2 row-center-small">{catrow.forumrow.TOPICS}</td> 
    <td class="row2 row-center-small">{catrow.forumrow.POSTS}</td> 
    <td class="row3 row-center-small" width="130">{catrow.forumrow.LAST_POST}</td> 
</tr> 
 

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

<tr> 
    <td class="row3 row-center" width="30"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="25" height="25" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td> 
    <td class="row1h{catrow.forumrow.XS_NEW} row-forum" width="70%" onclick="window.location.href='{catrow.forumrow.U_VIEWFORUM}'"><a class="forumlink{catrow.forumrow.XS_NEW}" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a><br /> 
      <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
<!-- 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 -->
        </span><span class="moderators"> <!-- IF catrow.forumrow.MODERATORS -->{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}<br /><!-- ENDIF --> </span></td> 
    <td class="row2 row-center-small">{catrow.forumrow.TOTAL_TOPICS}</td> 
    <td class="row2 row-center-small">{catrow.forumrow.TOTAL_POSTS}</td> 
    <td class="row3 row-center-small" width="130">{catrow.forumrow.LAST_POST}</td> 
</tr> 
 
 
User avatar
Reiji Kurosaky
Registered User
Registered User
 
Posts: 858
Joined: Sat Dec 03, 2005 4:05 pm

Postby kvfb97 on Sun Jan 01, 2006 10:35 pm

Sorry, couldnt update it as i had no access to the forum.
Tip: Don't argue with idiots, they'll drag you down to their level and beat you with experience.
User avatar
kvfb97
Registered User
Registered User
 
Posts: 1774
Joined: Mon Aug 02, 2004 8:18 am
Location: Northern Ireland, UK

Postby Reiji Kurosaky on Sun Jan 01, 2006 10:49 pm

Greetings.

Its me again.

In viewtopic_body.tpl there aren´t anything like this:

Code: Select all
<td align="left" valign="middle" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a>


The right portion to find is:

Code: Select all
<a href="{U_INDEX}">{L_INDEX}</a>
My sites:
Villavizar.com

My Styles:
[Venus]
User avatar
Reiji Kurosaky
Registered User
Registered User
 
Posts: 858
Joined: Sat Dec 03, 2005 4:05 pm

Postby Perwaja on Wed Jan 04, 2006 7:11 am

ok nice mod :P hehe when i use subforum mod i only using default style it look funny now my forum look like have a new life. k back to problem i already done install it now but now i got 1 problem at forum index it show Moderator : admin in same lane with topic description how to settle this?

u can view my forum at www.plkn.net/v1
Perwaja
Registered User
Registered User
 
Posts: 13
Joined: Sun Feb 27, 2005 2:03 pm

Postby Reiji Kurosaky on Wed Jan 04, 2006 7:31 am

[quote user="Perwaja" post="63160"]ok nice mod :P hehe when i use subforum mod i only using default style it look funny now my forum look like have a new life. k back to problem i already done install it now but now i got 1 problem at forum index it show Moderator : admin in same lane with topic description how to settle this?

u can view my forum at www.plkn.net/v1[/quote]

Just be sure you did this:

Code: Select all

#-----[ OPEN ]------------------------------------------ 

templates/ca_aphrodite/index_body.tpl 
 

#-----[ FIND ]------------------------------------------ 

<tr> 
    <td class="row3 row-center" width="30"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="25" height="25" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td> 
    <td class="row1h{catrow.forumrow.XS_NEW} row-forum" width="70%" onclick="window.location.href='{catrow.forumrow.U_VIEWFORUM}'"><a class="forumlink{catrow.forumrow.XS_NEW}" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a><br /> 
      <span class="genmed">{catrow.forumrow.FORUM_DESC}<br /> 
      </span><span class="moderators">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td> 
    <td class="row2 row-center-small">{catrow.forumrow.TOPICS}</td> 
    <td class="row2 row-center-small">{catrow.forumrow.POSTS}</td> 
    <td class="row3 row-center-small" width="130">{catrow.forumrow.LAST_POST}</td> 
</tr> 
 

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

<tr> 
    <td class="row3 row-center" width="30"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="25" height="25" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td> 
    <td class="row1h{catrow.forumrow.XS_NEW} row-forum" width="70%" onclick="window.location.href='{catrow.forumrow.U_VIEWFORUM}'"><a class="forumlink{catrow.forumrow.XS_NEW}" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a><br /> 
      <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
<!-- 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 -->
        </span><span class="moderators"> <!-- IF catrow.forumrow.MODERATORS -->{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}<br /><!-- ENDIF --> </span></td> 
    <td class="row2 row-center-small">{catrow.forumrow.TOTAL_TOPICS}</td> 
    <td class="row2 row-center-small">{catrow.forumrow.TOTAL_POSTS}</td> 
    <td class="row3 row-center-small" width="130">{catrow.forumrow.LAST_POST}</td> 
</tr> 
 
 
My sites:
Villavizar.com

My Styles:
[Venus]
User avatar
Reiji Kurosaky
Registered User
Registered User
 
Posts: 858
Joined: Sat Dec 03, 2005 4:05 pm

Postby WinSrev on Wed Jan 04, 2006 4:54 pm

What about the images for the green template?
User avatar
WinSrev
Registered User
Registered User
 
Posts: 691
Joined: Sat Nov 27, 2004 10:44 pm
Location: UK

Postby Reiji Kurosaky on Wed Jan 04, 2006 6:07 pm

Image
My sites:
Villavizar.com

My Styles:
[Venus]
User avatar
Reiji Kurosaky
Registered User
Registered User
 
Posts: 858
Joined: Sat Dec 03, 2005 4:05 pm

Postby WinSrev on Wed Jan 04, 2006 6:28 pm

Thanks.
User avatar
WinSrev
Registered User
Registered User
 
Posts: 691
Joined: Sat Nov 27, 2004 10:44 pm
Location: UK

Postby Reiji Kurosaky on Wed Jan 04, 2006 6:34 pm

You´re welcome! ;)
My sites:
Villavizar.com

My Styles:
[Venus]
User avatar
Reiji Kurosaky
Registered User
Registered User
 
Posts: 858
Joined: Sat Dec 03, 2005 4:05 pm

Postby X_SD_X on Wed Mar 01, 2006 2:45 am

hey ive got 1 question do you have to install the original subforums mod first?
i like pie...
User avatar
X_SD_X
Registered User
Registered User
 
Posts: 280
Joined: Sun Jan 22, 2006 4:13 am
Location: Just around the corner

Postby Reiji Kurosaky on Wed Mar 01, 2006 2:50 am

Yes, this are only the template changes for aphrodite style, the other changes (for the core files) must be done too...

So first install the mod normally and when you come with the template changes do the steps stated above.
My sites:
Villavizar.com

My Styles:
[Venus]
User avatar
Reiji Kurosaky
Registered User
Registered User
 
Posts: 858
Joined: Sat Dec 03, 2005 4:05 pm

Postby X_SD_X on Wed Mar 01, 2006 2:53 am

aaah ok thanks
i like pie...
User avatar
X_SD_X
Registered User
Registered User
 
Posts: 280
Joined: Sun Jan 22, 2006 4:13 am
Location: Just around the corner

Next

Return to How to mod some styles

Who is online

Users browsing this forum: No registered users and 2 guests