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 CE4 Publisher » Meta Properties for :image always defaults to 'photos/' folder » 2019-06-28 02:01:24

evan
Replies: 1

I am not sure if this is a Publisher issue or not but I dont know where else to ask.

FB and Twitter cannot pull the image for the OGP.  no matter what I do in the templates the default folder is 'photos/' in the meta tags for image.  I only become noticeable when I select Custom Thumbnail in Publisher.  My custom thumbnail folder is 'custom_thumbnails/' so as a workaround I replace the 'photos/' with 'custom_thumbnails/' in the template_index.php, mobile.php, and single.php.  It then works just fine, but I always forget to go back and edit those lines in the template whenever I have to update/change anything in the lr web module.  So am I missing where I need to change anything to have it default to the correct folder when using custom thumbnails.  I realize that a fix is not likely so does this work correctly in Backlight before I upgrade.

#2 Re: CE4 Publisher » Recover Album/Album Set passwords » 2016-02-16 01:48:17

rod barbee wrote:

Just to be clear, this is the link you're clicking on?

phpsqllite.jpg

if so, then I suggest shooting Ben an email

yup, thats it.  I'll post a message to ben.

#3 Re: CE4 Publisher » Recover Album/Album Set passwords » 2016-02-16 01:40:22

rod barbee wrote:

are you accessing this from ttg-be > phpLiteAdmin?

yes.  I followed the directions provided.  Logged into ttg-be then to phpliteadmin.  I see exactly what is shown in the first image. but when i select the database to change to it the page loads my website home page.

#4 Re: CE4 Publisher » Recover Album/Album Set passwords » 2016-02-16 00:59:50

rod barbee wrote:

you could try looking at the Publisher database.

Here's how to access it: http://ttg-tips-and-tricks.barbeephoto. … -database/

Look in the publisher/master.sq3 database and click on album to get to the album table. Scroll to the right and I believe there are fields that show if password is enabled and what the username and password are.

ok giving this a try.  but when I select the database "publisher/master.sq3" the browser loads my website instead.  Any ideas?

#5 CE4 Showcase » studiothomasphoto.com is alive! » 2016-02-15 10:32:11

evan
Replies: 3

My new CE4 website studiothomasphoto.com is now active.  I'm very excited with how it turned out.  Please take a look.

As with everyone else here I am amazed at what these scripts can do.  They are so incredibly flexible and can achieve almost any design vision one might have.  I am also in debt to the help form everyone.  Matt you have created something wonderful here.  Ben, I cant thank you enough for your help with detailed minutia of getting this working on any combination of web setups and crazy ideas people come up with.  Rod, you always have something constructive to say.  And to all of you I am humbled by your patience and giving of your time to be on here for what seems like all hours to answer all our questions, even is you have answered it a million times.

Thanks everyone,

- Evan Thomas

#6 CE4 Publisher » Recover Album/Album Set passwords » 2016-02-15 10:04:28

evan
Replies: 6

I have a problem remembering passwords for all my client albums especially after much time has gone by.  And I cant seem to find how to recover what the album set password is.  I can change it sure but I'd rather not tell my client a new password unless I absolutely have to.  When editing the set to look at the Username/Password, the password is of course blocked out.  Any way to recover this?  Everything I search for under passwords is all the ttg-be password.

#7 Re: General » Facebook post optimizing » 2015-11-17 01:39:56

Funny how I totally missed that in the wiki.  Google turned up what I needed. Sorry to repeat but It seems pretty important.

It takes a few tries to get it right when using Publisher to place the right information.  I know that the page title are concatenated for Title + Site name, but why is the meta property 'title' not.  This makes the Facebook cards only show the gallery title, not site title as well which would be a little more informative.  Unless there is a character limit otherwise oh well.

#8 General » Facebook post optimizing » 2015-11-12 05:59:13

evan
Replies: 3

For anyone looking to see what your open graph Facebook post looks like try this tool directly from FB.

https://developers.facebook.com/tools/debug/

You can see what the crawler gets from your site and force it to update facebook's cache as well so you don't have to wait.  A very useful tool.  Tells you what you are missing as well. 

For anyone using publisher for your main pages-gallery the key parts are 'Album Title' and 'Description'.

Here is also a twitter card validator to check what your twitter profile looks like.

https://cards-dev.twitter.com/validator

