[kdewebdev-site] Problem with the site layout
Joff
ffoj at flashgranny.co.uk
Tue Mar 1 21:14:30 EST 2005
On Tuesday 01 March 2005 16:54, Andras Mantia wrote:
> Hi,
>
> I'm trying to create a kallery homepage that follows the current
> layout, but have some problems. applib.php contains rules that should
> grab the common files (CSS and PHP files) from the main kdewebdev site:
> if ($_SERVER["HTTP_HOST"] == "kallery.kdewebdev.org") {
> $_libpath = "/home/kdewebdev/public_html/include/";
> $_imgmain = "/home/kdewebdev/public_html/images/";
> $_css = "/home/kdewebdev/public_html/css/";
> $_mainsite = "http://kdewebdev.org/";
> $_quanta = "http://quanta.kdewebdev.org/";
> $_kallery = "http://kallery.kdewebdev.org/";
> $_kommander = "http://kommander.kdewebdev.org/";
> $_kxsldbg = "http://kxsldbg.kdewebdev.org/";
> $_kime = "http://kimagemapeditor.kdewebdev.org/";
> $_kfr = "http://kfilereplace.kdewebdev.org/";
> $_kls = "http://klinkstatus.kdewebdev.org/";
> }
> include_once ($_libpath."left.inc.php");
>
> With the above code, nothing is found, the layout is totally broken. If
> I use
> $_css = "http://kdewebdev.org/css/";
>
> The CSS file is found, but the pictures used in the CSS file are not.
> Example from there:
> background-image:url("../images/page/bg_line_.gif");
>
> I suppose if I change the url to
> background-image:url("http://kdewebdev.org/images/page/bg_line_.gif");
> it will work.
>
> But this will not solve the problem with the common PHP files. How can
> we do that
> include_once ($_libpath."left.inc.php");
>
> always includes the left.inc.php from the main kdewebdev?
>
> Andras
>
> PS: Of course locally works this, as the applib.php has an "else" part
> where relative paths are used.
Would it not be easier to symlink the common files on the server? Or is this
not possible?
I know its hardly a cutting edge solution..... :)
Joff
More information about the kdewebdev-site
mailing list