Author |
Topic |
samyot
Junior Member
Canada
242 Posts |
|
GauravBhabu
Advanced Member
4288 Posts |
Posted - 01 November 2001 : 11:11:14
|
Try this way
strTempScript = strTempScript(Ubound(strTempScript))
GauravBhabu There is only one miracle...That is LIFE! | It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying. |
|
|
Azaniah
Senior Member
United Kingdom
1004 Posts |
Posted - 01 November 2001 : 11:12:49
|
lol, what is it with me and this MOD?
OK,
Should that not be,
strTempScript = Split(sTempScriptName, "/") ??
Even so I'm back to the does nothing routine when I did these changes.
CHeers Az
------- Eagles fly!, but weasels don't get sucked into jet engines. |
|
|
Roland
Advanced Member
Netherlands
9335 Posts |
|
GauravBhabu
Advanced Member
4288 Posts |
Posted - 01 November 2001 : 11:29:34
|
Function GetNewTitle(strTempScriptName) Dim StrTempScript Dim strNewTitle arrTempScript = Split(strTempScriptName, "/") strTempScript = arrTempScript(Ubound(arrTempScript))
GauravBhabu There is only one miracle...That is LIFE! | It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.
Edited by - gauravBhabu on 01 November 2001 11:36:53 |
|
|
Azaniah
Senior Member
United Kingdom
1004 Posts |
Posted - 01 November 2001 : 11:42:22
|
Thanks again...
(man I feel so thick sometimes)
Az
------- Eagles fly!, but weasels don't get sucked into jet engines. |
|
|
GauravBhabu
Advanced Member
4288 Posts |
Posted - 01 November 2001 : 11:51:52
|
Frutzle, I looked at your site. I see the title changing except for the forum pages.
Though this is not required, because I have it working okay. But Try this
Find this in inc_activeusers.asp
iOnlinePathLen = InStrRev(strOnlinePathInfo,"/",-1) strOnlinePageName = lcase(Right(strOnlinePathInfo,(len(strOnlinePathInfo)-iOnlinePathLen)))
Replace as below
strScriptName = request.servervariables("script_name") arrTempScript = Split(strScriptName, "/") strOnlinePageName = arrTempScript(Ubound(arrTempScript)) strOnlinePageName = lcase(strOnlinePageName)
GauravBhabu There is only one miracle...That is LIFE! | It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying. |
|
|
samyot
Junior Member
Canada
242 Posts |
Posted - 01 November 2001 : 11:56:25
|
quote:
Function GetNewTitle(strTempScriptName) Dim StrTempScript Dim strNewTitle arrTempScript = Split(strTempScriptName, "/") strTempScript = arrTempScript(Ubound(arrTempScript))
GauravBhabu There is only one miracle...That is LIFE! | It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.
Edited by - gauravBhabu on 01 November 2001 11:36:53
Thanks, that did it!
Sylvain Amyot FORUM:http://support.mytechsupport.ca HOME:http://mytechsupport.ca
|
|
|
Da_Stimulator
DEV Team Forum Moderator
USA
3373 Posts |
Posted - 01 November 2001 : 12:39:37
|
Main post updated
--------------- -Da_Stimulator |
|
|
GauravBhabu
Advanced Member
4288 Posts |
Posted - 01 November 2001 : 12:39:41
|
quote: Function GetNewTitle(sTempScriptName) Dim StrTempScript Dim strNewTitle strTempScript = Split(strTempScriptName, "/") strTempScript = strTempScript(Ubound(strTempScript)) strTempScript = lcase(strTempScript)
Stim, Above will still give an error. You need to keep it like as below:
Function GetNewTitle(strTempScriptName) Dim StrTempScript Dim strNewTitle arrTempScript = Split(strTempScriptName, "/") strTempScript = arrTempScript(Ubound(arrTempScript)) strTempScript = lcase(strTempScript)
GauravBhabu There is only one miracle...That is LIFE! | It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.
Edited by - gauravBhabu on 01 November 2001 12:43:28 |
|
|
Da_Stimulator
DEV Team Forum Moderator
USA
3373 Posts |
Posted - 01 November 2001 : 12:44:26
|
updated
--------------- -Da_Stimulator |
|
|
GauravBhabu
Advanced Member
4288 Posts |
Posted - 01 November 2001 : 12:47:49
|
Stim, You still Missed one:
quote:
Function GetNewTitle(sTempScriptName) Dim StrTempScript Dim strNewTitle arrTempScript = Split(strTempScriptName, "/") strTempScript = arrTempScript(Ubound(arrTempScript)) strTempScript = lcase(strTempScript)
should be:
strTempScriptName
GauravBhabu There is only one miracle...That is LIFE! | It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying. |
|
|
Da_Stimulator
DEV Team Forum Moderator
USA
3373 Posts |
Posted - 01 November 2001 : 12:51:47
|
updated, thx
--------------- -Da_Stimulator |
|
|
Roland
Advanced Member
Netherlands
9335 Posts |
Posted - 01 November 2001 : 14:02:58
|
quote:
Frutzle, I looked at your site. I see the title changing except for the forum pages.
Though this is not required, because I have it working okay. But Try this
Find this in inc_activeusers.asp
iOnlinePathLen = InStrRev(strOnlinePathInfo,"/",-1) strOnlinePageName = lcase(Right(strOnlinePathInfo,(len(strOnlinePathInfo)-iOnlinePathLen)))
Replace as below
strScriptName = request.servervariables("script_name") arrTempScript = Split(strScriptName, "/") strOnlinePageName = arrTempScript(Ubound(arrTempScript)) strOnlinePageName = lcase(strOnlinePageName)
GauravBhabu There is only one miracle...That is LIFE! | It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.
I hadn't uploaded the files so they'd work on the site. I only put two text files online. The title changing was done with Stim's code and I did it yesterday so it wasn't perfect yet.
The problem is that I've removed Stim's codes and inserted yours but now nothing happens anymore. I don't get any errors but the titles don't change either. That's why I uploaded those text files
I really don't get it. What did I do wrong.
Two more questions: 1- What is the real difference between the way your codes work and Stim's codes? 2- How come that even though this topic has like 30 replies it doesn't get a flaming icon?
Thanks, Roland |
|
|
GauravBhabu
Advanced Member
4288 Posts |
Posted - 01 November 2001 : 14:41:35
|
Both have same concept and approach. Since Active Users Mod already have that functionality It just needed the statements for changing the title.
Using Stim's concept you do not need to add the Title changing statements to Active Users Mod.
However this is what you did wrong:
inc_top.asp
strScriptName = request.servervariables("script_name") %><!--#INCLUDE FILE="inc_activeusers.asp" --><% Response.Write "<html>" & vbNewline & vbNewline & _ "<head>" & vbNewline & _ "<title>" & strForumTitle & "</title>" & vbNewline
You missed the ASP Tags
GauravBhabu There is only one miracle...That is LIFE! | It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying. |
|
|
Topic |
|