Title: bendev's Replies | WordPress.org

---

# bendev

  [  ](https://wordpress.org/support/users/bendev/)

 *   [Profile](https://wordpress.org/support/users/bendev/)
 *   [Topics Started](https://wordpress.org/support/users/bendev/topics/)
 *   [Replies Created](https://wordpress.org/support/users/bendev/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/bendev/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/bendev/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/bendev/engagements/)
 *   [Favorites](https://wordpress.org/support/users/bendev/favorites/)

 Search replies:

## Forum Replies Created

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

1 [2](https://wordpress.org/support/users/bendev/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/bendev/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Inactive Logout] redirection logout doesn’t display Session Logout Message first?](https://wordpress.org/support/topic/redirection-logout-doesnt-display-session-logout-message-first/)
 *  Thread Starter [bendev](https://wordpress.org/support/users/bendev/)
 * (@bendev)
 * [3 years ago](https://wordpress.org/support/topic/redirection-logout-doesnt-display-session-logout-message-first/#post-16938249)
 * 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!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Inactive Logout] redirection logout doesn’t display Session Logout Message first?](https://wordpress.org/support/topic/redirection-logout-doesnt-display-session-logout-message-first/)
 *  Thread Starter [bendev](https://wordpress.org/support/users/bendev/)
 * (@bendev)
 * [3 years ago](https://wordpress.org/support/topic/redirection-logout-doesnt-display-session-logout-message-first/#post-16932867)
 * Hi,
   Thanks for your answer, and for considering it, this would be a great add
   for your plugin flexibility.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Kadence Security – Password, Two Factor Authentication, and Brute Force Protection] Weekly report sent several times instead of one time](https://wordpress.org/support/topic/weekly-report-sent-several-times-instead-of-one-time/)
 *  Thread Starter [bendev](https://wordpress.org/support/users/bendev/)
 * (@bendev)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/weekly-report-sent-several-times-instead-of-one-time/#post-16786305)
 * [@shanedelierrr](https://wordpress.org/support/users/shanedelierrr/) : mail sent
   from the sales team form
    -  This reply was modified 3 years, 2 months ago by [bendev](https://wordpress.org/support/users/bendev/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Kadence Security – Password, Two Factor Authentication, and Brute Force Protection] Weekly report sent several times instead of one time](https://wordpress.org/support/topic/weekly-report-sent-several-times-instead-of-one-time/)
 *  Thread Starter [bendev](https://wordpress.org/support/users/bendev/)
 * (@bendev)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/weekly-report-sent-several-times-instead-of-one-time/#post-16786282)
 * 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 :
 *     ```wp-block-code
       : [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 :
 * ![](https://i0.wp.com/www.benhanced-studio.org/wp-content/uploads/2023/06/mail_body_content_error.
   png?ssl=1)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Kadence Security – Password, Two Factor Authentication, and Brute Force Protection] Weekly report sent several times instead of one time](https://wordpress.org/support/topic/weekly-report-sent-several-times-instead-of-one-time/)
 *  Thread Starter [bendev](https://wordpress.org/support/users/bendev/)
 * (@bendev)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/weekly-report-sent-several-times-instead-of-one-time/#post-16785719)
 * HI [@shanedelierrr](https://wordpress.org/support/users/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 3 years, 2 months ago by [bendev](https://wordpress.org/support/users/bendev/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Kadence Security – Password, Two Factor Authentication, and Brute Force Protection] Weekly report sent several times instead of one time](https://wordpress.org/support/topic/weekly-report-sent-several-times-instead-of-one-time/)
 *  Thread Starter [bendev](https://wordpress.org/support/users/bendev/)
 * (@bendev)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/weekly-report-sent-several-times-instead-of-one-time/#post-16774697)
 * 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:
 *     ```wp-block-code
       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:
 *     ```wp-block-code
       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" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://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:
 *     ```wp-block-code
        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 href="https://www.a-d-c.fr/wp-admin/admin.php?page=itsec" 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…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Kadence Security – Password, Two Factor Authentication, and Brute Force Protection] Weekly report sent several times instead of one time](https://wordpress.org/support/topic/weekly-report-sent-several-times-instead-of-one-time/)
 *  Thread Starter [bendev](https://wordpress.org/support/users/bendev/)
 * (@bendev)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/weekly-report-sent-several-times-instead-of-one-time/#post-16628424)
 * 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…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[EventON - Events Calendar] SCHEDULE VIEW – issues and question](https://wordpress.org/support/topic/schedule-view-issues-and-question/)
 *  Thread Starter [bendev](https://wordpress.org/support/users/bendev/)
 * (@bendev)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/schedule-view-issues-and-question/#post-16555954)
 * > Schedule View doesn’t support “Slide Down EventCard”, unfortunately.
 * Ok, it’s a shame, thanks for the answer.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[EventON - Events Calendar] SCHEDULE VIEW – issues and question](https://wordpress.org/support/topic/schedule-view-issues-and-question/)
 *  Thread Starter [bendev](https://wordpress.org/support/users/bendev/)
 * (@bendev)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/schedule-view-issues-and-question/#post-16552525)
 * 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 😉
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Display posts as tab](https://wordpress.org/support/topic/display-posts-as-tab/)
 *  Thread Starter [bendev](https://wordpress.org/support/users/bendev/)
 * (@bendev)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/display-posts-as-tab/#post-13458316)
 * 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 5 years, 10 months ago by [bendev](https://wordpress.org/support/users/bendev/).
    -  This reply was modified 5 years, 10 months ago by [bendev](https://wordpress.org/support/users/bendev/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Tabs Responsive - With WooCommerce Product Tabs Extension] Specific tab set to be open by default in first load](https://wordpress.org/support/topic/specific-tab-set-to-be-open-by-default-in-first-load/)
 *  [bendev](https://wordpress.org/support/users/bendev/)
 * (@bendev)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/specific-tab-set-to-be-open-by-default-in-first-load/#post-12203453)
 * Hello,
 * Is there someone, at least to give us information about this?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ad Inserter - Ad Manager & AdSense Ads] Use Exception for Category Page?](https://wordpress.org/support/topic/use-exception-for-category-page/)
 *  Thread Starter [bendev](https://wordpress.org/support/users/bendev/)
 * (@bendev)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/use-exception-for-category-page/#post-12145387)
 * 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.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Tabs Responsive - With WooCommerce Product Tabs Extension] Specific tab set to be open by default in first load](https://wordpress.org/support/topic/specific-tab-set-to-be-open-by-default-in-first-load/)
 *  [bendev](https://wordpress.org/support/users/bendev/)
 * (@bendev)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/specific-tab-set-to-be-open-by-default-in-first-load/#post-12140246)
 * 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?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ultimate Posts Widget] Only sticky-post filter: widget is still displayed when there are no sticky post](https://wordpress.org/support/topic/only-sticky-post-filter-widget-is-still-displayed-when-there-are-no-sticky-post/)
 *  Thread Starter [bendev](https://wordpress.org/support/users/bendev/)
 * (@bendev)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/only-sticky-post-filter-widget-is-still-displayed-when-there-are-no-sticky-post/#post-10999892)
 * 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);
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Tabs Responsive - With WooCommerce Product Tabs Extension] Tab content is not well displayed on Tab change](https://wordpress.org/support/topic/tab-content-is-not-well-displayed-on-tab-change/)
 *  Thread Starter [bendev](https://wordpress.org/support/users/bendev/)
 * (@bendev)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/tab-content-is-not-well-displayed-on-tab-change/page/2/#post-10997017)
 * 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)

1 [2](https://wordpress.org/support/users/bendev/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/bendev/replies/page/2/?output_format=md)