module plugin_internal.inc.php
function generate_content
for embedded users this function needs to be changed to lunch the admin in a new window. please consider this change in the next release.
function generate_content(&$title)
{
global $serendipity;
$title = $this->title;
if ($this->get_config('https', 'false') == 'true') {
$base = str_replace('http://', 'https://', $serendipity['baseURL']);
} else {
$base = $serendipity['serendipityHTTPPath'];
}
$link = $base . ($serendipity['rewrite'] == 'none' ? $serendipity['indexFile'] .'?/' : '') . PATH_ADMIN;
$new_page = ($serendipity['embed'] === true ? 'target="_blank" ' : '');
$text = (($_SESSION['serendipityAuthedUser'] === true) ? SUPERUSER_OPEN_ADMIN : SUPERUSER_OPEN_LOGIN);
echo '<a ' . $new_page . 'href="' . $link . '" title="'. $text .'">'. $text .'</a>';
}
Changes for Embeded Users
-
Dance_master
- Regular
- Posts: 10
- Joined: Sat Jul 28, 2007 8:56 pm
- Location: usa
- Contact:
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Changes for Embeded Users
Hi!
The embed method described in the serendipity documentation only embedsthe frontend, not the backend. Embedding where the admin is also embedded isnot directly supported,so you might find other places where this won't work as you might want it.
"target=_blank" is deprecated for XHTML, so I'm always reluctant to use that, and instead want to mention that users should use their browser to middle-klick / ctrl-click links that they want to open in a new window...?
Regards,
Garvin
The embed method described in the serendipity documentation only embedsthe frontend, not the backend. Embedding where the admin is also embedded isnot directly supported,so you might find other places where this won't work as you might want it.
"target=_blank" is deprecated for XHTML, so I'm always reluctant to use that, and instead want to mention that users should use their browser to middle-klick / ctrl-click links that they want to open in a new window...?
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
Dance_master
- Regular
- Posts: 10
- Joined: Sat Jul 28, 2007 8:56 pm
- Location: usa
- Contact:
work aroound
the reason i wanted the back end to come up in a new window is because it is not embedded. i have created a work around for it when it embeds in the main Website. i am still working on the site but you are welcome to look at it. www.forrestvance.com i am open to any idea you may have. currently there is no back end interface. i am still working on getting the back end login working automatically.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: work aroound
Hi!
I don't think you can easily embed the backend, this is not supported by Serendipity.
You might want to use Serendipity 1.2, there you can change the basic .tpl smarty template files for the backend to include your design in HTML or with Smarty's include_php syntax?
Regards,
Garvin
I don't think you can easily embed the backend, this is not supported by Serendipity.
You might want to use Serendipity 1.2, there you can change the basic .tpl smarty template files for the backend to include your design in HTML or with Smarty's include_php syntax?
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
Dance_master
- Regular
- Posts: 10
- Joined: Sat Jul 28, 2007 8:56 pm
- Location: usa
- Contact:
i no not want to embed the backend
i do not want to embed the back end i only want to get logged into it so that the user is not asked to sign in again.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: i no not want to embed the backend
Hi!
How about installing the "loginform" sidebar plugin? That should log you in to a s9y installation...?
Regards,
Garvin
How about installing the "loginform" sidebar plugin? That should log you in to a s9y installation...?
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
Dance_master
- Regular
- Posts: 10
- Joined: Sat Jul 28, 2007 8:56 pm
- Location: usa
- Contact:
admin file
Index file
The name of your serendipity index file
you currently have field in the path section for the name of the index file. are you going to be adding the same type of field for the admin.
i have been able to embed the admin and the only thing i am missing is that field.
The name of your serendipity index file
you currently have field in the path section for the name of the index file. are you going to be adding the same type of field for the admin.
i have been able to embed the admin and the only thing i am missing is that field.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: admin file
Hi!
Best regards,
Garvin
No, this is not planned. Serendipity does not support embedding the backend in foreign applications, and we believe this feature is not needed. Instead we focus on developing more important features that more people want to use.you currently have field in the path section for the name of the index file. are you going to be adding the same type of field for the admin.
Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/