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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 MOD: Message Icons
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 12

Aaron Cake
Starting Member

Canada
16 Posts

Posted - 21 March 2001 :  21:34:58  Show Profile  Visit Aaron Cake's Homepage
I'm using the Access 97 string. Sorry, should have mentioned it.

Jet 4 is not installed on my system as my mail server relies on version 3 and I don't want to break it. Can I work around the problem by manually modifying the database?

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 21 March 2001 :  22:58:26  Show Profile
The Message Icons MOD comes with 2 different setup scripts.

When you run the mod_dbsetup.asp file choose this one in the dropdown box:

Message Icons Mod for Access97 Connectstring
Go to Top of Page

Aaron Cake
Starting Member

Canada
16 Posts

Posted - 22 March 2001 :  11:05:26  Show Profile  Visit Aaron Cake's Homepage
I did.

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 22 March 2001 :  11:27:54  Show Profile
Manually modifying the database would be the best solution for you then.
Go to Top of Page

Aaron Cake
Starting Member

Canada
16 Posts

Posted - 22 March 2001 :  16:40:15  Show Profile  Visit Aaron Cake's Homepage
OK. What do I need to do? :)

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 22 March 2001 :  20:42:18  Show Profile
In the FORUM_TOPICS table add a new field named T_MSGICON of type Number with a default of 1

In the FORUM_REPLY table add a new field named R_MSGICON of type Number with a default of 1
Go to Top of Page

zodc
Starting Member

Japan
16 Posts

Posted - 24 March 2001 :  05:31:18  Show Profile

I've installed your message icon mod, Thank You!

All went well except one thing...

When I "reply" to a message, the icon file name always ends with 0 (zero).
When I "post" a message, the appropriate one shows.
Can you help ???

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 24 March 2001 :  05:58:18  Show Profile
In post_info.asp:

change this code:


strSql = strSql & ", R_MSGICON"
strSql = strSql & ", R_MAIL"
strSql = strSql & ", R_MESSAGE"



to this:


strSql = strSql & ", R_MAIL"
strSql = strSql & ", R_MSGICON"
strSql = strSql & ", R_MESSAGE"
Go to Top of Page

zodc
Starting Member

Japan
16 Posts

Posted - 24 March 2001 :  10:24:39  Show Profile

Thank You for the quick reply, and solution!
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 24 March 2001 :  13:58:58  Show Profile
you're welcome
Go to Top of Page

Aaron Cake
Starting Member

Canada
16 Posts

Posted - 26 March 2001 :  10:06:02  Show Profile  Visit Aaron Cake's Homepage
quote:

In the FORUM_TOPICS table add a new field named T_MSGICON of type Number with a default of 1

In the FORUM_REPLY table add a new field named R_MSGICON of type Number with a default of 1



Thanks! Worked great.

Go to Top of Page

Rob Poretti
Junior Member

Canada
435 Posts

Posted - 31 March 2001 :  13:03:22  Show Profile  Visit Rob Poretti's Homepage
Hi Richard,

Thanks for another easy to implement mod... finally got around to installing and it worked without difficulties (on my heavy moded sr2 forum)

One question though. I'm building a tech support forum and it would be cool to have another half dozen or so icons for things like: Bug Notification, Bug Fix, New Release Announcement, Downloadable item, New Feature Idea (COuld use the Idea Light)... anyway you get the picture....

It seems that one could do this easily, by adding a few more icons and changing the code in post.asp, at this section:

