| Pages: [1] |
|
|
Author |
Topic: Linking back to main website after logging out of SM (Read 778 times) |
|
P-INFO
Beta Tester
Posts: 15
|
Hello Henri,
Perhaps I overlooked something, but I couldn't find a way to put up a link to my site's main page once my users are logging out from SnippetMaster. It's a little odd for them when they logout of SM they are brought back to SM's login page.
Ideally they should be able to link back to the page they were on before using Snippetmaster, but a clickable link on SM's login page would already be a great help.
Is there somewhere a viable solution for this ?
Thanks much in advance
|
|
|
|
|
|
danno
Posts: 32
|
I put an "edit this page" link at the bottom of the template using "target='_blank'" so Snippetmaster opens in a new window. After they edit, they just close Snippetmaster and their website is still open. They do need to refresh, but most do not have a problem with this.
|
|
|
|
|
|
Jenkinhill
|
You can run SnippetMaster in an iframe with full navigation links. Using a site template makes the editor seem to be part of a site than an "add-on".
|
Kelvyn
|
|
|
|
P-INFO
Beta Tester
Posts: 15
|
Thanks much for your help.
Why is the obvious sometimes so difficult to see ?
Take care,
Patrick
|
|
|
|
|
admin
Forum Administrator

Posts: 2622
SnippetMaster Author
|
Kelvyn, that is a great idea. Is it possible you could post some sample basic HTML code for how to do this? I'll make a new thread for it and add it to the FAQ area...
Also, I'll eventually be adding the ability to add/modify links to the SnippetMaster navigation area, as well as being able to specify where you want the user redirected after logout. That'll come eventually in a new release.
|
|
|
|
|
|
danno
Posts: 32
|
I tried Jenkinhill's iframe idea and it works great. Here is the code I use:
<center>
<IFRAME SRC="http://www.yoursite.com/snippetmaster" width=100% height=600>
If you can see this, your browser doesn't
understand IFRAME. However, we'll still
<A HREF="http://www.yoursite.com/snippetmaster">link</A>
you to the file.
</IFRAME>
</center>
Just include your header and footer code before and after the iframe to "wrap" it in your design. You can adjust the height and width to whatever works for you.
|
|
|
|
|
|
Jenkinhill
|
Danno's code is good. Because my version is required to be valid XHTML strict I use
<div id="editor">
<iframe src="path-to/index.php" height="800" width="100%" scrolling="auto">(with link to index.php added here for really ancient browsers)</iframe>
</div>
The editor div is centered & styled via css.
|
Kelvyn
|
|
|
|
danno
Posts: 32
|
You can also add a "frameborder" setting to hide the beveled border and make it blend in even better.
1 = show a 3d border
0 = no border
<div id="editor">
<iframe src="path-to/index.php" height="800" width="100%" scrolling="auto" frameborder="0">(with link to index.php added here for really ancient browsers)</iframe>
</div>
|
|
|
|
|
|
|
Pages: [1]
|
|
|
|