Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Minimizing Categories
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 8

Lord Maverick
New Member

Norway
92 Posts

Posted - 10 August 2000 :  02:44:19  Show Profile  Send Lord Maverick an ICQ Message
I got the minimizing categories working with the link on the category title.

Slemieux has made a mod for this by removing the link in the title an replacing it with plus/minus.
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Thanks Dave!!!
I added plus/minus graphics and took out the link on the Category Title simply by changing the lines
<a href="<% =ScriptName & "?" %><% =HideForumCat & "=N" %>"><img src="plus.gif" width="10" height="10" border="0"></a>
<a href="<% =ScriptName & "?" %><% =HideForumCat & "=N" %>"><img src="minus.gif" width="10" height="10" border="0"></a>

This should hopefully make it less confusing for new people and leave the topic link open for a future mod of clicking on the Category and having it display just that Category.

<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

It would be nice to se the actual code that should be replaced...



Edited by - Lord Maverick on 10 August 2000 03:06:07
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 10 August 2000 :  03:27:02  Show Profile
If you have the original version then you would be replacing the <font color=red>highlighted</font id=red> lines below.
<pre id=code><font face=courier size=2 id=code>
<% If Request.Cookies(HideForumCat) = "Y" then %>
<font color=red><a href="<% =ScriptName & "default.asp?" %><% =HideForumCat & "=N" %></font id=red>
<% Else %>
<font color=red><a href="<% =ScriptName & "default.asp?" %><% =HideForumCat & "=Y" %></font id=red>
<% End If %>
</font id=code></pre id=code>

If you have the newer version then you would be replacing the <font color=red>highlighted</font id=red> lines below (with some modification obviously):

<pre id=code><font face=courier size=2 id=code>
<% if (InStr(1, ScriptName, "default.asp", 1)) then %>
<font color=red><a href="<% =ScriptName & "?" %><% =HideForumCat & "=N" %>"></font id=red>
<% else %>
<font color=red><a href="<% =ScriptName & "default.asp?" %><% =HideForumCat & "=N" %>"></font id=red>
<% end if %>
<% Else %>
<% if (InStr(1, ScriptName, "default.asp", 1)) then %>
<font color=red><a href="<% =ScriptName & "?" %><% =HideForumCat & "=Y" %>"></font id=red>
<% else %>
<font color=red><a href="<% =ScriptName & "default.asp?" %><% =HideForumCat & "=Y" %>"></font id=red>
<% end if %>
</font id=code></pre id=code>


You are basically just adding:

<font color=red>[img]plus.gif" width="10" height="10" border="0"></a></font id=red>

or

<font color=red>[img]minus.gif" width="10" height="10" border="0"></a></font id=red>

onto the end of each line.

I did change one thing in the following:

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Thanks Dave!!!
I added plus/minus graphics and took out the link on the Category Title simply by changing the lines
<a href="<% =ScriptName & "?" %><% =HideForumCat & "=N" %>">[img]plus.gif" width="10" height="10" border="0"></a>
<a href="<% =ScriptName & "?" %><% =HideForumCat & <font color=red>"=N"</font id=red> %>">[img]minus.gif" width="10" height="10" border="0"></a>
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

on the line with the minus.gif I used <font color=red> "=Y"</font id=red> instead of <font color=red> "=N"</font id=red>

Edited by - Richard Kinser on 19 December 2000 22:07:11
Go to Top of Page

Lord Maverick
New Member

Norway
92 Posts

Posted - 10 August 2000 :  04:17:47  Show Profile  Send Lord Maverick an ICQ Message
Richard,

