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 Re: Backlight 2 Customization » Updating phplugins » 2020-06-11 06:09:23

Hi Rod.
Thanks for your help.
It all worked out and I am very grateful for this great community.

#2 Re: Backlight 2 Customization » Updating phplugins » 2020-06-10 18:52:39

Daniel Leu wrote:

This is just a short summary on how to update phplugins from Backlight 1 to Backlight 2...........

Is it possible that someone will rewrite the PHP script below from BL 1 to BL 3?
Unfortunately I have no experience to do this myself.

<?php
/*
 *	TTG Core Elements "PHPlugins" User Hooks v1.2 - initialization mainline
 *
 *	developed by john bishop images (http://johnbishopimages.com)
 *	for Matthew Campagna of The Turning Gate (http://theturninggate.net)
 *
 */

function ttg_user_load( $style, $path ) {
	$g_tsvrl = explode( ' ', $style );                          // Extract gallery type
	define ( 'G_STYLE', strtoupper($g_tsvrl[1]) );              // and set global for later
	$g_path = str_ireplace('\\','/',$path);                     // change \ to / 
	$chunks = explode('/',$g_path);                             // and put into array
	define ( 'G_PATH', strtoupper($chunks[count($chunks)-2]) ); // gallery folder name is second to last
	//define ( 'TTG_SITE', '');                                   // set new site root for navigation, resources, etc.
	}




// SET USER FUNCTIONS BELOW
// Some example functions are included below. Feel free to delete or modify unwanted functions.
// ****************************************************************************************************




// display Sitelock logo
function ttg_footer_bottom ( $style, $path ) {
echo <<<SITELOCK
<div id="sitelock">
<a href = "#" onclick = "window.open ('https://www.sitelock.com/verify.php?site=rainerhassmann.de','SiteLock','width=600,height= 600, left = 160, top = 170 '); "> <img title =" 1 & 1 SiteLock "src =" https://shield.sitelock.com/shield/rainerhassmann.de" alt =" Homepage Security "> </a>
</div>
SITELOCK;

} // END /**/




// ****************************************************************************************************
// END USER FUNCTIONS

?>

#3 Re: Backlight 3 Support » install update from Backlight 2 to 3 » 2020-06-08 06:40:40

Hi Daniel
Thanks for your answer.
If I understand the instructions correctly, the new version (BL3) should be displayed in the backlight modules.
But this is not the case.
I guess that I am registered with two different email addresses, or I entered the wrong order number when updating to backlight 2.
How can I correct this?

Best regards

#4 Backlight 3 Support » install update from Backlight 2 to 3 » 2020-06-08 00:36:39

Pixelmover
Replies: 4

Please give me a little help.

I have purchased the Backlight 3 update.
How do I install the update from Backlight 2 to Backlight 3?

Thanks

#5 Re: Backlight Support » New php version 7.3 causes error message » 2019-12-09 08:58:21

Hi Rod, hi Ben.
sorry for the delay in reply.

rod barbee wrote:

did you go to your TTG account and download the last available version? I believe release 7 was the last one available.

My mistake was that I had updated with the relaese 4.
The tip solved the problem.
Thank you and I wish you all a merry christmas.

Rainer

#6 Re: Backlight Support » New php version 7.3 causes error message » 2019-12-04 08:11:27

Hi Rod, hi Ben.
Thank you for your answer.
As recommended I did the upgrade BL1.2.3 rel 4 and also exchanged the file Backlight/Framework/Helpers/SimpleHTMLTag.php.
Unfortunately this did not fix the problem. I also tried to copy the complete Helpers folder from BL1.2.3 rel 4. No success.
Would it be possible for Ben or Rod to solve the problem via ftp access?
I would send the access data by mail.
Thank you
Rainer

#7 Backlight Support » New php version 7.3 causes error message » 2019-12-04 04:21:37

Pixelmover
Replies: 7

My provider only supports PHP version 7.1 until mid January 2020.
It is recommended to switch to PHP version 7.3 or 7.4.
I tested both versions with my website.

When using PHP version 7.3, I get an error message when calling the different galleries:
Something went wrong
count(): Parameter must be an array or an object that implements Countable in SimpleHTMLTag.php on line 44

When using PHP version 7.4, I already get the error message when calling the website:
Something went wrong
join(): Passing glue string after array is deprecated. Swap the parameters in URLHelper.php on line 110

Currently I am using PHP version 7.3. and Backlight Version v1.2.3

What do I have to do to fix the problem?
It would be nice if someone could help me.
Thank you in advance
Rainer

https://rainerhassmann.de

#8 Re: Backlight Support » EU Data Protection and Google fonts » 2018-06-09 05:38:28

Matthew wrote:

