open pics with same plugin

Support Area Forums Photobug open pics with same plugin

Viewing 7 posts - 1 through 7 (of 7 total)
URL to the page in question:
  • Author
    Posts
  • #6742
    Christian Reimann
    Participant

    Good morning Bill,

    i am making some progess.
    One more question i have:

    I want to open all pics with the plugin “prettyphoto”. What do i have to do to implement this for all pics.

    Thanks!
    greetings from germany

    chris

    #6750
    Bill Robbins
    Moderator

    Guten Tag,

    You can do that. We’ll first need to diable the built in lightbox which will take just a bit of theme editing. Here’s how:

    1. Go to the Appearance section and select edit to open up the theme editor.
    2. From the list of files on your right, choose functions.php and look for this spot (on line 34):
      
      wp_enqueue_script('lightbox');
      

      and delete it.

    3. Next scroll down to line (218) and delete this section:
      
      	function organizedthemes_load_lightbox_styles() {
      		if( !is_admin()){
      			wp_enqueue_style(''.of_get_option('lightbox_style').''); 
      		}
      	}
      	add_action('wp_enqueue_scripts', 'organizedthemes_load_lightbox_styles');
      
    4. Save your changes.

    That will remove the built in lightbox from the theme as well as it’s styles. You should now be able to install the pretty photo plugin you’d like to use. As long as it is set to use the class “lightbox” on links to determine which links to open in it, you shouldn’t need to edit anything else.

    If you have any questions, let me know,
    Bill

    #6753
    Christian Reimann
    Participant

    hi Bill,

    thanks for you rapid help!
    I did all you say…
    but as i expected, now the pics are only opened in the broswer without any plugin.

    What can i do now?????

    greetz
    chris

    #6754
    Bill Robbins
    Moderator

    You may have to change the link tags to use with your plugin. Which PrettyPhoto based plugin are you planning on using? There are multiple ways to work with the script so I want to make sure I direct you to the one that will work with the particular plugin you’re using. Just send over a link to the plugin page and I’ll give you the details.

    Bill

    #6756
    Christian Reimann
    Participant

    dear Bill,

    i am using this plugin:

    “prettyPhoto Media
    Display images and other media utilising the prettyPhoto jquery lightbox clone.
    Version 1.4”

    here is the link to the web reference:
    http://binaryhideout.com/prettyphoto-media-wordpress-plugin/

    i hope we can solve this, would make me really happy….

    greetings
    chris

    #6758
    Christian Reimann
    Participant

    hi dear Bill,

    did you already watch out for my problem with prettyPhoto?
    I hope you can solve the problem, is really a big wish i have.
    Next week is my 40th birthday and maybe you can give me the solution as a gift.

    I need it more or less urgent, because the website i kind of media i want to get a job for the Deutsche Presse Agentur (DPA).

    Hope you can help me….

    thanks
    chris

    #6759
    Bill Robbins
    Moderator

    Christian,

    I just took a quick look at the plugin. Thankfully it appears that they will let you choose how the plugin interacts with a theme. I haven’t tested it, but from their options page it appears you would set it this way:

    prettyPhoto selector — lightbox
    prettyPhoto hook — class

    That’s how the Lightbox that’s included with the theme is set to work.

    If want or need to edit the HTML of the various galleries that are part of the theme, you can do that in these files:

    gallery-full.php
    gallery-layout.php
    gallery-portfolio.php

    The spot you’ll want to edit in each looks like this:

    
    		echo '<a class="lightbox" rel="'.$parent_title.'" href="';
    

    or this:

    
    		echo '<a class="lightbox brick" rel="'.$parent_title.'" href="';
    

    You may also need to remove this section from the custom.js file:

    
    // Load Lightbox
    	$j(document).ready(function($j){
        	$j('.lightbox').lightbox();
        });
    

    since that jQuery plugin is no longer being used.

    You can change the class names and the rel names here if you need to. The rel tag is what is used in the theme to associate images that are in the same post. If you change that and use PrettyPhoto on an archive, the prev/next buttons will span the whole archive page and not just one post.

    If you have any questions let me know,
    Bill

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘open pics with same plugin’ is closed to new replies.