Forum Replies Created

Viewing 30 posts - 1 through 30 (of 234 total)
  • Author
    Posts
  • in reply to: Enfold Showcase #739106

    Thank you Yigit.. :)

    Nice to hear @freepixelweb. If you have any questions, please let me know.. :)

    in reply to: Enfold Showcase #739001

    This is my demo for my new plugin called “Enfold – Nested Shortcodes”. ( Yes, it does exactly what it says )

    I am more developer than a designer, but maybe you like it anyway.. So the page and the plugin.. : )

    https://ensc.indikator-design.de

    in reply to: Extend support? #555597

    Hello jancecile,

    it would be nice, if you post their answer here. I think it’s an interesting topic for others, too.

    Thank you

    in reply to: Extend support? #555452

    I wanna know more, too. Purchased all my licenses before envato changed the rules..

    in reply to: Envato Support Policy #501698

    Hey Kriesi,

    it was more a joke-question cause I wanna get new answers from this topic..

    What`s up with bug-related support for new versions after this period?

    in reply to: Envato Support Policy #501670

    Does that mean, that I get 2 years of support for my 4 licenses? : )

    in reply to: Enfold Showcase #471760

    Hey @Adenadoume,

    your site – – http://herseinspired.com – – generates an js-alert: Error to load this target: #wcmd_modal

    Take a short look at this musicplayer . Perhaps it is a good solution for you.. It works with continuous playing (just a small break as long as a page load) and playlists.. I use it on 2 client-sides and it works nice so far..

    in reply to: Forms #467372

    Hey Ismael,

    I’m really not sure why it happens, cause normally it should work. You define this variable inside a conditional before this one..

    Below you can find the link where it happens. I don’t think that it is a plugin conflict, cause most of our plugins are deactivated at this page with Plugin Organizer..

    Thank you and bast regards,
    Bruno

    in reply to: customize search #466713

    In this line you just include the posttypes you wanna need in your search:

    $query->set( 'post_type', array( '' );

    For example: if you just wanna show your blog-posts and your portfolio-posts in your search results, you have to insert this and nothing else:

    $query->set( 'post_type', array( 'post', 'portfolio'  );
    'post_type' => array( 'post', 'portfolio'),

    In your case you want to exclude the pages from the results, so you do not need to include ‘page’ in your arrays (Normally ‘Home’ is a page, or ‘Contact’ or anything like this. Here is just the post_type –> ‘page’ )

    I have no idea what you mean with “w2dc-listing”. Is this a post_type of a plugin you use? If not, you can’t include it.

    Pleaser note that you just have to insert id’s in your exclusions, if you really need to exclude them ( array(1,2,3,4,5) ). For example: if you use a portfolio-entry for the ajax-functions inside a gallery, but you sign a redirect on it, you don`t want to see this special post in the results. In this case you have to open this special post and extract the id out of the permalink. For example this post has the id 33 and another post has 56, then you need to define this:

    $query->set( 'post__not_in', array(33,56) );
    'post__not_in' => array(33,56),
    in reply to: customize search #466710

    see the next post (database connection fails)

    in reply to: customize search #466693

    You’re welcome Yigit : )

    Best regards

    in reply to: customize search #466692

    Hallo Alexander,

    i want to stay with enfold search.

    Das ist genau was du unter dem Link finden kannst:

    https://kriesi.at/support/topic/exclude-pages-and-posts-by-id-from-ajax-search-results/#post-460296

    Es handelt sich um eine Anpassung der eigenen Suchfunktion von Enfold.

    in reply to: customize search #466689

    Hey wiwaldi,

    perhaps this can help you. I have had the same exercise a few days ago. It was possible to figure it out. You just have to add this to your theme’s functions.php. Works fine and you can adjust it to your needs..

    https://kriesi.at/support/topic/exclude-pages-and-posts-by-id-from-ajax-search-results/#post-460296

    in reply to: Problems with sticky fullwidth sub menu on tablets #464553

    This seems to fix it:

    /*Fix sticky Submenu on mobile*/
    .html_boxed.avia_mobile #top .av-submenu-container {position: absolute !important; top: auto !important;}

    Thank you and best regards

    in reply to: Exclude pages and posts by id from ajax search results #460296

    That’s it.. thanks Günter!

    If someone else need it, this is the complete code to add it to your childtheme’s functions.php to change search results for normal search index and ajax search results (navbar):

    // Use search just for certain post-types and exclude posts by id
    if ( ! function_exists( 'bb_filter_search_results' ) )
    {
    	add_action( 'pre_get_posts', 'bb_filter_search_results' );
    	function bb_filter_search_results( $query )
    	{
    		if ( ! $query->is_admin && $query->is_search )
    		{
    			$query->set( 'post_type', array( 'post', 'portfolio', 'document', 'your_custom_post_type' ) );
    			$query->set( 'post__not_in', array(1,2,3,4,5) );
    		}
    		return $query;
    	}
    }
    
    if ( ! function_exists( 'bb_filter_ajax_search_results' ) )
    {
    	add_filter('avf_ajax_search_query', 'bb_filter_ajax_search_results', 10, 1);
    	function bb_filter_ajax_search_results( $search_parameters )
    	{
    		$defaults = array('numberposts' => 5, 'post_type' => array( 'post', 'portfolio', 'document', 'your_custom_post_type' ), 'post__not_in' => array(1,2,3,4,5), 'post_status' => 'publish', 'post_password' => '', 'suppress_filters' => false);
    		$_REQUEST['s'] = apply_filters( 'get_search_query', $_REQUEST['s']);
    		$search_parameters = array_merge( $defaults, $_REQUEST );
    		return $search_parameters;
    	}
    }

    For both functions you have to change the values to your needs inside the arrays for “post_type” and “post_not_in”.

    post_type –> include the post-types you wanna include to your search results
    post_not_in –> exclude the posts by id you don’t want in your search results

    Please note, that pages are not included. For this you must add – ‘page’ – to post_type.

    If you use bbPress and ajax search form form navbar for forum-search, you have to change this:

    if ( ! $query->is_admin && $query->is_search )

    with this:

    if ( ! strpos($_SERVER["REQUEST_URI"], 'forums') && ! strpos($_SERVER["REQUEST_URI"], 'bbp_search') && ! $query->is_admin && $query->is_search )

    If you use another slug than “forums”, than you have to change it to your slug.

    Thank you and best regards
    Bruno

    • This reply was modified 9 years, 5 months ago by IndikatorDesign. Reason: Config the search for forums also
    in reply to: Exclude pages and posts by id from ajax search results #460133

    It seems that is needed to manipulate “function avia_ajax_search()” inside functions-enfold.php on line 131 –>

    // $defaults = array('numberposts' => 5, 'post_type' => 'any', 'post_status' => 'publish', 'post_password' => '', 'suppress_filters' => false);
    $defaults = array('numberposts' => 5, 'post_type' => array( 'post', 'portfolio', 'document' ), 'post__not_in' => array( {post-ids comma separated} ), 'post_status' => 'publish', 'post_password' => '', 'suppress_filters' => false);

    This works, but is there a better way, perhaps with a filter ?

    in reply to: Adding offset value to smooth scrolling anchor links #434032

    Hey Phet,

    it seems you just can do that, if you modify the file “avia.js”. You need to redo it after every Enfold-update.

    Go to: – /enfold/js/avia.js – and open it.

    Search the function ( ” $.fn.avia_smoothscroll = function(apply_to_container) ” ). It starts round about at line 700.

    There you need to find this condition –> if(container.length)

    change the following code:

    						if(container.length)
    						{
    							var cur_offset = the_win.scrollTop(),
    								container_offset = container.offset().top,
    								target =  container_offset - fixedMainPadding,
    								hash = window.location.hash,
    								hash = hash.replace(/\//g, ""),
    								oldLocation=window.location.href.replace(hash, ''),
    								newLocation=this,
    								duration= data.duration || 1200,
    								easing= data.easing || 'easeInOutQuint';

    against this:

    						if(container.length)
    						{
    							var usersviewportWidth = $(window).width();
    
    							if(usersviewportWidth > 767 ){
    								var myOffset = 75;
    							} else {
    							 	var myOffset = 0;
    							}
    
    							var cur_offset = the_win.scrollTop(),
    								container_offset = container.offset().top,
    								target =  container_offset - fixedMainPadding + myOffset,
    								hash = window.location.hash,
    								hash = hash.replace(/\//g, ""),
    								oldLocation=window.location.href.replace(hash, ''),
    								newLocation=this,
    								duration= data.duration || 1200,
    								easing= data.easing || 'easeInOutQuint';

    Please note the line: “var myOffset = 75;”

    This value depends on your settings and perhaps you need to adjust it. If you change the breakpoint for mobile-menu, you have also to change this (767) –> if(usersviewportWidth > 767 ) — to the value your breakpoint is set.

    Perhaps in a future update it is possible to adjust this from the options-panel.

    Good luck, best regards

    Sure it’s plugin related. They create a new sort of comments.

    Thank you and best regards
    Bruno

    Here is a var_dump from one of it:

    $comments array (3)
     object stdClass {38}
    	public comment_ID -> string(4) "2975"
    	public comment_post_ID -> string(4) "2924"
    	public comment_author -> string(15) "ActionScheduler"
    	public comment_author_email -> string(0) ""
    	public comment_author_url -> string(0) ""
    	public comment_author_IP -> string(0) ""
    	public comment_date -> string(19) "2015-04-21 19:08:58"
    	public comment_date_gmt -> string(19) "2015-04-21 17:08:58"
    	public comment_content -> string(14) "action created"
    	public comment_karma -> string(1) "0"
    	public comment_approved -> string(1) "1"
    	public comment_agent -> string(15) "ActionScheduler"
    	public comment_type -> string(10) "action_log"
    	public comment_parent -> string(1) "0"
    	public user_id -> string(1) "0"
    	public ID -> string(4) "2924"
    	public post_author -> string(1) "0"
    	public post_date -> string(19) "2015-04-30 15:06:39"
    	public post_date_gmt -> string(19) "2015-04-30 13:06:39"
    	public post_content -> string(45) "{"user_id":21,"subscription_key":"2880_2763"}"
    	public post_title -> string(30) "scheduled_subscription_payment"
    	public post_excerpt -> string(0) ""
    	public post_status -> string(7) "pending"
    	public comment_status -> string(4) "open"
    	public ping_status -> string(4) "open"
    	public post_password -> string(0) ""
    	public post_name -> string(0) ""
    	public to_ping -> string(0) ""
    	public pinged -> string(0) ""
    	public post_modified -> string(19) "2015-04-30 15:06:39"
    	public post_modified_gmt -> string(19) "2015-04-30 13:06:39"
    	public post_content_filtered -> string(0) ""
    	public post_parent -> string(1) "0"
    	public guid -> string (68) "http://our-domain.de/?post_type=scheduled-actio …"
    	http://our-domain.de/?post_type=scheduled-action&p=2924
    	public menu_order -> string(1) "0"
    	public post_type -> string(16) "scheduled-action"
    	public post_mime_type -> string(0) ""
    	public comment_count -> string(1) "1"

    Hello,

    I think Scheduled Actions are very similar to cron-jobs. You can use them in plugins with

    <?php wp_schedule_event($timestamp, $recurrence, $hook, $args); ?>

    Woo – Subscriptions and Woo – Follow up Emails use them to handle their recurring actions.

    If you install a plugin with this hook, below your “Tools” – Tab in the admin menu automatically appears a new section called “Scheduled Tabs”. It’s a new posttype similar to comments, but as you can see in the screenshot, they handle with sensitive datas.

    If you don’t filter them out in a similar way I described in my first post, they appear in your combo-widget and anybody can see them. I think no one want this.

    If you var_dump the output you can see that for every message the author for this widget is “ActionScheduler”. So I think it is a good way to filter them out.

    Thank you, best regards
    Bruno

    Hello Ismael,

    I’m a little bit confused now. This isn’t a feature request. I’ve sent you a fix for a given problem. I don’t think that anybody need messages from WordPress-ActionScheduler inside it`s comment-widget.
    Inside ActionScheduler-Messages there are Infos about payments (Woo Subscriptions) or messages from sent emails to clients with Follow-Up-Emails and Sensei.

    Thank you, best regards.

    Hey Elliot!

    Sure I can do this, but I think it’s an improvement for other users too, if there are no tasks from ActionScheduler inside their comment-widget. So I think it’s better just to implement it inside the theme itself..?

    Thank you, best regards,

    Bruno

    in reply to: Hide captcha's question mark input:focus ?? #420556

    Hello @vernontrent,
    hello Yigit,

    that’s really easy : )

    Thanks for it!

    Best regards

    Hello Ismael,

    it happens inside the admin area, not at frontend. I thought perhaps anyone of your team knew something about it.

    I doesn’t contact the author yet. But I found this thread. There is a open ticket for it: https://github.com/woothemes/woocommerce/issues/7726

    So I wait how they solve the problem.

    Thanks

    This reply has been marked as private.
    in reply to: CSS Header Problem on iOS #369361
    This reply has been marked as private.
    in reply to: Some issues after update.. #364028

    Hey Josue,

    I´ve also added this to my child-themes-style.css

    @media only screen and (min-width: 990px) {
    .html_header_top.html_header_sticky #top #wrap_all #main {padding-top: 245px !important;}
    }
    
    @media only screen and (min-width: 768px) and (max-width: 989px) {
    	.html_header_top.html_header_sticky #top #wrap_all #main {padding-top: 195px !important;}
    }

    Now it works perfect! Thank you very much!

    Best regards
    Bruno

    in reply to: Some issues after update.. #363440
    This reply has been marked as private.
    in reply to: Moderator custom image and css #362760

    It´s exactly for what I´ve searched and it works like a charm.. : ) Thanks for this!!

    Best regards,
    Bruno

    in reply to: Some issues after update.. #362593
    This reply has been marked as private.
Viewing 30 posts - 1 through 30 (of 234 total)