SnippetMaster Support Forums
Return to main website
 
June 25, 2009, 12:40:42 PM
* Show unread posts since last visit.
* Show new replies to your posts.
Welcome, Guest. Please login or register.
Did you miss your activation email?
June 25, 2009, 12:40:42 PM

Login with username, password and session length
Search:  
Advanced search
* Home Help Search Login Register
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: Linking back to main website after logging out of SM « previous next »
Pages: [1] Print
Author Topic: Linking back to main website after logging out of SM  (Read 778 times)
P-INFO
Beta Tester

Posts: 15


[-] Linking back to main website after logging out of SM
« on: June 04, 2006, 02:44:42 PM »

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
Report to moderator   Logged
danno

Posts: 32


[-] Re: Linking back to main website after logging out of SM
« Reply #1 on: June 05, 2006, 07:11:51 PM »

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.
Report to moderator   Logged
Jenkinhill
Beta Tester

Posts: 379



[-] Re: Linking back to main website after logging out of SM
« Reply #2 on: June 06, 2006, 01:14:36 AM »

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".
Report to moderator   Logged

Kelvyn
P-INFO
Beta Tester

Posts: 15


[-] Re: Linking back to main website after logging out of SM
« Reply #3 on: June 06, 2006, 01:35:16 AM »

Thanks much for your help.

Why is the obvious sometimes so difficult to see ?

Take care,
Patrick
Report to moderator   Logged
admin
Forum Administrator
*
Posts: 2622

SnippetMaster Author


WWW
[-] Re: Linking back to main website after logging out of SM
« Reply #4 on: June 13, 2006, 02:19:19 AM »

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...

Smile

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.

Report to moderator   Logged
danno

Posts: 32


[-] Re: Linking back to main website after logging out of SM
« Reply #5 on: June 13, 2006, 02:58:43 AM »

I tried Jenkinhill's iframe idea and it works great. Here is the code I use:

Code:
<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.
Report to moderator   Logged
Jenkinhill
Beta Tester

Posts: 379



[-] Re: Linking back to main website after logging out of SM
« Reply #6 on: June 13, 2006, 03:11:21 AM »

Danno's code is good. Because my version is required to be valid XHTML strict I use

Code:

<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.


Report to moderator   Logged

Kelvyn
danno

Posts: 32


[-] Re: Linking back to main website after logging out of SM
« Reply #7 on: June 14, 2006, 02:32:03 AM »

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

Code:
<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>
Report to moderator   Logged
Pages: [1] Print 
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: Linking back to main website after logging out of SM « previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!