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: MOD Implementation
 wanting to substitute icon_poll.gif for Poll: ?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

xx ENIGMA xx
Junior Member

166 Posts

Posted - 18 November 2003 :  23:40:51  Show Profile  Send xx ENIGMA xx an AOL message

I would like to replace the normal Poll:
with the icon_poll.gif in forum.asp

How would I alter the code to then display the .gif image?

elseif IsPoll then
   Response.Write("Poll: ")
end if



my little forum playground

StephenD
Senior Member

Australia
1044 Posts

Posted - 18 November 2003 :  23:46:00  Show Profile  Send StephenD a Yahoo! Message
Hmm ... does the icon not appear in the very first column? Do you want it to appear twice?
Go to Top of Page

RebelTech
Average Member

USA
613 Posts

Posted - 18 November 2003 :  23:54:47  Show Profile  Visit RebelTech's Homepage  Send RebelTech an ICQ Message
Find this line in inc_poll.asp:
Response.Write "  bgcolor=""" & strHeadCellColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """ color=""" & strHeadFontColor & """><b>Featured Poll: </b>" & formatStr(pTopic_Message) & "</font> " & vbNewline & _
					 	   "		   <font color=""" & strHeadFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """>"


Change the code in red to this:
<img src=""icon_poll.gif"" alt=""Featured Poll:""> 

Edited by - RebelTech on 18 November 2003 23:56:37
Go to Top of Page

xx ENIGMA xx
Junior Member

166 Posts

Posted - 19 November 2003 :  01:03:01  Show Profile  Send xx ENIGMA xx an AOL message
quote:
Originally posted by StephenD

Hmm ... does the icon not appear in the very first column? Do you want it to appear twice?



no, not in mine it doesnt

thanks RebelTech, the <img src part just escaped my mind
and I was thinking only [ forum code ]


my little forum playground

Go to Top of Page

StephenD
Senior Member

Australia
1044 Posts

Posted - 19 November 2003 :  01:20:38  Show Profile  Send StephenD a Yahoo! Message
OK, forum.asp

Find this code @ Line 524:
	' DEM --> Added code for topic moderation
				if Topic_Status = 2 then
					UnApprovedFound = "Y"
					Response.Write 	getCurrentIcon(strIconFolderUnmoderated,"Topic Not Moderated","hspace=""0""") & "</a>" & vbNewline
				elseif Topic_Status = 3 then
					HeldFound = "Y"
					Response.Write 	getCurrentIcon(strIconFolderHold,"Topic on Hold","hspace=""0""") & "</a>" & vbNewline
					' DEM --> end of code Added for topic moderation
				else
if isevent="1" then 
						Response.Write	getCurrentIcon(strIconEvent,"","")
				       elseif ispoll="1" then 
						Response.Write	getCurrentIcon(strIconPoll,"","")
						else
						Response.Write	ChkIsNew(Topic_LastPost)
					end if
				end if


The bit in red is the one that displays the poll icon in the left column. If you haven't got the event calendar mod then make this last bit look like this:
' DEM --> end of code Added for topic moderation
				else
				if ispoll="1" then 
						Response.Write	getCurrentIcon(strIconPoll,"","")
					else
						Response.Write	ChkIsNew(Topic_LastPost)
					end if


Good luck!
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.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07