Author |
Topic |
Da_Stimulator
DEV Team Forum Moderator
USA
3373 Posts |
Posted - 17 December 2000 : 12:17:43
|
I replaced the <title> tag with the following... It shows forum title/topic title if it exists, otherwise it will just show the default forum title.
<% strTempForumTitle = request.querystring("forum_title") strTempTopicTitle = request.querystring("topic_title")
if strTempForumTitle = "" and strTempTopicTitle = "" then response.write("<title>"&strForumTitle&"</title>") elseif strTempTopicTitle = "" and not(strTempForumTitle = "") then response.write("<title>"&strTempForumTitle&" - " & strForumTitle & "</title>") elseif not(strTempTopicTitle = "" and strTempForumTitle = "") then response.write("<title>"&strTempTopicTitle&" - " & strTempForumTitle & " - " & strForumTitle & "</title>") else response.write("<title>" & strForumTitle & "</title>") end if
%>
Da_Stimulator Stimmy's Forums - Using 3.1 SR2 "We all die someday, but your goin down before I do" - Me
Changed topic title...
Edited by - Davio on 07 November 2001 16:51:26 |
|
Da_Stimulator
DEV Team Forum Moderator
USA
3373 Posts |
|
wii
Free ASP Hosts Moderator
Denmark
2632 Posts |
Posted - 19 February 2001 : 04:17:00
|
why not add to this, and make the URL stay the same, so if I have http://www.alphaville.dk/forum/ - the URL stays the same no matter which page I´m on.
|
|
|
Da_Stimulator
DEV Team Forum Moderator
USA
3373 Posts |
Posted - 19 February 2001 : 12:07:33
|
Thats what it does now, this is to show the topic name/forum name if your viewing one....
------ Da_Stimulator - Snitz Forums Dev Team Member My Snitz test center |
|
|
Reinsnitz
Snitz Forums Admin
USA
3545 Posts |
Posted - 19 February 2001 : 12:40:25
|
This sounds like the prefered behaviour to me.
Reinsnitz (Mike) ><)))'> "Therefore go and make disciples of all nations,..." Matthew 28:19a |
|
|
Da_Stimulator
DEV Team Forum Moderator
USA
3373 Posts |
Posted - 19 February 2001 : 12:42:43
|
Kewl
------ Da_Stimulator - Snitz Forums Dev Team Member My Snitz test center |
|
|
StockholmStudent
Junior Member
Sweden
329 Posts |
Posted - 26 February 2001 : 05:00:56
|
How do you do this mod!?
Inc_top.asp looks like this:
quote:
end select
mLev = cint(ChkUser2(strDBNTUserName, Request.Cookies(strUniqueID & "User")("Pword")))
Response.Write "<html>" & vbcrlf & vbcrlf & _ "<head>" & vbcrlf & _ "<title>" & strForumTitle & "</title>" & vbcrlf & _ "<meta name=""copyright"" content=""This code is Copyright (C) 2000 Michael Anderson and Pierre Gorissen"">" & vbcrlf %>
How to change it for the look you like!?
|
|
|
Reinsnitz
Snitz Forums Admin
USA
3545 Posts |
Posted - 26 February 2001 : 09:23:13
|
In Inc_top.asp replace this:
mLev = cint(ChkUser2(strDBNTUserName, Request.Cookies(strUniqueID & "User")("Pword")))
Response.Write "<html>" & vbcrlf & vbcrlf & _ "<head>" & vbcrlf & _ "<title>" & strForumTitle & "</title>" & vbcrlf & _ "<meta name=""copyright"" content=""This code is Copyright (C) 2000 Michael Anderson and Pierre Gorissen"">" & vbcrlf %>
with this:
mLev = cint(ChkUser2(strDBNTUserName, Request.Cookies(strUniqueID & "User")("Pword")))
strTempForumTitle = request.querystring("forum_title") strTempTopicTitle = request.querystring("topic_title")
Response.Write "<html>" & vbcrlf & vbcrlf & _ "<head>" & vbcrlf
if strTempForumTitle = "" and strTempTopicTitle = "" then Response.Write "<title>" & strForumTitle & "</title>" & vbCrLf elseif strTempTopicTitle = "" and not(strTempForumTitle = "") then Response.Write "<title>" & strTempForumTitle & " - " & strForumTitle & "</title>" & vbCrLf elseif not(strTempTopicTitle = "" and strTempForumTitle = "") then Response.Write "<title>" & strTempTopicTitle & " - " & strTempForumTitle & " - " & strForumTitle & "</title>" & vbCrLf else Response.Write "<title>" & strForumTitle & "</title>" & vbCrLf end if Response.Write "<meta name=""copyright"" content=""This code is Copyright (C) 2000 Michael Anderson and Pierre Gorissen"">" & vbcrlf
Reinsnitz (Mike) ><)))'> Need a Mod? "Therefore go and make disciples of all nations,..." Matthew 28:19a
Edited by reinsnitz on 02/26/2001 |
|
|
StockholmStudent
Junior Member
Sweden
329 Posts |
Posted - 26 February 2001 : 09:48:30
|
so I should replace the "end select" in the beginning!?
|
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 26 February 2001 : 09:50:39
|
no, don't replace the end select.
don't leave out the META Copyright line either.
Edited by - Richard Kinser on 26 February 2001 09:52:30 |
|
|
Reinsnitz
Snitz Forums Admin
USA
3545 Posts |
Posted - 26 February 2001 : 10:23:02
|
edited my post to reflect the proper change...
Thanks Richard!
Reinsnitz (Mike) ><)))'> Need a Mod? "Therefore go and make disciples of all nations,..." Matthew 28:19a |
|
|
Reinsnitz
Snitz Forums Admin
USA
3545 Posts |
Posted - 26 February 2001 : 10:24:25
|
quote:
so I should replace the "end select" in the beginning!?
Hey Stoky... the next alpha is going to include this code in it... and the resulting beta/final will also... so you might want to just wait on that ;)
there are quite a number of small changes (enouph to be a huge endevor for anyone modifying code).
Reinsnitz (Mike) ><)))'> Need a Mod? "Therefore go and make disciples of all nations,..." Matthew 28:19a |
|
|
StockholmStudent
Junior Member
Sweden
329 Posts |
Posted - 27 February 2001 : 02:39:11
|
and what about inc_top_short.asp?
|
|
|
StockholmStudent
Junior Member
Sweden
329 Posts |
Posted - 27 February 2001 : 05:34:24
|
quote:
no, don't replace the end select.
don't leave out the META Copyright line either.
Edited by - Richard Kinser on 26 February 2001 09:52:30
BIG BUG!!! MAYBE THIS AINT GOOD!?
I just found out a thing! This change in the inc_top.asp made the admin-options impossible! There where no trashes etc. any loonger! So I rechanged to the old style! Why is it so!?
cheers /CHEETAH
AND WHY AINT THE E_MAIL NOTIFICATION WOORKING!?
|
|
|
StockholmStudent
Junior Member
Sweden
329 Posts |
Posted - 28 February 2001 : 16:28:53
|
anyone!?
|
|
|
Doug G
Support Moderator
USA
6493 Posts |
Posted - 28 February 2001 : 16:43:14
|
Dunno, maybe no one spotted your comment? :)
====== Doug G ====== |
|
|
Topic |
|