moosecat
Forum Replies Created
-
Guess I will just uninstall if I can’t get any assistance =/
Yes I have it set to OAuth, and API Key and Secret Key are set. The from email address is the same as my google account’s email. I get the authentication page from Google, but when it goes to test an email it says:
Checking your settings
Sending Test Email to *REMOVED*
Email Status : Not Sent
—————————————————————————————-
Debugging Output :
—————————————————————————————-
Connection timed outYour Web Host provider may have installed a firewall between you and the server.
Contact the admin of the server and ask if they allow outgoing communication on port 25,465,587.
It seems like they are blocking certain traffic. Ask them to open the ports.
—————————————————————————————-I asked my host to open the ports, and they said they are already open. When I check the connectivity test and put smtp.google.com, it says the ports are closed. If I use localhost, it says the ports are open. My host says it’s Google’s problem, not theirs, but I find that difficult to believe since other people have had this work just fine. It leads me to believe there is something more they need to do.
- This reply was modified 7 years, 2 months ago by moosecat.
Forum: Themes and Templates
In reply to: [Make] Gallery w/Lightbox SupportUpdate: I’ve somehow conquered the PHP demon, and gotten a solution to this (though I cannot guarantee it’s the best solution as I’m inexperienced). Basically, Lightbox plugins don’t work with onclick. They require a normal link, so I needed to find a way to do that.
I’m not sure how to share the code I’ve done, and I’m not entirely sure it’s the best solution to begin with, but it works for me. So, I’ll try to share what I’ve done below.
Functionality/Instructions:
-A new checkbox added in gallery item settings called “Open Image”. This can be done in inc/builder/sections/gallery/definition.php by finding all instances of open-new-tab and duplicating the code/changing to open-image.-When checked, the get_gallery_item_onclick function will return blank (any link in the link box will be ignored). This can be done in inc/builder/sections/section-front-end-helpers.php in the ttfmake_builder_get_gallery_item_onclick function by adding:
if (isset( $item['open-image'] ) && $item['open-image'] === 1) { return ''; }
Make sure this is below where $item is set.
Then, you’ll want to add a new function just below that function to pull the image URL:
function ttfmake_builder_get_gallery_item_imagelink( $ttfmake_section_data, $i ) { if ( ! ttfmake_builder_is_section_type( 'gallery', $ttfmake_section_data ) ) { return ''; } $item = $ttfmake_section_data['gallery-items'][$i - 1]; $image_src = ttfmake_get_image_src( $item[ 'image-id' ], 'large' ); $url = esc_url_raw( $image_src[0] ); return $url; }
-When checked, a normal link will be added around the builder-gallery-content div, which pulls the item’s image URL. This can be done in inc/builder/sections/gallery/frontend-template.php right above the builder-gallery-content div.
<?php if (isset( $item['open-image'] ) && $item['open-image'] === 1) : ?> <a href="<?php echo ttfmake_builder_get_gallery_item_imagelink( $ttfmake_section_data, $i ); ?>"> <?php endif; ?>
And another to close out the a tag, right below the closing tag for builder-gallery-content:
<?php if (isset( $item['open-image'] ) && $item['open-image'] === 1) : ?> </a> <?php endif; ?>
-Because it is a normal image link, lightbox plugins should pick it up.