Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Adding an anchor to announcments
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

rev_greg
Starting Member

USA
47 Posts

Posted - 10 April 2002 :  17:57:28  Show Profile  Visit rev_greg's Homepage  Send rev_greg an AOL message  Send rev_greg an ICQ Message
Does anyone have any thoughts about changing the announcments mod to include an anchor on the announcment page. So you can post a link to a specific announcment. Like

http://yourhost.com/forum/view_announcements.asp?#2

Instead of

http://yourhost.com/forum/view_announcements.asp

I have the scrolling annoucment mod, and it would be nice for my users to be shown only the announcements they are interested in instead of having to scroll through a dozen or so to find the one they are looking for.






nomad_2k
Junior Member

United Kingdom
173 Posts

Posted - 10 April 2002 :  18:11:15  Show Profile
Open up view_announcements.asp and around line 133 you'll find this code, add the line in red:

%>
<a name="<%=rs("A_ID")%>"></a>
<tr>
<td bgcolor="<% =CColor %>" valign="top" nowrap>
<font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><b><% =ChkString(rs("A_SUBJECT"),"display") %></b></font></td>
<td bgcolor="<% =CColor %>" valign="top"><img src="icon_posticon.gif" border="0" hspace="3"><font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>">Posted by <% =rs("A_AUTHOR") %>   (<% =ChkDate(rs("A_START_DATE")) %> through <% =ChkDate(rs("A_END_DATE")) %>)<% if AdminAllowed = 1 then %> <a href="JavaScript:openWindow('pop_announce_delete.asp?mode=Announcement&A_ID=<% =rs("A_ID") %>')"><img src="icon_delete_reply.gif" height=15 width=15 alt="Delete Announcement" border="0" align="absmiddle" hspace="6"></a><% end if %><% if rs("A_END_DATE") < DatetoStr(Now()) then %><font color="<% =strActiveLinkColor %>">(This Announcement has expired)<% end if %><% if rs("A_START_DATE") > DatetoStr(Now()) then %><font color="<% =strActiveLinkColor %>">(This Announcement has not started yet)<% end if %></font></font>

<hr noshade size="<% =strFooterFontSize %>">

<font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><% =formatStr(rs("A_MESSAGE")) %><a href="#top"><img src="icon_go_up.gif" height=15 width=15 border="0" align="right" alt="Go to Top of Page"></a></font></td>
</tr>
<%


Now I don't have a copy of the scrolling version so I can't show you exactly what needs changed but all you need to do is look in the include file that displays the announcements and find where it write the link. Then just add #<%=rs("A_ID")%> after view_announcements.asp and it should work.

If you post a text version of the include file I can give you a defenate answer.

Hope this helps.


Good things come to those who wait.
http://www.freeasphost.co.uk/evolution/
Go to Top of Page

rev_greg
Starting Member

USA
47 Posts

Posted - 10 April 2002 :  18:16:08  Show Profile  Visit rev_greg's Homepage  Send rev_greg an AOL message  Send rev_greg an ICQ Message
Yup I figured it out

Then I changed Huws scrolling announcment mod to include the anchor in the URL it works awesome now. You can see it http://www.ulccw.org/forum


Thanks for the quick response.

Go to Top of Page
  Previous Topic Topic Next Topic  
 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.39 seconds. Powered By: Snitz Forums 2000 Version 3.4.07