<% ' *** MESSAGE ICONS MODIFICATION *** START
if strRqMethod = "Reply" or _
strRqMethod = "ReplyQuote" or _
strRqMethod = "Topic" or _
strRqMethod = "TopicQuote" then
%>
<tr>
<td bgColor="<% =strPopUpTableColor %>" noWrap vAlign="top" align="right"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><b>Message Icon:</b></font></td>
<td bgColor="<% =strPopUpTableColor %>" vAlign="top"><input type="radio" class="radio" name="strMessageIcon" value="1" <% Response.Write(" checked") %>> <img src="icon_mi_1.gif" border="0"> <input type="radio" class="radio" name="strMessageIcon" value="2"> <img src="icon_mi_2.gif" border="0"> <input type="radio" class="radio" name="strMessageIcon" value="3"> <img src="icon_mi_3.gif" border="0"> <input type="radio" class="radio" name="strMessageIcon" value="4"> <img src="icon_mi_4.gif" border="0"> <input type="radio" class="radio" name="strMessageIcon" value="5"> <img src="icon_mi_5.gif" border="0"> <input type="radio" class="radio" name="strMessageIcon" value="6"> <img src="icon_mi_6.gif" border="0"> <input type="radio" class="radio" name="strMessageIcon" value="7"> <img src="icon_mi_7.gif" border="0"><br>
<input type="radio" class="radio" name="strMessageIcon" value="8"> <img src="icon_mi_8.gif" border="0"> <input type="radio" class="radio" name="strMessageIcon" value="9"> <img src="icon_mi_9.gif" border="0"> <input type="radio" class="radio" name="strMessageIcon" value="10"> <img src="icon_mi_10.gif" border="0"> <input type="radio" class="radio" name="strMessageIcon" value="11"> <img src="icon_mi_11.gif" border="0"> <input type="radio" class="radio" name="strMessageIcon" value="12"> <img src="icon_mi_12.gif" border="0"> <input type="radio" class="radio" name="strMessageIcon" value="13"> <img src="icon_mi_13.gif" border="0"> <input type="radio" class="radio" name="strMessageIcon" value="14"> <img src="icon_mi_14.gif" border="0"></td>
</tr>
<% end if ' *** MESSAGE ICONS MODIFICATION *** END %>


Could I just add a few more of:

<input type="radio" class="radio" name="strMessageIcon" value="15"> <img src="icon_mi_15.gif" border="0">


15, 16, 17 etc...

I took a quick look at the code... this should do it right? Have I forgotten anything?


Also, an idea for a "version 2" would be to put the icons in a db, add an admin page, and let people manage (add and give names), the topic icons so that different forums can have different topic icons. I have to imagine that a topic icon for a gaming forum is going to be totally different then a tech support site, or a music related forum.

Thanks again!

Cheers!



Rob Poretti
Sascom Marketing Group ~ Toronto
vox.905.825.5373 fax.905.825.5960
Go to Top of Page

rick7165
Senior Member

USA
1094 Posts

Posted - 31 March 2001 :  13:11:23  Show Profile  Visit rick7165's Homepage
Hey Rob... That's right.
I've added more to one of my sites

Mine looks like this:

