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.

#301 Re: Backlight Support » Text color problem on mobil device » 2019-05-21 01:43:37

Maybe changing the color with CSS might do the trick as well.

#303 Re: Backlight 2 Support » Download Not Working » 2019-05-18 04:15:05

hursey wrote:

I think it is the file size... I seem to recall this issue before, however was able to fix it somehow... I THINK you gave me new code for the php.ini file?

Maybe this is what you are referring to: http://community.theturninggate.net/vie … 772#p39772

#304 Re: Backlight 2 Support » Backlight 2 & MAMP » 2019-05-18 01:19:08

smile Have fun playing with Backlight. It is a so much better experience than with CE3.

#306 Re: Backlight 2 Support » Backlight 2 & MAMP » 2019-05-17 10:14:16

1) Yeah, just install BL2 and have fun. I have one installation on my MAMP and it works well.

2) Yes, you would do another install on the new host and import the previously exported templates.

#307 Re: Backlight 2 Support » Backlight 2 & MAMP » 2019-05-17 02:33:06

Sam Sampson wrote:

Thanks Ben, I appreciate the extra details. If I do run into permission issues, what would you suggest? As you may have read, my web-host won't transition my site to a newer container running php 7.2 or 7.3 for a week or so, and I'd like to start putting the site together. MAMP is my preferred local host which I'm familiar with, but don't want to complicate the process if transferring the site is a major headache. I guess the one installation on MAMP is all I need, rather than installing Backlight 2 on the web server before copying over?

Thanks again, hoping to understand the basics before getting in over my head.

Sam

You always can export the page templates from your MAMP hosted site and import them in your new host. So I would go ahead and use Backlight on your MAMP installation. This way you can get familiar with all the bells and whistles.

#308 Re: Backlight Support » Custom list of choice » 2019-05-16 09:30:29

Hey Nico, great that this works for you smile  I'll put this all into a blog post so others can use this as well. Great idea, Nico!

#309 Re: Backlight Support » Custom list of choice » 2019-05-16 08:45:45

Nico3939 wrote:

Thanks very much the first is Ok  Great !

For the second there an error:

Something went wrong
Unexpected error: syntax error, unexpected '<' in perso-checkout.php on line 11

Oh, I forgot the echo '...'; Fixed above.

And you still need you moveNumbers function....

#310 Re: Backlight Support » Custom list of choice » 2019-05-16 08:33:09

Nico3939 wrote:

Seems to work with contact module.

But cart module has no field as:

<p class="contact-field_12">

This code inserts the radio button before the field named 'paiement'. I have added a line to hide that at the same time.

