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/Code)
 inc_fader help
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

semifamous
Starting Member

USA
44 Posts

Posted - 19 November 2004 :  12:53:45  Show Profile  Visit semifamous's Homepage  Send semifamous an ICQ Message
Apparently nobody uses this anymore. My old forums were using Snitz 3.1 SR4, and now I'm trying to make everything from that work in the new 3.4

With the new way announcments are done, I don't know if it's compatible with the old inc_fader.asp stuff.

Can someone look at it and see what might need to be changed?

	<tr>
	  <td bgcolor="<% =strCategoryCellColor %>" colspan="<% if (strShowModerators = "1") or (mlev = 4 or mlev = 3) then Response.Write("8") else Response.Write("6") end if %>"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strCategoryFontColor %>" valign="top"><b>Announcements</b></font></td>
        </tr>
	  <td bgcolor="<% =strAltForumCellColor %>" align=center valign="center" colspan="<% if (strShowModerators = "1") or (mlev = 4 or mlev = 3) then Response.Write("8") else Response.Write("7") end if %>">
	    <applet code="Fade.class" width="500" height="40">
	      <param name="bgcolor" value="DDDDDD">
	      <param name="txtcolor" value="996699">
	      <param name="changefactor" value="2">
	      <param name="text1" value="Welcome to <% =strForumTitle %>"">
	      <param name="url1" value="">
	      <param name="font1" value="Arial,sans-serif,20">
<%            '## Forum_SQL - Get newest membername and id from DB
	      strSql = "SELECT M_NAME, MEMBER_ID FROM " & strMemberTablePrefix & "MEMBERS WHERE M_STATUS=1 AND MEMBER_ID > 1"
	      strSql = strSQL & " ORDER BY M_DATE desc;"
	      set rsNewMember = my_Conn.Execute(strSql)
	      if not rsNewMember.EOF then
		ANewMember_Name = ChkString(rsNewMember("M_NAME"), "display")
		NewMember_Id = ChkString(rsNewMember("MEMBER_ID"), "display")
	      else 
		ANewMember_Name = ""
	      end if %>

	      <param name="text2" value="Please Welcome our newest member: <% =ANewMember_Name %>">
	      <param name="url2" value="<% =StrForumURL & "pop_profile.asp?mode=display&id=" & NewMember_Id%>">
	      <param name="font2" value="Arial,sans-serif,20">

	      <param name="text3" value="Be featured here!  Register now!">
	      <param name="url3" value="<% =StrForumURL %>policy.asp">
	      <param name="font3" value="Arial,sans-serif,20">

	      <param name="text4" value="Here are today's Announcements">
	      <param name="url4" value="<% =StrForumURL %>view_announce.asp">
	      <param name="font4" value="Arial,sans-serif,20">
<%
	'## Forum_SQL
	strSql = "SELECT " & strTablePrefix & "ANNOUNCE.A_ID"
	strSql = strSql & ", " & strTablePrefix & "ANNOUNCE.A_AUTHOR"
	strSql = strSql & ", " & strTablePrefix & "ANNOUNCE.A_SUBJECT"
	strSql = strSql & ", " & strTablePrefix & "ANNOUNCE.A_MESSAGE"
	strSql = strSql & ", " & strTablePrefix & "ANNOUNCE.A_START_DATE"
	strSql = strSql & ", " & strTablePrefix & "ANNOUNCE.A_END_DATE"
	strSql = strSql & " FROM " & strTablePrefix & "ANNOUNCE "
	if mLev < 4 then
		strSql = strSql & " WHERE " & strTablePrefix & "ANNOUNCE.A_START_DATE <= " & "'" & DatetoStr(Now()) & "'"
		strSql = strSql & " AND " & strTablePrefix & "ANNOUNCE.A_END_DATE > " & "'" & DatetoStr(Now()) & "'"
        end if
	strSql = strSql & " ORDER BY " & strTablePrefix & "ANNOUNCE.A_START_DATE DESC"
	strSql = strSql & ", " & strTablePrefix & "ANNOUNCE.A_ID DESC;"

	set rsAnnounce = Server.CreateObject("ADODB.Recordset")
	rsAnnounce.cachesize = 20
	rsAnnounce.open  strSql, my_Conn, 3

	if not(rsAnnounce.EOF or rsAnnounce.BOF) then  '## Replies found in DB
		rsAnnounce.movefirst
		rsAnnounce.pagesize = strPageSize
		maxpages = cint(rsAnnounce.pagecount)
	end if
	if rsAnnounce.EOF or rsAnnounce.BOF then  '## No replies found in DB
		Response.Write ""
	else
		'rsAnnounce.movefirst
		intI = 5 

		do until rsAnnounce.EOF '**
			AnnounceSubject = rsAnnounce("A_SUBJECT")
			AnnounceLink = StrForumURL & "view_announce.asp?A_ID=" & rsAnnounce("A_ID") %>
	      <param name="text<% =intI %>" value="<% =AnnounceSubject %>">
	      <param name="url<% =intI %>" value="<% =AnnounceLink %>">
	      <param name="font<% =intI %>" value="Arial,sans-serif,20">
<%
		    rsAnnounce.MoveNext
		    intI  = intI + 1
		loop
	end if
%>
 	    </applet></td>
	</tr>

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 19 November 2004 :  13:06:30  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
This should be in Help: Mod Implementation

-Stim
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 23 November 2004 :  11:23:16  Show Profile  Visit dayve's Homepage
we should have requested moving this topic instead because now we have a double post:

http://forum.snitz.com/forum/topic.asp?TOPIC_ID=55800

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.24 seconds. Powered By: Snitz Forums 2000 Version 3.4.07