Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Return to main website after logout
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

RogerE
Starting Member

33 Posts

Posted - 17 January 2010 :  10:59:46  Show Profile
As part of our Club's website I have added a Snitz BB area.

Now the committee have asked that, instead of returning to the BB login screen, after the logout button is pressed, the user is returned to the website index.html page. (This is allpart of a general website rewrite)

I can't see an obvious way to do this.

Can anyone help please?

Many thanks

Roger

Etymon
Advanced Member

United States
2396 Posts

Posted - 17 January 2010 :  22:02:16  Show Profile  Visit Etymon's Homepage
Around line 340 of inc_header.asp, look for case "logout".

Find this code ... <meta http-equiv=""Refresh"" content=""2; URL=default.asp"">.

Change the destination in red to your new destination.

Next, find this code ... <a href=""default.asp"">Back To Forum</font></a>, which is on the next line down.

Change the destination in red to your new destination.


Go to Top of Page

RogerE
Starting Member

33 Posts

Posted - 18 January 2010 :  03:45:58  Show Profile
Many thanks for that.

Much appreciated

Roger
Go to Top of Page

RogerE
Starting Member

33 Posts

Posted - 18 January 2010 :  18:02:45  Show Profile
It works... but there is a problem.

The Snitz board is contained in an Iframe (or Object) as part of the standard design of webpage.

When the above code changes are made the index.html page loads correctly, but in the iframe. What is needed is for the whole page to be replaced by the index.html.

Any ideas please?
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 19 January 2010 :  04:50:11  Show Profile
You'd need to use JavaScript to set the location rather than a meta refresh:
top.location="URI";

Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

RogerE
Starting Member

33 Posts

Posted - 19 January 2010 :  05:59:01  Show Profile
Sorry, but I'm a bit thick (no very thick) when it comes to webpage stuff. (However if you asked me about Delphi or Clipper then no problem!)

Can you expand please?
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 19 January 2010 :  06:05:44  Show Profile
Replace the meta tag with the JavaScript I posted, ensuring you place it within script tags:
<script type=""text/javascript"">top.location=""URI"";</script>
You'll also need to add an "onclick" event to the anchor tag:
<a href=""URI"" onclick=""top.location=this;return false;"">

Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

RogerE
Starting Member

33 Posts

Posted - 19 January 2010 :  16:24:10  Show Profile
Many thanks - that works fine.

However I have just one more question about this.

The Home link that appears top right, next to the Profile link, now loads index.html page into the iframe.

I have found the line in inc_header.asp where the line is built, but cannot see where strHomeURL is defined or how to modify it.

Once again = thanks for your help

Roger
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 19 January 2010 :  17:06:31  Show Profile  Visit AnonJr's Homepage
strHomeURL is defined in your Admin Options under Main Forum Configuration.

If you look for sForumNavigation() you can add a "target" value in the link so the Home link will open in the parent frame.

Change:
Response.Write	"<a href=""" & strHomeURL & """" & dWStatus("Homepage") & " tabindex=""-1"">Home</a>" & vbNewline & _


To either:
Response.Write	"<a href=""" & strHomeURL & """" & dWStatus("Homepage") & " tabindex=""-1"" target=""_parent"">Home</a>" & vbNewline & _


Or:
Response.Write	"<a href=""" & strHomeURL & """" & dWStatus("Homepage") & " tabindex=""-1"" target=""_top"">Home</a>" & vbNewline & _


All depending on how you have your frames set up.

Edited by - AnonJr on 19 January 2010 17:12:12
Go to Top of Page

RogerE
Starting Member

33 Posts

Posted - 20 January 2010 :  03:16:20  Show Profile
Thanks folks

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