Author |
Topic  |
|
RogerE
Starting Member
33 Posts |
Posted - 17 January 2010 : 10:59:46
|
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
|
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.
|
 |
|
RogerE
Starting Member
33 Posts |
Posted - 18 January 2010 : 03:45:58
|
Many thanks for that.
Much appreciated
Roger |
 |
|
RogerE
Starting Member
33 Posts |
Posted - 18 January 2010 : 18:02:45
|
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? |
 |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 19 January 2010 : 04:50:11
|
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.” |
 |
|
RogerE
Starting Member
33 Posts |
Posted - 19 January 2010 : 05:59:01
|
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? |
 |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 19 January 2010 : 06:05:44
|
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.” |
 |
|
RogerE
Starting Member
33 Posts |
Posted - 19 January 2010 : 16:24:10
|
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
|
 |
|
AnonJr
Moderator
    
United States
5768 Posts |
Posted - 19 January 2010 : 17:06:31
|
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:
To either:
Or:
All depending on how you have your frames set up. |
Edited by - AnonJr on 19 January 2010 17:12:12 |
 |
|
RogerE
Starting Member
33 Posts |
Posted - 20 January 2010 : 03:16:20
|
Thanks folks
Much appreciated. |
 |
|
|
Topic  |
|