Forum Replies Created

Viewing 15 replies - 1 through 15 (of 29 total)
  • Thread Starter bendev

    (@bendev)

    Hi,

    First of all, thanks for your reactivity, really appreciate it as a user but also as a fellow software developer ??
    So I’ve tried it, and it works well.

    Just an observation:
    To enable it I need to first enable the global option “Enable Logout Redirect”.
    It could be great to make it available for the user role settings tab, because redirection can be needed only for specific role.

    Great job in any case guys!

    Thread Starter bendev

    (@bendev)

    Hi,
    Thanks for your answer, and for considering it, this would be a great add for your plugin flexibility.

    Thread Starter bendev

    (@bendev)

    @shanedelierrr : mail sent from the sales team form

    • This reply was modified 1 year, 6 months ago by bendev.
    Thread Starter bendev

    (@bendev)

    Ok, sorry, I looked badly first, on the html version displayed on a navigator, I didn’t see that there was an error message displayed :

    : [Error (where: parser) in | Line 297 Col 30 near '$href }}" target="_blank" class="border-radius" style="-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;color: #2E280E;font-family: Helvetica;font-size: 30px;line-height: 100%;text-align: center;text-decoration: none;background-color: #FFCD08;border: 1px solid #FFCD08;display: inline-block;font-weight: bold;padding-top: 20px;padding-right: 30px;padding-bottom: 20px;padding-left: 30px;-webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px;">Passez à iThemes Security Pro

    Here is the image which shows the location of the error :

    Thread Starter bendev

    (@bendev)

    HI @shanedelierrr ,

    Thanks for this answer.
    So, the mail content is well display if I put it in a html file and open it in a browser.

    But it seems that there is something wrong in it that put it in error when the SMTP service tries to send it (maybe a structural balise issue ?).

    I tried the link to send you the whole mail content, but the contact form does not permit to send a mail in the case “I have a technical theme or plugin question.”.
    Other cases are more dedicated to sale of the product or client account and other…
    Should I use any of them whatever to send you the mail?

    Ben.

    • This reply was modified 1 year, 6 months ago by bendev.
    Thread Starter bendev

    (@bendev)

    Hello,

    I’m coming back there after having solved many issues with the sending mail process of the website.

    I’m now sending all mails via Brevo (ex sendinblue), so via SMTP protocol.
    I’m still using the line below to the wp-config.php file:

    define('ITSEC_NOTIFY_USE_CRON', true);

    Each mail from every extensions is well sent (contact, newsletter, statistics) except for iThemes Security’s ones…

    Mails sent by iThemes Security seems to have an issue in xml structure, so at the end of the content, we can see a “Expected either a number, string, keyword or identifier” notification, and the mail is stated as “Error”.

    Here is the start of the xml content of the mail retrieved from Brevo log:

    28-05-2023 16:51:43
    send mail to client: process message: process multi part: process part: process body: process part body: get encrypted message: render template: parse render template: Pub/Sub ack: parse render template: parse: body: from string: tpl: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="https://www.w3.org/1999/xhtml" lang="fr-FR"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Sauvegarde de base de données</title> <meta name="viewport" content="width=device-width"> <style type="text/css"> /* From: https://litmus.com/community/learning/13-foundations-email-coding-101 */ /* GENERAL STYLE RESETS */ body,#body-table,#body-cell{height:100%!important;width:100%!important;margin:0;padding:0;} img,aimg{border:0;outline:none;text-decoration:none;} .imageFix{display:block;} table,td{border-collapse:collapse;border-spacing:0;} /* CLIENT-SPECIFIC RESETS */

    And here is the end of the xml content of the mail retrieved from Brevo log:

     Cet e-mail a été généré par l’extension iThemes Security.<br>Pour vous désabonner de ces notitications, rendez-vous dans <a  style="color: #0084CB">les réglages</a> de l’extension iThemes Security. </span> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </center> </body> </html> '] Expected either a number, string, keyword or identifier.

    If it helps, I can give the whole xml content of the xml content of the mail retrieved from Brevo log…

    Thanks in advance for any help or tick to solve this issue…

    Thread Starter bendev

    (@bendev)

    Hello,
    As I had to disable the weekly report to stop the issue, and as I’m waiting for the host company to solve a mailbox creation issue to get at least one mail address related to the domain name, I haven’t tested yet the workaround you provided…

    Thread Starter bendev

    (@bendev)

    Schedule View doesn’t support “Slide Down EventCard”, unfortunately.

    Ok, it’s a shame, thanks for the answer.

    Thread Starter bendev

    (@bendev)

    Ok, thanks for your return.
    So it’s a plugin issue, not only on my side (sometimes it’s because of specific theme context or any other plugin interaction).

    I’ve pushed further tests on the schedule view mode, and I got another issue with the user interaction “Slide down EventCard”. When I click on the event row, nothing happens. On the other hand, it works well with the user interaction “Lightbox popup window”.
    Hope this information will be usefull too ??

    Thread Starter bendev

    (@bendev)

    Hi, thanks for your answer.
    Finally I’ve made my own way depending on the most suitable solution for my context.
    So I create a function to be called by shortcode in any page or post.

    The shortcode can be used like this:
    [bhs-display-post-by-category-as-tab category=”your category ID”]

    Here is the details of the process if it can helps someone too:

    1) in functions.php of the theme or child theme:

    
    function bhs_scripts() {
    	wp_enqueue_script( 'openTab', get_template_directory_uri() . '/js/bhs-tab-custom.js', array(), '1.0.0', true );
    }
    add_action( 'wp_enqueue_scripts', 'bhs_scripts', 999 );
    
    function BenhancedStudio_display_post_by_category_as_tab($atts, $content = null) {
        extract(shortcode_atts(array(
            "nb" => '50',
            "orderby" => 'post_date',
            "order" => 'DESC',
            "category" => '1'
        ), $atts));
        
    	global $post;
        $tmp_post = $post;
        $myposts = get_posts('showposts='.$nb.'&orderby='.$orderby.'&category='.$category);
    
    	$counter = 0;
    	
    	$tabstitles = '<div class="tab">';
    	$tabcontents = "";
    	$out = '<div class="bhs-tab-globalcontainer">';
    	
    	foreach($myposts as $post){
    		setup_postdata( $post );
    		$counter++;
    		$tabstitles .= '<button class="tablinks" onclick="openTab(event, \''.the_title("","", false).'\')">'.the_title("","", false).'</button>';
    		
    		$content = get_the_content();  
    		$content = apply_filters('the_content', $content);
    		$content = str_replace(']]>', ']]>', $content);
    		$tabcontents .= '<div id="'.the_title("","", false).'" class="tabcontent">';
    		
    		// If you want the featured image ***********
    		$tabcontents .= '<div class="bhs-tab-globalcontainer-thumbail">'.get_the_post_thumbnail( $post->ID, 'full', array('class' => 'bhs-tab-globalcontainer-img aligncenter wp-post-image') ).'</div>';
    		// ******************************************
    
    		$tabcontents .= $content;
    		$tabcontents .= '</div>';
    	};
    	
    	$tabstitles .= '</div>';
    	
    	if ($counter == 0) {
    		$out = '<div><h2>Aucun article n&apos;a &eacute;t&eacute; trouv&eacute; pour la cat&eacute;gorie choisie...</h2></div>';
    	}
    	else {
    		$out .= $tabstitles;
    		$out .= $tabcontents;
    		$out .= '</div>';
    	}
    
        wp_reset_postdata();
        $post = $tmp_post;
        return $out;
    }
    add_shortcode("bhs-display-post-by-category-as-tab", "BenhancedStudio_display_post_by_category_as_tab");
    

    2) The javascript file bhs-tab-custom.js:

    
    function openTab(evt, tabName) {
      // Declare all variables
      var i, tabcontent, tablinks;
    
      // Get all elements with class="tabcontent" and hide them
      tabcontent = document.getElementsByClassName("tabcontent");
      for (i = 0; i < tabcontent.length; i++) {
        tabcontent[i].style.display = "none";
      }
    
      // Get all elements with class="tablinks" and remove the class "active"
      tablinks = document.getElementsByClassName("tablinks");
      for (i = 0; i < tablinks.length; i++) {
        tablinks[i].className = tablinks[i].className.replace(" active", "");
      }
    
      // Show the current tab, and add an "active" class to the link that opened the tab
      document.getElementById(tabName).style.display = "block";
      evt.currentTarget.className += " active";
    }
    
    window.onload = function(){
      document.getElementsByClassName("tablinks")[0].click();
    }
    

    3) CSS:

    
    .bhs-tab-globalcontainer {
    		display: inline-block;
    }
    
    .bhs-tab-globalcontainer .tab {
      float: left;
      border: 1px solid #ccc;
    	border-right: none;
      background-color: #f1f1f1;
      width: 20%;
      height: auto;
    }
    
    .bhs-tab-globalcontainer .tab button {
      display: block;
      background-color: inherit;
    	font-family: 'Open Sans', sans-serif;
      font-size: 14px;
      color: black;
      padding: 10px;
      width: 100%;
      outline: none;
      text-align: left;
      cursor: pointer;
      transition: 0.6s;
    	border-bottom: 1px solid #ccc;
    }
    
    .bhs-tab-globalcontainer .tab button:hover {
      background-color: #ddd;
    }
    
    .bhs-tab-globalcontainer .tab button.active {
      background-color: #888888;
    	color: #fff;
    }
    
    .bhs-tab-globalcontainer .tab button.active:after {
        position: absolute;
        top: 50%;
        margin-top: -8px;
        left: 100%;
        content: " ";
        height: 0;
        width: 0;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        border-left: 8px solid #888888;
        z-index: 100;
    }
    
    .bhs-tab-globalcontainer .tabcontent {
      float: left;
      padding: 0px 12px;
      border: 1px solid #ccc;
      width: 80%;
      height: auto;
    	padding: 24px;
    	background-color: #f5f5f5;
    }
    
    .bhs-tab-globalcontainer-thumbail {
    		margin-bottom: 25px;
        max-height: 350px;
        display: flex;
    }
    
    .bhs-tab-globalcontainer-img {
    		object-fit: contain;
    }
    

    With this sample, the display may not be fully responsive, so you can adjust it with CSS media, as it often depends on the theme responsivity.

    • This reply was modified 4 years, 2 months ago by bendev.
    • This reply was modified 4 years, 2 months ago by bendev.

    Hello,

    Is there someone, at least to give us information about this?

    Thread Starter bendev

    (@bendev)

    Oh, well, thanks a lot!!!!

    How did I missed that?

    It works like a charm, fully usable to switch a header banner depending on category slug and post tag, so great.

    This plug is so underrated even if it has already reached five stars.
    One of the greatest and most complete work I’ve seen on a wordpress plugin.

    Keep on going this way guys!!!!

    Ben from France.

    bendev

    (@bendev)

    Hi,

    I’m really interested in this update too, because I need to be able to défine which tab will be opened on first load depending on the link I’m coming from.

    Have you got any new information about it?

    Thread Starter bendev

    (@bendev)

    Here is the workaround I’ve made if it can help someone:

    function Hide_Empty_WidgetStickyPost() {
    	$sticky = get_option( 'sticky_posts' );
    	if ( isset( $sticky[0] ) ) {
    		// nothing is done if there is at least one sticky post
    	}
    	else
    	{
    		// if there is no sticky post, then then hide the widget
    		?>
    		<style type="text/css">#sticky-posts-2{display:none;}</style>
    		<?php
    	}
    }
    add_action( 'wp', 'Hide_Empty_WidgetStickyPost',99);
    Thread Starter bendev

    (@bendev)

    Hi,

    So you mean that I need to ask Post Grid Support team?
    Thanks for your time on this issue by the way ??

Viewing 15 replies - 1 through 15 (of 29 total)