Perhaps worth noting, Google more ....... responsibility for it.

Thanks for these interesting lines. In germany there is currently a big discussion about the usefulness of this EU regulation.
It remains to be seen how the courts decide in disputes.
I will definitely keep an eye on the topic.

#9 Re: Backlight Support » EU Data Protection and Google fonts » 2018-06-09 01:22:10

Without the community, I would be lost.

Thanks to all for the help and the tips.

#10 Re: Backlight Support » Sitelock seal » 2018-06-09 01:14:19

Problem solved. Thanks for the quick help.

#11 Re: Backlight Support » EU Data Protection and Google fonts » 2018-06-08 23:25:28

How can I see which google fonts are used on my site?

#12 Re: Backlight Support » Sitelock seal » 2018-06-08 22:29:17

Daniel Leu wrote:

Do you have a link to the page where it should show?

Here comes the link:
https://www.rainerhassmann.de

#13 Re: Backlight Support » Sitelock seal » 2018-06-08 08:20:03

Hi Daniel.
Da ich gesehen habe, dass Sie die deutsche Sprache beherrschen, erlaube ich mir diesen Post in deutsch zu schreiben.
Die Fehlermeldung erscheint nicht mehr, damit Problem 1 gelöst.
Problem 2 = das Logo wird nicht angezeigt.
In meiner Custom CSS habe ich folgenden Code eingegeben:

#sitelock {
	float:right;
}

Fehlt da noch etwas? Ich kenne mich da leider nicht sehr gut aus.

#14 Re: Backlight Support » Sitelock seal » 2018-06-08 06:53:04

Matthew wrote:

I am not familiar with this. What is it? What is the intended purpose of including this code?

If you can help me to understand what you are wanting to accomplish, then I can hopefully answer your question.

Is this just some badge or logo you want to display on your site, or on one of your site's pages? If so, where?

It is a logo of the company sitelock to indicate that the site is free of maleware etc. It would be nice if the logo appears on the bottom right side of each page.
Maybe daniels suggestion works

#15 Re: Backlight Support » Sitelock seal » 2018-06-08 06:43:54

Daniel Leu wrote:

I would put it into the footer using phplugins. Maybe

