The only modification I did to your mod is because that in my template, i have this:Brf wrote:Why do you have the javascript inserted inside the forumrow? That renders multiple copies of that code.
Code: Select all
<table class="tablebg" onMouseOver="this.className='tablebg2'" onMouseOut="this.className='tablebg'" cellspacing="1" width="100%">
Code: Select all
<table class="tablebg" cellspacing="1" width="100%">
Code: Select all
<script type="text/javascript">
// <![CDATA[
function flipf(btn, thiscat)
{
rnd = Math.random().toString().substring(2);
myurl = "{S_AJAX_COLLAPSE_ACTION}" + "&rnd=" + rnd;
if (btn.value=="-")
{
btn.value="+";
document.getElementById('flist'+thiscat).style.display="none";
myurl = myurl + "&cset=" + thiscat;
}
else
{
btn.value="-";
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>
Code: Select all
<script type="text/javascript">
// <![CDATA[
function flipf(btn, thiscat)
{
rnd = Math.random().toString().substring(2);
myurl = "{S_AJAX_COLLAPSE_ACTION}" + "&rnd=" + rnd;
if (btn.value=="-")
{
btn.value="+";
document.getElementById('flist'+thiscat).style.display="none";
myurl = myurl + "&cset=" + thiscat;
}
else
{
btn.value="-";
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" onMouseOver="this.className='tablebg2'" onMouseOut="this.className='tablebg'" cellspacing="1" width="100%">
<tbody>
I have no idea what that means ^^ I have editing everything accordingly to the instructions I think.. What am I missing?Brf wrote:You re also totally missing the section that adds the button to the category header. You only added the one for no_cat
Code: Select all
<td class="catdiv" colspan="3"> </td>
</tr>
Code: Select all
<!-- IF forumrow.S_NO_CAT -->
<tr>
<td class="cat" colspan="2"><h4>{L_FORUM}</h4></td>
<td class="catdiv" colspan="3"> </td>
</tr>
<!-- ENDIF -->
Code: Select all
<td class="catdiv" colspan="3"> </td>
</tr>
Code: Select all
<td class="catdiv" colspan="3" align="right"><input type="button" class="button2" value="{forumrow.COLLAPSE_SIGN}" onclick="flipf(this,'{forumrow.FORUM_ID}');" style="width: 20px !important"/></td>
</tr>
<tbody id="flist{forumrow.FORUM_ID}" {forumrow.S_COLLAPSE}>
Code: Select all
<!-- IF forumrow.S_NO_CAT -->
<tr>
<td class="cat" colspan="2"><h4>{L_FORUM}</h4></td>
<td class="catdiv" colspan="3" align="right"><input type="button" class="button2" value="{forumrow.COLLAPSE_SIGN}" onclick="flipf(this,'{forumrow.FORUM_ID}');" style="width: 20px !important"/></td>
</tr>
<tbody id="flist{forumrow.FORUM_ID}" {forumrow.S_COLLAPSE}>
<!-- ENDIF -->
Code: Select all
<!-- IF forumrow.S_NO_CAT -->
<tr>
<td class="cat" colspan="2"><h4>{L_FORUM}</h4></td>
<td class="catdiv" colspan="3"> </td>
</tr>
<!-- ENDIF -->
Code: Select all
<!-- 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="button2" value="{forumrow.COLLAPSE_SIGN}" onclick="flipf(this,'{forumrow.FORUM_ID}');" style="width: 20px !important"/></td>
</tr>
<tbody id="flist{forumrow.FORUM_ID}" {forumrow.S_COLLAPSE}>
<!-- ENDIF -->
subsilver2 has the forumlist all in one big table.Blanky wrote:The only modification I did
forms.css uses:*Christian* wrote:i've set the button to 10px square, how do i go about changing the font size of the button value?
Code: Select all
input.button1, input.button2 {
font-size: 1em;
}
Code: Select all
font-size: 0.8em;
Code: Select all
font-size: 8px;
I see.. So I can't add this mod on my template?Brf wrote:subsilver2 has the forumlist all in one big table.Blanky wrote:The only modification I did
Yours does not.
Therefore, you cannot follow the subsilver2 template rules for yours.
Not as written. Your style is a hodgepodge of tables. I would have to break it down into its pieces to see where the code goes. I am betting it will be closer to the prosilver version , than the subsilver one.Blanky wrote: I see.. So I can't add this mod on my template?
Brf wrote:Not as written. Your style is a hodgepodge of tables. I would have to break it down into its pieces to see where the code goes. I am betting it will be closer to the prosilver version , than the subsilver one.Blanky wrote: I see.. So I can't add this mod on my template?
Code: Select all
<table id="bx" width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<table width="100%" height="44" border="0" cellpadding="0" cellspacing="0">
<td> ...</td>
<td ... </td>
<td ... </td>
<td ... </td>
<td> ...</td>
</table>
</tr>
<table
Code: Select all
Browse to ACP / Users & Groups / Users / Custom profile fields
Type "fcol" (without the quotes) into the Add box
Select Textarea in the dropdown
Click Create new field
Select "No" for Display profile field
Select "Hide profile field" for Visibility Option
Type "Forum Collapse Data" (without quotes) for Field name/title
Type "Comma-delimited list of categories to collapse" (without quotes) for Field description.
Leave Default value blank.
Click Save.
Leave profile specific options at default values.
Click Save.
Yes it is required.xxxopenxxx wrote:What does the following code do, and is it required for subsilver2? It seemed to make no difference with or without it.
Code: Select all
fcol
I installed the mod, twice, on subsilver2 and it does not seem to save the categories that were collapsed. I did name it fcol and have the file uploaded in the root of the forums. Could there be a global setting I have off?Brf wrote: Yes it is required.
It is setting up the custom profile field that saves which categories you collapsed, so when you browse back to the index or subforum-view the categories are still collapsed.
Yes I did, and redid them again just now to test.Brf wrote:Did you do the updates to functions_display?