I' a bit confused about the different versions here (I'm using Kal Corps latest text-file but I'm not sure which version this is...), and this is the related code I'm currently using in default.asp:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
' This code will specify whether or not to show the forums under a category
HideForumCat = "HideCat" & rs("Cat_ID")
If Request.Cookies(HideForumCat) = "Y" then %>
<% if (InStr(1, ScriptName, "default.asp", 1)) then %>
<a href="<% =ScriptName & "?" %><% =HideForumCat & "=N" %>">[img]plus.gif" width="10" height="10" border="0"></a>
<% else %>
<a href="<% =ScriptName & "?" %><% =HideForumCat & "=N" %>">[img]plus.gif" width="10" height="10" border="0"></a>
<% end if %>
<% Else %>
<% if (InStr(1, ScriptName, "default.asp", 1)) then %>
<a href="<% =ScriptName & "?" %><% =HideForumCat & "=Y" %>">
<% else %>
<a href="<% =ScriptName & "default.asp?" %><% =HideForumCat & "=Y" %>">
<% end if %>
<% end if %>
<font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strCategoryFontColor %>" size"+1"><b><% =ChkString(rs("CAT_NAME"),"display") %></b></font></A></td>

and then this code related to the minus-icon:

[quote]


' This code will specify whether or not to show the forums under a category
HideForumCat = "HideCat" & rs("Cat_ID")
If Request.Cookies(HideForumCat) = "Y" then %>
<% if (InStr(1, ScriptName, "default.asp", 1)) then %>
<a href="<% =ScriptName & "?" %><% =HideForumCat & "=N" %>">[img]minus.gif" width="10" height="10" border="0"></a>

<% else %>
<a href="<% =ScriptName & "?" %><% =HideForumCat & "=N" %>">[img]minus.gif" width="10" height="10" border="0"></a>

<% end if %>
<% Else %>
<% if (InStr(1, ScriptName, "default.asp", 1)) then %>
<a href="<% =ScriptName & "?" %><% =HideForumCat & "=Y" %>">
<% else %>
<a href="<% =ScriptName & "default.asp?" %><% =HideForumCat & "=Y" %>">
<% end if %>
<% end if %>
<font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strCategoryFontColor %>" size"+1"><b><% =ChkString(rs("CAT_NAME"),"display") %></b></font></A></td>
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

But something is wrong here, as my category names are still the link (and no icons are showing at default). Have'nt had the time to go into the details of this code (and I'm in desperate need of some sleep <img src=icon_smile_sleepy.gif border=0 align=middle>, so it would be nice if you could pinpoint what I should delete in the code.




Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 10 August 2000 :  04:29:47  Show Profile
I just downloaded Kal Corp's file and he added the code in two different places (there were 2 places that had the <font color=red>=ChkString(rs("CAT_NAME"),"display")</font id=red>, but I only replace the second instance of it (about line 142) like dave indicated (which is the section just above where the <font color=red>ChkDisplayHeader = false</font id=red>(about line 152) is.

Edited by - Richard Kinser on 10 August 2000 05:16:15
Go to Top of Page

slemieux
Junior Member

USA
234 Posts

Posted - 10 August 2000 :  04:39:21  Show Profile
If your using the plus/minus icons, dont forget to remove the </a> tag in
<b><% =ChkString(rs("CAT_NAME"),"display") %></b></font></A>

Scott LeMieux
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 10 August 2000 :  04:43:29  Show Profile
I actually still had that extra <font color=red></A></font id=red> in there and it was working fine.

I just took it out and it had no effect at all. weird...

Edited by - Richard Kinser on 10 August 2000 04:46:07
Go to Top of Page

pier
Starting Member

Italy
22 Posts

Posted - 10 August 2000 :  05:01:26  Show Profile  Visit pier's Homepage  Send pier an AOL message  Send pier an ICQ Message
I've added the hide-stuff for the statistic addon too:

http://forum.leadernet.it/hack/minicat_stat.zip

It'll replace default.asp and statistic.asp file (and it'll add plus.gif and minus.gif 10x to slemmy)

pier

Go to Top of Page

Lord Maverick
New Member

Norway
92 Posts

Posted - 10 August 2000 :  05:07:56  Show Profile  Send Lord Maverick an ICQ Message
Richard,

Just dwnl your .zip and fixed it. It's working fine now. Thnx a lot, and good night!<img src=icon_smile.gif border=0 align=middle>

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 10 August 2000 :  05:15:08  Show Profile
glad to here it...

good night <img src=icon_smile.gif border=0 align=middle> <img src=icon_smile_sleepy.gif border=0 align=middle>

