Embedding Gallery in WordPress Theme

Home Forums (E)2 Gallery Pro (E)2 Gallery Pro Questions Embedding Gallery in WordPress Theme

Tagged: ,

This topic contains 9 replies, has 2 voices, and was last updated by  E2 3 years, 8 months ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #557

    Anonymous

    Hi everyone,

    First of all – this gallery is incredible. I just love it; it’s exactly what I’d been searching for.

    I finally got the gallery working: http://www.wujiservices.com/e2gallerypro/

    Now I want to embed the gallery into this page: http://www.wujiservices.com/blog/?page_id=34

    What do I have to do to make that happen?

    Please keep in mind that I’m almost retarded and took more than two weeks to get the gallery working in the first place.

    Thank you for any help you can provide!!

    #558

    E2
    Member

    Open up the template page you’d like to use then open up the index.php file in the e2gallerypro folder and find the following line:

    Copy everything in between:
    <!–(E)2 Gallery Pro HTML–>

    and

    <!–End (E)2 Gallery Pro HTML–>

    and paste it into your template page were you’d like it to display.

    Now copy everything in between:

    <!–(E)2 Gallery Pro <head> Files–>

    and

    <!–End (E)2 Gallery Pro </head> Files–>

    Create a new file and paste that into it and save it to your template directory and save as e2galleryproheader.php

    Now open your header.php template file find:

    <?php wp_head(); ?>

    After that line put the following code:

    <?php if(get_post_meta($post->ID, ‘e2gallerypropage’, $single=true)==”true”){ include (TEMPLATEPATH . ‘/e2galleryproheader.php’); } ?>

    Now you’ll need to update the file include paths. Open the e2galleryproheader.php file.

    Find the following lines of code and add this:

    <script type=”text/javascript” src=”js/mootools-1.2-core.js”></script>

    change to:

    <script type=”text/javascript” src=”<?php bloginfo(‘url’); ?>/e2gallerypro/js/mootools-1.2-core.js”></script>

    find

    <script type=”text/javascript” src=”js/mootools-1.2-more.js”></script>

    change to:

    <script type=”text/javascript” src=”<?php bloginfo(‘url’); ?>/e2gallerypro/js/mootools-1.2-more.js”></script>

    find

    <script type=”text/javascript” src=”js/setupvars.js”></script>

    change to

    <script type=”text/javascript” src=”<?php bloginfo(‘url’); ?>/e2gallerypro/js/setupvars.js”></script>

    find

    <script type=”text/javascript” src=”js/e2gallerypro.js”></script>

    change to

    <script type=”text/javascript” src=”<?php bloginfo(‘url’); ?>/e2gallerypro/js/e2gallerypro.js”></script>

    find

    <?php require(‘e2config.php’);?>

    change it to

    <?php require($_SERVER['DOCUMENT_ROOT'].’e2gallerypro/e2config.php’);?>

    find

    <?php require(‘php/parsexml.php’);?>

    change it to

    <?php require($_SERVER['DOCUMENT_ROOT'].’e2gallerypro/php/parsexml.php’);?>

    Save the file and upload.

    Now upload the “e2gallerypro” folder to your root.

    Anytime you want to show the gallery on a page, you’ll create a page and then you’ll need to set the template to use the template that has the e2gallerypro template in it and then set a custom field “e2gallerypropage” to equal “true”

    I hope this helps.

    #559

    Anonymous

    Okay,

    I think I did everything described. However, this is what I get: http://www.wujimedia.com/photography/portfolio.

    Any thoughts?

    Thank you very much.

    #560

    E2
    Member

    That error is telling you that it can’t find the e2config.php file, you’ll need to update the path for the include e2galleryproheader.php on line 2. Change it so it reads:

    <?php require(‘/home2/wujiserv/public_html/blog/wp-content/plugins/e2gallerypro/e2config.php’);?>

    And see if that works.

    #561

    Anonymous

    I’m not sure I understand what you mean.

    Which file needs to be updated? e2config.php or e2galleryproheader.php?

    Also, when I look at the code piece you have there I see that the directory is different that that on my server. My e2gallerypro folder is in the root file, not in the plugin directory. Does that make a difference?

    I changed the line of code on the second line of the e2galleryproheader.php and I get this: http://www.wujimedia.com/photography/portfolio.

    Is there something that supposed to be installed in the WordPress folders besides the e2galleryproheader.php?

    Thanks again,
    Craig

    #562

    E2
    Member

    If you were following the instruction above then It would make a difference, but if your customizing it then as long as you have your paths set correctly so the includes look in the right place, you shouldn’t get any of these errors you’re seeing.

    There error is telling you that it can not find the e2config.php file at the specified location, the file that is calling for that include is the e2galleryproheader.php located in your theme template. So if you have the e2config.php file on your root, then you’ll need to change the reference for including it in the e2galleryproheader.php file.

    #563

    Anonymous

    So I changed line 2 on the e2galleryproheader.php file and I get the same error.

    Do you do installation onto other people’s servers? This is really causing me a headache. The gallery is great, I just can’t seem to get it embedded.

    #564

    E2
    Member

    Yes I can.

    #565

    Anonymous

    Really? That’s great!

    How much do you charge for it? What information do you need from me?

    #566

    E2
    Member

    Use the contact form on my contact page and we can go over the details.

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.