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.
Yes, you can. Like I do in this example: https://lab.danielleu.com/blog/customiz … page-view/
Actually, for each of your albums you can put the following in your album copy settings main copy window to have no right click images on the page/album. I have this currently implemented on my site.
<script>
window.oncontextmenu = function () {
return false;
}
</script>
Or use phplugins to automatically insert the code on each page:
function scripts() {
echo '<script> window.oncontextmenu = function () { return false; } </script> ';
return false;
}
During your development, you might want to disable Cloudflare caching.
BTW, I like the approach to you stock site. Something I'm pondering myself for a while.
I don't see your custom css code in https://www.tasmanianphotos.com/backlig … photos.css
Hi Rod,
Been messing with this for hours and I cannot get any indent working.
In my php_plugins I have
function pallet01_top() { echo' <div class="special-pallet-content"> html content <div> '; return false; }
Can you see what I am doing wrong here?
Cheers
Chumby
The closing div after your html content should be '</div>'.
it's there starting on line 15 of the custom css file (tasmanianphotos.css)
not for me... maybe Chumby is doing something.
Chumby, I don't see your custom css to make the palette code visible.
Rod, I didn't think about CSS at all. Nice to have several ways to get it done.
If you want the content to appear on only certain pages (like Home, About, Contact) but not others, that can be done too.
I have an example of doing this over at https://lab.danielleu.com/blog/page-specific-php-code/
How about adding 'saison: 2019-2020' as text?
The format is "+search term" and not +"search term". I didn't notice any issues with the "year-year" format.
The search term should be: +tnm "+2019-2020"
this line caused a problem:
} } else if (strtolower($this->slug) == 'contact') {
so I changed it to:
} else if (strtolower($this->slug) == 'contact') {
and it seems to work.
sorry, missed that
The code is used to create breadcrumbs for user pages and not for the home page. That's why you get Home twice on the home page. Additionally, if you don't want to have it called 'home', you need to change the text in the ttg_crumb line:
function ttg_crumb( $page_name ) {
echo '<ul class="breadcrumbs"><li class="fa_pseudo" itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a href="/" itemprop="url"><span itemprop="title">Accueil</span></a></li><li class="fa_pseudo" itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><span itemprop="title">'. $page_name .'</span></li></ul>';
}
function main_top(){
// Add breadcrumbs to non-gallery pages
if (strtolower($this->slug) == 'accueil') {
echo '<ul class="breadcrumbs"><li class="fa_pseudo" itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a href="/" itemprop="url"><span itemprop="title">Accueil</span></a></li></ul>';
} } else if (strtolower($this->slug) == 'contact') {
$this->ttg_crumb('Contact');
} else if (strtolower($this->slug) == 'recherche') {
$this->ttg_crumb('Recherche');
} else if (strtolower($this->slug) == 'xxxx') {
$this->ttg_crumb('Xxxx');
}
}
How about:
form.search-form, form.search-form p, form.search-handoff {
margin-left: auto;
margin-right: auto;
}
The folder path /backlight/search is correct. This is not a physical directory. That's why you don't see it. /gallery/search might be a residue of some of your earlier experiments.
Have a look at css to style your list: https://www.w3schools.com/css/css_list.asp
Works well with full names too. Just put them in quotes: "MICHEL BEAULIEU". If you want matching images, you need to enhance the caption and keywords. There is more about using search in http://backlight.theturninggate.net/doc … t_s_search
Language customization is part of the Publisher section in Backlight > Admin > Settings > Languages. In order to see changes, you might need to logout from Backlight admin and login again.
The single image view is always available. So switching to slideshow mode has no impact on SEO.
The enter button is now higher on my iPhone. It is most likely a cache issue that prevents you seeing the latest changes. Try to clear the cache on your phone.
Don't know why the .masthead item is in your file. Using 'main_bottom' works well. Nothing to worry about that. This defines the insertion point for 'enter'.
Increasing the bottom distance moves it up. And then there is a loose 'white; parameter.
#enter-field {
position: fixed;
bottom: 20px; <-- increase as desired
right: 20px;
background-color:rgba(255,255,255,0.7);
font-size:1em;
border-color: white;
white; <-- delete this
border-width:4px;
border-style:solid;
}
'?>' looks to be out of place. This should be removed since there is already one at the very end of the file.
I don't see your custom.css code referenced in your page either.