collapsible nav menu and integraMod
 
 
Post new topic   Reply to topic   printer-friendly view    phpMiX.org Forum Index -> phpBB MODs -> DHTML Collapsible Forum Index
View previous topic :: View next topic  
Author Message
Michael Lundie
Starter
Starter


Joined: 23 Oct 2004
Posts: 1
Location: Scotland

PostPosted: Sat Oct 23, 2004 9:48 pm    Post subject: collapsible nav menu and integraMod Reply with quote

Hi! First off, this is a pretty neat site! Nice job.

I have a couple of questions regarding the use of the collapsible nav menu with IntegraMod. (I love the mod - it'd be really handy over on our site too!) Integramod uses IMPortal, and a blocks system to work, and the templates system is where your collapsible nav menu mod doesn't integrate with with Integra - the indexbody.tpl is a lot different - here is it in mid mod:

Code:
<script language="javascript" type="text/javascript" src="{U_CFI_JSLIB}"></script>
<script language="javascript" type="text/javascript">
<!--

var CFIG_Version = "DHTML Collapsible Forum Index MOD v1.1.1";

var CFIG = new _CFIG('CFIG',
      ['{IMG_PLUS}', '{IMG_MINUS}'],
      ['{IMG_DW_ARROW}', '{IMG_UP_ARROW}'],
      ['{COOKIE_PATH}', '{COOKIE_DOMAIN}', (('{COOKIE_SECURE}' == '0') ? false : true)]);
   CFIG.T['cookie'] = '{CFI_COOKIE_NAME}';
   CFIG.T['title'] = ['{L_CFI_OPTIONS}', '{L_CFI_OPTIONS_EX}'];
   CFIG.T['close'] = '{L_CFI_CLOSE}';
   CFIG.T['delete'] = '{L_CFI_DELETE}';
   CFIG.T['restore'] = '{L_CFI_RESTORE}';
   CFIG.T['save'] = '{L_CFI_SAVE}';
   CFIG.T['expand_all'] = '{L_CFI_EXPAND_ALL}';
   CFIG.T['collapse_all'] = '{L_CFI_COLLAPSE_ALL}';
   CFIG.T['u_index'] = '{U_INDEX}';
   CFIG.allowed = true;

   if( CFIG.IsEnabled() && parseInt(CFIG.getQueryVar('c')) > 0 )
   {
      window.location.replace('{U_INDEX}');
   }
// -->
</script>
<!-- BEGIN switch_banner_18 -->
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr onclick="CFIG_slideCat('{catrow.CAT_ID}', false);" style="cursor:pointer;cursor:hand;"  title="{catrow.CAT_DESC}">
<td width="100%" align="center">{BANNER_18_IMG}</td>
</tr></table>
<!-- END switch_banner_18 -->
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td colspan="2" class="maintitle">{L_INDEX}</td>
</tr>
<tr>
<td valign="bottom" class="gensmall">
<!-- BEGIN switch_user_logged_in -->
{LAST_VISIT_DATE}<br />
<!-- END switch_user_logged_in -->
<!-- BEGIN switch_user_logged_out -->
{LAST_VISIT_DATE}<br />
<!-- END switch_user_logged_out -->

   {CURRENT_TIME}<br /></span>
<script language="javascript" type="text/javascript">
<!--
   CFIG.writeButton();
// -->
</script>

<span
<a href="{U_INDEX}" class="nav">{L_INDEX}</a>{NAV_CAT_DESC}</td>
<td align="right" valign="bottom" class="gensmall">
<a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a><br />
<!-- BEGIN switch_user_logged_out -->
<a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a><br />
<!-- END switch_user_logged_out -->
<!-- BEGIN switch_user_logged_in -->
<a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a><br />
<a href="{U_MARK_READ}"><strong>{L_MARK_FORUMS_READ}</strong></a>
<!-- END switch_user_logged_in -->
</td>
</tr>
</table>
{BOARD_ANNOUNCES}
{BOARD_INDEX}
<table border="0" align="center" cellpadding="0" cellspacing="3">
<tr>
<td><img src="{FORUM_NEW_IMG}" alt="{L_NEW_POSTS}" title="{L_NEW_POSTS}" /></td>
<td class="gensmall">{L_NEW_POSTS}</td>
<td>&nbsp;</td>
<td><img src="{FORUM_IMG}" alt="{L_NO_NEW_POSTS}" title="{L_NO_NEW_POSTS}" /></td>
<td class="gensmall">{L_NO_NEW_POSTS}</td>
<td>&nbsp;</td>
<td><img src="{FORUM_LOCKED_IMG}" alt="{L_FORUM_LOCKED}" title="{L_FORUM_LOCKED}" /></td>
<td class="gensmall">{L_FORUM_LOCKED}</td>
</tr>
</table><br />
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<!-- BEGIN switch_user_logged_out -->
<tr><td>
<form method="post" action="{S_LOGIN_ACTION}">
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="cat">{L_LOGIN_LOGOUT}</td>
</tr>
<tr>
<td class="row1" align="center">
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="gensmall">{L_USERNAME}:&nbsp;</td>
<td><input class="post" type="text" name="username" size="10" /></td>
<td class="gensmall">&nbsp;&nbsp;&nbsp;{L_PASSWORD}:</td>
<td><input class="post" type="password" name="password" size="10" maxlength="32" /></td>
<td class="gensmall">&nbsp;&nbsp;&nbsp;{L_AUTO_LOGIN}</td>
<td><input class="text" type="checkbox" name="autologin" /></td>
<td>&nbsp;&nbsp;<input type="submit" class="mainoption" name="login" value="{L_LOGIN}" /></td>
</tr>
</table></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="tbl"><tr><td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td></tr></table>
</form>
</td></tr>
<tr><td>&nbsp;</td></tr>
<!-- END switch_user_logged_out -->
<tr>
<td>
<table width="100%" cellspacing="0" border="0" cellpadding="0">
<tr>
<td valign="top">{MINI_CAL_OUTPUT}</td><td width="10"><img src="images/spacer.gif" alt="" width="10" height="30" /></td>
<td width="100%" valign="top">
<table width="100%" cellspacing="0" bordero="0" cellpadding="0">
<tr><td>
<!-- BEGIN switch_user_logged_in -->
<!-- Start add - Fully integrated shoutbox MOD -->
<table width="100%" cellspacing="0" border="0" align="center" cellpadding="0" class="forumline">
<tr>
<td align="center" nowrap="nowrap" class="cat"><span class="cattitle"><a href="{U_SHOUTBOX_MAX}">{L_SHOUTBOX}</a></span></td>
</tr>
<tr>
<td>
<iframe src="{U_SHOUTBOX}" scrolling="NO" width="100%" height="210" frameborder="0" marginheight="0" marginwidth="0" allowtransparency="true"></iframe>
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="tbl"><tr><td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td></tr></table>
<!-- End add - Fully integrated shoutbox MOD -->
<!-- END switch_user_logged_in -->
</td>
</tr>
<!-- BEGIN disable_viewonline -->
<tr><td>&nbsp;</td></tr>
<tr><td>
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<td class="cat" colspan="2"><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></td>
</tr>
<tr>
<td class="row1" rowspan="3"><img src="{WHOSONLINE_IMAGE}" alt="{L_WHO_IS_ONLINE}" width="25" height="25" class="imgfolder" title="{L_WHO_IS_ONLINE}" />
</td>
<td class="row1" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />
{TOTAL_USERS}<br />
{NEWEST_USER}</span></td>
</tr>
<tr>
<td class="row1"><span class="gensmall">{TOTAL_USERS_ONLINE} <br /> {L_WHOSONLINE}<br />
{RECORD_USERS}<br />
{LOGGED_IN_USER_LIST}</span></td>
</tr>
<tr>
<td height="20" class="row1"><span class="gensmall">{L_ONLINE_EXPLAIN}</span></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="tbl"><tr><td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td></tr></table>
</td>
</tr>
<!-- END disable_viewonline -->
<!-- BEGIN switch_happy_birthday -->
<tr><td>&nbsp;</td></tr>
<tr><td>
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="cat" colspan="2" height="28"><span class="cattitle">{L_HAPPY_BIRTHDAY}</span></td>
</tr>
<tr>
<td class="row1" align="center" valign="middle"><img src="{HAPPY_BIRTHDAY_IMG}" alt="{L_HAPPY_BIRTHDAY}" /></td>
<td class="row1" align="left" width="100%"><span class="gensmall">&nbsp;{HAPPY_BIRTHDAY_FELLOWS}&nbsp;</span></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" class="tbl"><tr><td class="tbll"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblbot"><img src="images/spacer.gif" alt="" width="8" height="4" /></td><td class="tblr"><img src="images/spacer.gif" alt="" width="8" height="4" /></td></tr></table>
</td></tr>
<!-- END switch_happy_birthday -->
</table></td></tr></table></td></tr></table>
<!-- BEGIN switch_banner_19 -->
<br />
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td width="100%" align="center">{BANNER_19_IMG}</td>
</tr></table>
<!-- END switch_banner_19 -->

<script language="javascript" type="text/javascript">
<!--
   CFIG.writePanel();

<!-- BEGIN catrow -->
CFIG.C['cat_{catrow.CAT_ID}'] = new _CFIC('{catrow.CAT_ID}', '{catrow.DISPLAY}');
<!-- BEGIN forumrow -->
if( CFIG.C['cat_{catrow.CAT_ID}'] ) CFIG.C['cat_{catrow.CAT_ID}'].add('forum_{catrow.CAT_ID}_{catrow.forumrow.FORUM_ID}');
<!-- END forumrow -->
<!-- END catrow -->

function CFIG_slideCat(cat_id, isLink)
{
   if( CFIG && CFIG.currentStep <= 0 )
   {
      if( CFIG.IsEnabled() && CFIG.C['cat_'+cat_id] )
      {
         if( isLink ) return false;
         CFIG.createQueue();
         CFIG.slideForums(cat_id);
         CFIG.execQueue();
         CFIG.saveIndexState(CFIG.T['cookie']);
         return false;   // omit the default action of the link.
      }
      if( !isLink )
      {
         var u_index = CFIG.T['u_index'];
         u_index += ( u_index.indexOf('?') > 0 ? '&' : '?' ) + 'c=' + parseInt(cat_id);
         window.location.replace(u_index);
         return false;
      }
   }
   return true;   // let the link do its job.
}
function CFIG_onLoad()
{
   if( CFIG_oldOnLoad )
   {
      CFIG_oldOnLoad();
      CFIG_oldOnLoad = null;
   }
   if( CFIG && CFIG.IsEnabled() )
   {
      CFIG.restoreIndexState(CFIG.T['cookie']);
   }
}
var CFIG_oldOnLoad = window.onload;
window.onload = CFIG_onLoad;
// -->
</script>


It's getting beyond my level of PHP and language skill, I have only just started to learn PHP recently, however, would it be okay if this mod could be edited so it'll work with Integra? There may be someone that will do it on the forums there, if not, I'll just have to wait till I get better.

Thanks!

 
 
_________________
"Their already building sets. Help Me! I''m gonna have to start this script pretty soon." - George Lucas, Star Wars Episode 3 Development (sounds a bit like me...)
 
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Sun Oct 24, 2004 12:37 am    Post subject: Re: collapsible nav menu and integraMod Reply with quote

Hi Michael,

Collapsible Forum Index MOD is beta. I delayed its development waiting for the latest version of Categories Hierarchy MOD (2.1.0), currently in Beta/RC stages. So, I'll restart its development once released CH210.

markus at phpBB site wrote:
I won't support any version of CH other than 2.1.0 (when finished). Problem is time. Sad ...that's why I'm waiting to see CH210 finished (avoid possible little changes here or there that could force me to review CFI, etc.).

On the other hand, drumstix42 posted a fix to make it run on CH 2.0.5 RC2:
http://www.phpbb.com/phpBB/viewtopic.php?p=1288987#1288987

However, I will only support 2.1.0 and up. Main reason is time.

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    phpMiX.org Forum Index -> phpBB MODs -> DHTML Collapsible Forum Index All times are GMT + 1 Hour
 
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum