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)
 Display what page your on in Title Bar
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 3

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 01 November 2001 :  14:48:39  Show Profile
Okay, now I get it.

Well I have Stim's code running on my forums now and it works great. I just tried yours on my computer and it works great too.

Thank you both for your patience and great work!
Go to Top of Page

ROB
Junior Member

USA
347 Posts

Posted - 01 November 2001 :  16:34:16  Show Profile  Visit ROB's Homepage  Send ROB an AOL message  Send ROB an ICQ Message  Send ROB a Yahoo! Message
quote:

However, I used Active Users Mod for getting the Title. I moved the include statement for inc_activeusers.asp in inc_top.asp above the title tag and inserted the statements in red in inc_activeusers.asp as below


Case "active.asp"
strOnlineLocation = strOnlineLocation & "Active Topics"
strForumTitle = strForumTitle & " - Active Topics"
Case "members.asp"
strOnlineLocation = strOnlineLocation & "Members"
strForumTitle = strForumTitle & " - Members"
Case "search.asp"
strOnlineLocation = strOnlineLocation & "Search"
strForumTitle = strForumTitle & " - Search"
Case "events.asp"
strOnlineLocation = strOnlineLocation & "Events Calendar"
strForumTitle = strForumTitle & " - Events Calendar"



I like this solution MUCH better and highly recommend it to anyone already using the Active Users code (and who isn't?!). Thanks, GauravBhabu!


Jeff Hester
http://www.bigblueball.com
Absolutely everything about Instant Messaging & Chat
Go to Top of Page

James
Average Member

USA
539 Posts

Posted - 07 November 2001 :  23:24:45  Show Profile  Visit James's Homepage
quote:

Subject says it, show page that your on in the title bar when loaded... a few simple changes marked below.

Inc functions.asp - top of file after comments

Function GetNewTitle(strTempScriptName)
Dim StrTempScript

etc....



What all do I need to change to re-order the title to place Website first, forum second, topic third. Currently it displays backwards. If someone views their history list it's hard to tell which links go to the forum as it displays. If it displayed Website name first, then it would be easy to see which links go to the website.

-

*Interested in Radio Control*
*The RC Web Board - http://www.rcwebboard.com/*
Go to Top of Page

James
Average Member

USA
539 Posts

Posted - 11 November 2001 :  04:52:59  Show Profile  Visit James's Homepage
Okay, here's the code I used to re-order the Title display.


Function GetNewTitle(strTempScriptName)
Dim StrTempScript
Dim strNewTitle
arrTempScript = Split(strTempScriptName, "/")
strTempScript = arrTempScript(Ubound(arrTempScript))
strTempScript = lcase(strTempScript)
Select Case strTempScript
Case "topic.asp"

strTempTopic = request.querystring("TOPIC_ID")

if not(strTempTopic = "") then

strsql = "SELECT T_SUBJECT, FORUM_ID FROM " & strTablePrefix & "TOPICS WHERE TOPIC_ID=" & strTempTopic
set ttopics = my_conn.execute(strsql)
strTempTopicTitle = ttopics("T_SUBJECT")
strTempForum = ttopics("FORUM_ID")
set ttopics = nothing
strsql = "SELECT F_SUBJECT FROM " & strTablePrefix & "FORUM WHERE FORUM_ID=" & strTempForum
set tforums = my_conn.execute(strsql)
strTempForumTitle = tforums("F_SUBJECT")
set tforums = nothing
strNewTitle = strForumTitle & " - " & strTempForumTitle & " - " & strTempTopicTitle
else
strNewTitle = strForumTitle
end if

Case "forum.asp"
strTempForum = request.querystring("FORUM_ID")

if not(strTempForum = "") then
strsql = "SELECT F_SUBJECT FROM " & strTablePrefix & "FORUM WHERE FORUM_ID=" & strTempForum
set tforums = my_conn.execute(strsql)
strTempForumTitle = tforums("F_SUBJECT")
set tforums = nothing
strNewTitle = strForumTitle & " - " & strTempForumTitle
else
strNewTitle = strForumTitle
end if
Case "members.asp"
strNewTitle = strForumTitle & " - Members"
Case "active.asp"
strNewTitle = strForumTitle & " - Active Topics"
Case "faq.asp"
strNewTitle = strForumTitle & " - Frequently Asked Questions"
Case "search.asp"
strNewTitle = strForumTitle & " - Search"
Case "pop_profile.asp"
if request.querystring("mode") = "display" then
strNewTitle = strForumTitle & " - View Profile"
elseif request.querystring("mode") = "edit" then
strNewTitle = strForumTitle & " - Edit Profile"
else
strNewTitle = strForumTitle & " - Profile"
end if
Case "policy.asp"
strNewTitle = strForumTitle & " - User Agreement"
Case "register.asp"
strNewTitle = strForumTitle & " - Register"
Case "active_users.asp"
strNewTitle = strForumTitle & " - Active users"
Case else
strNewTitle = strForumTitle
End Select
GetNewTitle = strNewTitle
End Function


It now displays Forum Title - 1st, Forum - 2nd and Topic - 3rd.
It also displays Forum Title before any othe pages such as (Forum Title - Members)


-

*Interested in Radio Control*
*The RC Web Board - http://www.rcwebboard.com/*
Go to Top of Page

Azaniah
Senior Member

United Kingdom
1004 Posts

Posted - 13 November 2001 :  14:39:10  Show Profile  Visit Azaniah's Homepage
Has anyone tried to view an archived topic with this?

It "works" when you drill down from forum, to topic.

But if you search for archived topics and then select one, it causes a problem.

Cheers Az

-------
Eagles fly!, but weasels don't get sucked into jet engines.
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 13 November 2001 :  17:34:15  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
what kind of problem?

----
-Eric (da_stimulator)
Stims Snitz Test area - Running 3.3.03, 4 beta, Huw's code, and Davio's code
Need a Mod? Check out the Mod Resource
Go to Top of Page

Azaniah
Senior Member

United Kingdom
1004 Posts

Posted - 13 November 2001 :  18:16:41  Show Profile  Visit Azaniah's Homepage
Won't load page...

Don't have the exact error here, but it's missing the Archive=True to recollection.

And then moans about a BOF or EOF to this MOD.

Az

-------
Eagles fly!, but weasels don't get sucked into jet engines.
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 13 November 2001 :  18:22:41  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
try changing any instance of 'strTablePrefix' to 'strActivePrefix' and see what it does...

let me know of the results in this thread

----
-Eric (da_stimulator)
Stims Snitz Test area - Running 3.3.03, 4 beta, Huw's code, and Davio's code
Need a Mod? Check out the Mod Resource
Go to Top of Page

Azaniah
Senior Member

United Kingdom
1004 Posts

Posted - 14 November 2001 :  06:47:38  Show Profile  Visit Azaniah's Homepage


Error Type:
ADODB.Field (0x800A0BCD)
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
/huwr/inc_functions.asp, line 64


This ONLY happens if you try and view an archived topic from the search.asp page.

Lines 62 - 64 of inc_functions.asp


strsql = "SELECT T_SUBJECT, FORUM_ID FROM " & strActivePrefix & "TOPICS WHERE TOPIC_ID=" & strTempTopic
set ttopics = my_conn.execute(strsql)
strTempTopicTitle = ttopics("T_SUBJECT")


I had added this code prior to that.. *lines 50 - 61*


if not(strTempTopic = "") then
if request("ARCHIVE")="true" then
strActivePrefix = strTablePrefix & "A_"
ArchiveView = "true"
ArchiveLink = "ARCHIVE=true&"
nDays = "0"
else
strActivePrefix = strTablePrefix
ArchiveView = ""
ArchiveLink = ""
end if


which fixed the same problem for viewing archived topics from the forum method.

(ie click on archived topic icon, etc)

If you repost the URL and add &Archive=true then it works.

Cheers Az

-------
Eagles fly!, but weasels don't get sucked into jet engines.
Go to Top of Page

Azaniah
Senior Member

United Kingdom
1004 Posts

Posted - 14 November 2001 :  12:49:37  Show Profile  Visit Azaniah's Homepage
Stim,

I don't think this is related directly to the Display MOD. I just happens thats the first point of failure.

I used the changed posted in another topic...

Cheers Az

-------
Eagles fly!, but weasels don't get sucked into jet engines.
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 14 November 2001 :  16:16:03  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
ok I'll have to alter the code to work with archives, there is a bug in it about that. About the search page, thats totally on a different subject I think...

There probably will be a problem with the search though, as it only links to the topic id without adding 'archive=true' to the querystring.

----
-Eric (da_stimulator)
Stims Snitz Test area - Running 3.3.03, 4 beta, Huw's code, and Davio's code
Need a Mod? Check out the Mod Resource
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 15 November 2001 :  03:52:22  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
Try updating to the following function...



Function GetNewTitle(strTempScriptName)
Dim StrTempScript
Dim strNewTitle
arrTempScript = Split(strTempScriptName, "/")
strTempScript = arrTempScript(Ubound(arrTempScript))
strTempScript = lcase(strTempScript)
Select Case strTempScript
Case "topic.asp"

strTempTopic = request.querystring("TOPIC_ID")

if not(strTempTopic = "") then
if request.querystring("archive") = "true" then
strsql = "SELECT T_SUBJECT, FORUM_ID FROM " & strActivePrefix & "TOPICS WHERE TOPIC_ID=" & strTempTopic
set ttopics = my_conn.execute(strsql)
strTempTopicTitle = ttopics("T_SUBJECT")
strTempForum = ttopics("FORUM_ID")
set ttopics = nothing
strsql = "SELECT F_SUBJECT FROM " & strActivePrefix & "FORUM WHERE FORUM_ID=" & strTempForum
set tforums = my_conn.execute(strsql)
strTempForumTitle = tforums("F_SUBJECT")
set tforums = nothing
strNewTitle = strTempTopicTitle & " - " & strTempForumTitle & " - " & strForumTitle
else
strsql = "SELECT T_SUBJECT, FORUM_ID FROM " & strTablePrefix & "TOPICS WHERE TOPIC_ID=" & strTempTopic
set ttopics = my_conn.execute(strsql)
strTempTopicTitle = ttopics("T_SUBJECT")
strTempForum = ttopics("FORUM_ID")
set ttopics = nothing
strsql = "SELECT F_SUBJECT FROM " & strTablePrefix & "FORUM WHERE FORUM_ID=" & strTempForum
set tforums = my_conn.execute(strsql)
strTempForumTitle = tforums("F_SUBJECT")
set tforums = nothing
strNewTitle = strTempTopicTitle & " - " & strTempForumTitle & " - " & strForumTitle
end if
else
strNewTitle = strForumTitle
end if

Case "forum.asp"
strTempForum = request.querystring("FORUM_ID")

if not(strTempForum = "") then
strsql = "SELECT F_SUBJECT FROM " & strTablePrefix & "FORUM WHERE FORUM_ID=" & strTempForum
set tforums = my_conn.execute(strsql)
strTempForumTitle = tforums("F_SUBJECT")
set tforums = nothing
strNewTitle = strTempForumTitle & " - " & strForumTitle
else
strNewTitle = strForumTitle
end if
Case "members.asp"
strNewTitle = "Members - " & strForumTitle
Case "active.asp"
strNewTitle = "Active Topics - " & strForumTitle
Case "faq.asp"
strNewTitle = "Frequently Asked Questions - " & strForumTitle
Case "search.asp"
strNewTitle = "Search - " & strForumTitle
Case "pop_profile.asp"
if request.querystring("mode") = "display" then
strNewTitle = "View Profile - " & strForumTitle
elseif request.querystring("mode") = "edit" then
strNewTitle = "Edit Profile - " & strForumTitle
else
strNewTitle = "Profile - " & strForumTitle
end if
Case "policy.asp"
strNewTitle = "User Agreement - " & strForumTitle
Case "register.asp"
strNewTitle = "Register - " & strForumTitle
Case "active_users.asp"
strNewTitle = "Active users - " & strForumTitle
Case else
strNewTitle = strForumTitle
End Select
GetNewTitle = strNewTitle
End Function


----
-Eric (da_stimulator)
Stims Snitz Test area - Running 3.3.03, 4 beta, Huw's code, and Davio's code
Need a Mod? Check out the Mod Resource
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Previous 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.19 seconds. Powered By: Snitz Forums 2000 Version 3.4.07