vitalyc
Forum Replies Created
-
Forum: Plugins
In reply to: [qTranslate X] How to hide language suggestion message ?Maybe someone need idea, how to fixed…
Add to functions.phpfunction removeWarning_qTranslateX($content) { //remove text from qTranslateX plugin Version 3.4.2 $new_content = str_replace( "For the sake of viewer convenience, the content is shown below in the alternative language. You may click the link to switch the active language.", "", $content ) ; $new_content = str_replace( "For the sake of viewer convenience, the content is shown below in one of the available alternative languages. You may click one of the links to switch the site language to another available language.", "", $new_content ) ; return $new_content; } add_filter('the_content', 'removeWarning_qTranslateX', 99);
Forum: Plugins
In reply to: [qTranslate X] How to hide language suggestion message ?Is it possible to add on/off for this to settings ?
Forum: Plugins
In reply to: [Facebook Page Albums] Stop work on a new hostI found the problemm.
PHP version was 5.3 ??
Now everything fixed ??
P.S.
After change line 98
from:
$response = (new FacebookRequest($this->session, 'GET', $slug))->execute();
to:$facebook_req = new FacebookRequest($this->session, 'GET', $slug); $response = $facebook_req->execute();
I got error about wrong PHP version.
Forum: Plugins
In reply to: [qTranslate X] How determinate the post language.I dont found apropriated function in qTranslateX, so here is my work around:
I found here and here function for determinate “is my text string need RTL”function is_str_rtl( $string ) { $rtl_chars_pattern = '/[\x{0590}-\x{05ff}\x{0600}-\x{06ff}]/u'; return preg_match($rtl_chars_pattern, $string); }
I renamed is_rtl to is_str_rtl because in E:\work\ihockey.info\wp-includes\locale.php is_rtl already defined and has different meaning.
Put this function to functions.php
And use it my template
`<?php if ( have_posts() ) : while ( have_posts() ) :
the_post();
$title = get_the_title();
$rtl = ”;
if(is_str_rtl($title))
$rtl = ‘ dir=”rtl” ‘;
?>
<div class=”post_body” <?php echo $rtl; ?> >`Forum: Plugins
In reply to: [qTranslate X] How determinate the post language.I looking for some function,
like qtranxf_use_block that can return $alt_lang for current post.What is that function name ?
Forum: Plugins
In reply to: [qTranslate X] How determinate the post language.Thanks Guru.
But in work fine on whole site.
In my case I have mixed content, so I need to put RTL in post DIV.
I ready to customize the theme.
But I don’t know what is language of current post ?Forum: Plugins
In reply to: [qTranslate X] 302 error – on IIS – when I use " Use Pre-Path Mode"Yes, I use 2.9.6 and WP 4.1 with URL rewrite
Forum: Plugins
In reply to: [LeagueManager] [Plugin: LeagueManager] Match Report is broken/not showing upyou need move this lines:
// Add meta box to post screen add_meta_box( 'leaguemanager', __('Match-Report','leaguemanager'), array(&$this, 'addMetaBox'), 'post');
from function __construct() in admin.php
to function menu() in same file.Enjoy ??