adijeff
Forum Replies Created
-
Thanks adamrob. It must be extremely hard developing for such a wide range of devices, browsers, and themes. I am very grateful for your efforts with this plugin, and very interested in getting a usable solution with 2 moving planes.
I have added a little jquery to move the background position on devices over 600px wide thus:
$(document).scroll(function(){
if ($(window).width() > 600) {
yPos = -($( window ).scrollTop() / 20 )+50;
if ( yPos < 0 ) yPos = 0;
$(‘section.adamrob_parallax’).css(‘background-position’, ‘50% ‘+ yPos + ‘%’)
};
});I am sure it would be better to use a fully css solution like this:
http://keithclark.co.uk/articles/pure-css-parallax-websites/ or this:
http://codepen.io/scottkellum/pen/bHEcA/ but I can’t get your markup to work using these techniques (mainly because the image is displayed as a css background-image).Keep up the good work.
Thanks for the quick reply Adam. I think you should consider being clearer about what the effect is (background image remains static while the rest of the page scrolls).
I’ve done a fresh wordpress install, installed parallel scroll 1.4, turned on define(‘WP_DEBUG’, true) in wp-config.php and the output variable error is still there.
Here is the page:
http://parallax.definingdesign.co.uk/?page_id=6Here is the error in the log file:
mod_fcgid: stderr: PHP Notice: Undefined variable: output in /var/www/vhosts/definingdesign.co.uk/parallax.definingdesign.co.uk/wp-content/plugins/adamrob-parallax-scroll/includes/adamrob-parralax-shortcode.php on line 197, referer: http://parallax.definingdesign.co.uk/wp-admin/edit.php?post_type=pageI have the same issue Adam.
The background image remains static while strolling. There is no jquery changing the position. I have switched to the 2013 theme, and disabled all plugins, and still the same.
Also, I get this error: wp-content/plugins/adamrob-parallax-scroll/includes/adamrob-parralax-shortcode.php:197 – Undefined variable: output” – might this be the problem?
See this page: http://kfc.definingdesign.co.uk/front-page-image/
Thanks for any help.
Hi all,
I thought I would reply to my own post in case anyone else needs help with this. This is the code I used to amend the XML using PHP. I am not a coder, so this is possibly not the most efficient way, but it works!
Essentially, I read the XML file, and go through each <campaign> node, find the imageurl tag and then go through each <event> node within that <campaign> and add the imageurl into that node. Then instead of calling the original XML file, I call the new PHP file:
<?php $doc = new DOMDocument('1.0', 'utf-8'); $doc->formatOutput = true; $doc->preserveWhiteSpace = false; $doc->load("xmlfile.xml"); echo "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>"; echo "<campaigns>"; $xpath = new DOMXpath($doc); $searchNode = $xpath->query('//campaign'); // find campaign nodes foreach( $searchNode as $searchNode ) { $valueID = $searchNode->getAttribute('id'); echo "<campaign id=\"" .$valueID. "\">"; // get the campaign id //campaignimage $xmlUrl = $searchNode->getElementsByTagName( "campaignimage" ); $valueImage = $xmlUrl->item(0)->nodeValue; // get the imageurl $searchEventNode = $xpath->query("campaign[@id='$valueID']//event"); // get all events within our selected campaign (using id) foreach( $searchEventNode as $searchEventNode ) { //get venuelocation $xmlVenueLocation = $searchEventNode->getElementsByTagName( "venuelocation" ); $valueVenueLocation = $xmlVenueLocation->item(0)->nodeValue; echo "<event>"; echo "<campaignimage>" .$valueImage. "</campaignimage>"; echo "<venuelocation>" .$valueVenueLocation. "</venuelocation>"; echo "</event>"; } echo "</campaign>"; } echo "</campaigns>"; ?>Forum: Plugins
In reply to: [HMS Testimonials] Using post thumbnail image for testimonial imageThe extra setting for image size works beautifully. Thanks very much Jeff.
Forum: Plugins
In reply to: [HMS Testimonials] Using post thumbnail image for testimonial imageGreat, thanks Jeff.
Forum: Plugins
In reply to: [HMS Testimonials] Using post thumbnail image for testimonial imageHi Jeff,
Have you made any progress on this issue?
I am displaying thumbnail images for each testimony, but the full size image is being downloaded – sometimes 3000px!
Great plugin by they way.
Forum: Plugins
In reply to: [Slideshow] ability to choose image sizeOK, thanks for your speedy reply. I look forward to the update, and in the mean time, will get the user to scale the slider images first.
Forum: Plugins
In reply to: [HMS Testimonials] Read more link behaviourI avoided kaisho’s squashed images, by setting the height to 0. This means the inline style only specifies width.
The downside is that on the admin side, height is specified as “0” so the thumbnail does not show. I worked around this by adding this code to functions.php:
add_action('admin_head', 'my_custom_fixes'); function my_custom_fixes() { echo '<style> .testimonial-image { height: auto !important; width: 150px; } </style>'; }Forum: Plugins
In reply to: [HMS Testimonials] Read more link behaviourWorks perfectly – thanks Jeff.
Forum: Plugins
In reply to: [HMS Testimonials] Read more link behaviourGreat – thanks Jeff. I look forward to 2.2.5.
Forum: Plugins
In reply to: [HMS Testimonials] Read more link behaviourHah, OK – I thought it was an undocumented feature!
I’ve re-read your post, and you’re suggesting the individual URL mysite.com/testimonials?testimonial_id=5 etc is the default behaviour, without having to manually add the link. This would be ideal.
Thanks again for such quick responses.
Forum: Plugins
In reply to: [HMS Testimonials] Read more link behaviourThat is an excellent stop-gap solution, but I cannot get it to work. The page still shows the full list of testimonials.
Forum: Plugins
In reply to: [HMS Testimonials] Read more link behaviourOK, thanks, anyway.
When clicking a “read more…” link, I would expect to go to the full article. Please consider this for a future update. Thanks.
Forum: Plugins
In reply to: [HMS Testimonials] Read more link behaviourThanks for the quick response. I understand what you say, but rather than a default page being say a page showing all testimonials, is there a way for the default link to be a full version of that single testimonial? Thanks.