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.

#1001 Backlight Support » Coupon » 2016-12-19 02:12:28

Daniel Leu
Replies: 1

Just was wondering, can a coupon code be used more than once?

#1002 Re: Backlight Support » The Image could not be loaded error » 2016-12-17 00:37:05

Try to use filenames that do not contain special characters such as commas.

#1004 Re: Backlight Support » Catastrophic Complete Backlight Failure » 2016-12-13 01:04:52

Ben wrote:

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!

#1006 Re: Backlight Support » Embeded Image on Added Page Not Showing » 2016-11-30 07:40:16

The path should start with a '/':

 <img src="/backlight/photos/FaintingGoat.jpg" width="350" class="alignleft">

#1007 Re: Backlight Support » Inserting more than one Album Set » 2016-11-28 08:01:08

volvoxturbo wrote:

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 :-(

#1008 Re: Backlight Support » Inserting more than one Album Set » 2016-11-28 07:51:10

volvoxturbo wrote:

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!

#1009 Re: Backlight Support » Inserting more than one Album Set » 2016-11-27 23:57:35

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.

#1010 Re: Backlight Support » Underline menu items » 2016-11-23 02:08:51

rod barbee wrote:

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

#1011 Re: Backlight Support » Underline menu items » 2016-11-23 01:59:28

rod barbee wrote:

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.

#1012 Re: Backlight Support » Underline menu items » 2016-11-23 01:46:29

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)

#1013 Re: Backlight Support » Google Speed page » 2016-11-19 02:39:31

gwlco wrote:

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!

#1014 Re: Backlight Support » restore standard templates » 2016-11-09 07:44:45

5Michael5 wrote:

Thank you so much. Great site you made by the way!

Great, and thank you!

#1015 Re: Backlight Support » Urgent Passwords » 2016-11-09 05:00:44

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?

#1016 Re: Backlight Support » restore standard templates » 2016-11-08 09:26:40

Go to Backlight > Designer > Templates, click on the name of the template and then 'Restore Defaults'.

#1017 Re: Backlight Support » Using <textarea> tag in page copy breaks editor » 2016-11-08 02:18:09

dlangan wrote:

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.

#1019 Re: Backlight Support » Blog, following previous article Articles Links » 2016-11-07 11:03:12

PhilippeH wrote:

Rod

This works for pages, but the links disappear as for the articles!

Daniel

This impeccably works!

Thanks to you two.

Philippe

smile

#1020 Re: Backlight Support » Blog, following previous article Articles Links » 2016-11-07 05:58:19

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

#1021 Re: Backlight Support » Default Album for publisher » 2016-11-07 05:01:18

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.

#1022 Re: Backlight Support » Blog, following previous article Articles Links » 2016-11-07 02:33:15

PhilippeH wrote:

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?

#1023 Re: Backlight Support » Blog, following previous article Articles Links » 2016-11-07 02:10:18

PhilippeH wrote:

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?

#1024 Re: Backlight Support » Default Album for publisher » 2016-11-07 01:28:42

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.

#1025 Re: Backlight Support » Blog, following previous article Articles Links » 2016-11-05 01:39:03

Maybe something like this:

.blog .adjacent-posts-links,
.archive .adjacent-posts-links {
    display: none;
}

Board footer

Powered by FluxBB