Add to Author section - Posted (430 Views)
Starting Member
wisemx
Posts: 5
5
Salutations,
I apologize if this has been asked before; searched the forums until I was blue. wink
I'd like to add an Honorable Mention image to the Message Author section for certain members, (<- Right there, on the left side).
I'm using the latest version with MS SQL Server.
Has anyone already done this?
I'll invent this wheel if need be but thought it would be prudent to ask first. God's blessings,
Mark

P.S. Merry Christmas.
< Moved to MOD Add-On Forum (W/O Code) by Shaggy /><
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Forum Moderator
AnonJr
Posts: 5768
5768
I don't know if anyone's done it before or not. I know that there are several different ideas along a similar vein (adding something to the info on the left). Some time back I put together a code snippet to add "Member Since: ..." under the names. That could give you some ideas. Also there's a fairly recent topic floating around to add different icons instead of the stars for ranks. There are probably dozens more, but that's all I can think of with this sinus medicine...
While neither of these really fits your needs, they will probably cut down a lot of the work in rooting out the lines that affect the info over to the left. Not much, but its a start.<
Posted
Starting Member
wisemx
Posts: 5
5
...You did indeed give me a thought with Member Since. Much thanks,
Mark
<
Posted
Forum Moderator
AnonJr
Posts: 5768
5768
Glad I could help in some way. smile Let us know if you get it put together. I'm sure there are others who would be interested.<
Posted
Starting Member
wisemx
Posts: 5
5
...You're right, here's a follow-up:

This is a 5 minute change done in topic.asp

For my needs knowing M.MEMBER_ID was enough since it's already part of the SQL being built in topic.asp

For the Forum members who are recognized as "Honor" members I hard-coded If/ElseIf statements in topic.asp

You have to catch this twice, ReplyID and the MemberID, for the current topic.
Anywhere in the same area where the Member rank/country is displayed create something like this:
(Can easily be placed between existing paragraph tags.)

Dim HonorMember
HonorMember = ""
If Reply_MemberID = 3 Then
HonorMember = "Honorable"
Response.Write "<center><strong><font color=""red"">" & HonorMember & "</font></strong></center><br />"
ElseIf Reply_MemberID = 12 Then
HonorMember = "Honorable"
Response.Write "<center><strong><font color=""red"">" & HonorMember & "</font></strong></center><br />"
End if

(Can be cleaned up a bit but left like that it can quickly carry a different message when needed.)
<
Posted
Forum Moderator
AnonJr
Posts: 5768
5768
Cool. bigsmile I figured it was something like that.

Maybe down the road you could add a Boolean field to the member's profile and just check for that. I imagine this is something you would want to set for more people later on.
Reguardless, looks good.<
 
You Must enter a message