Page 1 of 1

Changes for Embeded Users

Posted: Sat Jul 28, 2007 9:03 pm
by Dance_master
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>';
}

Re: Changes for Embeded Users

Posted: Sat Jul 28, 2007 9:18 pm
by garvinhicking
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

work aroound

Posted: Wed Aug 01, 2007 4:19 pm
by Dance_master
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.

Re: work aroound

Posted: Sat Aug 04, 2007 12:52 pm
by garvinhicking
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 no not want to embed the backend

Posted: Sat Aug 04, 2007 8:02 pm
by Dance_master
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.

Re: i no not want to embed the backend

Posted: Sat Aug 04, 2007 8:52 pm
by garvinhicking
Hi!

How about installing the "loginform" sidebar plugin? That should log you in to a s9y installation...?

Regards,
Garvin

admin file

Posted: Fri Aug 10, 2007 4:35 am
by Dance_master
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.

Re: admin file

Posted: Fri Aug 10, 2007 12:31 pm
by garvinhicking
Hi!
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.
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.

Best regards,
Garvin