Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#51 Re: General » Another pre-sales question » 2015-01-29 00:43:34

In general, my understanding is that if you just want to make a few galleries, then you could get by with only CE4 galleries. However, if you want to update the images in your galleries easily without having to go through all the steps of exporting and then uploading via ftp then you will need the publisher. If I were trying to decide about the publisher then I'd heavily consider it because it makes things significantly easier and more streamlined especially if you have multiple galleries. I would also try talking to Terry White about exactly how he set his website up because it might take a bit of work getting the systems to work together well and look uniform. Hope this helps for now, and maybe Rod, Ben, or Matthew can give you some more advice seeing as they have been doing this for a while.
Graceson

#52 Re: PHPlugins (CE4) » Taking Pages Settings and auto-creating PHPplugin » 2015-01-19 05:26:18

If you are just trying to sync the settings and look of your plugins in Lightroom together then you should use the technique shown here: http://ce4.theturninggate.net/docs/doku … templates. This will take every thing you did inside Lr with pages and transfer it to CE4 Gallery. If you are trying to style your templates outside of Lr, then you should enable custom CSS and style your site that way. Here are the instructions for that: http://ce4.theturninggate.net/docs/doku … ustom_css. You can also use a combination of the two: sync your templates through the instructions in the first link, and then add some custom styles that aren't possible in Lr through the instructions in the second link.
Hope this helps,

Graceson

#53 Re: CE4 Gallery » Background issue in Gallery Slideshow » 2015-01-18 12:16:54

Hi,
I have this problem on my site as well in the highslide photo view. However, if I remove my background image from my custom.css file it fixes itself. Also, I have my background image attachment set to fixed, and this is the part that appears to be causing the problem. Hopefully this will help someone solve the problem. Also, is there another way to implement a fixed background image that might not cause this problem?
Thanks,
Graceson

#54 Re: CE4 Cart » Digital Downloads on Separate Servers » 2015-01-18 10:38:29

Hi Ben,
I just inserted the code, and it works! I tested it out in a couple different galleries and went through the entire process of ordering, approving, and downloading. I haven't noticed anything weird, and I got the right files when I downloaded them. Thank you for your help, and I really appreciate you including this into the next cart update to make it easier for me to use.

Graceson

#55 Re: CE4 Cart » Digital Downloads on Separate Servers » 2015-01-18 08:38:55

Hi Ben,
I didn't realize that it wasn't possible from your e-mail because it sounded like you weren't sure. I guess that I'll just stick to the offline digital purchase option for now then.
Thanks for your help,
Graceson

#56 CE4 Cart » Digital Downloads on Separate Servers » 2015-01-18 07:30:54

gaufde
Replies: 5

Hi,
Basically what I would like is to automatically serve digital downloads from a sub domain with a cart on the main domain. Here is my set up and background:
I have been setting up three different sites with the TTG blog and galleries bundle along with the cart. One site (gracesonaufderheide.com) is my blog and info about me as well as a portal to get to my other sites. One of the other sites is for my photography and one if for my jewelry work. Both of these other two sites are on sub domains (photography.gra..., and goldsmith.gra...). I have made these sites fairly interconnected, because I want it to feel like one site with different sections for the different things I do. Because of this, I have my shopping cart set up at gracesonaufderheide.com/ttg-be/cart, and all three sites point to this location for the cart. I have my photo galleries set up at photography.gracesonaufderheide.com/galleries/. These image galleries are managed by a publisher install at photography.gracesonaufderheide.com/ttg-be/publisher. I want to sell digital downloads from these galleries (I have publisher uploading photos-for-download for me), but it's not working across servers. I know that I am supposed to have the cart and the galleries on the same server, and I also know that I can use the offline digital download feature to upload each file individually if i have to, but I would like to be able to use the files publisher created automatically. I'm not entirely sure if this is possible (I know very little about websites as I only started when I began my sites a couple weeks ago), but it seems to me like I should be able to point the cart to the location of my galleries using phplugins, the cart config file, phpliteadmin, or something else to tell the program where to go for these files.
Thanks,
Graceson

#57 PHPlugins (CE4) » One PHPlugin File for Multiple Websites - Solution » 2015-01-11 14:07:38

gaufde
Replies: 2

Hi Everyone,
A few days ago I had asked a question about using one phplugins file for all three of my website. However, I soon realized that it wasn't necessary for what I wanted to do, so I took my post down. A little while later I received an email from Rod saying that he had an idea for how I could implement this. It seemed like a fun project, so I took him up on his offer. He gave me some code that he thought would work, but hadn't tested. I took that code and played with it for a while to get everything to work.