#9 Re: CE4 Publisher » Publisher pages not loading » 2015-11-03 03:53:44

Ha YES!

Thank you. Thank you. Thank you!

Missed one path in all the changes.

rod barbee wrote:

Still having an issue with publisher driven home page.  When it is activated and I have pages-gallery slug running the page loads the default 'pages' homepage with no phplugins.

I just looked at your pages-gallery stage album (in the /galleries/ folder). I don't see the phplugins controlled navigation in the source code. Can you double check the path to phplugins in the Stage template you're using?

In Pages, have you assigned the Publisher controlled page to Home under Appearance > the Gallery?

#10 Re: CE4 Publisher » Publisher pages not loading » 2015-11-03 01:37:38

Ok so an update, sorry for the delay Halloween got in the way and there were horrible creatures preventing me from getting to the computer:

I had my host look into my issue.  They initially claimed it was the scripts (um no) and then that it was a file permission error.  That my folders need to all be 755 (they were as far as i know) and all files 644 (again didnt realize they could be otherwise).   Most of the site is now working fine.  I'm trying to get more information from them.  And if I get some then I'll let you know.  Thanks for all your help.  Strange issues bring people out of the woodwork and its awesome. 

Thanks for the design compliments Matt.  These can be so incredibly modified it is almost hard to find what you like and stop. 

Still having an issue with publisher driven home page.  When it is activated and I have pages-gallery slug running the page loads the default 'pages' homepage with no phplugins.  Checked the file permissions and they are as expected 755/644 so no go there (not that i thought there would be).  Will have host take a look at that too.  Almost not worth the change.  ugg.

#11 Re: CE4 Publisher » Publisher pages not loading » 2015-10-31 00:02:41

rod barbee wrote:

PHP Notice:  Use of undefined constant G_SLUG - assumed 'G_SLUG' in /home/studioth/public_html/phplugins/phplugins.php on line 236
PHP Notice:  Use of undefined constant G_SLUG - assumed 'G_SLUG' in /home/studioth/public_html/phplugins/phplugins.php on line 372
  Any Ideas?

maybe a silly question. Are you using the phplugins.php file from CE4 or CE3?


CE4.  I did a clean start with CE4

#12 Re: CE4 Publisher » Publisher pages not loading » 2015-10-31 00:01:06

rod barbee wrote:

then I'm at a loss as to why those pages are redirecting back to your home page.

Can you see those files in the /pages/ folder via FTP?

Yup, via ftp everything is there.  I'm baffled.

#13 Re: CE4 Publisher » Publisher pages not loading » 2015-10-30 23:48:21

rod barbee wrote:

What are you using to create the templates you're using for your about, contact, and publications pages?

If it's anything other than CE4 Gallery or CE4 Stage, you'll run into problems.


Yes they are all 'Stage' pages.  'Stage' is awesome you can do anything with it

#14 Re: CE4 Publisher » Publisher pages not loading » 2015-10-30 23:45:39

Ben wrote:

Hi Evan, they are only notices and not errors.  Ideally our code would not cause such notices to be generated.   Can you see whether there is a setting for error level in your control panel.  Setting the level to all errors other than notices should solve it.

I'll check that out. I was trying to provide any info looking for help, seemed like it could be relevant. Where would something like that be in cpanel?

Any other idea on why all my publisher driven pages do not load and default back to the homepage?

#15 Re: CE4 Publisher » Publisher pages not loading » 2015-10-30 23:30:51

I use publisher to control new pages I redesigned.  They are labeled the same and under a separate publisher instance in lightroom.  see my previous host at http://ce4.studiothomas.org/ for an idea of what it looks like.  It allows me to have moving images in every page.  phplugins redoes all the menu linking to get where everything needs to be.  I could probably do without 'Pages' altogether now but it is a good base to build on and currently is at least a default when everything else is not working correctly (a little redundancy is not so bad sometimes).  Phplugins is showing everything correctly if you look at the link on the menu items.  One you click it though all publisher driven pages default back to the homepage. The galleries(portfolios) is the best standard example. They dont work. See new host at studiothomasphoto.com

#16 CE4 Publisher » Publisher pages not loading » 2015-10-30 22:18:10

evan
Replies: 16

