[ABD] Collapsible Categories

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
reconhq
Registered User
Posts: 80
Joined: Thu Nov 08, 2007 3:15 am

Re: [Beta] Collapsible Categories

Post by reconhq »

NO
User avatar
Brf
Support Team Member
Support Team Member
Posts: 52236
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: [Beta] Collapsible Categories

Post by Brf »

Those are the instructions for prosilver.
reconhq
Registered User
Posts: 80
Joined: Thu Nov 08, 2007 3:15 am

Re: [Beta] Collapsible Categories

Post by reconhq »

ok but how can i get it working on mine?
User avatar
Brf
Support Team Member
Support Team Member
Posts: 52236
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: [Beta] Collapsible Categories

Post by Brf »

I wouldnt know.
reconhq
Registered User
Posts: 80
Joined: Thu Nov 08, 2007 3:15 am

Re: [Beta] Collapsible Categories

Post by reconhq »

lol damnit
User avatar
c4gamerz
Registered User
Posts: 161
Joined: Thu Aug 30, 2007 5:08 pm
Contact:

Re: [Beta] Collapsible Categories

Post by c4gamerz »

hmm not working for me :S maybe i am using a different style thats why? i am using BF_Vista_Static style here is the file can you help me in figuring out the problem?

forumlist_body.html

Code: Select all

<!-- BEGIN forumrow -->
<!-- IF not forumrow.S_IS_CAT and forumrow.S_FIRST_ROW -->
<table id="bx" width="100%" height="28" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td><img src="{T_THEME_PATH}/images/cellpic4_l.png" width="17" height="28" alt="" /></td>
		<td background="{T_THEME_PATH}/images/cellpic4_m.png" width="100%" height="28"><h4><a href="{forumrow.U_VIEWFORUM}" class="cattitle">{forumrow.FORUM_NAME}</a></h4></td>
		<td><img src="{T_THEME_PATH}/images/cellpic4_r.png" width="16" height="28" alt="" /></td>
	</tr>
</table>
<style>
.ccopen{
	background: #888888 url("{T_THEME_PATH}/images/cc_down.gif") no-repeat center center;
	width: 25px;
	height:25px;
	border: thin solid #666666 
}
.ccclose{
	background: #888888 url("{T_THEME_PATH}/images/cc_up.gif") no-repeat center center;
	width: 25px;
	height:25px;
	border: thin solid #666666
}
</style> 
<script type="text/javascript">
// <![CDATA[
function flipf(btn, thiscat)
{
	rnd = Math.random().toString().substring(2);
    myurl = "{S_AJAX_COLLAPSE_ACTION}" + "&rnd=" + rnd;
	if (btn.className=="ccclose")
	{
		btn.className="ccopen";
		document.getElementById('flist'+thiscat).style.display="none";
		myurl = myurl + "&cset=" + thiscat;
	}
	else
	{
		btn.className="ccclose";
		document.getElementById('flist'+thiscat).style.display="";
		myurl = myurl + "&cunset=" + thiscat;
	}
	// alert (myurl);
	var myajax=ajaxobject();
	myajax.open('GET',myurl,true);
	myajax.onreadystatechange = function()
		{
			if (myajax.readyState == 4)
			{
				if (myoutput = myajax.responseXML)
					{
						// Discard
						return;
					}
			}		
		}
	myajax.send(null);
}
function ajaxobject()
{
	try
	{
		var http_request = false;
		if (window.XMLHttpRequest)
		{ // Mozilla, Safari,...
			http_request = new XMLHttpRequest();
			if (http_request.overrideMimeType)
			{
				http_request.overrideMimeType('text/xml');
			}
		}
		else if (window.ActiveXObject)
		{ // IE
			try
			{
				http_request = new ActiveXObject('Msxml2.XMLHTTP');
			}
			catch (e)
			{
				try
				{
					http_request = new ActiveXObject('Microsoft.XMLHTTP');
				}
				catch (e)
				{
				}
			}
		}

		if (!http_request)
		{
			 return false;
		}
		else
		{
			return http_request;
	}	
	}
	catch (e)
	{
		handle(e);
		return false;
	}
}

//]]>
</script>
<table class="tablebg" cellspacing="1" width="100%">
<tbody>
<tr>
	<th colspan="2" align="left">&nbsp;{L_FORUM}&nbsp;</th>
	<th width="50">&nbsp;{L_TOPICS}&nbsp;</th>
	<th width="50">&nbsp;{L_POSTS}&nbsp;</th>
	<th>&nbsp;{L_LAST_POST}&nbsp;</th>
</tr>
  <!-- ENDIF -->
      <!-- IF forumrow.S_IS_CAT -->
</tbody>

      <!-- IF not forumrow.S_FIRST_ROW -->
</table>
<br />
<br />