This code makes it so that you can control the phplugins for many sites with one phplugins.php file. In case anyone wants to do this, I have put the code that Rod and I came up with below. The first section of code is to implement wordpress menus for multiple sites, and the second is to use different custom css files for each site. If you use the custom css code, then you will need to create a new .css file in /public_html/phplugins/css/ for each of your sites. You will have to fill in some information for your sites into the code and update the path to the phplugins file in your sub sites. This code assumes that you have your phplugins folder in the root of your site and that site1 is the main site on your hosting service. Also, my example if for three sites, but you can add more if you need to.

Wordpress Code:

// GET FUNCTIONS FROM WORDPRESS SITE 1
if ($_SERVER[SERVER_NAME] == 'SITE1.COM') {
define('__ROOT__', 'SET/PATH/TO/WORDPRESS/FOR/SITE1'); // SET PATH TO WORDPRESS
require_once(__ROOT__.'/wp-includes/version.php'); global $wp_version;
require_once(__ROOT__.'/wp-load.php');

// SITE-WIDE NAVIGATION FROM WORDPRESS
function ttg_header_navigation( $style, $path ) {
    if (G_STYLE != 'CE4-WORDPRESS') {
        echo '
<div id="navigation-container" class="navigation-container clearfix">

    <div id="navigation" class="block-id navigation clearfix">
    <div class="mantle clearfix">
        <div class="core clearfix">
        <div id="navigation-background">

        <div id="r2d2-menu" class="clearfix">
        <ul id="pull">
            <li><span>&nbsp;</span></li>
            <li><span>&nbsp;</span></li>
            <li><span>&nbsp;</span></li>
            <li><span>&nbsp;</span></li>
            <li id="open-nav"><a href="#r2d2-menu"><i class="fa fa-reorder"></i></a></li>
            <li id="close-nav"><a href="#"><i class="fa fa-times"></i></a></li>
        </ul>
        ';

        wp_nav_menu(array( 'theme_location' => 'site-navigation', 'container' => false, 'menu_id' => 'nav', 'menu_class' => '', 'fallback_cb' => false, 'walker' => new My_Walker_Nav_Menu() ));

        echo '    
        </div><!-- #r2d2-menu -->

        </div><!-- #navigation-background -->
        </div>
    </div>
    </div> <!-- #navigation -->

</div> <!-- #navigation-container -->
        ';

        return false; // Replaces normal menu for non-WordPress pages
    }
    return true; // WordPress returns normal menu
} // END


// GET FUNCTIONS FROM WORDPRESS SITE 2
} else if ($_SERVER[SERVER_NAME] == 'SITE2.COM') {
define('__ROOT__', 'SET/PATH/TO/WORDPRESS/FOR/SITE2'); // SET PATH TO WORDPRESS
require_once(__ROOT__.'/wp-includes/version.php'); global $wp_version;
require_once(__ROOT__.'/wp-load.php');

// SITE-WIDE NAVIGATION FROM WORDPRESS
function ttg_header_navigation( $style, $path ) {
    if (G_STYLE != 'CE4-WORDPRESS') {
        echo '
<div id="navigation-container" class="navigation-container clearfix">

    <div id="navigation" class="block-id navigation clearfix">
    <div class="mantle clearfix">
        <div class="core clearfix">
        <div id="navigation-background">

        <div id="r2d2-menu" class="clearfix">
        <ul id="pull">
            <li><span>&nbsp;</span></li>
            <li><span>&nbsp;</span></li>
            <li><span>&nbsp;</span></li>
            <li><span>&nbsp;</span></li>
            <li id="open-nav"><a href="#r2d2-menu"><i class="fa fa-reorder"></i></a></li>
            <li id="close-nav"><a href="#"><i class="fa fa-times"></i></a></li>
        </ul>
        ';

        wp_nav_menu(array( 'theme_location' => 'site-navigation', 'container' => false, 'menu_id' => 'nav', 'menu_class' => '', 'fallback_cb' => false, 'walker' => new My_Walker_Nav_Menu() ));

        echo '    
        </div><!-- #r2d2-menu -->

        </div><!-- #navigation-background -->
        </div>
    </div>
    </div> <!-- #navigation -->

</div> <!-- #navigation-container -->
        ';

        return false; // Replaces normal menu for non-WordPress pages
    }
    return true; // WordPress returns normal menu
} // END


// GET FUNCTIONS FROM WORDPRESS SITE 3
} else {
define('__ROOT__', 'SET/PATH/TO/WORDPRESS/FOR/SITE3'); // SET PATH TO WORDPRESS
require_once(__ROOT__.'/wp-includes/version.php'); global $wp_version;
require_once(__ROOT__.'/wp-load.php');

// SITE-WIDE NAVIGATION FROM WORDPRESS
function ttg_header_navigation( $style, $path ) {
    if (G_STYLE != 'CE4-WORDPRESS') {
        echo '
<div id="navigation-container" class="navigation-container clearfix">

    <div id="navigation" class="block-id navigation clearfix">
    <div class="mantle clearfix">
        <div class="core clearfix">
        <div id="navigation-background">

        <div id="r2d2-menu" class="clearfix">
        <ul id="pull">
            <li><span>&nbsp;</span></li>
            <li><span>&nbsp;</span></li>
            <li><span>&nbsp;</span></li>
            <li><span>&nbsp;</span></li>
            <li id="open-nav"><a href="#r2d2-menu"><i class="fa fa-reorder"></i></a></li>
            <li id="close-nav"><a href="#"><i class="fa fa-times"></i></a></li>
        </ul>
        ';

        wp_nav_menu(array( 'theme_location' => 'site-navigation', 'container' => false, 'menu_id' => 'nav', 'menu_class' => '', 'fallback_cb' => false, 'walker' => new My_Walker_Nav_Menu() ));

        echo '    
        </div><!-- #r2d2-menu -->

        </div><!-- #navigation-background -->
        </div>
    </div>
    </div> <!-- #navigation -->

</div> <!-- #navigation-container -->
        ';

        return false; // Replaces normal menu for non-WordPress pages
    }
    return true; // WordPress returns normal menu
} // END
}