I have an issue with my publisher driven pages not loading and defaulting back to the home page.  The galleries(portfolios) page see them just fine and loads correctly.  Lightroom appears to be working just fine exporting them.  I have reloaded publisher to check that.  Many of my pages are publisher driven (about, services, contact, client access) so it is most of my site that is not working at the moment.  I have recently (wed) moved to a new host and I fear that is the problem but I dont know where to start with that.

The publisher error log is showing these two error repeatedly:

PHP Notice:  Constant FIX_PERMISSIONS already defined in /home/studioth/public_html/ttg-be/config.php on line 16
PHP Notice:  Undefined index: id in /home/studioth/public_html/ttg-be/publisher/application/controllers/ApiController.php on line 923

Additionally the main error log is showing:

PHP Notice:  Use of undefined constant G_SLUG - assumed 'G_SLUG' in /home/studioth/public_html/phplugins/phplugins.php on line 236
PHP Notice:  Use of undefined constant G_SLUG - assumed 'G_SLUG' in /home/studioth/public_html/phplugins/phplugins.php on line 372
  Any Ideas?

studiothomasphoto.com

#17 CE4 Publisher » features request » 2015-10-12 22:27:52

evan
Replies: 1

I'm just gonna say I love TTG.  Its amazing what it does and how malleable it can be as well.

I would like to see publisher have a little more control of what features are used on each page.   There could be a selector to turn on/off downloads, cart, or sharing like there is for enabling passwords.   If I setup the template to have downloads on and all required info, cart setup with all its info, as well as everything for sharing I would like to be able to control what is then on when I publish a gallery.  Rather than having separate templates for each option individually and in combination.  That's a lot of templates to update.

#18 Re: PHPlugins (CE4) » Using hooks to put the contact form into a publisher driven page » 2015-10-11 05:20:45

Wow, all I can say is you sir are a genius.   Thank you for figuring this out for me.  I never would have.  I am amazed it actually works as well.

#19 Re: PHPlugins (CE4) » hook auto index gallery on the main page » 2015-10-10 05:44:08

css gets me everytime...  getting this figured out now.  I'll do a bit more formal workup of what I did to get it working.  Had to create a new id:"fav-index" and then label the css with that id.  tricky.  also had to edit the autoindex-layout file to get the grid setup I wanted (grid_2) now to figure out how to make it step down better to grid_2/grid_4/grid_6/grid_12 rather than the current grid_2/grid_6/grid_12 (its just too big of a jump) see http://ce4.studiothomas.org/

#20 Re: PHPlugins (CE4) » hook auto index gallery on the main page » 2015-10-10 00:50:00

eureka!   The problem was with the style-component.css.  in the galleries.php it is

<link rel="stylesheet" type="text/css" media="all" href="./lib/css/style-component.css" />

In every other page it is

<link rel="stylesheet" type="text/css" media="all" href="<?php echo $resources_url; ?>/css/style-component.css" />

I added the first into the phplugins.php just after my hook and voila!  there it is!

#21 Re: PHPlugins (CE4) » hook auto index gallery on the main page » 2015-10-10 00:47:02

I dont quite get what you are saying. the html markup is fully created by autoindex-view.php.  it is completely there on the page when you view the generated source code.  and if I can grab the html markup that is created on the galleries page and copy it into the phplugins, the result is the same.  the only thing to display is the gallery names with no link and no images.  the fact that it finds the galleries at all means it is at least starting to work.  I just cant seem to get it to post the image and display as a link.

#22 Re: PHPlugins (CE4) » hook auto index gallery on the main page » 2015-10-09 23:00:38

Funny thing is when you look at the page source it shows exactly what the galleries page shows as well.  the code is creating everything it needs, creating the album link, getting the thumbnail, setting up the style.  And then nothing but the album title shows. cant figure it out.  will send Daniel a message as well.

#23 PHPlugins (CE4) » hook auto index gallery on the main page » 2015-10-09 10:18:25

evan
Replies: 8

