Help display image in single post using javascript zoom image..?
The site you linked to uses paid script Magic Zoom Plus, it has WordPress plugin available.
The site you linked to uses paid script Magic Zoom Plus, it has WordPress plugin available.
<script type=”text/javascript”> function removeLink() { theAs = document.getElementById(‘lg_image’).childNodes; // get all children of div#lg_image for( i = 0; i < theAs.length; i++ ) { // loop through the children if( theAs[i].nodeType != 3 ) { // if the child is not a whitespace, theImg = theAs[i].innerHTML; // it is the a which contains the img, … Read more
Removing the null paramaters fixed the problem: $attachments = get_children(array( ‘post_type’ => ‘attachment’, ‘post_mime_type’ => ‘image’, ));
The issue seems to have been resolved in the latest Release Candidate of IE9.
The hook for registering the script in the footer is: <?php function my_init_method() { wp_register_script( ‘myscript’, ‘http://www.mydomain.com/js/myscript.js’,”,”,’true’); wp_enqueue_script( ‘jquery’ ); } add_action(‘init’, ‘my_init_method’); ?> be sure to look at this and this, both are important.
That script looks very old and obtrusive and it doesn’t output a marquee, but a slideshow. There already are hundreads of themes with a slideshow built in, as well as many newer jQuery plugins which you can switch to. If you’re still convinced this particular script is worth the time to fix, install Firebug to … Read more
Not tested, but I imagine add_filter(‘the_content’, ‘wp_kses_post’); will scrub it good. Might need playing with priority.
From comments: You have to use the image_send_to_editor filter to filter the string before it arrives at the window.send_to_editor javascript function. add_filter(‘image_send_to_editor’, ‘my_image_send_to_editor’, 10, 2); function my_image_send_to_editor($html, $id) { $description = str_replace(“\r\n”,’ ‘, $description); }
You pasted this in the regular post editor, where you also type your post content? This will not work, the editor filters out invalid HTML, like Javascript. I recommend you install one of the numerous slider gallery plugins and add your images via the existing gallery functionality.
The URLs are constructed in the wp-dragtoshare-extended.js Javascript file. For most services you can see how the customUrl is constructed and change it right there. For Twitter you should look a bit lower, in the isGD function, because it does an Ajax request to shorten the link – but maybe this is not needed anymore … Read more