Author |
Topic  |
stuF
Average Member
  
United Kingdom
561 Posts |
Posted - 16 June 2001 : 16:15:36
|
hi, this is a request for my forum, i have both the poll, and the message icon mods installed, what id like to do, is when a user posts a poll, it automatically assigns a poll icon as the icon for that topic, this would make users aware of the fact that it was a poll, and i could remove the extra text from the topic listings.
id be very happy if someone could help, i know its only a little thing, but its these things which really add the final touches to forums. thankyou in advance, stuart@36-degrees.co.uk [/url]http://36-degrees.co.uk/cgi-bin/forum/[/url]
|
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 17 June 2001 : 19:56:26
|
scroll down further, this was code for something I thought you wanted... I'd delete it but it can be useful for those who do not have the Message Icon Mod installed
Change this area:
forum.asp =========
<% ' ################### Poll Mod - 1 line ################### %> <td bgcolor="<% =strForumCellColor %>" valign="center" align="center"><img src='icon_mi_<% =rs("T_MSGICON") %>.gif' height=15 width=15 border=0 hspace=0></td> <td bgcolor="<% =strForumCellColor %>" valign="center" align="left"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="topic.asp?TOPIC_ID=<% =rs("TOPIC_ID") %>&FORUM_ID=<% =Request.QueryString("FORUM_ID") %>&CAT_ID=<% =Request.QueryString("CAT_ID") %>&Topic_Title=<% =ChkString(left(rs("T_SUBJECT"), 50),"urlpath") %>&Forum_Title=<% =ChkString(Request.QueryString("FORUM_Title"),"urlpath") %>"><% =ChkString(left(rs("T_SUBJECT"), 50),"display") %></a> </font><% if trim(rs("answer1")) <> "" then %><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize-2 %>"> (Poll)</font><% end if %><% if strShowPaging = "1" then TopicPaging() end if%></td>
TO THIS:
<% ' ################### Poll Mod - 1 line ################### %> <td bgcolor="<% =strForumCellColor %>" valign="center" align="center"><img src='icon_mi_<% =rs("T_MSGICON") %>.gif' height=15 width=15 border=0 hspace=0></td> <td bgcolor="<% =strForumCellColor %>" valign="center" align="left"><% if trim(rs("answer1")) <> "" then %><img src="pin.gif"><% end if %><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="topic.asp?TOPIC_ID=<% =rs("TOPIC_ID") %>&FORUM_ID=<% =Request.QueryString("FORUM_ID") %>&CAT_ID=<% =Request.QueryString("CAT_ID") %>&Topic_Title=<% =ChkString(left(rs("T_SUBJECT"), 50),"urlpath") %>&Forum_Title=<% =ChkString(Request.QueryString("FORUM_Title"),"urlpath") %>"><% =ChkString(left(rs("T_SUBJECT"), 50),"display") %></a> </font><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize-2 %>"> </font><% if strShowPaging = "1" then TopicPaging() end if%></td>
tested and works... it will put a poll icon in front of the topic that is a poll for easy identification.
Dayve
Edited by - dayve on 17 June 2001 19:56:58
Edited by - dayve on 17 June 2001 20:13:02 |
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 17 June 2001 : 19:57:59
|
oh, you want it in the message icon area... I am sure that is easily done... the above code works nicely too, check it out but I will be right back with the code you asked for...
Dayve |
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 17 June 2001 : 20:04:31
|
forum.asp =========
to put the icon in the message icon mod cell, change this:
<% ' ################### Poll Mod - 1 line ################### %> <td bgcolor="<% =strForumCellColor %>" valign="center" align="center"><img src='icon_mi_<% =rs("T_MSGICON") %>.gif' height=15 width=15 border=0 hspace=0></td>
TO THIS:
<% ' ################### Poll Mod - 1 line ################### %> <td bgcolor="<% =strForumCellColor %>" valign="center" align="center"><% if trim(rs("answer1")) <> "" then %><img src="pin.gif"> <% else %> <img src='icon_mi_<% =rs("T_MSGICON") %>.gif' height=15 width=15 border=0 hspace=0><% end if %></td>
good idea, I will implement this myself... :)
DEMO Poll/Message Icon
Dayve
Edited by - dayve on 17 June 2001 20:08:38 |
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 17 June 2001 : 20:06:10
|
may I suggest this icon over the standard pin one...

Dayve |
 |
|
stuF
Average Member
  
