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
 message icons question
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

hayleypink
Junior Member

Haiti
145 Posts

Posted - 03 June 2003 :  10:58:58  Show Profile
i have installed and i am useing the message icon mod.

i have downloaded the extra addon from snitz bitz with extra gifs. i have uploaded these extra gifs to my forum folder, yet only the original message icons show, how do i get the extra ones to show on screen?

thanks in advance

p.s. i am using snitz 3.4.03 and the mod is on: http://www.snitzbitz.com/mods/details.asp?Version=All&mid=50

Edited by - hayleypink on 03 June 2003 10:59:44

masterao
Senior Member

Sweden
1678 Posts

Posted - 03 June 2003 :  14:37:40  Show Profile  Visit masterao's Homepage
You need to modify inc_iconfiles.asp and inc_messageicons.asp to add more icons.

In inc_iconfiles.asp, you must do that in two places (added code marked red). Im showing how it looks with three new icons here. If you want to add all 24 icons, continue after no. 17 in my example.


Const strMessageIcon1 = "icon_mi_1.gif|15|15"
Const strMessageIcon2 = "icon_mi_2.gif|15|15"
Const strMessageIcon3 = "icon_mi_3.gif|15|15"
Const strMessageIcon4 = "icon_mi_4.gif|15|15"
Const strMessageIcon5 = "icon_mi_5.gif|15|15"
Const strMessageIcon6 = "icon_mi_6.gif|15|15"
Const strMessageIcon7 = "icon_mi_7.gif|15|15"
Const strMessageIcon8 = "icon_mi_8.gif|15|15"
Const strMessageIcon9 = "icon_mi_9.gif|15|15"
Const strMessageIcon10 = "icon_mi_10.gif|15|15"
Const strMessageIcon11 = "icon_mi_11.gif|15|15"
Const strMessageIcon12 = "icon_mi_12.gif|15|15"
Const strMessageIcon13 = "icon_mi_13.gif|15|15"
Const strMessageIcon14 = "icon_mi_14.gif|15|15"
Const strMessageIcon15 = "icon_mi_15.gif|15|15"
Const strMessageIcon16 = "icon_mi_16.gif|15|15"
Const strMessageIcon17 = "icon_mi_17.gif|15|15"

function getCurrentMsgIcon(intMsgIcon)
	select case intMsgIcon
		case 1  : getCurrentMsgIcon = strMessageIcon1
		case 2  : getCurrentMsgIcon = strMessageIcon2
		case 3  : getCurrentMsgIcon = strMessageIcon3
		case 4  : getCurrentMsgIcon = strMessageIcon4
		case 5  : getCurrentMsgIcon = strMessageIcon5
		case 6  : getCurrentMsgIcon = strMessageIcon6
		case 7  : getCurrentMsgIcon = strMessageIcon7
		case 8  : getCurrentMsgIcon = strMessageIcon8
		case 9  : getCurrentMsgIcon = strMessageIcon9
		case 10 : getCurrentMsgIcon = strMessageIcon10
		case 11 : getCurrentMsgIcon = strMessageIcon11
		case 12 : getCurrentMsgIcon = strMessageIcon12
		case 13 : getCurrentMsgIcon = strMessageIcon13
		case 14 : getCurrentMsgIcon = strMessageIcon14
		case 15 : getCurrentMsgIcon = strMessageIcon15
		case 16 : getCurrentMsgIcon = strMessageIcon16
		case 17 : getCurrentMsgIcon = strMessageIcon17
	end select
end function


Then you need change inc_messageicons.asp in four places.

First locate for intMI = 1 to 14 and change 14 to the total number of message icons that you are going to use (38 if you want to use all icons from the addon as well as the original ones). This change is to be made two times, on line 10 and 29 in an unmodified inc_messageicons.asp.

Then find the following block of code starting on line 12 and line 29:


		select case intMI
			case 1,2,3,4,5,6,8,9,10,11,12,13
				Response.Write	"" & vbNewLine
			case 7
				Response.Write	"<br>" & vbNewLine
			case 14
				Response.Write	"</td>" & vbNewLine
		end select


If you add 24 new messageicons, it will look like the following (which will display the message icons on four rows with ten icons on each row but the last row (which will have eight icons).


		select case intMI
			case 1,2,3,4,5,6,7,8,9,11,12,13,14,15,16,17,18,19,21,22,23,24,25,26,27,28,29,31,32,33,34,35,36,37
				Response.Write	"" & vbNewLine
			case 10,20,30
				Response.Write	"<br>" & vbNewLine
			case 38
				Response.Write	"</td>" & vbNewLine
		end select


Furthermore, you need to rename the new icon images to follow the naming standard used in the mod, i.e. icon_mi_15.gif and so on.

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page

hayleypink
Junior Member

Haiti
145 Posts

Posted - 04 June 2003 :  04:36:30  Show Profile
fab!!!! thanks so much i will do that!!! thanks for your attention!
Go to Top of Page

masterao
Senior Member

Sweden
1678 Posts

Posted - 04 June 2003 :  04:46:39  Show Profile  Visit masterao's Homepage
Your welcome.

Jan
===========
FR Portal Forums | Active Users 4.0.20 Mod
Go to Top of Page

hayleypink
Junior Member

Haiti
145 Posts

Posted - 29 June 2003 :  16:41:57  Show Profile
thanks works a treat

Edited by - hayleypink on 29 June 2003 16:58:01
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 1.79 seconds. Powered By: Snitz Forums 2000 Version 3.4.07