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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Cell background color...
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

JBaldwin
Junior Member

USA
137 Posts

Posted - 10 January 2006 :  10:28:38  Show Profile
I want to have it so that if I have a "Sticky" topic or a poll, I want just that topic's cell to be a different color in forum.asp, so that it stands out from the regular topics. Is this possible? I've seen it implemented in phpBB, just wondering if available in Snitz.

AbsolutelyFreerolls.com - Poker Freeroll Listings, Poker Forum and Poker News


ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 10 January 2006 :  11:16:18  Show Profile  Send ruirib a Yahoo! Message
You'd need to change the code for that. Don't think there is a mod for it.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

JBaldwin
Junior Member

USA
137 Posts

Posted - 10 January 2006 :  17:21:54  Show Profile
Ok. I figured it out. At the second <tr> I modified the code like this: (made the changes indicated below - also removed all instances of bgcolor=""" & strForumCellColor & """ from all <TD's> after the changes


...(excerpt - approx. Line 502 forum.asp)
	'################ Poll Mod ################
		IsPoll = arrTopicData(tIS_POLL, iTopic)
		if IsPoll = 1 then
			pollLink = "poll=1&"
		else
			pollLink = ""
		end if
	'##########################################

		if AdminAllowed = 1 and Topic_UReplies > 0 then
			Topic_Replies = Topic_Replies + Topic_UReplies
		end if
		
		'TR CELL COLOR CHANGES START HERE -----
		if Topic_Sticky and strStickyTopic = "1" and IsPoll then
			Response.Write	"              <tr bgcolor=""#ffff66"">"
		elseif Topic_Sticky and strStickyTopic = "1" and not(IsPoll) then
			Response.Write	"              <tr bgcolor=""lightblue"">"
		elseif IsPoll then
			Response.Write	"              <tr bgcolor=""mediumspringgreen"">"
		else
			Response.Write	"              <tr bgcolor=""" & strForumCellColor & """>"
		end if
                'TR CELL COLOR CHANGES END HERE -----

		Response.Write		"<td align=""center"" valign=""middle""><a href=""topic.asp?" & ArchiveLink & "TOPIC_ID=" & Topic_ID & """>"
		if Cat_Status <> 0 and Forum_Status <> 0 and Topic_Status <> 0 then

...(cont...)

AbsolutelyFreerolls.com - Poker Freeroll Listings, Poker Forum and Poker News



Edited by - JBaldwin on 10 January 2006 18:49:59
Go to Top of Page
  Previous Topic Topic Next Topic  
 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.39 seconds. Powered By: Snitz Forums 2000 Version 3.4.07