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?
<?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?