close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Adjust Px height & width (Slideshow Wide)

Thread began 6/01/2011 6:45 pm by PimpMyHoodie | Last modified 6/02/2011 10:46 am by Jason Byrnes | 1296 views | 1 replies |

PimpMyHoodie

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!. :-)

Sign in to reply to this post

Jason ByrnesWebAssist

after editing the MyGallery/Admin_Gallery/Common/Properties.php file to set the new image size, you need to toggle the watermark in the gallery admin to have the new images created.

go to the admin, on the water mark section, set a water mark to recreate all the images, you can remove the watermark afterwards.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...