Javier Glez
Forum Replies Created
-
It is working. The flag “s” was missing and it is necessary because the content is multiline.
Tell me something about the solution, even if you cannot find any other one.
Could be a solution, but Can I change the $content_width only for this piece of code, for my Content_Slide (it is a ShortCode)?
Right now I am Changing the $content_width with the following code:
add_action( 'template_redirect', array(__CLASS__, 'content_width'));
function content_width() { $oPost = get_post(); if(preg_match ( "/(\[content_slide(.*?)])(.*?)(\[gallery(.*?)])(.*?)(\[\/content_slide])|(\[content_slide(.*?)])(.*?)(\[embed(.*?)])(.*?)(\[\/content_slide])/i", $oPost->post_content)) { global $content_width; $content_width = 507; } }
I don’t like it and the RegEx is not really working, but the $content_width works. Any other Idea??
Thanks really a lot!!
Could be a solution, but Can I change the $content_width only for this piece of code, for my Content_Slide (it is a ShortCode)?
I have already a reply, but the solution was not enough.
e-Mail:
We took a look at your site and think we know what the cause is.
The Tiled Gallery feature relies on the $content_width setting in your theme’s functions.php file. However, you’re using the Tiled Gallery in a narrower area, but the gallery is still looking to fill the wider specified width.
I’d recommend trying to update your theme’s functions.php file, and change the $content_width to match the actual width of the galleries.I cannot change the $content_width, because I use the Tilled Gallery also with this width.
I need to call to the resize() function of the Tilled Gallery to fit in the proper space, because if I change height or width, the gallery fits the place properly.
Thanks a lot for the effort.
I am here, waiting for the solution… or at least for an answer.
Ok!! it is done. I sent it to you by form.
I use my own script without “image lazyload”. I use “slideToggle” from JQuery (I want to use the “complete” statement). I’m using it to recalculate the sticky elements of the aside.
Code:
$('.content_slide-header').click(function(){ $(this).next().slideToggle({ complete: function () { $(document.body).trigger('sticky_kit:recalc'); } // Recalculate the sticky elements if the height changes }); $(this).parent().toggleClass('content_slide-open content_slide-close'); return false; });
If you still need to see the page, tell me and I will send it to you.
P.S.: I am so sorry because of my “bump a thread”. I didn’t know about that.
Please, somebody help me !!!
Forum: Plugins
In reply to: [mqTranslate] mqTranslate Editor has disabled, using a no administrator userI am so sorry… I founded the problem: It is my configuration of iThemes Security.
In that plugIn is this option: “Display Random Version – Where a WordPress version must be displayed, it will display a random WordPress version and will remove the WordPress version completely where possible.”
With this option, the admin user works good, but the rest of the users not.
Thanks so much and Sorry one again…
Forum: Plugins
In reply to: [mqTranslate] mqTranslate Editor has disabled, using a no administrator userIt’s posible. Ihave just few plugIns, but one of this is iThemes Security. Provably is this one, because the rest are a normal ones:
iThemes Security
Grunion Contact Form
Jetpack por WordPress.com
mqTranslateThanks for your answer.
Forum: Plugins
In reply to: [mqTranslate] mqTranslate Editor has disabled, using a no administrator userIt is because in the function isWordPressMajorVersionSupported() (located in mqtranslate_wphacks.php), the value of $wp is not an array, it’s just an string (419).
Just to fix it: You have to write “if($wp[$i] === ‘419’) { return true; }” in the function isWordPressMajorVersionSupported(), right below of “// Compare to maximum”. This change is not really dangerous.
Thanks for the PlugIn, and regards.
Forum: Plugins
In reply to: [BackUpWordPress] backupwordpress update shutdown sitePerhaps because the version of PHP. What version do you have?
If the version is less than 5.3, does not work because the plugin uses the “namespace” (it is on the wordpress plugin’s page).Regards