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.
Just was wondering, can a coupon code be used more than once?
Try to use filenames that do not contain special characters such as commas.
Thank you, Ben!
Hi Mike, I've emailed you a PHP test file for measuring the performance of a single SQLite query that does not use any Backlight code.
For anybody else interested, the contents of the file is:
<?php $start = microtime(true); $pdo = new PDO('sqlite:backlight/data/publisher/master.sq3'); if (isset($_REQUEST['pragma'])) { $res = $pdo->query('PRAGMA synchronous = off'); $pdo->query('PRAGMA journal_mode = PERSIST'); } $queryStart = microtime(true); $pdoStatement = $pdo->prepare('select * from album'); $pdoStatement->execute(); $results = $pdoStatement->fetchAll(PDO::FETCH_ASSOC); $count = count($results); $end = microtime(true); $queryTime = ($end - $queryStart) * 1000; $totalTime = ($end - $start) * 1000; echo 'Found '.$count.' albums in '.number_format($queryTime, 3).' milliseconds<br/>'; echo 'Total time taken: '.number_format($totalTime, 3).' milliseconds'; ?>If uploaded as a file http://yoursite.com/sqlite_performance.php, the time taken to run a query is reported. A URL such as http://yoursite.com/sqlite_performance.php?pragma tests with the variables that we have found to improve performance on hosts using network storage. The results for my own site, with 30 albums is less than 2 milliseconds, whether pragma is set or not.
Apart that you did this for debugging an issue, this is really cool. I was wondering in the past if the performance flag would benefit me, but never tried it. With 65 albums, it went from 4.3ms down to 2.2ms (I'm on Bluehost). So definitely something I should enable. Thank you for sharing!
Perfect!
The path should start with a '/':
<img src="/backlight/photos/FaintingGoat.jpg" width="350" class="alignleft">Hi Daniel,
I am with other things right now, so the projects site will be untouched until i have a solution for the hover thing ;-)
Best regards,
Oliver
I understand that you don't want to modify the project page. I wouldn't do it either. But if you can't make a test page, there is no more help from my side :-(
Hi Daniel,
thank you very much but unfortunately your css doesn't work for me, the whole album frame gets black and the color of the album description is not changing.
Best regards,
Oliver
hmm... can you activate the change again on your page or make a test page so I can better see what's going on? Thanks!
I really like the how you present your work on the projects page! Something to think about!
Following code works for me:
.slug-projects figure:hover {
background-color: rgba(0, 0, 0, 1);
color: #ffffff;
}This would replace your current hover code.
I already tried it. It adds the script to the end of the head section. But even though I used $(document).ready(function() {
the script doesn't appear to work.Are you using wp_enqueue_script() via a child theme?
Yes. See as well http://community.theturninggate.net/vie … 173#p42173
Ah. I wonder about placing the script in the ttg_head hook?
Adding it to the ttg_head hook might not work for every type of code due to dependencies. wp_enqueue_script() should be used to add custom javascript code. See WP documentation for more.
Phplugins are supported by the Backlight WP theme, but ttg_scripts() is not. You need to use the 'wp_enqueue_script' feature to add custom scripts or javascript code to your WP child theme.
I have something like this in my WP child theme functions.php file:
function my_theme_enqueue_inline_script(){
if( wp_script_is('jquery','done') ){
echo '<script>
... put your javascript code here ....
</script>';
}
}
add_action('wp_footer', 'my_theme_enqueue_inline_script', 21); // priority 21 to trigger after wp_enqueue_scripts (20)I have found that https://gtmetrix.com/ is an excellent site to see what is going on, especially page loads, etc. It is free and I use it often. Here is a look at my site: https://gtmetrix.com/reports/garylittle.com/k6qOoVWc. It gives you quite allot of information when you go to the tabs.
Hi Gary,
I don't see the not 'Enable gzip compression' in your statistics. Did you implement their recommendation? Thanks!
Thank you so much. Great site you made by the way!
Great, and thank you!
In Backlight > Client Response > Localizations, you can set LABEL_EMAIL to whatever you want it to show on the login screen.
Can you login with a username/password combination?
Go to Backlight > Designer > Templates, click on the name of the template and then 'Restore Defaults'.
Thanks Ben. I didn't understand much of that (don't have a web design or html background), but I read it to mean it'll be fixed in next backlight release? I don't know how to use phplugins but if next backlight version provides instructions I'll be happy to implement.
The difficulty I face with the <textarea> breaking the page editor is that it truncates everything below the offending <textarea></textarea> tags which means I have to keep a back up of the latest page copy so that I can copy & paste it when it fails. But, I see what you mean - it'll do as a work around until the next release.
Thanks for taking a look at this & proposing to fix in 1.1!
Deirdre
FYI: I just checked with the upcoming 1.1 and <textarea>..</textarea> works.
Rod
This works for pages, but the links disappear as for the articles!
Daniel
This impeccably works!
Thanks to you two.
Philippe
![]()
Hi Philippe, these are page posts and not blog posts! This means that the CSS needs to be further extended:
.page .adjacent-posts-links,
.blog .adjacent-posts-links,
.archive .adjacent-posts-links {
display: none;
}Hi Volker,
No, you can't change the default settings, but when you create a new album, there is the option "Copy Settings from Album". This way, all your initial settings are done at once. You could create an album with default values (with Hide from Album Set and Hide from Search set) from which you import your initial settings.
Sorry, I did not put in test.vuedailleurs.com, but http://phoneographie.com
Philippe
hmm... it works for me. I don't see the prev/next links in http://phoneographie.com/blog/category/voyages/. Which pages were you looking at where it still shows up?
Hello Daniel and thank you for the code.
Unfortunately it does not work. The links are always present on the pages.
Philippe
Your phoneographie.css doesn't show the modifications. Where did you put them?
Default Album is a Lr thing and can be safely deleted. As a matter of fact, I always deleted it! There is no need to get this back. Just create a new album with a name that reflects the content you want to show: eg, sunrises, sunsets, beaches, trees, etc.
Maybe something like this:
.blog .adjacent-posts-links,
.archive .adjacent-posts-links {
display: none;
}