if strRqMethod = "Reply" or _
strRqMethod = "ReplyQuote" or _
strRqMethod = "Topic" or _
strRqMethod = "TopicQuote" then
%>
<tr>
<td bgColor="<% =strPopUpTableColor %>" noWrap vAlign="top" align="right"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><b>Message Icon:</b></font></td>
<td bgColor="<% =strPopUpTableColor %>" vAlign="top"><input type="radio" class="radio" name="strMessageIcon" value="1" <% Response.Write(" checked") %>> <img src="<% =strImageURL %>icon_mi_1.gif" border="0"> <input type="radio" class="radio" name="strMessageIcon" value="2"> <img src="<% =strImageURL %>icon_mi_2.gif" border="0"> <input type="radio" class="radio" name="strMessageIcon" value="3"> <img src="<% =strImageURL %>icon_mi_3.gif" border="0"> <input type="radio" class="radio" name="strMessageIcon" value="4"> <img src="<% =strImageURL %>icon_mi_4.gif" border="0"> <input type="radio" class="radio" name="strMessageIcon" value="5"> <img src="<% =strImageURL %>icon_mi_5.gif" border="0"> <input type="radio" class="radio" name="strMessageIcon" value="6"> <img src="<% =strImageURL %>icon_mi_6.gif" border="0"> <input type="radio" class="radio" name="strMessageIcon" value="7"> <img src="<% =strImageURL %>icon_mi_7.gif" border="0"><br>
<input type="radio" class="radio" name="strMessageIcon" value="8"> <img src="<% =strImageURL %>icon_mi_8.gif" border="0"> <input type="radio" class="radio" name="strMessageIcon" value="9"> <img src="<% =strImageURL %>icon_mi_9.gif" border="0"> <input type="radio" class="radio" name="strMessageIcon" value="10"> <img src="<% =strImageURL %>icon_mi_10.gif" border="0"> <input type="radio" class="radio" name="strMessageIcon" value="11"> <img src="<% =strImageURL %>icon_mi_11.gif" border="0"> <input type="radio" class="radio" name="strMessageIcon" value="12"> <img src="<% =strImageURL %>icon_mi_12.gif" border="0"> <input type="radio" class="radio" name="strMessageIcon" value="13"> <img src="<% =strImageURL %>icon_mi_13.gif" border="0"> <input type="radio" class="radio" name="strMessageIcon" value="14"> <img src="<% =strImageURL %>icon_mi_14.gif" border="0"><br>
<input type="radio" class="radio" name="strMessageIcon" value="15"> <img src="<% =strImageURL %>icon_mi_15.gif" border="0"><input type="radio" class="radio" name="strMessageIcon" value="16"> <img src="<% =strImageURL %>icon_mi_16.gif" border="0"><input type="radio" class="radio" name="strMessageIcon" value="17"> <img src="<% =strImageURL %>icon_mi_17.gif" border="0"><input type="radio" class="radio" name="strMessageIcon" value="18"> <img src="<% =strImageURL %>icon_mi_18.gif" border="0"><input type="radio" class="radio" name="strMessageIcon" value="19"> <img src="<% =strImageURL %>icon_mi_19.gif" border="0"><input type="radio" class="radio" name="strMessageIcon" value="20"> <img src="<% =strImageURL %>icon_mi_20.gif" border="0"></td>
</tr>

Test Site
www.eastpasco.com
Running on HuwR's SR4 release. Colors and Graphic scheme done by Richard Kinser.

Edited by - rick7165 on 31 March 2001 13:14:31
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 31 March 2001 :  13:17:45  Show Profile
quote:

I took a quick look at the code... this should do it right? Have I forgotten anything?



No, you haven't forgotten anything. Just use the existing code as an example and add as many more as you like.

quote:
Also, an idea for a "version 2" would be to put the icons in a db, add an admin page, and let people manage (add and give names), the topic icons so that different forums can have different topic icons. I have to imagine that a topic icon for a gaming forum is going to be totally different then a tech support site, or a music related forum.



I was trying to keep this as simple as possible. All that is needed to use different icons is to just name them icon_mi_##.gif where ## is a unique #, and overwrite (or add to) the current icons. That way the images are already customizable.
Go to Top of Page

Rob Poretti
Junior Member

Canada
435 Posts

Posted - 31 March 2001 :  18:16:06  Show Profile  Visit Rob Poretti's Homepage
Yes true, simpler is better! Changing icon names to customize is really trivial...

Thanks again for a great mod

Rob Poretti
Sascom Marketing Group ~ Toronto
vox.905.825.5373 fax.905.825.5960


BTW, does anyone know What has been going on with the Snitz Forum???!!! The other day it seemed that it was down for the better part of the afternoon and today I had some trouble making a earlier post. It would time out.

Edited by - Rob Poretti on 31 March 2001 18:18:55
Go to Top of Page
Page: of 12 Previous Topic Topic Next Topic  
Previous Page | Next Page
 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.22 seconds. Powered By: Snitz Forums 2000 Version 3.4.07