Conditionally apply custom css:

// CUSTOM STYLESHEET FOR ALL SITES
function ttg_head_end( $style, $path ) {
  if ($_SERVER[SERVER_NAME] == 'SITE1.COM') {
 echo '
 <link rel="stylesheet" href="/phplugins/css/custom.css" />
    ';
 } else if ($_SERVER[SERVER_NAME] == 'SITE2.COM') {
 echo '
 <link rel="stylesheet" href="http://SITE2/phplugins/css/SITE2.css" />
    ';
 } else {
 echo '
 <link rel="stylesheet" href="http://SITE3/phplugins/css/SITE3.css" />
';
 }
}

Hope this helps someone, and let us know if it works for you.
Graceson

#58 Re: CE4 Cart » How to control font and b/g color in CE4 cart terms popup? » 2015-01-08 14:47:29

It all depends on what php path you have set. However, the default php path inside the code of the phplugins.php file is /public_html/phplugins/phplugins.php. If you are using the blog and galleries bundle and you followed the instructions which tell you to set up the phplugins.php file inside /galleries/ then this won't work. You can either edit the code to put in the right path (I think, but I haven't tried it) or you can copy your /phplugins/ folder from /galleries/ to the root of your site. Then, you will need to change the phplugins path in lightroom for all of your plugins. That is what I did, and it has worked beautifully.
Graceson

#59 Re: CE4 Cart » How to control font and b/g color in CE4 cart terms popup? » 2015-01-07 08:39:08

Thanks Rod!
That was very helpful, I was able to find the items I wanted using your tutorial.
Graceson

#60 Re: CE4 Cart » How to control font and b/g color in CE4 cart terms popup? » 2015-01-07 06:57:10

Hi Rob,
I just tried your code, and it worked perfectly after I added "!important" to the code. However, I'd like to change the color of the label "Add an item to the cart", the "x" in the top right corner, as well as the "cancel" in the bottom left of the box. I'd also like to change the text color if possible. Can you tell me what code to use to change these objects?
Thanks,
Graceson

#61 Re: CE4 Theme for WordPress » Wordpress and Phplugins not working » 2014-12-31 15:25:05