Go to Top of Page

be0wulf
Starting Member

4 Posts

Posted - 26 August 2000 :  21:57:55  Show Profile
How would you go about setting it up so that by default they are already minimized?


Go to Top of Page

ilovemoney
Starting Member

Taiwan
27 Posts

Posted - 10 November 2000 :  20:55:05  Show Profile
can't work fine in 3.1sr2...Y_______Y





Edited by - ilovemoney on 10 November 2000 21:21:11
Go to Top of Page

-=mESs=-
Starting Member

Taiwan
13 Posts

Posted - 15 November 2000 :  05:16:12  Show Profile  Visit -=mESs=-'s Homepage  Send -=mESs=- an ICQ Message
IT'S OK TO WORK FINE IN 3.1SR2!!

Go to Top of Page

infinity
New Member

New Zealand
90 Posts

Posted - 21 November 2000 :  19:07:11  Show Profile  Visit infinity's Homepage
Nice mod...
I would like to implement the version that has the plus and minus... I gather Dave's version just uses the Title as the switch... There is code posted in this thread that completely replaced the Default.asp and statistics.asp and gives the plus/minus feature.
As I have a default.asp that is already modified, is there any chance of someone posting the code changes (text file with instructions) here for the plus/minus version of the mod?

Your help is appreciated...

Thanks,

infinity

Life is but a dream... and that dream is Here and Now. Therefore, Be here Now.
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 21 November 2000 :  21:09:26  Show Profile
Just replace what you have now with this:

<font size=1><pre id=code><font face=courier size=2 id=code><% ' This code will specify whether or not to show the forums under a category
HideForumCat = "HideCat" & rs("Cat_ID")
If Request.Cookies(HideForumCat) = "Y" then %>
<a href="<% =ScriptName & "?" %><% =HideForumCat & "=N" %>">[img]plus.gif" width="10" height="10" border="0"></a>
<% Else %>
<a href="<% =ScriptName & "?" %><% =HideForumCat & "=Y" %>">[img]minus.gif" width="10" height="10" border="0"></a>
<% End If %>
<font face="<% =strDefaultFontFace %>" <font color=red>size="<% =strDefaultFontSize %>"</font id=red> color="<% =strCategoryFontColor %>" <font color=red>size"+1"</font id=red>><b><% =ChkString(rs("CAT_NAME"),"display") %></b></font></td></font id=code></pre id=code></font id=size1>

Edited by - Richard Kinser on 19 December 2000 22:03:54
Go to Top of Page

infinity
New Member

New Zealand
90 Posts

Posted - 21 November 2000 :  22:24:55  Show Profile  Visit infinity's Homepage
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Just replace what you have now with this:

<font size=1><pre id=code><font face=courier size=2 id=code><% ' This code will specify whether or not to show the forums under a category
HideForumCat = "HideCat" & rs("Cat_ID")
If Request.Cookies(HideForumCat) = "Y" then %>
<a href="<% =ScriptName & "?" %><% =HideForumCat & "=N" %>">[img]plus.gif" width="10" height="10" border="0"></a>
<% Else %>
<a href="<% =ScriptName & "?" %><% =HideForumCat & "=Y" %>">[img]minus.gif" width="10" height="10" border="0"></a>
<% End If %>
<font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strCategoryFontColor %>" size"+1"><b><% =ChkString(rs("CAT_NAME"),"display") %></b></font></td></font id=code></pre id=code></font id=size1>
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Thanks. That did it.

I have a question though...
Where is the font size being set for the Catagory name, once this mod is applied?
I have my own custom font sizes (which I set in the admin page)... and had one of these applied to the Cat name... but after apply the mod the cat name always comes up with the DefaultFontSize.

I have changed all font size tags in the mod code... and it made no differance. Am I missing something here?

Thanks,

Infinity

Life is but a dream... and that dream is Here and Now. Therefore, Be here Now.
Go to Top of Page
Page: of 8 Previous Topic Topic Next Topic  
Previous Page | Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.14 seconds. Powered By: Snitz Forums 2000 Version 3.4.07