Actually the style stuff is OK except for mgd_get_element_by_name
which is a new one...
you could try this
function hack_get_element_by_name($styleid, $name) {
$ss = mgd_list_elements($styleid);
if ($ss) while ($ss->fetch()) {
if ($ss->name == $name) {
return mgd_get_element($ss->id);
}
}
return 0;
}
function DisplayStyleElement($styleid, $name, $level) {
global $mgdroot, $displayed_elements;
if (function_exists("mgd_get_element_by_name")) {
$se = mgd_get_element_by_name($styleid,$name);
} else {
$se =hack_get_element_by_name($styleid,$name);
}
...................
Alexander Bokovoy <[EMAIL PROTECTED]> said:
> Alan Knowles wrote:
> >
> > Alexander Bokovoy <[EMAIL PROTECTED]> said:
> >
> > > Hello Alan,
> > >
> > > Monday, July 17, 2000, 7:08:07 AM, you wrote:
> > >
> > > > Just looking at making my framed admin backwards compatible -
> > > > The first one I came across was adding in the sitegroup stuff - on the
> > main
> > > > page -
> > > > if(function_exists("mgd_has_sitegroups"))
> > > > to wrap any sitegroup stuff...
> > > It will work. Anyway, current Admin Site doesn't fully backward
> > > compatible with 1.2.5 because it uses PCRE, for example, and PHP
> > > version included with 1.2.5 doesn't have PCRE support by default.
> > PCRE? was that the object orientated update of elements?
> Perl Compatible Regular Expressions, we use it in tree displaying code
> in Style Admin. And it'll be used in new Admin Site (but it'll be no
> problem because since PHP 3.0.13 PCRE are compiled in by default).
>
> > > There are other incompatibilities (backward-related) like
> > > $midgard->prefix, <(author)>, $mgdroot, etc.
> > mmh, Since function_exists("mgd_has_sitegroups") should return true
whether or
> > not it was compiled in, I guess this is a good check for $host->prefix as
> > well....
> > the <input name=prefix value=$host->prefix>
> $host->prefix already exists in 1.2.5, but there is no support for
> managing it, so it is empty all the time. And it is a variable, not
> function.
>
> --
> Alexander
>
> --
> This is The Midgard Project's mailing list. For more information,
> please visit the project's web site at http://www.midgard-project.org
>
> To unsubscribe the list, send an empty email message to address
> [EMAIL PROTECTED]
>
>
>
--
Technical Director
Linux Center (HK) Ltd.
www.hklc.com
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]