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)
 Change Table color with 2 different colors ?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Blade22
Starting Member

Switzerland
38 Posts

Posted - 16 September 2002 :  05:40:43  Show Profile  Visit Blade22's Homepage
how i can do that



someone can explain my that please


Xentor Online | Email Me

Blade22
Starting Member

Switzerland
38 Posts

Posted - 16 September 2002 :  12:52:44  Show Profile  Visit Blade22's Homepage
Hey no One can Help My ?

Xentor Online | Email Me

Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 16 September 2002 :  14:12:36  Show Profile
It's quite likely that that's done with CSS, but you could hard code it in the files.
On default.asp you'd have to change the bgcolor attribute in any of the following lines:
500 (in red):
							Response.Write	"              <tr>" & vbNewline & _
									"                <td bgcolor=""" & strForumCellColor & """ align=""center"" valign=""top"">"
							if ForumFType = 0 then


513 (in red):
							end if
							Response.Write	" bgcolor=""" & strForumCellColor & """ valign=""top"">" & _
									"<font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><span class=""spnMessageText""><a href="""


528, 530, 533 and 535 (in red):
								if IsNull(ForumTopics) then 
									Response.Write	"                <td bgcolor=""" & strForumCellColor & """ align=""center"" valign=""top""><font face=""" & strDefaultFontFace & """ color=""" & strForumFontColor & """ size=""" & strDefaultFontSize & """>0</font></td>" & vbNewline
								else
									Response.Write	"                <td bgcolor=""" & strForumCellColor & """ align=""center"" valign=""top""><font face=""" & strDefaultFontFace & """ color=""" & strForumFontColor & """ size=""" & strDefaultFontSize & """>" & ForumTopics & "</font></td>" & vbNewline
								end if
								if IsNull(ForumCount) then 
									Response.Write	"                <td bgcolor=""" & strForumCellColor & """ align=""center"" valign=""top""><font face=""" & strDefaultFontFace & """ color=""" & strForumFontColor & """ size=""" & strDefaultFontSize & """>0</font></td>" & vbNewline
								else
									Response.Write	"                <td bgcolor=""" & strForumCellColor & """ align=""center"" valign=""top""><font face=""" & strDefaultFontFace & """ color=""" & strForumFontColor & """ size=""" & strDefaultFontSize & """>" & ForumCount & "</font></td>" & vbNewline
								end if 


551 and 553 (in red):
							if (strShowModerators = "1") or (mlev = 4 or mlev = 3) then 
								Response.Write	"                <td bgcolor=""" & strForumCellColor & """ align=""left"" valign=""top""><font face=""" & strDefaultFontFace & """ color=""" & strForumFontColor & """ size=""" & strFooterFontSize & """><span class=""spnMessageText"">" & listForumModerators(ForumID) & "</span></font></td>" & vbNewline
							end if 
							Response.Write	"                <td bgcolor=""" & strForumCellColor & """ align=""center"" valign=""top"" nowrap>"
							if ModerateAllowed = "Y" or (lcase(strNoCookies) = "1") then 


Changing the bgcolor attribute on the alternating cells ought to do the trick on default.asp
Just keep in mind that 528 and 530 are the same cell, just a different value will be entered, and the same goes for 533 and 535.

I did not test this and therefore cannot be 100% sure that this will work. Make a backup of your files before you edit them!
Go to Top of Page

Blade22
Starting Member

Switzerland
38 Posts

Posted - 16 September 2002 :  14:52:14  Show Profile  Visit Blade22's Homepage
Oh Thats difficult for my, i not so expert of asp codes but whois the name of color in the code ? i cant understand.

" <td bgcolor=""" & strForumCellColor & """ align=""center"" valign=""top"">"

bgcolor=""" whois color

Xentor Online | Email Me

Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 16 September 2002 :  14:59:41  Show Profile
Just change strForumCellColor to strAltForumCellColor to get the alternating color effect. The strAltForumCellColor variable is the same as the alternating color you use on topic.asp.
Replace bgcolor=""" & strForumCellColor & """ with bgcolor=""yourcolorcode"" (yourcolorcode could be any color you like, just put in the name or color code) to use a color other than the AltForumCellColor color.
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.4 seconds. Powered By: Snitz Forums 2000 Version 3.4.07