[Apollo] Simple Subforums MOD

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

Moderator: Moderators

Postby Reiji Kurosaky on Wed Jan 11, 2006 12:18 am

- Changed code.
- Added Demo.
- Added pre-modded files.
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 Disturbed One on Wed Jan 11, 2006 12:34 am

I took a look at your code, and most of it is wrong. You used the aphrodite instructions. This style has almost no similarities with aphrodite in css. Here are the code instructions that should work properly.

Code: Select all
##############################################################
## MOD Title: Simple Subforums MOD (Apollo Changes)
## MOD Author: Reiji Kurosaky < admin@reijik.net > (Gustavo Villavizar) http://reijik.net
## MOD Description: Apollo 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/apollo/index_body.tpl
## templates/apollo/modcp_body.tpl
## templates/apollo/modcp_split.tpl
## templates/apollo/posting_body.tpl
## templates/apollo/apollo.cfg
## templates/apollo/viewforum_body.tpl
## templates/apollo/viewtopic_body.tpl
##
## Included Files: 10
## templates/apollo/images/black/folders_new.gif
## templates/apollo/images/black/folders.gif
## templates/apollo/images/blue/folders_new.gif
## templates/apollo/images/blue/folders.gif
## templates/apollo/images/green/folders_new.gif
## templates/apollo/images/green/folders.gif
## templates/apollo/images/purple/folders_new.gif
## templates/apollo/images/purple/folders.gif
## templates/apollo/images/red/folders_new.gif
## templates/apollo/images/red/folders.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 Disturbed One´s Apollo style changes for this MOD. To get the MOD go to http://phpbbstyles.com/
## also, to get the Apollo Template, go to http://hvmdesign.com/
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

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

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

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

#
#-----[ FIND ]------------------------------------------
#
   <td class="row1h" width="100%" height="50" onclick="window.location.href='{catrow.forumrow.U_VIEWFORUM}'">
      <span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink{catrow.forumrow.XS_NEW}">

{catrow.forumrow.FORUM_NAME}</a><br /></span> <span class="genmed">{catrow.forumrow.FORUM_DESC}<br /></span><span

class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span>
   </td>
   <td class="row1" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}

</span></td>
   <td class="row1" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}

</span></td>

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

   <td class="row1h" width="100%" height="50" onclick="window.location.href='{catrow.forumrow.U_VIEWFORUM}'">
      <span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink{catrow.forumrow.XS_NEW}">

{catrow.forumrow.FORUM_NAME}</a><br /></span> <span class="genmed">{catrow.forumrow.FORUM_DESC}<br /></span><!-- IF

catrow.forumrow.MODERATORS --><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</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="row1" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOTAL_TOPICS}

</span></td>
   <td class="row1" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOTAL_POSTS}

</span></td>


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

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

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


#
#-----[ FIND ]------------------------------------------
#
<a href="{U_INDEX}" class="nav">{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/apollo/modcp_split.tpl


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

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

#
#-----[ OPEN ]------------------------------------------
#
templates/apollo/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/apollo/apollo.cfg


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

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

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

#
#-----[ OPEN ]------------------------------------------
#
templates/apollo/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 ]------------------------------------------
#
         <td align="left" valign="middle" style="padding-bottom: 5px"><a href="{U_POST_NEW_TOPIC}"><img

src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" /></a></td>
         <td align="right" valign="bottom" style="padding-bottom: 5px"><span class="gen">{PAGE_NUMBER}<br

/><span class="pagination">{PAGINATION}</span></span></td>
      </tr>
   </table>

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

<!-- BEGIN catrow -->
<table border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline">
<tr>
   <th colspan="5">{ARROW}{FORUM_NAME}</th>
</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="row1" 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" width="70%"

onclick="window.location.href='{catrow.forumrow.U_VIEWFORUM}'"><a class="topictitle{topicrow.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">{catrow.forumrow.TOPICS}</td>
   <td class="row2">{catrow.forumrow.POSTS}</td>
   <td class="row2" width="130">{catrow.forumrow.LAST_POST}</td>
</tr>
<!-- END forumrow -->
</table>
<!-- END catrow -->

#
#-----[ OPEN ]------------------------------------------
#
templates/apollo/viewtopic_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 -->

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

Oh, and its hvmdesign.com, not hvmdesigns.com ;)

Since you are the main author of the above template changes, it would be great if you can also post them here.
High Velocity Media - Accelerated Internet Solutions
http://hvmdesign.com | contact[at]hvmdesign[dot]com
User avatar
Disturbed One
Moderator
Moderator
 
Posts: 2106
Joined: Sat Oct 09, 2004 8:12 pm
Location: Right behind you...

Postby Disturbed One on Wed Jan 11, 2006 12:53 am

Thank you for updating, and sorry I appeared rude :D
High Velocity Media - Accelerated Internet Solutions
http://hvmdesign.com | contact[at]hvmdesign[dot]com
User avatar
Disturbed One
Moderator
Moderator
 
Posts: 2106
Joined: Sat Oct 09, 2004 8:12 pm
Location: Right behind you...

Postby Reiji Kurosaky on Wed Jan 11, 2006 1:41 am

Bad news, I updated the code with the one you provided and now I have an error:

http://reiji.frihost.net/apollo_test/

Edit:Done, I already solved this problem...it was just a $ out of place.
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 kvfb97 on Wed Jan 11, 2006 10:00 am

I think the view forum page is a bit off when there is sub forums in that forum - where the categorys are.

Also, when you view a topic, the link in the nav bar is the wrong colour.
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 mwx on Wed Jan 11, 2006 11:08 am

nice job. is it possible to get these changes made

