Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Sticky Topic Seperator?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
MaD2ko0l Posted - 03 October 2006 : 19:24:37
hiya,
i have been trying to figuare out how i can add a seperator between the sticky topics and the unsticky topics on forum.asp

i was wundering if anyone had done this before and if they can show me the code to do it.

the reason i want this is because it just makes things look a little neater on the forum.asp page.

from what i have managed to understand, while forum.asp is looking throught the topics if it comes across a topic that is a sticky it will add the word sticky in front, but i cannt seem to find anymore code that sorts where the sticky topics go.

does any of this make sense??

thanks

MaD2ko0l<
15   L A T E S T    R E P L I E S    (Newest First)
radiodelicate Posted - 10 July 2008 : 19:45:48
this works like a charm, thanks for a great MOD!
Also, an easy way of making the line thinner is to remove the & nbsp; from the column.<
muzishun Posted - 01 July 2007 : 11:16:42
You're welcome. Eventually I plan to pack this up with a couple of the other little MODs I've done and put them over on SnitzBitz. Perhaps this coming weekend I'll do that.<
MarkJH Posted - 01 July 2007 : 07:34:49
Great stuff.

Thanks, Bill. <
muzishun Posted - 16 May 2007 : 20:08:02
Thanks. :)<
philsbbs Posted - 16 May 2007 : 15:47:13
love it :)
<
mama2000 Posted - 17 October 2006 : 21:42:56
Thanks for this one! I think it looks awesome! I changed the colors around on the title rows, but WOOHOO! I love this!
<
alanh Posted - 06 October 2006 : 10:25:52
Once again thanks for the MOD, I made the changes and now the locked Single Sticky issue is resolved and also I have the headers Important and Forum Topics.

**** I am easily pleased......<
muzishun Posted - 05 October 2006 : 09:57:43
Hmmm.. strange. Well, if you've got it working, that's all that matters. I'm using the same code (basically... I've tweaked it to use CSS classes and whatnot, but the table stuff is the same), and it displays fine on my page. But, if it's not broken, let's not try to fix it.

Glad you got it working.<
MaD2ko0l Posted - 05 October 2006 : 04:49:28
yeah i tryed doing that and it only chnages the 1 seperator...so if you have stcky topics it will show the "important topics" seperator under the sticky topics

if you look at the image below you will see that i have the "important topics" seperator above the sticky topics and "forum topics" seperator. when i used your code it will only change the "forum topics" seperator to and from "Forum topics" and "important topics"



i hope that made sense<
muzishun Posted - 04 October 2006 : 20:52:04
I did it slightly differently than that. I liked the idea of having a separator above both the stickys and the regular topics to help differentiate, but I don't want the "Important Topics" label there if there aren't stickies. Here's how I did it. Make the following block of code:
		If blnStickyTopics = True Then
			If Topic_Sticky and strStickyTopic = "1" Then
				'Do Nothing
			Else
				'We've had sticky topics, and now we are into the regular topics
				Response.Write	"              <tr><td colspan=""7"" bgcolor=""" & strHeadCellColor & """><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strHeadFontColor & """>Forum Topics</font></b></td></tr>" & vbNewLine
				blnStickyTopics = False
			End If
		End If

look like this
		If blnStickyTopics = True Then
			If Topic_Sticky and strStickyTopic = "1" Then
				'Do Nothing
			Else
				'We've had sticky topics, and now we are into the regular topics
				Response.Write	"              <tr><td colspan=""7"" bgcolor=""" & strHeadCellColor & """><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strHeadFontColor & """>Forum Topics</font></b></td></tr>" & vbNewLine
				blnStickyTopics = False
			End If
		End If

		If blnStickyTopics = False Then
			If Topic_Sticky and strStickyTopic = "1" Then
				'We've got sticky topics, so we should draw the line here
				Response.Write	"              <tr><td colspan=""7"" bgcolor=""" & strHeadCellColor & """><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strHeadFontColor & """>Important Topics</font></b></td></tr>" & vbNewLine
			End If
		End If

Like I said, this only adds the "Important Topics" header if there are stickies.<
CalloftheHauntedMaster Posted - 04 October 2006 : 20:15:29
Never mind about that. I forgot that as admin, I have an options menu to the far right. Members don't have it and it looks perfectly centered.

However, I am interested in adding that line between Important Topics and the top bar.<
CalloftheHauntedMaster Posted - 04 October 2006 : 20:09:37
Well, here's what I got:

http://www.schoolofduel.com/bbs/forum.asp?forum_id=33

It seems off-center though and I added the center tags. Ideas?

Is there also a way to add a line between the Topic, Author, Read and the "Important Topics"? It looks really jumbled...<
MaD2ko0l Posted - 04 October 2006 : 19:58:57
above this line
		"              <tr>" & vbNewLine & _


you will see this code

Response.Write	"              </tr>" & vbNewLine


you need to change that line to read this

Response.Write	"              </tr>" & vbNewLine & _


that should do it

here is a copy of my forum.asp for anyone that is intrested to see what i have done on this page so far.

forum.asp

hope this helps<
CalloftheHauntedMaster Posted - 04 October 2006 : 19:57:03
I get this error:

Microsoft VBScript compilation error '800a0400'

Expected statement

/bbs/forum.asp, line 478

" <tr>" & vbNewLine & _
^
<
MaD2ko0l Posted - 04 October 2006 : 19:47:33
ok to get the seperators to the place like mine follow these instructions

find this line in forum.asp

if iTopicCount = "" then


and add this code above it


		"              <tr>" & vbNewLine & _
		"                <td colspan =""6"" align=""center"" bgcolor=""" & strHeadCellColor & """><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strHeadFontColor & """>Important Topics</font></b></td>" & vbNewLine & _
		"              </tr>" & vbNewLine


then find this code (this is the part that muzishun posted in his code)


				Response.Write	"              <tr><td colspan=""7"" bgcolor=""" & strHeadCellColor & """> </td></tr>" & vbNewLine


and replace it with this


				Response.Write  "              <tr>" & vbNewLine & _
								"                <td colspan =""6"" align=""center"" bgcolor=""" & strHeadCellColor & """><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strHeadFontColor & """>Forum Topics</font></b></td>" & vbNewLine & _
								"              </tr>" & vbNewLine


this should make the text all the same as how u want it ass well


hope this helps<

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.18 seconds. Powered By: Snitz Forums 2000 Version 3.4.07