<table id="bx" width="100%" height="28" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td><img src="{T_THEME_PATH}/images/cellpic4_l.png" width="17" height="28" alt="" /></td>
		<td background="{T_THEME_PATH}/images/cellpic4_m.png" width="100%" height="28"><h4><a href="{forumrow.U_VIEWFORUM}" class="cattitle">{forumrow.FORUM_NAME}</a></h4></td>
		<td><img src="{T_THEME_PATH}/images/cellpic4_r.png" width="16" height="28" alt="" /></td>
	</tr>
</table>
<table class="tablebg" cellspacing="1" width="100%">
<!-- ELSE -->
<table id="bx" width="100%" height="28" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td><img src="{T_THEME_PATH}/images/cellpic4_l.png" width="17" height="28" alt="" /></td>
		<td background="{T_THEME_PATH}/images/cellpic4_m.png" width="100%" height="28"><h4><a href="{forumrow.U_VIEWFORUM}" class="cattitle">{forumrow.FORUM_NAME}</a></h4></td>
		<td><img src="{T_THEME_PATH}/images/cellpic4_r.png" width="16" height="28" alt="" /></td>
	</tr>
</table>
<table class="tablebg" cellspacing="1" width="100%">
  <!-- ENDIF -->
      <tr>
              <th colspan="2">&nbsp;{L_FORUM}&nbsp;</th>
              <th width="50">&nbsp;{L_TOPICS}&nbsp;</th>
              <th width="50">&nbsp;{L_POSTS}&nbsp;</th>
              <th>&nbsp;{L_LAST_POST}&nbsp;</th>
      </tr>
	<!-- ELSEIF forumrow.S_IS_LINK -->
		<tr>
			<td class="row1, transON" onmouseover="this.className='transOFF'" onmouseout="this.className='transON'" width="50" align="center">{forumrow.FORUM_FOLDER_IMG}</td>
			<td class="transON" onmouseover="this.className='transOFF'" onmouseout="this.className='transON'">
				<!-- IF forumrow.FORUM_IMAGE -->
					<div style="float: {S_CONTENT_FLOW_BEGIN}; margin-{S_CONTENT_FLOW_END}: 5px;">{forumrow.FORUM_IMAGE}</div><div style="float: {S_CONTENT_FLOW_BEGIN};">
				<!-- ENDIF -->
				<a class="forumlink" href="{forumrow.U_VIEWFORUM}">{forumrow.FORUM_NAME}</a>
				<p class="forumdesc">{forumrow.FORUM_DESC}</p>
				<!-- IF forumrow.FORUM_IMAGE --></div><!-- ENDIF -->
			</td>
			<!-- IF forumrow.CLICKS -->
				<td class="row2, transON" onmouseover="this.className='transOFF'" onmouseout="this.className='transON'" colspan="3" align="center"><span class="genmed">{L_REDIRECTS}: {forumrow.CLICKS}</span></td>
			<!-- ELSE -->
				<td class="row2, transON" onmouseover="this.className='transOFF'" onmouseout="this.className='transON'" colspan="3" align="center">&nbsp;</td>
			<!-- ENDIF -->
		</tr>
	<!-- ELSE -->
		<!-- IF forumrow.S_NO_CAT -->
			</tbody>
      <tr>
				<td class="cat" colspan="2"><h4>{L_FORUM}</h4></td>
				<td class="catdiv" colspan="3" align="right"><input type="button" class="{forumrow.COLLAPSE_CLASS}" value=" " onclick="flipf(this,'{forumrow.FORUM_ID}');" /></td>
		</tr>
		<tbody id="flist{forumrow.FORUM_ID}" {forumrow.S_COLLAPSE}>
			</tr>
		<!-- ENDIF -->
		<tr>
			<td class="row1, transON" onmouseover="this.className='transOFF'" onmouseout="this.className='transON'" width="50" align="center">{forumrow.FORUM_FOLDER_IMG}</td>
			<td class="row1, transON" onmouseover="this.className='transOFF'" onmouseout="this.className='transON'" width="100%">
				<!-- IF forumrow.FORUM_IMAGE -->
					<div style="float: {S_CONTENT_FLOW_BEGIN}; margin-{S_CONTENT_FLOW_END}: 5px;">{forumrow.FORUM_IMAGE}</div><div style="float: {S_CONTENT_FLOW_BEGIN};">
				<!-- ENDIF -->
				<a class="forumlink" href="{forumrow.U_VIEWFORUM}">{forumrow.FORUM_NAME}</a>
				<p class="forumdesc">{forumrow.FORUM_DESC}</p>
				<!-- IF forumrow.MODERATORS -->
					<p class="forumdesc"><strong>{forumrow.L_MODERATOR_STR}:</strong> {forumrow.MODERATORS}</p>
				<!-- ENDIF -->
				<!-- IF forumrow.SUBFORUMS and forumrow.S_LIST_SUBFORUMS -->
					<p class="forumdesc"><strong>{forumrow.L_SUBFORUM_STR}</strong> {forumrow.SUBFORUMS}</p>
				<!-- ENDIF -->
				<!-- IF forumrow.FORUM_IMAGE --></div><!-- ENDIF -->
			</td>
			<td class="row2, transON" onmouseover="this.className='transOFF'" onmouseout="this.className='transON'" align="center"><p class="topicdetails">{forumrow.TOPICS}</p></td>
			<td class="row2, transON" onmouseover="this.className='transOFF'" onmouseout="this.className='transON'" align="center"><p class="topicdetails">{forumrow.POSTS}</p></td>
			<td class="row2, transON" onmouseover="this.className='transOFF'" onmouseout="this.className='transON'" align="center" nowrap="nowrap">
				<!-- IF forumrow.LAST_POST_TIME -->
					<p class="topicdetails"><a href="{forumrow.U_LAST_POST}" title="{forumrow.LAST_POST_SUBJECT}">{forumrow.LAST_POST_SHORTENED_SUBJECT}</a></p>
          <p class="topicdetails">{forumrow.LAST_POST_TIME}</p>
					<p class="topicdetails">{forumrow.LAST_POSTER_FULL}
						<a href="{forumrow.U_LAST_POST}">{LAST_POST_IMG}</a>
					</p>
				<!-- ELSE -->
					<p class="topicdetails">{L_NO_POSTS}</p>
				<!-- ENDIF -->
			</td>
		</tr>
	<!-- ENDIF -->
