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

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Inc_inconfiles.asp
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

PeeWee.Inc
Senior Member

United Kingdom
1893 Posts

Posted - 18 August 2003 :  16:09:52  Show Profile  Visit PeeWee.Inc's Homepage
I wanna use inc_iconfiles.asp on one of my sites but, i dont have a forum running on this site.

What code would i need to use to make inc_iconfiles.asp work?


De Priofundus Calmo Ad Te Damine

Anacrusis
Junior Member

USA
219 Posts

Posted - 18 August 2003 :  16:18:24  Show Profile  Visit Anacrusis's Homepage  Send Anacrusis an AOL message
You just need to include the inc_iconfiles.asp on your page, then call the function with the icon name:

<!-- #include file="inc_iconfiles.asp" -->

<%=getCurrentIcon(strIconTrashcan, "Trash Can", "") %>

Once you include the file in your page, the icon definitions and the function that displays them becomes available for you to use.

The Internet ClubHouse
www.internet-clubhouse.com

Edited by - Anacrusis on 18 August 2003 16:35:50
Go to Top of Page

PeeWee.Inc
Senior Member

United Kingdom
1893 Posts

Posted - 18 August 2003 :  16:22:45  Show Profile  Visit PeeWee.Inc's Homepage
as soon as i have the include on the page i get this error:
Error Type:
Microsoft VBScript compilation (0x800A03EA)
Syntax error
/site/inc_iconfiles.asp, line 154
function getCurrentIcon(fIconName,fAltText,fOtherTags)



function getCurrentIcon(fIconName,fAltText,fOtherTags)
	if fIconName = "" then exit function
	if fOtherTags <> "" then fOtherTags = " " & fOtherTags
	if Instr(fIconName,"http://") > 0 then strTempImageUrl = "" else strTempImageUrl = strImageUrl
	tmpicons = split(fIconName,"|")
	if tmpicons(1) <> "" then fWidth = " width=""" & tmpicons(1) & """"
	if tmpicons(2) <> "" then fHeight = " height=""" & tmpicons(2) & """"
	getCurrentIcon = "<img src=""" & strTempImageUrl & tmpicons(0) & """" & fWidth & fHeight & " border=""0"" alt=""" & fAltText & """ title=""" & fAltText & """" & fOtherTags & " />"
end function

De Priofundus Calmo Ad Te Damine
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 18 August 2003 :  17:33:45  Show Profile
The function also uses the 'strImageURL' variable which is defined in config.asp. If you're not using config.asp, you will need to define this variable either in the function itself, or in some header file that you have on your site.

Support Snitz Forums
Go to Top of Page

PeeWee.Inc
Senior Member

United Kingdom
1893 Posts

Posted - 18 August 2003 :  17:47:20  Show Profile  Visit PeeWee.Inc's Homepage
cheers

I should know this stuff

De Priofundus Calmo Ad Te Damine
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 18 August 2003 :  17:54:16  Show Profile
Yes you should. You're a senior member after all.

Support Snitz Forums
Go to Top of Page

PeeWee.Inc
Senior Member

United Kingdom
1893 Posts

Posted - 19 August 2003 :  15:40:11  Show Profile  Visit PeeWee.Inc's Homepage
I have not coded anything for a few months now. Give me a week and i'll be back in the swing of things

De Priofundus Calmo Ad Te Damine
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