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)
 Different logos each forum
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Morten
Junior Member

Denmark
251 Posts

Posted - 23 March 2002 :  10:10:59  Show Profile
This was posted sometime ago, by Richard Kinser I think for the Snitz version 3.1 Sr4 - I post this in w/o mod-forum becaurse I would like to hear if anybody (into ASP) know that the changes does effect other functions of the forum
----------------------------------------
Start of Richard Kinser posting

In inc_top.asp you could replace this:

<td valign="top" width="50%"><a href="default.asp"><img alt="<% =strForumTitle %>" border="0" src="<%=strTitleImage%>"></a></td>

with this:


<td valign="top" width="50%"><a href="default.asp"><% if InstrRev(Request.ServerVariables("Path_Info"), "forum.asp") > 0 or InstrRev(Request.ServerVariables("Path_Info"), "topic.asp") > 0 then %><img border="0" src='forum_<% =Request.QueryString("FORUM_ID") %>.gif'><% else %><img alt="<% =strForumTitle %>" border="0" src="<%=strTitleImage%>"><% end if %></a></td>

Then you would just name the images for each Forum like:

forum_1.gif
forum_2.gif

and so on...

You would have to have an Image for each forum though, or it will show up as a broken image.

End of Richard Kinser posting
-------------------------------------


This works with 3.3.03 also, but you have to add a little piece of code to the URL-string at forum.asp

At line 365 in forum.asp find this:

<font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="topic.asp?<%= ArchiveLink %>TOPIC_ID=<% =Topic_ID %>"><% =ChkString(left(rs("T_SUBJECT"), 50),"display") %></a> </font>


and replace it with this:

<font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="topic.asp?TOPIC_ID=<% =rs("TOPIC_ID") %>&FORUM_ID=<% =Request.QueryString("FORUM_ID") %>"><% =ChkString(left(rs("T_SUBJECT"), 50),"display") %></a> </font>

Before you change anything you NEED to backup your files - becaurse I have not testet all functions with this - but as far as I can see no harm is done to anything else by this change - but as asked at the top - does anybody know if this harm other functions at the board ?

Morten

Kal Corp
Average Member

USA
878 Posts

Posted - 23 March 2002 :  10:20:20  Show Profile  Visit Kal Corp's Homepage
The group Categories mod, will let you change the Loge for each group, this might be what you want.

Go to Top of Page

stormforce79
Starting Member

27 Posts

Posted - 26 March 2002 :  16:49:35  Show Profile
Where can you download this MOD from?

Thanks

Go to Top of Page

avs
New Member

USA
83 Posts

Posted - 28 March 2002 :  22:05:11  Show Profile
I have it working with Snitz 3.03 using the following code in inc_top.asp

<% strScriptName = request.servervariables("script_name")
if instr(strScriptName,"forum")> 0 or instr(strScriptName, "topic")> 0 then %><img border="0" src='../images/forum_<% =Request.QueryString("FORUM_ID") %>.jpg'><%
else %><img alt="<% =strForumTitle %>" border="0" src="<%=strTitleImage%>"><% end if %></a></td>

(change the code in red to suit your needs)

Then I added Morten's code to forum.asp

Then you need to name each image forum_1.jpg, forum_2.jpg etc.

And finally see post below for the last bit of code.

Edited by - avs on 01 April 2002 00:03:21
Go to Top of Page

avs
New Member

USA
83 Posts

Posted - 31 March 2002 :  23:59:45  Show Profile
Morten,

Your code works, however, the way you have it right now, it won't work for topics with more then one page. For that you need to find the following code close to the bottom of forum.asp

ref = ref & widenum(counter) & "<a href='topic.asp?"
ref = ref & "TOPIC_ID=" & Topic_ID
ref = ref & "&whichpage=" & counter
ref = ref & "&ARCHIVE=" & ArchiveView

and add this right below it

ref = ref & "&FORUM_ID=" & FORUM_ID

EDIT:

Looks like even that's not enough... I forgot about the paging code in topic.asp. Without changing that too you won't get the banners if you you use the links on the bottom to jump to different pages in a topic with several pages. This should fix that.

Find in topic.asp (it's in sub Paging)
ref = ref & ArchiveLink
ref = ref & "whichpage=" & counter
ref = ref & "&TOPIC_ID=" & Topic_ID & "'"

and replace with this

ref = ref & ArchiveLink
ref = ref & "whichpage=" & counter
ref = ref & "&TOPIC_ID=" & Topic_ID
ref = ref & "&FORUM_ID=" & FORUM_ID & "'"

However this still leaves the drop down paging option or sub DropDownPaging().

Does anyone know how to make the drop down menu add a Forum ID as well?
Please Help! I'm very close to having different banners for each forum that work for all circumstances.




Edited by - avs on 01 April 2002 02:37:07
Go to Top of Page

avs
New Member

USA
83 Posts

Posted - 01 April 2002 :  18:33:06  Show Profile
Ok, I figured it out. topic.asp needs the following additional changes.

Find these lines

Response.Write("</select><b> of " & maxpages & "</b>")
Response.Write "<input type='hidden' name='TOPIC_ID' value='" & Request("TOPIC_ID") & "'>"

And add directly below

Response.Write "<input type='hidden' name='FORUM_ID' value='" & Request("FORUM_ID") & "'>"

Find this line
prevTopic = "<a href=topic.asp?TOPIC_ID=" & rsPrevTopic("TOPIC_ID") & _
change the line directly below to this

"&ARCHIVE=" & ArchiveView & "&FORUM_ID=" & FORUM_ID &_

Find this line

NextTopic = "<a href=topic.asp?TOPIC_ID=" & rsNextTopic("TOPIC_ID") & _

change the line directly below to this

"&ARCHIVE=" & ArchiveView & "&FORUM_ID=" & FORUM_ID &_

There that should do it. Now you can you can use the dropdown pagination, the link pagination, use the next topic and previous topic buttons, and your banners won't disappear. Maybe if I have the time I'll put it all together with clear instructions.




Edited by - avs on 01 April 2002 18:34:09
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.37 seconds. Powered By: Snitz Forums 2000 Version 3.4.07