United Kingdom
561 Posts |
Posted - 18 June 2001 : 05:24:48
|
cheers dayve, ill implement this later tonight, and i already have as poll icon, but cheers anyway. I thought this would be a better idea than having the text next to the thread name.
|
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 18 June 2001 : 11:31:02
|
thanks for the idea, I liked it therefore I used it too! 
Dayve |
 |
|
Ribkick
Junior Member
 
USA
296 Posts |
Posted - 18 June 2001 : 11:41:17
|
Great Idea!! Thanks for asking StuF and thanks for codeing it Dayve.
BTW Dayve, how do you do that sliding links/menu bar you have on your board? I've seen that other places and dig it.
|
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 18 June 2001 : 13:20:38
|
quote:
Great Idea!! Thanks for asking StuF and thanks for codeing it Dayve.
BTW Dayve, how do you do that sliding links/menu bar you have on your board? I've seen that other places and dig it.
http://www.dynamicdrive.com has the code and it's really simple to implement. the .js files will go into your inc_top.asp. let me know if you need additional help on this...
Dayve |
 |
|
stuF
Average Member
  
United Kingdom
561 Posts |
Posted - 18 June 2001 : 15:05:19
|
dayve, i cnt find that code in my forum.asp ive found this:
<% ' ################### Poll Mod - 1 line ################### %> <td bgcolor="<% =strForumCellColor %>" valign="center" align="left"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"> <a href="topic.asp?TOPIC_ID=<% =rs("TOPIC_ID") %>&FORUM_ID=<% =Request.QueryString("FORUM_ID") %>&CAT_ID=<% =Request.QueryString("CAT_ID") %>
&Topic_Title=<% =ChkString(left(rs("T_SUBJECT"), 50),"urlpath") %>&Forum_Title=<% =ChkString(Request.QueryString("FORUM_Title"),"urlpath") %>"> <% =ChkString(left(rs("T_SUBJECT"), 50),"display") %></a> </font><% if trim(rs("answer1")) <> "" then %><font face="<% =strDefaultFontFace %> " size="<% =strDefaultFontSize-2 %>"> (Poll)</font><% end if %><% if strShowPaging = "1" then TopicPaging() end if%></td> <td bgcolor="<% =strForumCellColor %>" valign="center" align="center"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strForumFontColor %>"><% =ChkString(rs("M_NAME"),"display") %></font></td> <td bgcolor="<% =strForumCellColor %>" valign="center" align="center"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %> " color="<% =strForumFontColor %>"><% =rs("T_REPLIES") %></font></td> <td bgcolor="<% =strForumCellColor %>" valign="center" align="center"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strForumFontColor %>"><% =rs("T_VIEW_COUNT") %></font></td> but its not the same, could you tell me whether this is the right section?
|
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 18 June 2001 : 16:21:29
|
hmm, you said you had the Message Icon MOD installed correct? If so you should be able to do a search on this:
<img src='icon_mi_<% =rs("T_MSGICON") %>
I put mine in the Poll Mod area so yours is probably right before this:
<% ' ################### Poll Mod - 1 line ################### %>
That is the area that is edited... shout back at me when you find it... or email me your forum.asp code and I will hook you up.
dayve@dhtmlcentral.com
Dayve
Edited by - dayve on 18 June 2001 16:22:03
Edited by - dayve on 18 June 2001 16:23:41 |
 |
|
Ribkick
Junior Member
 
USA
296 Posts |
Posted - 18 June 2001 : 16:43:45
|
Dayve, that slider menu was easy as you said....Thanks very much.
Edited by - ribkick on 18 June 2001 17:03:22 |
 |
|
stuF
Average Member
  
United Kingdom
561 Posts |
Posted - 19 June 2001 : 03:59:00
|
dayve > ive sent oyu my forum.asp for you to take a look @ cheers, stuart.
|
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 19 June 2001 : 12:18:48
|
quote:
dayve > ive sent oyu my forum.asp for you to take a look @ cheers, stuart.
no problem... should have it for you today...
Dayve |
 |
|
stuF
Average Member
  
United Kingdom
561 Posts |
Posted - 20 June 2001 : 14:21:09
|
hi dayve, any progress on this?
|
 |
|
dayve
Forum Moderator
    
USA
5820 Posts |
Posted - 20 June 2001 : 17:02:02
|
quote:
hi dayve, any progress on this?
check your email, I sent something yesterday explaining that the problem is because you don't have the Message Icon mod installed, I checked your forum to confirm. Now you can do 1 of 2 things. Use the first version I posted above which will place an icon immediately before the topic title OR install the Message Icon mod and then make the edit I showed in example 2.
Make sense?? let me know if you need more help...
Dayve |
 |
|
Topic  |
|