Adjust Px height & width (Slideshow Wide)
Hi,
I know that there are threads covering this but I just can't seem to get it to work!.. :-(
Can someone please help!?..
Basically I want to change the display size of the "Slideshow Wide" Gallery to:
Width 749px X Height 200px
I've looked at other threads....
(HERE: showthread.php?t=8844
and have (I thought!) followed the instructions, but alas to no avail!.. :-(
This is what I keep ending u with:
index.php?gallery=3&theme=light
& this is what I've done:
File 1:
MyGallery/Admin_Gallery/Common/Properties.php
<?php
$GLOBALS['image_extensions'] = array('png', 'jpg', 'jpeg', 'gif'); //use lowercase
$GLOBALS['resize_proportional'] = array(
array('w' => 1024, 'h' => 768, 'watermark' => true),
array('w' => 782, 'h' => 481, 'watermark' => true),
array('w' => 163, 'h' => 92) ,
array('w' => 749, 'h' => 200, 'watermark' => true),
);
$GLOBALS['resize_cropped'] = array(
array('w' => 62, 'h' => 62),
array('w' => 132, 'h' => 140),
array('w' => 102, 'h' => 102),
array('w' => 42, 'h' => 42),
array('w' => 782, 'h' => 481, 'watermark' => true),
array('w' => 999, 'h' => 260, 'watermark' => true),
array('w' => 749, 'h' => 200)
);
$GLOBALS['jpg_quality'] = 90; //0-100, 100 being the best
$GLOBALS['png_quality'] = 1; //0-9, 0 being the best
$GLOBALS['permissions'] = array(
'dir' => 0777,
'file' => 0666
);
?>
File 2:
MyGallery/Galleries/slideshow_wide/index.php
<?php
//gallery id, theme
if(empty($pg_id)) $pg_id = htmlentities($_GET['gallery']);
if(empty($pg_theme)) $pg_theme = 'dark';
if(isset($_GET['theme'])) $pg_theme = htmlentities(strtolower($_GET['theme']));
//set config
$abs_file = str_replace('\\', '/', dirname(realpath(__FILE__)));
$abs_prefix = substr($abs_file, 0, strrpos($abs_file, '/') + 1);
$included = strtolower(realpath(__FILE__)) != strtolower(realpath($_SERVER['SCRIPT_FILENAME']));
include($abs_prefix . 'global.php');
//process gallery
$gallery = get_gallery(get_mediarss_url('gallery=' . $pg_id . '&thumb=62c&full=749c'));
?>
<?php if(!$included) { ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $gallery['title']; ?></title>
<style type="text/css" media="all">
#pgOuterWrapper { width: 782px; margin: 20px auto; }
</style>
<?php } ?>
<link rel="stylesheet" type="text/css" href="<?php echo $pg_config['html_prefix']; ?>css/common.css" media="all" />
<link rel="stylesheet" type="text/css" href="<?php echo $pg_config['html_prefix']; ?>css/<?php echo $pg_theme; ?>.css" media="all" />
<?php if(empty($js_mootools)) { ?>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo $pg_config['path']; ?>js/mootools-core.js"></script>
<script type="text/javascript" src="<?php echo $pg_config['path']; ?>js/mootools-more.js"></script>
<?php $js_mootools = true; } ?>
<script type="text/javascript" src="<?php echo $pg_config['html_prefix']; ?>js/slideshow.js"></script>
<script type="text/javascript" src="<?php echo $pg_config['html_prefix']; ?>js/gallery.js"></script>
<?php if(!$included) { ?>
</head>
<body class="pg">
<div id="pgOuterWrapper">
<?php } ?>
<div class="pg-sw">
<!-- fullsize -->
<div class="pg-sw-images">
<?php
for($i = 0; $i < sizeof($gallery['images']); $i++) {
echo '<img src="' . $gallery['images'][$i]['fullsize']['url'] . '" alt="' . (strlen($gallery['images'][$i]['title']) > 0 ? '<span>' . $gallery['images'][$i]['title'] . ':</span> ' : '') . $gallery['images'][$i]['description'] . '" width="' . $gallery['images'][$i]['fullsize']['width'] . '" height="' . $gallery['images'][$i]['fullsize']['height'] . '" />';
}
?>
</div>
<!-- thumbnails -->
<div class="pg-sw-thumbnails">
<?php
for($i = 0; $i < sizeof($gallery['images']); $i++) {
echo '<img src="' . $gallery['images'][$i]['thumb']['url'] . '" alt="' . $gallery['images'][$i]['title'] . '" width="' . $gallery['images'][$i]['thumb']['width'] . '" height="' . $gallery['images'][$i]['thumb']['height'] . '" />';
}
?>
</div>
</div>
<?php if(!$included) { ?>
</div>
</body>
</html>
<?php } ?>
Can someone please tell me what I need to do to fix this (Or just make it work!)???....
Many thanks in advance!. :-)