Author |
Topic |
work mule
Senior Member
USA
1358 Posts |
Posted - 03 April 2001 : 00:56:12
|
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 "
|
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 03 April 2001 : 01:19:21
|
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. |
|
|
work mule
Senior Member
USA
1358 Posts |
Posted - 03 April 2001 : 02:12:35
|
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.
|
|
|
SaNaNe
Starting Member
Cyprus
8 Posts |
Posted - 10 April 2001 : 03:38:23
|
your demo address give me the internal server error 500 please check it
Ne Mutlu Türküm Diyene M. Kemal Atatürk |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 10 April 2001 : 03:48:28
|
just checked it, no error that I can see.
Here is a screenshot of what it looks like:
|
|
|
Raichelle
Junior Member
370 Posts |
Posted - 13 April 2001 : 16:08:00
|
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
|
|
|
rick7165
Senior Member
USA
1094 Posts |
Posted - 13 April 2001 : 16:52:29
|
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. |
|
|
Morten
Junior Member
Denmark
251 Posts |
Posted - 10 June 2001 : 20:38:51
|
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!
|
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 10 June 2001 : 20:52:25
|
you're welcome |
|
|
Ribkick
Junior Member
USA
296 Posts |
Posted - 11 June 2001 : 18:21:56
|
Fixed. (missing comma) Thanks for another terrific addition to our forum. Richard, you rock!!
Edited by - ribkick on 11 June 2001 18:50:57 |
|
|
bcooper
Starting Member
34 Posts |
Posted - 16 June 2001 : 12:59:58
|
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?
|
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 17 June 2001 : 01:13:03
|
make sure you are using the mod_dbsetup.asp file that comes with this MOD. |
|
|
bcooper
Starting Member
34 Posts |
Posted - 17 June 2001 : 20:27:39
|
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.
|
|
|
Ribkick
Junior Member
USA
296 Posts |
Posted - 27 June 2001 : 10:53:16
|
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
|
|
|
stuF
Average Member
United Kingdom
561 Posts |
Posted - 27 June 2001 : 15:51:01
|
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)
|
|
|
Topic |
|