Hi Everyone,
I just want to thank you all for your help. The problem seems to have worked itself out. In case someone else has this problem, here is what I did: I started by completely erasing my site. I even had my host re-set it for me so that everything was clean. Then, I installed Wordpress manually (last time I used my host's "one-click-install"). After that, I followed the documentation again to re-build the site. Now everything seems to be working!

Graceson

#62 Re: CE4 Theme for WordPress » Wordpress and Phplugins not working » 2014-12-31 14:17:01

My path to the php plugins is /home/photog83/public_html/galleries/phplugins. But my Wordpress installation is /home/photog83/public_html. I got the /galleries/Phplugins from the instructions for the blog and galleries bundle. I have completely erased my site, and am about half-way through re-building it in the hopes that it will sort itself out. I plan on finishing the re-build in about an hour or two.

#63 Re: CE4 Theme for WordPress » Wordpress and Phplugins not working » 2014-12-31 06:47:34

Here is my site: photogpa.info. I outlined my problem in the first post, and in my previous topic which is linked to. My understanding of the problem is that Wordpress isn't seeing my Phplugins.
Graceson

#64 Re: CE4 Publisher » Help Getting Everything to Play Together » 2014-12-31 03:26:49

In case anyone else ever has this problem, I have started a new topic here: http://community.theturninggate.net/top … t-working/ as suggested by Ben.

#65 CE4 Theme for WordPress » Wordpress and Phplugins not working » 2014-12-31 03:20:39

gaufde
Replies: 6

Hi,
I am building a site with the CE4 blog and galleries bundle and I've run into a problem. Whenever I try to visit a gallery I only see a completely blank white page. I asked about this here: http://community.theturninggate.net/post/25617/#p25617, and Ben was able to figue out the problem area, but he suggested that I ask here to get help from people who know Wordpress better. Here is exactly what Ben told me: "I've found the general source of the problem - Wordpress is failing to load and run in your phplugins....I've disabled the lines that were causing errors, commented with my name so you can see what I've changed. The original phplugins.php is there as a copy." Now my site shows the galleries pages without problem, but the menus are broken. Any help is greatly appreciated.
Thanks,
Graceson

#66 Re: CE4 Publisher » Help Getting Everything to Play Together » 2014-12-30 14:28:09

I sent you the access information.
Graceson

#67 Re: CE4 Publisher » Help Getting Everything to Play Together » 2014-12-30 11:29:09

I tried removing the breadcrumbs but it didn't make any difference. I also tried making a new album, but I got this error that i've pasted below. I then made another new album and that one worked just fine. In case it matters, my site is hosted my inmotion hosting.
Graceson

An internal error has occurred: JSON.lua:458: JSON.lua:197: can't parse JSON at char 1 of: file_put_contents(./../../galleries/test/gallery.xml): failed to open stream: No such file or directory|#0 [internal function]: ErrorHandler::handleError(2, 'file_put_conten...', '/home/photog83/...', 143, Array)
#1 /home/photog83/public_html/ttg-be/publisher/application/helpers/PublisherHelper.php(143): file_put_contents('./../../galleri...', '<?xml version="...')
#2 /home/photog83/public_html/ttg-be/publisher/application/controllers/ApiController.php(556): PublisherHelper->updateAlbum('9912', Array, Array)
#3 /home/photog83/public_html/ttg-be/publisher/application/controllers/ApiController.php(503): ApiController->updateAlbum('9912')
#4 [internal function]: ApiController->createAlbum()
#5 /home/photog83/public_html/ttg-be/framework/controllers/Controller.php(41): call_user_func_array(Array, Array)
#6 /home/photog83/public_html/ttg-be/framework/Framework.php(124): Controller->dispatch(Array)
#7 /home/photog83/public_html/ttg-be/publisher/index.php(23): Framework->route()
#8 {main}|URL: /ttg-be/publisher/index.php

#68 Re: CE4 Publisher » Help Getting Everything to Play Together » 2014-12-30 02:54:37

I went ahead and changed the name so that there are no spaces, but it still didn't work. I also tried re-exporting and the re-uploading a template the try to get it working. Also, if it is any help, I get the same completely white page when I try to go to the search page. I'm not sure if it connected or not, but I though that it might help.
Graceson

#69 Re: CE4 Publisher » Help Getting Everything to Play Together » 2014-12-30 02:33:49

Thanks, I will try that right now. One other thing, though, is that I am confused on what I should put into the Album info section of my gallery template. Should it be gallery specific which would require a different template for every gallery? or should it be generic like "galleries". Also, should these areas be the same in both the gallery and auto index?
Thanks,

Graceson

#70 CE4 Publisher » Help Getting Everything to Play Together » 2014-12-30 01:32:35

gaufde
Replies: 9

Hi,
I am in the process of building my website with the CE4 blog and galleries bundle plus the cart. I followed the documentation to set everything up, and for the most part everything has gone well. However, I can't seem to figure out why I can't view galleries I publish. Whenever I click on them I get a completely blank screen. I am publishing the galleries to /galleries/ on my website which is a folder I uploaded by auto index. I'm not sure what went wrong because I am new to this. Any help is greatly appreciated.
Thanks,
Graceson
http://photogpa.info

Board footer

Powered by FluxBB