PDA

View Full Version : Install.php


jennec
08-03-2005, 12:07 PM
I have made some modifications to the affinity skin, and want to include them in a second desing. i have the file in place and have modified the install.php file to be as follows:

<?php
// +---------------------------------------------+
// | * * Copyright © 2005 indiqo.media * * * * * |
// | * * http://www.indiqo.de * * * * * * * * * *|
// | * * This file may not be redistributed. * * |
// +---------------------------------------------+

if(!defined('IN_SUBDREAMER'))
*die("Hacking attempt!");

$skinname * * = 'affinity';
$numdesigns * = 2;
$previewimage = 'affinity/images/a_preview.jpg';

$authorname * = 'Maximilian Bartel (indiqo.media)';
$authorlink * = 220;

$designpath[] = 'affinity/affinity1.php';
$maxplugins[] = 15;
$imagepath[] *= 'affinity/images/a_design.jpg';

$designpath[] = 'affinity/affinity2.php';
$maxplugins[] = 15;
$imagepath[] *= 'affinity/images/a_design.jpg';

?>

But when I uninstall the skin and install it again "Design2" is highlight in the category settings by default. But, annoyingly, affinity1.php (original affinity design) is only ever applied to the category, no matter if I select "design1" or "design2" from the drop down list
If I delete afiinity1.php and rename affinity2.php to affitinity1.php then my modified design shows.

Can anyone shed any light on why this might happen?

jennec
08-03-2005, 12:20 PM
Ok. It works now. But the strange this is that it was the the followig line of code that cause the problem:

$imagepath[] *= 'affinity/images/a_design.jpg';

I amended it to on my second design to be:

$imagepath[] *= 'affinity/images/a_design2.jpg';


And added a file with this name to the image directory and now it works fine.

Strange that this line should affect it in this way.

abcohen
08-03-2005, 03:27 PM
here is a 3 design layout install.php code from kubrick ported by Stelly

$designpath[] = 'kubrick/kubrick1.php';
$maxplugins[] = 9;
$imagepath[] *= 'kubrick/images/design1.gif';

$designpath[] = 'kubrick/kubrick2.php';
$maxplugins[] = 3;
$imagepath[] *= 'kubrick/images/design2.gif';

$designpath[] = 'kubrick/kubrick3.php';
$maxplugins[] = 9;
$imagepath[] *= 'kubrick/images/design3.gif';

fergiej
08-03-2005, 07:24 PM
Hey, jennec, is there somewhere I can go see your second design of affinity? I really like this skin and would like to see options of the design.

Thanks

jennec
08-04-2005, 11:39 AM
You can see it on www.tecnocom.co.uk.
You will also see I have implemented drop down menus aswell. but I they only really work properly for my second design. The original design seems to have issues with sub categories taking up the same physical space on the page. You'll see what I mean if you select the test cetegory and then hover of over it.