Fred
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Sixteen] chome font changesSame issue here.
Investigating…
Is it useful to say to have solved the issue without providing any info or clues on a forum?Forum: Themes and Templates
In reply to: [Sixteen] Double font size with Google ChromeSame issue here.
Investigating…Hi thank you for your reply.
I will check your link.
So far, with the time I have and the time I spent, I created this code, that I placed into a really basic plugin (my own).
And it does the job in my case.add_action('qtranslate_loadConfig', 'myaction', 100); function myaction(){ global $q_config; if(strpos($_SERVER['REQUEST_URI'], 'ngg') !== false || strpos($_SERVER['REQUEST_URI'], 'photocrati') !== false ) // Can maybe add this condition in case // || strpos($_SERVER['REQUEST_URI'], 'ajax') !== false {$q_config['hide_untranslated'] = 0;} }
Hope it helps some users
Thanks!
Fred
Forum: Plugins
In reply to: [Plugin: NextGen Gallery 2.0.59] – Can't upload images in current VersionHi and thank you for your reply.
I tested with other file permissions and contacted my hosting company.
Still having issues.
So I desactivated all other plugins, then it worked.
Reactivating one by one, the issue comes as soon as I activate Qtranslate (2.5.39).So I guess there is a conflict somewhere…
Hope it helps, I will see if I find someone facing the same issue.
Or maybe you know already this issue?Thanks
Fred
Thank you, I checked it again and I think it’s not file permission, but system/file/folder owner rights issue.
Will continue to see how to fix it.Thanks!
Hi and thank you for your reply.
It’s on a remote server.
I continue to investigate, but it’s weird :/Thank you for your great plugin by the way.
Forum: Plugins
In reply to: [Plugin: NextGen Gallery 2.0.59] – Can't upload images in current VersionHi,
I`m having the same issue here: Can’t upload images to galleries.
Issue comes, apparently, from a javascript error:response is null, on the javascript code, created at yourdomain.com/wp-admin/admin.php?page=ngg_addgallery
in `if(typeof(response.error) != ‘undefined’) {
up.trigger(‘Error’, {
code: plupload.IO_ERROR,
msg: response.error,
details: response,
file: file
});
}`server: gallery folder and subfolders set to 777 for tests, safemode off, php 5.3, max file upload size 300Mo
file to upload: jpg, 140ko
wp: 3.8.1, ngg 2.0.59
Hope it helps to solve the issue, if it is one.
Thanks!
Thank you normadize
Do you know a good debugger, easy to install etc?
Because some tools like xdebug are not recommanded on production servers.I try P3 plugin
https://www.ads-software.com/extend/plugins/p3-profiler/
maybe those
https://www.ads-software.com/extend/plugins/askapache-debug-viewer/
https://www.ads-software.com/extend/plugins/debug-this/I understand why you do your own plugin, because patches etc don’t work really well.
It improves fur sure, but still take time with this plugin.
Even qtranslate slug.
I removed some code, commented some parts, replaced some pre_reg etc, still slow for google
Continuing…Thank you normadize.
I`m working currently on it.
Patch, hardcode etc, and still slow.
I continue.
Also qtranslate slug can maybe be improved.
I check qtranslate currently.
ThanksI try to see what I can do.
replace in previews post
foreach($q_config['enabled_languages'] as $language) { if(strpos($block, "<!--:".$language."-->") !== false) { $matches[1] = $language; } if($quicktags && strpos($block, "[:".$language."]") !== false) { $matches[1] = $language; } }
let me know if it works for you
// splits text with language tags into array function qtrans_split($text, $quicktags = true) { global $q_config; //init vars $split_regex = "#(<!--[^-]*-->|\[:[a-z]{2}\])#ism"; $current_language = ""; $result = array(); foreach($q_config['enabled_languages'] as $language) { $result[$language] = ""; } // split text at all xml comments $blocks = preg_split($split_regex, $text, -1, PREG_SPLIT_NO_EMPTY|PREG_SPLIT_DELIM_CAPTURE); foreach($blocks as $block) { # detect language tags // Frederic // if(preg_match("#^<!--:([a-z]{2})-->$#ism", $block, $matches)) { $matches = array(); foreach($q_config['enabled_languages'] as $language) { if($quicktags) { if(strpos($block, "[:".$language."]") !== false) { $matches[1] = $language; } } else { if(strpos($block, "<!--:".$language."-->") !== false) { $matches[1] = $language; } } } if(isset($matches[1]) && $matches[1] != '') { if(qtrans_isEnabled($matches[1])) { $current_language = $matches[1]; } else { $current_language = "invalid"; } continue; // detect quicktags /*} elseif($quicktags && preg_match("#^\[:([a-z]{2})\]$#ism", $block, $matches)) { if(qtrans_isEnabled($matches[1])) { $current_language = $matches[1]; } else { $current_language = "invalid"; } continue; // detect ending tags */ // Frederic preg_match("#^<!--:-->$#ism", $block, $matches)) } elseif($block == '<!--:-->') { $current_language = ""; continue; // detect defective more tag // Frederic // } elseif(preg_match("#^<!--more-->$#ism", $block, $matches)) { } elseif(strpos($block, "<!--more-->") !== false) { foreach($q_config['enabled_languages'] as $language) { $result[$language] .= $block; } continue; } // correctly categorize text block if($current_language == "") { // general block, add to all languages foreach($q_config['enabled_languages'] as $language) { $result[$language] .= $block; } } elseif($current_language != "invalid") { // specific block, only add to active language $result[$current_language] .= $block; } } foreach($result as $lang => $lang_content) { $result[$lang] = preg_replace("#(<!--more-->|<!--nextpage-->)+$#ism","",$lang_content); } return $result; }