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/O Code)
 request : poll/message icon
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

stuF
Average Member

United Kingdom
561 Posts

Posted - 16 June 2001 :  16:15:36  Show Profile  Visit stuF's Homepage
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  Show Profile  Visit dayve's Homepage
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
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 17 June 2001 :  19:57:59  Show Profile  Visit dayve's Homepage
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
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 17 June 2001 :  20:04:31  Show Profile  Visit dayve's Homepage
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
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 17 June 2001 :  20:06:10  Show Profile  Visit dayve's Homepage
may I suggest this icon over the standard pin one...



Dayve
Go to Top of Page

stuF
Average Member

United Kingdom
561 Posts

Posted - 18 June 2001 :  05:24:48  Show Profile  Visit stuF's Homepage
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.

Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 18 June 2001 :  11:31:02  Show Profile  Visit dayve's Homepage
thanks for the idea, I liked it therefore I used it too!

Dayve
Go to Top of Page

Ribkick
Junior Member

USA
296 Posts

Posted - 18 June 2001 :  11:41:17  Show Profile
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.

Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 18 June 2001 :  13:20:38  Show Profile  Visit dayve's Homepage
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
Go to Top of Page

stuF
Average Member

United Kingdom
561 Posts

Posted - 18 June 2001 :  15:05:19  Show Profile  Visit stuF's Homepage
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?

Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 18 June 2001 :  16:21:29  Show Profile  Visit dayve's Homepage
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
Go to Top of Page

Ribkick
Junior Member

USA
296 Posts

Posted - 18 June 2001 :  16:43:45  Show Profile
Dayve, that slider menu was easy as you said....Thanks very much.

Edited by - ribkick on 18 June 2001 17:03:22
Go to Top of Page

stuF
Average Member

United Kingdom
561 Posts

Posted - 19 June 2001 :  03:59:00  Show Profile  Visit stuF's Homepage
dayve > ive sent oyu my forum.asp for you to take a look @ cheers, stuart.

Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 19 June 2001 :  12:18:48  Show Profile  Visit dayve's Homepage
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
Go to Top of Page

stuF
Average Member

United Kingdom
561 Posts

Posted - 20 June 2001 :  14:21:09  Show Profile  Visit stuF's Homepage
hi dayve, any progress on this?

Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 20 June 2001 :  17:02:02  Show Profile  Visit dayve's Homepage
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
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
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.34 seconds. Powered By: Snitz Forums 2000 Version 3.4.07