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.
Maybe changing the color with CSS might do the trick as well.
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
Have fun playing with Backlight. It is a so much better experience than with CE3.
There is something called documentation ![]()
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.
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.
Hey Nico, great that this works for you
I'll put this all into a blog post so others can use this as well. Great idea, Nico!
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....
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>
';
}
}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 ![]()
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 ![]()
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.
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)...
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.
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;
}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 ![]()
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
Yeah, this doesn't look nice.
Maybe you could try to insert the selection using javascript instead of (miss)using the text field.
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.
A link to your site would be helpful.
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.
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.
![]()
FYI: Some links are not working (anymore).
Don't know if you have noticed, but the articles page doesn't contain the links that you had in your CE4 version.
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.
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/nullor
php_value mail.log /dev/tmpAgain, this is something that you should take up with your host since your php environment is not properly configured!