<!-- BEGINELSE -->
	<tr>
		<td class="row1, transON" onmouseover="this.className='transOFF'" onmouseout="this.className='transON'" colspan="5" align="center"><p class="gensmall">{L_NO_FORUMS}</p></td>
	</tr>
<!-- END forumrow -->
</tbody>
</table>
Thanks :)
Web Designing | Script Integration | Logo Designing | Web Development | ExtensiveWeb.com
User avatar
Brf
Support Team Member
Support Team Member
Posts: 52236
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: [Beta] Collapsible Categories

Post by Brf »

It looks like you might have followed the subsilver2 instructions, which is correct. I will need to examine your template a little better later today.
User avatar
c4gamerz
Registered User
Posts: 161
Joined: Thu Aug 30, 2007 5:08 pm
Contact:

Re: [Beta] Collapsible Categories

Post by c4gamerz »

Ohh yeah there were few lines which are repeated 3 or more times in bf_vista_static style so maybe thats causing the problem?
Web Designing | Script Integration | Logo Designing | Web Development | ExtensiveWeb.com
User avatar
Brf
Support Team Member
Support Team Member
Posts: 52236
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: [Beta] Collapsible Categories

Post by Brf »

Probably.
danielnguyen
Registered User
Posts: 287
Joined: Thu Jan 24, 2008 11:44 am
Location: Vietnam
Contact:

Re: [Beta] Collapsible Categories

Post by danielnguyen »

How can I intergrade this mod with Drad'n drop 4rum
My forum, for just teen only with many happy things
Cộng Đồng Teen Online - Cộng Đồng Teen Việt - Teen Việt Nam
Hội Ngộ - Giao Lưu - Học Hỏi - Giải Trí - Kết Bạn
http://www.congdongteenonline.net
User avatar
hshah
Registered User
Posts: 357
Joined: Sun May 25, 2003 7:23 am
Location: Utopia

Re: [Beta] Collapsible Categories

Post by hshah »

How can I make the buttons smaller, because it makes my forum look weird :(
Join the OcUK Cyber Nations Alliance
http://hirenshah.co.uk/ocuk
User avatar
Brf
Support Team Member
Support Team Member
Posts: 52236
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: [Beta] Collapsible Categories

Post by Brf »

reduce the width and height in the CSS changes. You might have to use an image editor to make smaller images.
User avatar
hshah
Registered User
Posts: 357
Joined: Sun May 25, 2003 7:23 am
Location: Utopia

Re: [Beta] Collapsible Categories

Post by hshah »

Brf wrote:reduce the width and height in the CSS changes. You might have to use an image editor to make smaller images.
Sorry, how do I do that?
Join the OcUK Cyber Nations Alliance
http://hirenshah.co.uk/ocuk
User avatar
Brf
Support Team Member
Support Team Member
Posts: 52236
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: [Beta] Collapsible Categories

Post by Brf »

You are inserting in lines that say height:25px and width:25px.
Put a smaller number in there.
Darthmat
Registered User
Posts: 114
Joined: Mon Jun 23, 2008 4:08 pm

Re: [Beta] Collapsible Categories

Post by Darthmat »

Flawless. Easy. Simple.
Thank you! :)
Locked

Return to “[3.0.x] Abandoned MODs”