Problems, need help? Have a tip or advice? Post it here.
16 posts Page 2 of 2
I did exactly that and went for using slimbox to view the photos, my little problem is the dash between the photos as shown in this image.
It's probably because they are linked as a slimbox gallery and/or a slimbox problem to be honest, just wondering if you might have any pointers!

Attachments

I think the HTML being generated will hold the clue.
Please do a view-source and compare it with your Couch code to see if something can be spotted.
Feel free to post in your template's code here to get more pairs of eyes :)
Hmm considering that they don't even show up in the HTML I'd say that this is probably something do with the slimbox script actually, this a sample of the HTML that couch generates for each gallery item - there is nothing between them either!

Code: Select all
<span class="galleryItem">
   <a href="(URL) rel="lightbox" >
   <img src="(URL)" />
   </a>
</span>


(It is a *very* simple implementation of the gallery, as you may notice haha)
Solved it! Think it takes looking at it from an outside perspective sometimes...
I realised that it was a clickable link - so I just added an id to the <a> tag, set it to text-decoration:none in the stylesheet and boom, no more line!
Thanks!
Hello!!

I'am having the same problem with the speed load. I explain better my issue:

I have configured my website with the multilang addon following the steps in post (viewtopic.php?f=5&t=10979). And I have added a short code in config.php of this block to detect the country of the user to display the contents in the language of the user.


Code: Select all
 
//Code to detect country and language of user.

switch ($language){
        case "es-es":
                    $cfg['langs'] = array(
                        'es-es'=>'Spanish',
                        'en-us'=>'American English',
                        'en-gb'=>'British English',                       
                    );
                    break;

        case "en-us":
                    $cfg['langs'] = array(
                        'en-us'=>'American English',
                        'en-gb'=>'British English',
                        'es-es'=>'Spanish',
                    );
                    break;

        case "en-gb":
                    $cfg['langs'] = array(
                        'en-gb'=>'British English',
                        'en-us'=>'American English',                       
                        'es-es'=>'Spanish',
                    );
                    break;

        default: $cfg['langs'] = array(
                        'en-gb'=>'British English',
                        'en-us'=>'American English',                       
                        'es-es'=>'Spanish',
                    );
                    break;
    }

My problem is the following... If I set Caché parameters to '1' the website load more fast but the multi-lang module doesn't works and display the contents in the same language in all countries. And if I set Caché to '0' the multi-lang module works fine but the website load slowly.

Can I do something to solve it?

Thanks to all for your help!
If I set Caché parameters to '1' the website load more fast but the multi-lang module doesn't works and display the contents in the same language in all countries.

I think only the initial part of figuring out the visitor's language and serving the first page in that language could be affected by caching. The visitor can manually choose her preferred language and then the rest of the pages should remain in that language. Is that not the case? Please confirm.

if I set Caché to '0' the multi-lang module works fine but the website load slowly.

Caching effectively serves a static HTML page so, of course, it has to be faster than the generated version.
The main issue here is that the generated page shouldn't be *so* slow as to be unusable (say taking 10 seconds to come up).

So what is the time you are getting with the generated page? If it is too slow, you should review your code - perhaps some loops are being used in an non-optimal manner? Or maybe the server is running too low on resources. Using PHP 7 can easily give a gain of 3-4 times compared to older versions.
16 posts Page 2 of 2
cron