I have a content type which I has a main picture and some intro text and a title. I would like to 'slideshow' this full screen, with the text of each one over the top of the image, and the title at the top of the page. With thumbnails of all down the side, clickable.
I've seen this post which describes doing it with Views Slideshow, as demo'd here. I shall give it a go presently.
it involves adding a folder into the server. Look at the error when you try and enable the module.
After the install all appeared very nice and worked almost swimmingly.
A catalogue of 'stuff' which somehow will help me through life by helping me remember problems I've solved, how I solved them and thoughts which will be otherwise forgotten (some of which might be of use later on).
Wednesday, 28 January 2015
Drupal restore from backup
well, I've been drupal'ed. Time to restore. thought I'd export content type and content. Here's how:
http://drupal.stackexchange.com/questions/39417/export-content-types-using-features
http://drupal.stackexchange.com/questions/20498/export-content-in-features-using-uuid-features
couldn't do the second of these tutorials as it was written in 2012 and I think things have changed.
Here's what I did to restore:
http://drupal.stackexchange.com/questions/39417/export-content-types-using-features
http://drupal.stackexchange.com/questions/20498/export-content-in-features-using-uuid-features
couldn't do the second of these tutorials as it was written in 2012 and I think things have changed.
Here's what I did to restore:
- Downloaded the database (for backup)
- downloaded all files (for backup)
- downloaded the new drupal
- uploaded all new drupal files (replacing old files)
- done
It was a while ago I did this so I'm not entirely sure but try this first next time.
Navigating to a viagra link came up with 'no such page'.
Sorted
adding javascript to a template
Whilst making templates in Joomla I am always wanting to add a little javascript here and there but always hitting a brick wall. What usually seems to happen is that the script, or another on the page doesn't seem to run.
Looking into it it looks like it is to do with how it is loaded. It looks like you cannot have mutliple scripts using the on page load command. It only runs once and probably on the first occurance, maybe the last?
Looking at Joomla specifically, I found the official article on how to add inline and external javascripts. I'm going to try this out before investingating anything else.
Looking into it it looks like it is to do with how it is loaded. It looks like you cannot have mutliple scripts using the on page load command. It only runs once and probably on the first occurance, maybe the last?
Looking at Joomla specifically, I found the official article on how to add inline and external javascripts. I'm going to try this out before investingating anything else.
Sunday, 11 January 2015
Jquery slideshow with php
So I'm going to make a jquery slideshow into a joomla website. Should be interesting.
Here's a good start
Here's a good start
Monday, 8 December 2014
Windows 8 hiberfil.sys large file size removal
I only have a 60GB SSD hard drive running windows 8. I am trying to save disk space and noticed this large file:
hiberfil.sys
I guessed it was to do with hibernating, and is roughly 75% the size of my RAM, which is 8GB, So it is taking up 10% of my hard drive. I found this very helpful article describing this file and it's function which is well worth the short read.
Basically, it has the added benifit of helping Windows boot faster. But I will forfiet that advantage as I only switch my PC on once a day.
Here's how to disable it:
powercfg /h off
hiberfil.sys
I guessed it was to do with hibernating, and is roughly 75% the size of my RAM, which is 8GB, So it is taking up 10% of my hard drive. I found this very helpful article describing this file and it's function which is well worth the short read.
Basically, it has the added benifit of helping Windows boot faster. But I will forfiet that advantage as I only switch my PC on once a day.
Here's how to disable it:
powercfg /h off
Monday, 1 December 2014
OS X installing Profiles .mobileconfig files through ARD command line
I've not quite got OS X server running pushing changes to macs yet, so in the mean time I have to change a profile through the web service, download it and install it on the machines I want to update.
I found this article which helped doing it through command line:
I found this article which helped doing it through command line:
/usr/bin/profiles -I -F "/Library/MyOrganization/Company Wi-Fi.mobileconfig"
I first copied the file to "Users/Shared" then ran this script. To improve it, I could make a pkg file which ran a script to install the file. That is the next step
Labels:
Apple,
Apple Remote Desktop,
ARD,
Command Line,
Library,
mac,
mobileconfig,
OS X,
pkg,
profile manager,
profiles,
Server
Thursday, 27 November 2014
Adding Google street view to Joomla Estate Agencie JEA
So, even though I have only edited the code in minor ways, it actually took me a long time to do it, but here is the final result! Posted here on JEA forums
Hi, I've had a go at this myself, and finally came up with a solution.
The first thing I did was to go into my template and create an override for JEA Property.
I then edited the "default_googlemap.php" file. From line 44 to the bottom, replace the script with this script:
$script = <<
function initMap(mapOptions, panoOptions, MarkerLatlng) {
map = new google.maps.Map(document.id('jea_property_map'), mapOptions);
var marker = new google.maps.Marker({
position: MarkerLatlng,
map: map,
title: '{$this->row->ref}'
});
var panorama = new google.maps.StreetViewPanorama(document.getElementById('jea_property_map_pano'), panoOptions);
map.setStreetView(panorama);
}
window.addEvent("domready", function(){
var longitude = {$longitude};
var latitude = {$latitude};
if (longitude && latitude) {
var myLatlng = new google.maps.LatLng(latitude, longitude);
var options = {
zoom : 15,
center : myLatlng,
mapTypeId : google.maps.MapTypeId.ROADMAP
};
var panoramaOptions = {
position: myLatlng,
};
initMap(options, panoramaOptions, myLatlng);
} else {
var geocoder = new google.maps.Geocoder();
var opts = {'address':'$address', 'language':'$lang', 'region':'$region'};
geocoder.geocode(opts, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
var myLatlng = results[0].geometry.location;
var options = {
center : myLatlng,
mapTypeId : google.maps.MapTypeId.ROADMAP
};
var panoramaOptions = {
position: myLatlng,
};
initMap(options, panoramaOptions, myLatlng);
map.fitBounds(results[0].geometry.viewport);
}
});
}
});
EOD;
$this->document->addScriptDeclaration($script);
?>
I've only modified the original code to add panoramaOptions variable, and pass it to the initMap function. I then added the panorama variable.
At the bottom I also added a div tag called "jea_property_map_pano", but you have to give it a height property otherwise you won't be able to see it. The street view loads up in this div tag.
Labels:
API,
google,
html,
javascript,
JEA,
joomla,
Joomla Estate Agent,
maps,
php,
programming,
script,
street view,
streetview
Subscribe to:
Posts (Atom)