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.
You are not logged in.
Pages: 1
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
Offline
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
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
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.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
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
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
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
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
Pages: 1