ttg_footer_bottom(( $style, $path ) { 
echo <<<SITELOCK
<div id="sitelock">
<a href = "#" onclick = "window.open ('https://www.sitelock.com/verify.php?site=rainerhassmann.de','SiteLock','width=600,height= 600, left = 160, top = 170 '); "> <img title =" 1 & 1 SiteLock "src =" [url]https://shield.sitelock.com/shield/rainerhassmann.de[/url] "alt =" Homepage Security "> </a>
</div>
SITELOCK;

} // END /**/

I put it inside a <div> so you can use some custom.css to place it. Maybe #sitelock {float:right;}

I ran Daniel's suggestion and added the code to my "photoart.php" in the "SET USER FUNCTIONS BELOW" section:

ttg_footer_bottom (($ style, $ path) {
echo <<< SITELOCK
<div id = "sitelock">
<a href = "#" onclick = "window.open ('https://www.sitelock.com/verify.php?site=rainerhassmann.de','SiteLock','width=600,height= 600, left = 160, top = 170 '); "> <img title =" 1 & 1 SiteLock "src =" [url] [url]https://shield.sitelock.com/shield/rainerhassmann.de[/url] [/url] "alt =" Homepage Security "> </a>
</ Div>
SiteLock;
} // END / ** /

/ * DELETE THIS LINE// Basic structure for a PHPlugins function
function _HOOK_ ($ style, $ path) {
echo '

';
return false;
} // END / ** /

Unfortunately, I get the error message:

Something went wrong

Unexpected error: syntax error, unexpected ',' in photoart.php on line 246

Please report error at http://community.theturninggate.net

The Line 246 is the first line of the code

What is wrong here?

#16 Backlight Support » EU Data Protection and Google fonts » 2018-06-07 07:48:06

Pixelmover
Replies: 11

On May 25, 2018, the EU Data Protection Basic Regulation enters into force. One of the effects for web designers and designers: No fonts (fonts, web fonts) from non-EU foreign countries may be reloaded on websites.

So my question is:
Google fonts used in backlight are integrated in backlight or be reloaded it from google?

Thanks in advance

#17 Backlight Support » Sitelock seal » 2018-06-07 05:36:49

Pixelmover
Replies: 11

Who can help me with this?
Where should the code for the sitelock seal be copied:

<a href = "#" onclick = "window.open ('https://www.sitelock.com/verify.php?site=rainerhassmann.de','SiteLock','width=600,height= 600, left = 160, top = 170 '); "> <img title =" 1 & 1 SiteLock "src =" [url]https://shield.sitelock.com/shield/rainerhassmann.de[/url] "alt =" Homepage Security "> < / a>

Thank you in advance

#19 Backlight Support » Changing the name field in the contact form not necessary » 2018-06-04 06:18:22

Pixelmover
Replies: 2

Unfortunately, there is a new EU data protection regulation. Dreadful, some prescriptions are completely idiotic.
Nevertheless:
Currently, in the basic contact form the name field is specified as required.
I would like to have the opportunity to change that to not necessary.
Another variant would be to remove the name field from the base contact form and manually add it as an extra field.
Is there a possibility?

#20 Re: Backlight Support » Share icon google+ and instagram » 2018-06-02 22:45:21

Hi.
Thanks for the detailed posts. I probably got a lot wrong. Sorry!

#21 Re: Backlight Support » Share icon google+ and instagram » 2018-06-02 09:14:34

I mean the sharing icons from the slideshow view. There you can also switch off individual icons:

 / * remove the sharing icons from the slideshow view.
================================================== * /
li.share-pinterest {
display: none;
}

Here I want to add icons (and links) for instagram and google +
I use pangolin album templates.

#22 Backlight Support » Share icon google+ and instagram » 2018-06-02 08:18:10

Pixelmover
Replies: 6

In the slideshow I would like to add a share icon for instagram and google +.
That's why I've added the following code to my custom.css:

 / * Sharing Icon Instagram Add
=================================== * /

.pswp__button - share :: after {
content: "\ f16d";
}

/ * Add Sharing Icon to Google+
=================================== * /

.pswp__button - share :: after {
content: "\ f0d4";
}

Unfortunately that did not work, the icons are not displayed.
Do I have to insert another code somewhere?
And at which point must the link to instagram and google + be entered with credentials?

#23 Re: Backlight Support » Cookie Consent » 2018-06-02 07:44:33

Hi Rod, Your last post was just what I did not know about. Many Thanks. Also thanks to daniel.
So my problem is solved and everything works as desired.

#24 Re: Backlight Support » Cookie Consent » 2018-05-31 07:01:51

First of all thank you for your help.
Unfortunately, what I did had no success. The cookie consent banner does not appear.

1. I inserted the following code at the end into my "photoart.css":

/*Cookie Consent
================*/

<script src="/backlight/custom/js/cookieconsent.min.js"></script>

then the file cookieconsent.min.css:

.cc-window{opacity:1;transition:opacity 1s ease}.cc-window.cc-invisible{opacity:0}.cc-animate.cc-revoke{transition:transform 1s ease}.cc-animate.cc-revoke.cc-top{transform:translateY(-2em)}.cc-animate.cc-revoke.cc-bottom{transform:translateY(2em)}.cc-animate.cc-revoke.cc-active.cc-bottom,.........cc-btn+.cc-btn{margin-left:0}

then

<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
  "palette": {
    "popup": {
      "background": "#efefef",
      "text": "#404040"
    },
    "button": {
      "background": "#8ec760",
      "text": "#ffffff"
    }
  },
  "theme": "classic",
  "content": {
    "message": "Um die Webseite für Sie optimal zu gestalten und fortlaufend verbessern zu können, verwenden wir Cookies. Durch die weitere Nutzung der Webseite stimmen Sie der Verwendung von Cookies zu.",
    "dismiss": "OK",
    "link": "Datenschutzerklärung",
    "href": "https//:www.rainerhassmann.de/DS-GVO/"
  }
})});
</script>

2. I have inserted the following code (from Daniel) into my "photoart.php":

// SET USER FUNCTIONS BELOW
// Some example functions are included below. Feel free to delete or modify unwanted functions.
// ****************************************************************************************************

function ttg_head( $style, $path ) {
echo '

';
}


/* DELETE THIS LINE
// Basic structure for a PHPlugins function
function _HOOK_( $style, $path ) { 
	echo '

	';
	return false;
} // END /**/

3. I have saved in my folder / backlight / custom / js the javascript "cookieconsent.min.js".

In Backlight, I have activated under Advanced Customization, phplugins and custom stylesheet and selected the appropriate files.
I saved the template and clear template cache.
Where did I make a mistake?

#25 Re: Backlight Support » Cookie Consent » 2018-05-28 06:15:38

Hi Rod.
sorry, I understood the principle and also the use of the phpplugin. But:

Daniel Leu wrote:

I made two changes: I added the cookieconsent specific CSS to my custom.css file and copied the javascript code to my own site at backlight/custom/js/cookieconsent.min.js. This way my site does not depend on external code.

I also do not want to make my site dependent on an external code.
However, I'm not clear how the code (syntax) for the "custom.css" and the js code "cookieconsent.min.js" must be written.

Board footer

Powered by FluxBB