Image
User avatar
mwx
Registered User
Registered User
 
Posts: 1075
Joined: Wed Jul 13, 2005 3:19 pm
Location: long island, new york

Postby Reiji Kurosaky on Wed Jan 11, 2006 4:48 pm

Ok, I almost re-do the code to the viewforum_body.tpl.

To get the correctly function, you need to do this:

Code: Select all

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

templates/apollo/viewforum_body.tpl 
 

#-----[ FIND & DELETE ]------------------------------------------ 

 
<!-- BEGIN catrow --> 
<table border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline"> 
<tr> 
    <th colspan="5">{ARROW}{FORUM_NAME}</th> 
</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="row1" 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" width="70%" 
 
onclick="window.location.href='{catrow.forumrow.U_VIEWFORUM}'"><a class="topictitle{topicrow.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">{catrow.forumrow.TOPICS}</td> 
    <td class="row2">{catrow.forumrow.POSTS}</td> 
    <td class="row2" width="130">{catrow.forumrow.LAST_POST}</td> 
</tr> 
<!-- END forumrow --> 
</table> 
<!-- END catrow -->

#
#-----[ FIND ]------------------------------------------
#
<table width="100%" cellspacing="0" cellpadding="2" border="0" align="center">
   <tr>
      <td align="left" valign="bottom"><span class="gensmall">{L_MODERATOR}: {MODERATORS}<br />

{LOGGED_IN_USER_LIST}</span></td>

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

<br />
<!-- BEGIN catrow -->
<table border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline">
<tr>
   <th colspan="5" class="header">{ARROW}{FORUM_NAME}</th>
</tr>
      <tr>
   <td class="catHead" colspan="2" height="28" nowrap="nowrap">{L_FORUM}</a></td>
   <td class="catHead" width="50" nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</td>
   <td class="catHead" width="50" nowrap="nowrap">&nbsp;{L_POSTS}&nbsp;</td>
   <td class="catHead" width="150" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</td>
      </tr>

<!-- BEGIN forumrow -->
<tr>
   <td class="row1" 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" width="70%" onclick="window.location.href='{catrow.forumrow.U_VIEWFORUM}'"><a class="topictitle

{topicrow.XS_NEW}" href="{catrow.forumrow.U_VIEWFORUM}">{catrow.forumrow.FORUM_NAME}</a><br />
     <span class="genmed">{catrow.forumrow.FORUM_DESC}
     </span><br /><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
   <td class="row1" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}
</span></td>
   <td class="row1" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}
</span></td>
   <td class="row1" width="130" align="center" class="catHead" nowrap="nowrap"><span class="gensmall">

{catrow.forumrow.LAST_POST}</span></td>
</tr>
<!-- END forumrow -->
</table>
<!-- END catrow -->
<br />


Now I´m poing to update the code in this post and in the premodded files so, please, if you have this code on your board, update it.
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 mwx on Wed Jan 11, 2006 11:32 pm

thanks. that seemed to do it for me
User avatar
mwx
Registered User
Registered User
 
Posts: 1075
Joined: Wed Jul 13, 2005 3:19 pm
Location: long island, new york

Postby Disturbed One on Sat Feb 18, 2006 3:31 am

If you want the official images for Simple subforums, then you can get them below. If you don't wish to use them, then feel free to use Reiji's.
ImageImage
High Velocity Media - Accelerated Internet Solutions
http://hvmdesign.com | contact[at]hvmdesign[dot]com
User avatar
Disturbed One
Moderator
Moderator
 
Posts: 2106
Joined: Sat Oct 09, 2004 8:12 pm
Location: Right behind you...

Postby Stryker on Fri Apr 28, 2006 1:15 pm

where can i find folders.gi and folders_new.gif but with the plus in?
User avatar
Stryker
Registered User
Registered User
 
Posts: 1318
Joined: Mon Aug 29, 2005 7:54 am
Location: ------------

Postby Disturbed One on Fri Apr 28, 2006 4:36 pm

Hello,

No icons with pluses have been made. You are welcome to if you wish.

Or you can use Reijis, or the official icons (made by me): Image and Image.

You can download those here.
High Velocity Media - Accelerated Internet Solutions
http://hvmdesign.com | contact[at]hvmdesign[dot]com
User avatar
Disturbed One
Moderator
Moderator
 
Posts: 2106
Joined: Sat Oct 09, 2004 8:12 pm
Location: Right behind you...

Postby Reiji Kurosaky on Fri Apr 28, 2006 7:18 pm

[quote user="Disturbed One" post="74642"]Hello,

No icons with pluses have been made. You are welcome to if you wish.

Or you can use Reijis, or the official icons (made by me): Image and Image.

You can download those here.[/quote]

I told you already...mine are better.
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 Stryker on Fri Apr 28, 2006 7:57 pm

i have one question, i have download icons made by Disturbed One, but...
Image

can someone fix it please?
User avatar
Stryker
Registered User
Registered User
 
Posts: 1318
Joined: Mon Aug 29, 2005 7:54 am
Location: ------------

Postby Reiji Kurosaky on Fri Apr 28, 2006 9:20 pm

Hello,

They are not supposed to be the same since the simple ones (with only one sheet) are for normal forums and the new ones (the one with two sheets) are for forums with subforums in it.
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 Stryker on Fri Apr 28, 2006 9:59 pm

yes, that is alright, but i mean the border color :) on the first image it is gray and on the second it is black :( and i want tem black together
User avatar
Stryker
Registered User
Registered User
 
Posts: 1318
Joined: Mon Aug 29, 2005 7:54 am
Location: ------------

PreviousNext

Return to How to mod some styles

Who is online

Users browsing this forum: No registered users and 1 guest

cron