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

work mule
Senior Member

USA
1358 Posts

Posted - 03 April 2001 :  00:56:12  Show Profile
I don't know if this helps anyone out, but when you go to edit a post, the message icon defaults to the first one, regardless of which one was selected, due to the response.write statement writing "checked" for the first icon.

Here's one solution:

Where you have all the message icons hardcoded, replace with this:

dim intMIcon
for intMIcon = 1 to 14
response.write ("<input type=""radio"" class=""radio"" name=""strMessageIcon"" value=" & intMIcon )
If (intMIcon = intMessageIcon) Then response.write (" checked")
response.write ("> <img src=""icons/icon_mi_" & intMIcon & ".gif"" border=""0""> ")
If (intMIcon = 7) Then response.write ("</br>")
next


This is working off of 14 icons and splitting it into two rows. That is why I have the If statement checking for "intMIcon=7" at the end.

Now for the harder part. You have to set "intMessageIcon" to whatever the value was in the database.

At Line 328 add:
intMessageIcon = rs("R_MSGICON")


At Line 354 add:
intMessageIcon = rs("T_MSGICON")


The line numbers are based upon an unmodified v3sr4 post.asp file. Also at Line 346, you'll have to modify the SQL string to get the T_MSGICON field out of the database.

You could modify the SQL statement and stick the T_MSGICON inbetween T_MAIL & T_MESSAGE. It really doesn't matter where in the SQL string, as long as it's done.

" & strTablePrefix & "TOPICS.T_MAIL, " & strTablePrefix & "TOPICS.T_MSGICON, " & strTablePrefix & "TOPICS.T_MESSAGE "


Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 03 April 2001 :  01:19:21  Show Profile
I never intended for the Message Icons selection part to show up when you edit your message, that's why there isn't anything in there to check to see what the selected icon is.
Go to Top of Page

work mule
Senior Member

USA
1358 Posts

Posted - 03 April 2001 :  02:12:35  Show Profile
It's not a big deal. I figured as much when I looked at it.

I was demo'ing the forum and how to post and edit. I had told them that you could select the message icon to set the mood of the message. So we picked a smilie. I then showed that we could edit the post and when I saved the changes (not paying attention to the message icon), I was asked what happened to the smilie.

Go to Top of Page

SaNaNe
Starting Member

Cyprus
8 Posts

Posted - 10 April 2001 :  03:38:23  Show Profile  Visit SaNaNe's Homepage  Send SaNaNe an ICQ Message
your demo address give me the internal server error 500 please check it

Ne Mutlu Türküm Diyene
M. Kemal Atatürk
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 10 April 2001 :  03:48:28  Show Profile
just checked it, no error that I can see.

Here is a screenshot of what it looks like:

Go to Top of Page

Raichelle
Junior Member

370 Posts

Posted - 13 April 2001 :  16:08:00  Show Profile
hay richard how do i add more message icons for peoples to choose from? am trying to add about 10 more good looking onces my friend gave me

Rai

Go to Top of Page

rick7165
Senior Member

USA
1094 Posts

Posted - 13 April 2001 :  16:52:29  Show Profile  Visit rick7165's Homepage
Look back 1 page... I posted something and Rob also did to on how to add more icons.


quote:

hay richard how do i add more message icons for peoples to choose from? am trying to add about 10 more good looking onces my friend gave me

Rai





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

Morten
Junior Member

Denmark
251 Posts

Posted - 10 June 2001 :  20:38:51  Show Profile
Thanks for this great MOD. I´m glad that Richard Kinser did the documentation - I have alwayes maneged to install all the MODS that he explained. It´s always very usefull to dummies like me!

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 10 June 2001 :  20:52:25  Show Profile
you're welcome
Go to Top of Page

Ribkick
Junior Member

USA
296 Posts

Posted - 11 June 2001 :  18:21:56  Show Profile
Fixed. (missing comma) Thanks for another terrific addition to our forum. Richard, you rock!!



Edited by - ribkick on 11 June 2001 18:50:57
Go to Top of Page

bcooper
Starting Member

34 Posts

Posted - 16 June 2001 :  12:59:58  Show Profile  Send bcooper an AOL message
Every time I try to install the mod I get this error:

Dropping Column...
ALTER TABLE FORUM_TOPICS
-2147217900 | Syntax error in ALTER TABLE statement.
Table(s) updated

--------------------------------------------------------------------------------

Dropping Column...
ALTER TABLE FORUM_REPLY
-2147217900 | Syntax error in ALTER TABLE statement.
Table(s) updated

_______________________
What am I doing wrong?

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 17 June 2001 :  01:13:03  Show Profile
make sure you are using the mod_dbsetup.asp file that comes with this MOD.
Go to Top of Page

bcooper
Starting Member

34 Posts

Posted - 17 June 2001 :  20:27:39  Show Profile  Send bcooper an AOL message
hehehe...I did...i got it working too. Thanks.

quote:

make sure you are using the mod_dbsetup.asp file that comes with this MOD.



Go to Top of Page

Ribkick
Junior Member

USA
296 Posts

Posted - 27 June 2001 :  10:53:16  Show Profile
Morning Richard, is there a way to make the column that displays the message icons active rather than static?

If I add additional icons, the 15 x 15 pixels distorts them somewhat. I have tried increasing the size but different icons require different settings so no one setting is correct.

Thanks

Go to Top of Page

stuF
Average Member

United Kingdom
561 Posts

Posted - 27 June 2001 :  15:51:01  Show Profile  Visit stuF's Homepage
theres an addon for this mod currently residing in the w/o code forum,which automatically adds the poll icon to the MI field if a poll is posted
(this requires the poll mod)

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.18 seconds. Powered By: Snitz Forums 2000 Version 3.4.07