garciasanchezdani
Forum Replies Created
-
Hello, I’m having same issue…I added those two lines in my functions.php
add_filter( 'jetpack_sync_listener_should_load', '__return_true' ); add_filter( 'jetpack_sync_sender_should_load', '__return_true' );
and I realized that the problem is only with posts created previously, this is, for example, if I create one post, save it as draft, and after that, I schedule it, then publicize doesn’t work. But I just tried creating new post from scratch, and it’s shared properly in social networks.
So I think the bug is only for posts created previously.
Best regardsForum: Plugins
In reply to: [Rich Reviews by Starfish] [RICH_REVIEWS_FORM] NOT WORKINGHi @jinx-dkm Awesome! ??
Thank you very much.Forum: Plugins
In reply to: [Rich Reviews by Starfish] [RICH_REVIEWS_FORM] NOT WORKINGYes, it’s not working ??
Thanks!! I also had this problem.
I updated to 2.8.5 and now it works like a charm! ??Forum: Fixing WordPress
In reply to: add bootstrap modal after login in wordpressHi all, I solved it by using transient API ??
This is a screenshot of my modal displayed just a user connected to the private zone.
https://prntscr.com/4lraywThe code:
1. Inside functions.php
//for activate the flag function after_login_display_modal($user_login) { set_transient( $user_login, '1', 0 ); } add_action('wp_login', 'after_login_display_modal');
2. Inside functions.php add our script which display the modal
add_action( ‘wp_enqueue_scripts’, ‘custom_scripts’ );
function custom_scripts () { global $current_user; get_currentuserinfo(); //add the script if the user is connected, and the flag is activated (previously activated with set_transient if ( get_transient( $current_user->user_login )==1 && is_user_logged_in() ){ //the script will dependend on jquery and minified (because of select minify scripts on wplms panel in wpadmin) //my custom script names after_login_display_modal.js wp_register_script( 'after_login_display_modal_javascript', get_stylesheet_directory_uri().'/js/after_login_display_modal.js', array('jquery','minified-js')); wp_enqueue_script( 'after_login_display_modal_javascript' ); } }
3. The after_login_display_modal.js only have:
jQuery(document).ready(function($){ $("#after_login_modal").modal(); });
4. In the header.php of my child theme I’ve created the dom type boostrap modal, with id after_login_modal:
<div id="after_login_modal" class="modal bs-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true"> <div class="modal-dialog modal-sm"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> <h4 class="modal-title" id="after_login_modalLabel">Bienvenido/a <?php echo ($current_user->display_name); ?></h4> </div> <div class="modal-body" style="padding-bottom: 5em;"> <p>?Qué quiere hacer hoy?</p> <input type="radio" name="group1" value="crear_curso" /> Crear un curso<br> <input type="radio" name="group1" value="ver_cursos_creados" id="<?php echo bp_loggedin_user_domain().BP_COURSE_SLUG.'/instructor-courses' ?>"/> Ver mis cursos creados<br> <input type="radio" name="group1" value="ver_matriculaciones" id="<?php echo bp_loggedin_user_domain().BP_COURSE_SLUG ?>"/> Ver los cursos en los que estoy matriculado/a<br> <input type="radio" name="group1" value="crear_blog"/> Crear un blog<br> <input type="radio" name="group1" value="quedarme_donde_estoy" checked /> Quedarme donde estoy<br> <br><button type="button" data-loading-text="Cargando..." class="btn" id="guia_modal_seleccion">Aceptar</button> <img src="/wp-content/themes/wplms-educa/images/guia_usuario.png" style="position: absolute;right: 0;bottom: 0;padding-bottom: 0em;" /> </div> </div> </div> </div>
Hope that helps.
Forum: Fixing WordPress
In reply to: is there anyway to automatically clear the spam directory?Ok, thanks to both for your answers.
@tara I think what you mean is for trashed posts, not for comments inside spam directory.
I understand that I need a plugin for it…I’ll see spam comments cleaner.Best regards,Daniel
Forum: Fixing WordPress
In reply to: wordpress is added tags inside my javascript functionI looked at other thread, that remove a filter can solve this:
<?php remove_filter ('the_content', 'wpautop'); ?>
I tried it, and <p> tags disappear, but now javascript is malformed:
<script type="text/javascript"> function evaluarPalabras() { var respuesta1 = $('.1a').is(':checked'); var respuesta2 = $('.1b').is(':checked'); var respuesta3 = $('.1c').is(':checked'); var respuesta4 = $('.1d').is(':checked'); var respuesta5 = $('.1e').is(':checked'); if (!respuesta1 && respuesta2 && !respuesta3 && respuesta4 && !respuesta5 ) { alert("Ha respondido correctamente las preguntas"); } else{ alert("No ha respondido correctamente las preguntas. Inténtelo de nuevo"); } } </script>
where the correct javascript of above is the next:
<script type="text/javascript"> function evaluarPalabras() { var respuesta1 = $('.1a').is(':checked'); var respuesta2 = $('.1b').is(':checked'); var respuesta3 = $('.1c').is(':checked'); var respuesta4 = $('.1d').is(':checked'); var respuesta5 = $('.1e').is(':checked'); if (!respuesta1 && respuesta2 && !respuesta3 && respuesta4 && !respuesta5 ) { alert("Ha respondido correctamente las preguntas"); } else{ alert("No ha respondido correctamente las preguntas. Inténtelo de nuevo"); } } </script>
Forum: Fixing WordPress
In reply to: wordpress is added tags inside my javascript functionHi @janet4now , thanks for help.
The plugin is mine, to create courses faster, programmatically. I’ve a learning site, and I’ve created it to add our courses in a instant.
But now, I’ve problems with this.
I’ve found some links, like this: https://www.ads-software.com/support/topic/stop-wordpress-from-adding-p-tags-and-removing-line-break?replies=23
I’ll continue investigating…
Thanks! ??Forum: Plugins
In reply to: [Quick Cache (Speed Without Compromise)] Clear one pageThanks, I saw the answer in a Jason`s comment. I bought pro version ??
Thanks, DanielForum: Plugins
In reply to: [Quick Cache (Speed Without Compromise)] Clear one pageHi @raam , I’m going to buy quick cache pro ?? because I like your work, I like this plugin.
But one question. Can I use quick cache pro in more than one site? I’d love to use it in some of my websites.
Regards, DanielForum: Plugins
In reply to: [Arconix FAQ] version 1.5 broke faq cyrillic namesThanks! ??
Forum: Plugins
In reply to: [Arconix FAQ] version 1.5 broke faq cyrillic namesyes, and also spanish names
Hi
what files did you changed?
thanks in advanceForum: Plugins
In reply to: [Simple Link List Widget] items lists dissapeared when I filled 15 itemsHi @jimmywb it was the last version, under wordpress 3.9.1.
I don’t know how…but I tried once again, and now it works….
Thanks for support.Forum: Plugins
In reply to: [Quick Cache (Speed Without Compromise)] Clear one pageHi, one thing, I can’t delete manually one cache file through “ftp”…
Can you help me?