function ttg_scripts($style, $path) {
   echo'
      <script>
         $("input[name=paiement]").before(\'<br><input type="radio" name="gender" value="red" onclick="moveNumbers(this.value)"> Red<br>   <input type="radio" name="gender" value="green" onclick="moveNumbers(this.value)"> Green<br>   <input type="radio" name="gender" value="blue" onclick="moveNumbers(this.value)">Blue\');
         $("input[name=paiement]").hide();
      </script>
   ';
}

But I think that this code should only be used when one is on the cart page. So I'm adding my page_match function:

function page_match($gallery) {
   if (substr($_SERVER["REQUEST_URI"], 0, strlen($gallery)) == $gallery) {
      return 1;
   }  else {
      return 0;
   }
}

function ttg_scripts( $style, $path ){
   if ( page_match('/backlight/cart') ) {
      echo '
      <script>
         $("input[name=paiement]").before(\'<br><input type="radio" name="gender" value="red" onclick="moveNumbers(this.value)"> Red<br>   <input type="radio" name="gender" value="green" onclick="moveNumbers(this.value)"> Green<br>   <input type="radio" name="gender" value="blue" onclick="moveNumbers(this.value)">Blue\');
         $("input[name=paiement]").hide();
      </script>	
      ';
   }
}

#311 Re: Backlight Support » Custom list of choice » 2019-05-16 08:27:20

Nico3939 wrote:

With your last code for contact module, In mail we receive:
https://i.ibb.co/f9CwS49/Capture-d-cran-2019-05-16-01-17-25.png

Nice smile

#312 Re: Backlight Support » Custom list of choice » 2019-05-16 08:14:14

Nico3939 wrote:

It's interesting to see that the contact module send by mail:

https://i.ibb.co/GT6KSyB/Capture-d-cran-2019-05-16-00-10-24.jpg

Great! So the concept works smile

#313 Re: Backlight Support » Custom list of choice » 2019-05-16 07:15:11

Maybe something like this might work:

function ttg_scripts($style, $path) {
      echo'
          <script>
$(".slug-radiotest .contact-field_10 label").append(\'<input type="radio" name="gender" value="red" onclick="moveNumbers(this.value)"> Red<br>   <input type="radio" name="gender" value="green" onclick="moveNumbers(this.value)"> Green<br>   <input type="radio" name="gender" value="blue" onclick="moveNumbers(this.value)">Blue\');
        </script>
    ';
}

The code adds the radio buttons to contact-field-10.

#314 Re: Backlight Support » Custom list of choice » 2019-05-16 06:32:31

Nico3939 wrote:

I've change the original adress because my website is still in development, so now the code is for contact from, but it's the same way.

Originaly, the selected radio was for Invoiced Checkout page to allow the customer to indicate the payment method for the future (check, bank transfer or administrative mandate)...


https://phototheque.nicolaslogerot.com/?page=radiotest

I like the look with the radio button.

For this page, the code would be

.slug-radiotest form input[name=field_10] {
    display: none!important;
}

and it belongs in https://phototheque.nicolaslogerot.com/ … e-home.css. I have added the slug-radiotest class so it only applies to this page.

#315 Re: Backlight Support » Custom list of choice » 2019-05-16 04:18:14

Nico3939 wrote:

good now i'm going to look at the css to hide the field to the visitor on the front end and look for that returning the name of the field in the email is ok

Here is the code for your custom.css:

form input[name=temp] {
    display: none !important;
}

#316 Re: Backlight Support » Custom list of choice » 2019-05-16 04:10:51

Nico3939 wrote:

Oh, mashed!  I would have spent hours doing this!  it's great Daniel!
I had not thought of that!

It's all based on your code smile

#317 Re: Backlight Support » Custom list of choice » 2019-05-16 03:59:58

Nico3939 wrote:
Daniel wrote:

I think that this approach, which I like very much, should work with node lists too. The result field can be hidden with css/javascript to not confuse the user once it is working.


Good idea Daniel ! but it requires some knowledge in CSS to link the buttons between them and change the state clicked between them.

Ex. If I click on a button, change state, click on another, then it changes state, but the previous one goes back to its original state ... we almost got to create radio buttons !

A working example: https://www.w3schools.com/code/tryit.as … 3L95Z8F28B

#318 Re: Backlight Support » Custom list of choice » 2019-05-16 03:51:48

Yeah, this doesn't look nice.

Maybe you could try to insert the selection using javascript instead of (miss)using the text field.

#319 Re: Backlight Support » Custom list of choice » 2019-05-16 03:12:24

Two things, it is getElementsByName with an 's', and it returns a NodeList: try document.getElementsByName("result")[0]

<script>
     function moveNumbers(number){
         document.getElementsByName("result")[0].value=number;
     }
</script>

I think that this approach, which I like very much, should work with node lists too. The result field can be hidden with css/javascript to not confuse the user once it is working.

#320 Re: Backlight Support » Custom list of choice » 2019-05-16 02:39:01

A link to your site would be helpful.

#321 Re: Backlight 2 Support » Site Security Question » 2019-05-16 01:08:44

rod barbee wrote:

You first need a SSL certificate from your host.

Some hosts such as Bluehost and 1and1/Ionos now include one SSL certificate for free in their shared web hosting packages. And they make it easy to install it.

#322 Re: Backlight 2 Support » Something went wrong after migration » 2019-05-15 07:38:37

paulpegg wrote:

I know. That is the least of the problems I have been dealing with. I have to go in and correct the links. The Events have absorbed my total consciousness (and a lot of my sleep time) for almost a week!

Thanks for the heads up. All it took was to copy the old page into Notepad++ and then copy that back into the new page. That preserved the links as I originally had them.

smile

FYI: Some links are not working (anymore).

#323 Re: Backlight 2 Support » Something went wrong after migration » 2019-05-15 07:10:13

Don't know if you have noticed, but the articles page doesn't contain the links that you had in your CE4 version.

#324 Re: Backlight Support » Counting the number of photos in an album » 2019-05-14 23:45:55

Nico3939 wrote:

Humm thanks Ben, but I think it's PHPlugins functionality in Backlight 2. I don't think the Number of photos is accessible this way in Backlight 1.

No?

Nico

Correct, that's a Backlight 2 feature.

#325 Re: Backlight 2 Support » sudden death » 2019-05-11 08:49:23

According to my quick google search, adding one of the following lines to your /.htaccess file might do the trick:

php_value mail.log /dev/null

or

php_value mail.log /dev/tmp


Again, this is something that you should take up with your host since your php environment is not properly configured!

Board footer

Powered by FluxBB