I have been trying to add the gallery auto index onto the main page as well for a better mobile homepage (more like Daniel Lue http://danielleu.com/.) I have to hook working just fine and I copied the code in the galleries.php. The result finds the galleries but doesnt correctly display.  see the bottom of http://ce4.studiothomas.org/.


here is the relevant phplugins.php  Any help would be greatly appreciated.

elseif (G_SLUG == 'pages-gallery') {
        echo '
<div id="gallery-index" class="gallery-index iconic container_12 step_down clearfix">
        ';
    define('BASE_DIR', './galleries/');
    if (!defined('BASE_DIR'))
        define('BASE_DIR', '');
    include './lib/autoindex/autoindex-view.php';
        echo '
</div><!-- #gallery-index -->
        ';
        return false; // Places Gallery index at the bottom of the home page
    }

#24 Re: PHPlugins (CE4) » Using hooks to put the contact form into a publisher driven page » 2015-10-09 09:39:14

So far no go on hooking the contact form into another page.  I cant even get it to properly get through those first 80 lines.  It stops at the $message array and I've no idea why.

see http://ce4.studiothomas.org/pages/contact/

// TARGET SPECIFIC PAGE IN TTG CE4 PAGES
function ttg_block_bottom( $style, $path ) { 

/*  Contact Form
====================  */

    if (G_SLUG == 'contact') {

    echo '

<p>loading ttg contact php</p>

    ';

define('APPLICATION', 'admin');

echo '<p>1</p> ';

require_once('lib.php');

echo '<p>2</p> ';

$fields = array(
    array(
        'name' => 'NAME',
        'param' => 'name',
        'type' => 'input-text',
        'required' => true
    ),
    array(
        'name' => 'EMAIL',
        'param' => 'email',
        'type' => 'input-text',
        'required' => true,
        'format' => 'email'
    ),
    array(
        'name' => 'Address',
        'param' => 'address',
        'type' => 'input-text',
        'required' => false
    ),
    array(
        'name' => 'TELEPHONE',
        'param' => 'custom1',
        'type' => 'input-text',
        'required' => false
    ),
    array(
        'name' => 'MESSAGE',
        'param' => 'message',
        'type' => 'textarea',
        'required' => true
    ),
);

echo '<p>3</p> ';

$messages = array(
    ContactDelegate::$MESSAGE_ENTER_REQUIRED_FIELDS => 'Please complete the required fields.',
    ContactDelegate::$MESSAGE_VALID_EMAIL_REQUIRED => 'Please enter a valid email address.',
    ContactDelegate::$MESSAGE_EMAIL_ERROR => 'The message could not be sent. Please contact the photographer by phone or direct email.',
    ContactDelegate::$MESSAGE_SUCCESS => 'Thanks for your message. Someone will reply to you soon.'
);

echo '<p>4</p> ';

if (FormHelper::submitted()) {
    $form = array();

    foreach ($fields as $field) {
        if (isset($_POST[$field['param']])) {
            $form[$field['param']] = trim($_POST[$field['param']]);
        }
    }

    $form['fromPage'] = URLHelper::currentPageURL();
    $delegate = new ContactDelegate();
    $result = $delegate->contact($form, $fields);

    if ($result['status'] == 'success' || (isset($result['message']) && $result['message'] == ContactDelegate::$MESSAGE_SPAM)) {
        header('Location: '.$_SERVER['REQUEST_URI'].'?a=success');
    }
} else {
    $result = array();
    $form = array();
}

echo '<p>5</p> ';

function formValue($form, $param){
    return isset($form[$param]) ? $form[$param] : '';
}

echo '<p>6</p> ';

function message($code){
    global $messages;
    return isset($messages[$code]) ? $messages[$code] : '';
}

    echo '
    
<h1 style="text-align:center">ttg Contact php loaded!</h1> 


        ';
        return false; // Place ttg contact into publisher contact page

        echo '<p>end php section</p> ';
    }

#25 PHPlugins (CE4) » Using hooks to put the contact form into a publisher driven page » 2015-10-03 07:00:21

evan
Replies: 5

So now that my site is looking the way I want it the contact page doesn't match an overall aesthetic I have going.  All my about, info, services pages are now publisher driven stages that have a constantly moving image gallery at the top as a graphic.  Then the block is written into the publisher and some custom css for each page for responsive layouts.  see http://ce4.studiothomas.org/galleries/about/.

What I would like to do is use the same publisher driven template but add a hook to put the contact form onto the page.  I've got the hook setup and placed correctly. see http://ce4.studiothomas.org/pages/contact/ 

I cant seem to figure out how much code to steal from the plain contact page to add to my phplugins. There is a lot going on in there. Its difficult to work on as well since of anything at all is wrong it just does nothing. Any help would be greatly appreciated. I think it could be pretty nice if the contact from could be a phplugin to put wherever you want using the hooks to put it there.

Board footer

Powered by FluxBB