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.

#1 2014-09-25 03:40:42

tom1983
Member
Registered: 2014-09-25
Posts: 16

Publisher Galleries Directory

Hi,

I'm a new user to CE4 and am having some trouble with setting up Publisher correctly.

My site is at monsterbooths.com and the ttg-be directory is set within my server to be the top level directory for my domain, therefore all ttg elements are at monsterbooths.com/index.php, monsterbooths.com/galleries.php etc

When I try setting the galleries directory in LR as on the screenshot it errors.

I can get LR to accept and publish albums using "ttg-be/galleries" as the directory but this creates broken links on the published album, i.e. the album creates links such as monsterbooths.com/ttg-be/galleries.php

I hope I have explained this correctly and would be grateful if anyone can anyone advise how this can be rectified.

Many Thanks

Tom

screenshot.png

Offline

#2 2014-09-25 06:38:18

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Publisher Galleries Directory

Hi Tom, you've placed publisher at the top of your web site.  The steps to install CE4 Publisher on the server:

1. Copy over ttg-be from the TTG Be zip file to the top of your site, so that you have files at http://monsterbooth.com/ttg-be/
2. Copy over publisher from the CE4 Publisher zip file into ttg-be, so that you have files at http://monsterbooth.com/ttg-be/publisher/
3. Set your Publisher API URL to http://monsterbooth.com/ttg-be/publisher/

If you follow those, you should be able to use Publisher.

Out of interest, are the files you've uploaded to http://monsterbooths.com/publisher/ the CE4 Publisher files?  If so, where have you uploaded the ttg-be files to?  Publisher can't work without ttg-be, so I'm not sure how you're even able to authenticate.

Offline

#3 2014-09-25 20:51:32

tom1983
Member
Registered: 2014-09-25
Posts: 16

Re: Publisher Galleries Directory

Hi Ben,

Thanks for your reply.

I have uploaded the ttg-be directory within the root of my server (httpdocs), and uploaded the publisher directory within ttg-be but to avoid the need to have /ttg-be in the site address I have set the root directory of the domain name within my server settings to the ttg-be directory. Therefore, ttg-be is effectively the root directory the domain points to and my URLs are e.g. monsterbooths.com/galleries.php etc

I expect it would work if I set up as you instructed but I want to avoid having ttg-be as part of the site address as I have seen with other TTG powered sites.

Do you know how this can be achieved.

Thanks again for any suggestions

Tom

Offline

#4 2014-09-25 21:04:26

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Publisher Galleries Directory

Therefore, ttg-be is effectively the root directory

ttg-be/ should not be your site's root directory; the rest of your site does not go into ttg-be so it won't be part of your web address. Your folder structure should look like this:

httpdocs/     (root)
              ttg-be/
                        publisher/
              index.php
              galleries/
              lib/
              galleries.php                 (assuming you're using Pages as well)
              info.php
              about.php etc                (also assuming you're using Pages)
              etc.

the ttg-be/ folder goes in the root folder of your site, but it sits alongside the other files and folders that belong in the root.

see: http://ce4.theturninggate.net/docs/doku.php?id=ce4_101


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#5 2014-09-25 22:17:25

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Publisher Galleries Directory

That would explain the breakage.  Publisher and TTG BE use a variety of methods for working out paths, both on-disk and via the received URL.  I can't say what assumption of paths is breaking, but would guess that TTG-BE is having trouble finding galleries, because it effectively resides within your ttg-be directory rather than above it.

You could try crafting an .htaccess file in the root of your site to map anything referencing publisher/ to ttg-be/publisher/.

Last edited by Ben (2014-09-25 22:18:14)

Offline

#6 2014-09-25 22:34:00

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Publisher Galleries Directory

This following contents in http://yoursite.com/.htaccess works for me.  Setting up ttg-be and ttg-be/publisher/ as documented then accessing via http://yoursite.com/publisher/
Note though that at least the admin page redirects to ttg-be/admin/ when you're logged out.  You can always just use it at http://yoursite.com/ttg-be/admin/
You'll likely find other issues.  See how you go.

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^publisher/(.*)$ ttg-be/publisher/$1 [L]
    RewriteRule ^cart/(.*)$ ttg-be/cart/$1 [L]
    RewriteRule ^admin/(.*)$ ttg-be/admin/$1 [L]
    RewriteRule ^templates/(.*)$ ttg-be/templates/$1 [L]
</IfModule>

Last edited by Ben (2014-09-25 22:34:31)

Offline

#7 2014-09-26 07:18:48

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Publisher Galleries Directory

Another point - if you're only using the publisher, then customers should not see ttg-be in the URL anyway.
Customers using the cart will see it, but not those browsing publisher galleries.

Offline

#8 2014-10-02 02:39:22

tom1983
Member
Registered: 2014-09-25
Posts: 16

Re: Publisher Galleries Directory

Thanks for your help Ben & Rod, much appreciated.

I have set the root directory of my site to one level above ttg-be and added a .htaccess to redirect all traffic to the ttg directory. Problem solved!

Cheers
Tom

Offline

Board footer

Powered by FluxBB