Integrate code - So 2 mods can work together

Support for phpBB mods/hacks.

Moderator: Moderators

Integrate code - So 2 mods can work together

Postby MattTheMan on Wed May 23, 2007 2:50 pm

Howdy guys.

I have a forum icon mod and I am trying to install a simple subforum mod too.

However the two dont seam to work together very well, when I have the subforum working the forum icons dissapear and when I get the icons back the subforums dissapear :(

Can anyone tell me what I need to do with this code please to integrate the two ?

OLD CODE WHICH WORKS AND GIVES ME THE FORUM ICONS
Code: Select all
<tr>
   <td class="row1" width="100%" height="50"><table width="100%" cellpadding="2" cellspacing="0" border="0">
   <tr><td><a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_ICON_IMG}</a></td>
   <td width="100%"><span class="forumlink"><a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{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>
     </tr>
     </table></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>


AM ASKED TO REPLACE IT WITH THIS FOR SUBFORUMS AND I LOSE MY FORUM ICONS
Code: Select all
<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>



Like I said when I overwrite like it tells me to in the subforum mod I lose me forum icons.

Any help would be much appreciated.

Cheers guys.

Matt :)
MattTheMan
Registered User
Registered User
 
Posts: 30
Joined: Sat Nov 18, 2006 11:48 pm
Location: Nottinghamshire, UK

Postby Case on Wed May 23, 2007 3:17 pm

Alright Matt, still working on the site then.

This might help...

viewtopic.php?t=11731
[size="9"]The Dope Spot - Urban Music Forum[/size]
User avatar
Case
Registered User
Registered User
 
Posts: 751
Joined: Thu Apr 28, 2005 3:27 pm
Location: North West UK

Postby MattTheMan on Wed May 23, 2007 3:20 pm

Howdy mate :)

Yeah workin on a new one now, still got me 4 bike forums runnin but I just got a evo and theres so many makes and models for evo I needed the subforum mod.

Well, you save me skin yet again mate lol thanks very much mate for that link, ya a top bloke.

Cheers.

Matt
MattTheMan
Registered User
Registered User
 
Posts: 30
Joined: Sat Nov 18, 2006 11:48 pm
Location: Nottinghamshire, UK


Return to phpBB Mods

Who is online

Users browsing this forum: No registered users and 3 guests

cron