It has a full width image which shrinks with the window size and a centered text onto top of that image.
I then added Pulsepro so the image can be changed by the client. And fixed it in the window. I am probably doing too much and have made a mess of it to boot and it all needs cleaning up - but it works.
The client is now asking if that image can be a random image, (using the Random Image Action) but still have the possibility of modifying those images himself with Pulsepro. Anyone prepared to say it might be doable? (I am hopeful - see my other post today re Horizontal Scroll Photo Site which shows things can be done with Pulsepro- especialy if you have Tim Plumb in the tool box!)
I wouldn’t attempt to fix this with the Random Image Action, because that won’t allow the client to change the images. I’ll have to have a think about this. But maybe you might put the FlickrShow Action on the page, and set up a Flickr “set” for the images. Your client could edit that set in the Flickr interface and make any changes there. I believe there may be some random options in that script, not sure if they are exposed in the Action, but it would be worth a look.
Walter
On Nov 18, 2013, at 7:27 AM, Richard Lowther wrote:
It has a full width image which shrinks with the window size and a centered text onto top of that image.
I then added Pulsepro so the image can be changed by the client. And fixed it in the window. I am probably doing too much and have made a mess of it to boot and it all needs cleaning up - but it works.
The client is now asking if that image can be a random image, (using the Random Image Action) but still have the possibility of modifying those images himself with Pulsepro. Anyone prepared to say it might be doable? (I am hopeful - see my other post today re Horizontal Scroll Photo Site which shows things can be done with Pulsepro- especialy if you have Tim Plumb in the tool box!)
Thanksfor the response Walter. I am looking at the flikr solution, have created an account and a test set of photos. Have also a test page with the flikr show action attached to a html item. Not sure how to get my set into this item though ! I will keep digging, unless you or someone can point me in the right direction
The background image gets picked at random from a standard Pulse gallery which means the client can add, edit or remove images as they see fit.
The PHP code I added to the header.php file is;
/* Choose a random background image from the 'Backgrounds' gallery */
function random_pic($page_slug){
$dir = 'admin/data/img/gallery/Backgrounds';
$files = glob($dir . '/*.jpg');
$file = array_rand($files);
if ($page_slug == "home"){
echo("".'<style>'."\r");
echo("\t\t".'.bgpanel { background: url("'.$files[$file].'") no-repeat center center scroll; }'."\r");
echo("\t".'</style>'."\r");
}
}
This function is called later in the header.php file (in my CSS block) like this;
<?php echo random_pic($page_slug); ?>
If the code is called on the home page the function will generate a standard CSS style for the background image;
<style>
.bgpanel { background: url("admin/data/img/gallery/Backgrounds/bg3.jpg") no-repeat center center scroll; }
</style>
I’ve made the code only write the CSS style for the background image on the home page by passing a page_slug variable that I’m also using on the site. I use this variable to help me set the styles on the nav bar so the current page is styled differently to the rest.
I’m going to be out at a meeting this afternoon but I’ll zip up and send over a sample file for you this afternoon that shows how you can set this up in Pulse.
Regards,
Tim.
On 18 Nov 2013, at 12:27, Richard Lowther wrote:
The client is now asking if that image can be a random image, (using the Random Image Action) but still have the possibility of modifying those images himself with Pulsepro. Anyone prepared to say it might be doable? (I am hopeful - see my other post today re Horizontal Scroll Photo Site which shows things can be done with Pulsepro- especialy if you have Tim Plumb in the tool box!)
Visit the set in your browser, and copy the long number in the URL following /set/. (Get just that number, not any of the rest of the URL.) Set the Action to show a set, and paste in that number where indicated in the Action interface.
Walter
On Nov 18, 2013, at 9:38 AM, Richard Lowther wrote:
Thanksfor the response Walter. I am looking at the flikr solution, have created an account and a test set of photos. Have also a test page with the flikr show action attached to a html item. Not sure how to get my set into this item though ! I will keep digging, unless you or someone can point me in the right direction
OK got there. Thanks Walter. I was pasting in the whole URL.
So test page working - now off to see if I can make it work with full width image. I will be back no doubt with another question ! - But you know that don’t you
And Thank you Tim ! Brave of you to step up again. This does look a good solution too. I will dig into this and also look forward to the sample file. Be prepared for questions !