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.

#102 Re: Backlight 2 Support » No Right Click Images » 2020-03-09 12:48:30

mad wrote:

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;
}

#103 Re: Backlight 2 Support » Duplicating Page Copy » 2020-03-07 10:05:00

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.

#105 Re: Backlight 2 Support » Duplicating Page Copy » 2020-03-07 01:06:02

chumby wrote:

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>'.

#106 Re: Backlight 2 Support » Duplicating Page Copy » 2020-03-05 09:54:57

rod barbee wrote:

it's there starting on line 15 of the custom css file (tasmanianphotos.css)

not for me... maybe Chumby is doing something.

#107 Re: Backlight 2 Support » Duplicating Page Copy » 2020-03-05 09:38:42

Chumby, I don't see your custom css to make the palette code visible.

#108 Re: Backlight 2 Support » Duplicating Page Copy » 2020-03-05 03:05:25

Rod, I didn't think about CSS at all. Nice to have several ways to get it done.

#109 Re: Backlight 2 Support » Duplicating Page Copy » 2020-03-05 01:23:45

rod barbee wrote:

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/

#110 Re: Backlight 2 Support » SEARCH errors in results » 2020-03-04 09:43:52

How about adding 'saison: 2019-2020' as text?

#111 Re: Backlight 2 Support » SEARCH errors in results » 2020-03-03 01:48:01

The format is "+search term" and not +"search term". I didn't notice any issues with the "year-year" format.

#112 Re: Backlight 2 Support » SEARCH errors in results » 2020-02-29 01:42:32

The search term should be: +tnm "+2019-2020"

#113 Re: Backlight 2 Support » Breadcrumb behavior » 2020-02-28 03:14:41

pideja wrote:

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

#114 Re: Backlight 2 Support » Breadcrumb behavior » 2020-02-28 02:15:19

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');
	}
}

#116 Re: Backlight 2 Support » SEARCH page in French » 2020-02-27 06:40:28

How about:

form.search-form, form.search-form p, form.search-handoff {
    margin-left: auto;
    margin-right: auto;
}

#117 Re: Backlight 2 Support » SEARCH function » 2020-02-26 05:02:36

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.

#119 Re: Backlight 2 Support » SEARCH page in French » 2020-02-19 07:30:36

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.

#121 Re: Backlight 2 Support » Clicking through search results » 2020-02-11 07:57:25

The single image view is always available. So switching to slideshow mode has no impact on SEO.

#123 Re: Backlight 2 Support » New problem after upgrading to Blacklight 2 » 2020-02-11 01:39:35

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'.

#124 Re: Backlight 2 Support » New problem after upgrading to Blacklight 2 » 2020-02-10 14:43:51

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;
}

#125 Re: Backlight 2 Support » New problem after upgrading to Blacklight 2 » 2020-02-10 03:10:44

'?>' 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.

Board footer

Powered by FluxBB