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.
Search is working fine if I go to the search page. I put a search form on the top of the page using PHP but it doesn't let you enter any text. Here is the phplugins entry:
// Search on top
function ttg_header_masthead( $style, $path ) {
echo '
<div id="search" class="collapse clearfix" style="float: right; overflow: auto; margin-top: 5px;">
<form action="/search" method="GET">
<input type="text" id="q" name="q" value="" placeholder="Search" style="width: 260px; height: 24px; color: #FFFFFF; background-color: #303030 !important;"/>
<button type="submit" style="height: 24px; width: 30px; padding: 5px; vertical-align: bottom;">Go</button>
</form>
</div>
';
} // END
You can view it at https://www.montetrumbull.com/ (if it is very narrow, a css change hasn't updated yet. Inspect to turn off maxwidth.).
Thanks - Monte
That makes sense. Thanks Rod!
Whoops. Thanks Rod.
Thanks Rod! While creating this page in Stage, I tried just pasting the <iframe> in the page copy and it causes LR to go into a loop refreshing. I assume that can't be done?
Monte
Hey Rod. If I change the first one to false, then the page flashes and goes away.
I have a contact page created using Stage with the grid turned off and the block turned on with the word BLOCK as the only text. The only way to get my content to show is to return TRUE as seen below. Doing this also shows the word BLOCK at the bottom. If I change the return to FALSE the page flashes by. What am I doing wrong? You can visit the page at: https://www.montetrumbull.com/contact/. Thanks!
function ttg_block_top( $style, $path ) {
if (G_PATH == 'CONTACT') {
echo '
<div class="container_12 clearfix">
<div class="grid_4 gutter_12px collapse clearfix alpha">
<h4 style="text-align: center;">Monte Trumbull<br>18291 Wagon Trail<br>Buena Vista, CO 81211<br><a href="tel:7192213975">719-221-3975</a></h3>
<img src="photos/MT-20130918-142504-0079-Glacier-National-Park-Montana-Avalanche-Creek.jpg" width="340" class="alignleft" alt="some descriptive text">
</div>
<div class="grid_8 gutter_12px collapse clearfix omega">
<p style="text-align: justify;">Feel free to contact me using the form below or by calling or emailing me directly. Subscribe to my newsletter or follow me on social media to stay up to date on the latest news from Monte Trumbull Photography.</p>
<iframe height="540" style="border:none; background:transparent; overflow:hidden; width:100%; padding-left:35px;" id="fb_iframe" src="contact/contact.html"></iframe>
</div>
</div><!-- .container_12 -->
';
return true;
}
return true;
}
Thanks Rod. I'll give that a try.
Monte
Hey Rod. I was just looking for a plain page with two columns and just some text and maybe an area to plugin using PHP.
Thanks - Monte
If I remember correctly (it's been a while!), I used to use Stage to create some of the extra pages for my website. Looking at the CE4 version it looks like it is mainly for creating media pages. What is the best way to create extra pages (for an example a page for art shows, etc.)?
Thanks - Monte
I finally got this to work and thought I would pass along for anyone that would like to use it.
Scroll down the page to have the button show up on the bottom right: https://portfolios.montetrumbull.com/ga … andscapes/
Goes in phplugins file:
function ttg_body_bottom( $style, $path ) {
echo '
<a href="#top" class="btn-scroll-to-top" title="Top of page"><i class="fa fa-chevron-circle-up fa-fw fa-lg"></i></a>
<script>
$(document).ready(function() {
$(".btn-scroll-to-top").click(function() {
$("html, body").animate({ scrollTop: 0 }, "slow");
return false;
});
$(window).scroll(function() {
if ($(this).scrollTop() > 100) {
$(".btn-scroll-to-top").fadeIn();
} else {
$(".btn-scroll-to-top").fadeOut();
}
});
});
</script>
';
}
Goes in custom.css:
/* Back to Top Button */
.btn-scroll-to-top {
background-color: transparent;
display: none;
position: fixed;
bottom: 5px;
right: 5px;
padding: 5px;
font-size: 36px !important;
text-align: center;
text-decoration: none;
color:#D0D0D0;
}
.btn-scroll-to-top:hover {
text-decoration: none;
color:#FFFFFF;
}
Thanks Daniel. Didn't think it would be so simple!
Monte
I notice by looking at the page source that what I have entered in the templates for a path (/home/trummonte/resources.montetrumbull.com/phplugins) shows up as <link rel="stylesheet" href="https://www.resources.montetrumbull.com/phplugins/css/custom.css" />. As I move to my new site, I am going to do away with www.. How can I get this to not insert the www.?
Thanks - Monte
Thanks Matt. Good suggestion. All is finally well with my security certificates. It really screwed things up there for a while!
Monte
Thanks Rod!
Hey Rod. I am still waiting to hear back from Dreamhost to get my certificates in order. I use Cloudflare which adds another layer of complexity! You can get to the unsecure site at: http://www.portfolios.montetrumbull.com/galleries/ for now. Thanks!
Monte
Thanks Matt & dl. Matt, I am pretty sure the problems you were having were due to me installing a new security certificate and some changes I made to .htaccess (bad timing!). Things are getting cleaned up this morning.
dl, I made sure to save a copy of the file!
Monte
Great. Sorry I missed that! Thanks Rod.
Monte
Thanks Rod. That works to get rid of the arrow and I agree that mobile will still need something. What about being able to have the list drop down by hovering over the top level menu rather than having to click on it?
Monte
Is is possible to have a dropdown menu expand when you hover over the top level and also get rid of the down arrow on the right side?
Thanks - Monte
Thanks Matt. I figured out I could do it the easy way and use the file name. It works just great. Here is a link to a gallery (work in progress) that I have it setup with:
https://www.portfolios.montetrumbull.com/galleries/
Clicking on the shopping cart button will take you to the same image at ArtStoreFronts. I am going to be trying out their service but still wanted my favorite images in a nice gallery like yours! I will also be using TTG for my blog and client and family albums.
Thanks so much for your help.
Monte
Hi Matt. I have been playing around with this today. If possible I would want the button to be unique per image. Would it be possible to put that info in the image metadata and use it as a variable in the Magnific javascsript? Thanks Matt.
Monte
Thanks Matt. I will dig in and see what I can do. I sure appreciate the help!
Monte
I am using single quotes and it seems to be working fine. If I hover over the link, the correct path shows. The problem is that the behavior for when you click on on a large image is to cycle between turning the top and bottom bars on and off. You can never click on the link! Thanks for your help Rod.
Monte
Hi Rod. All I really want to do is have a link for each large image to go to another webpage. I tried the HTML trick of adding a href in the caption and it shows up, but when I go to click on it, the top bar and bottom bar go away. The Autoindex idea won't work because the main reason for the gallery is to view the images large. Thanks much!
Monte
First of all, I am new to PHP plugins. I was wondering if it would be possible to a a floating button on top of the large Magnific images? I would like it to link to another webpage. Thanks in advance!
Monte