skymaster

פורום התמיכה פתוח למשתמשים מנויים בלבד. יש להתחבר או להרשם כדי להוסיף דיון או תגובה בפורום.

פורום התמיכה הועבר
על מנת שנוכל לתת לכם שירות ותמיכה בצורה אישית יותר, פורום התמיכה הועבר למערכת טיקטים באמצעות האימייל. בימים הקרובים יסגר הפורום לכתיבת הודעות חדשות לחלוטין.

התגובות שלי בפורום

מוצגות 15 תגובות – 26 עד 40 (מתוך 40 סה״כ)
  • מאת
    תגובות
  • בתגובה ל: שליטה בלינקים שמפנים ל ..id=builder-section #52176

    skymaster
    משתתף

    היי בועז,
    הנה לינק שפועל לדוגמא

    אשמח אם תוכל להכווין אותי איפה הנמצא ה jquery / javascript שעלי לערוך?

    בתגובה ל: הגדרת הפוסטים באפשרות buldir #51935

    skymaster
    משתתף

    האם אתה מתכוון להוסיף את הבילדר לפוסטים?
    אם כן אז פעל לפי המדריך הבא:


    skymaster
    משתתף

    הוידג'ט שהתכוונתי אליו הוא:
    woo product by category שנמצא בבילדר

    השאלה היא היכן ממוקם קובץ העריכה שלו כדי שאוכל להגדיר את סוג התמונה שהוא מביא

    בתגובה ל: חיבור pojo forms עם mailchimp #50391

    skymaster
    משתתף

    החלטתי בסוף ליצור טופס דרך התוסף עצמו..
    תודה על התגובה

    בתגובה ל: קבצי תרגום ל woocommerce 2.5 #46351

    skymaster
    משתתף

    תודה המדריך עובד!

    עם זאת עדין יש מספר משפטים שלא תורגמו שהייתי רוצה לתרגם בעצמי לדוגמא:
    "חוות דעת

    אין עדיין חוות דעת.

    BE THE FIRST TO REVIEW “חגורת עור מעוצבת”"

    לאחר שהעליתי את הקבצים והתרגום נקלט נכנסתי לקובץ woocommerce-he_IL.po ואתרתי את השורה:

    #: templates/single-product-reviews.php:68
    msgid "Be the first to review “%s”"
    msgstr ""

    הכנסתי לתוכה תרגום ידני שלי:

    #: templates/single-product-reviews.php:68
    msgid "Be the first to review “%s”"
    msgstr "היו הראשונים לרשום חוות דעת על “%s”"

    שמרתי כמובן את העדכון שבצעתי.
    כשאר חזרתי לאתר ורעננתי את הדף (Ctrl +f5) ראיתי שהתרגום שלי לא נקלט..

    האם עשיתי משהו לא נכון?

    בתגובה ל: קבצי תרגום ל woocommerce 2.5 #46158

    skymaster
    משתתף

    שלום נועה,

    אכן שדרגתי אתמול את התבנית ל 2.5 וממה שאני רואה אין את קבצי התרגום הנ"ל לא ב:
    wp-content/languges/plugins
    ולא ב woocommerce/i18n/languges

    אשמח לעזרה בדחיפות..
    בברכה,
    דניאל

    בתגובה ל: עזרה בגלריות ב poza #45168

    skymaster
    משתתף

    אני יודע קצת קוד ויש לי גישה לשרת.
    אולי תוכלי לעזור ולהכווין אותי איזה קובץ עלי לערוך ואיזו שורת קוד לשנות?

    בברכה,
    דניאל

    בתגובה ל: custom post type עם page builder בתבנית titanium #42593

    skymaster
    משתתף

    אחלה הכנסתי, הwarning ירד 🙂
    אבל ה taxonomy_terms עדין לא מוצגים..

    אולי בגלל הצורה שבה הגדרתי אותם?

    // Add Pojo builder to posts
    function pojo_add_builder_in_posts() {
        add_post_type_support( 'post', array( 'pojo-page-format' ) );
    }
    add_action( 'init', 'pojo_add_builder_in_posts' );
    
    // WP trips Categories
    function build_taxonomies() {
        register_taxonomy( 'categories', 'trips', array( 'hierarchical' => true, 'label' => 'קטגוריות טיולים', 'query_var' => true, 'rewrite' => true ) );
    }
    add_action( 'init', 'build_taxonomies', 0 );
    
    // Add Pojo trips to smart page
    function pojo31106_add_post_type_to_smart_page( $post_types = array() ) {
    	$post_types[] = 'trips';
    	return $post_types;
    }
    add_filter( 'pf_format_content_list', 'pojo31106_add_post_type_to_smart_page' );
    
    // Add filters to trips smart page
    function pojo31106_smart_page_add_fields( $fields = array() ) {
    	$cpt = 'trips';
    
    	$fields[] = array(
    		'id' => 'content',
    		'type' => Pojo_MetaBox::FIELD_HIDDEN,
    		'std' => $cpt,
    	);
    	
    	// If you want filter by Taxonomy
    	//$fields[] = array(
    	 //'id' => 'taxonomy',
    	 //'type' => Pojo_MetaBox::FIELD_HIDDEN,
    	 //'std' => 'categories',
    	//);
    	
    	$fields[] = array(
    	 'id' => 'taxonomy_terms',
    	 'title' => __( 'Choose Category', 'pojo' ),
    	 'type' => Pojo_MetaBox::FIELD_TAXONOMY_TERM_CHECKBOX,
    	 'taxonomy' => 'categories',
    	);
    	
    	$fields[] = array(
    		'id' => 'display_type',
    		'title' => __( 'Select Content Layout', 'pojo' ),
    		'type' => Pojo_MetaBox::FIELD_SELECT,
    		'options' => array(
    			'' => __( 'Default', 'pojo' ),
    			'trips_three_columns' => __( 'גריד 3 עמודות', 'pojo' ),
    		),
    		'std' => '',
    	);
    	
    	// If you want to display Taxonomy
    	$fields[] = array(
    		'id'      => 'add_filter_by_category',
    		'title'   => __( 'Add Filter By Category', 'pojo' ),
    		'type'    => Pojo_MetaBox::FIELD_SELECT,
    		'options' => array(
    		  '' => __( 'Show', 'pojo' ),
    			'hide' => __( 'Hide', 'pojo' ),
    		),
    		'std' => '',
    	);
    	
    	return $fields;
    }
    add_filter( 'pf_list_posts_cpt-trips', 'pojo31106_smart_page_add_fields' );
    
    // display trips filters categories 
    	function pojo_before_content_loop( $display_type ) {
    		if ( 'trips' !== atmb_get_field( 'content' ) || 'hide' === atmb_get_field( 'add_filter_by_category' ) )
    			return;
    		
    		$taxonomy_terms = atmb_get_field( 'taxonomy_terms', false, Pojo_MetaBox::FIELD_CHECKBOX_LIST );
    		if ( empty( $taxonomy_terms ) )
    			return;
    		
    		$terms = get_terms( 'categories', array(
    			'include' => $taxonomy_terms,
    		) );
    		
    		if ( is_wp_error( $terms ) )
    			return;
    		
    		?><ul class="category-filters">
    			<li><a href="javascript:void(0);" data-filter="*" class="active"><?php _e( 'All', 'pojo' ); ?></a></li>
    			<?php foreach( $terms as $term ) : ?>
    			<li><a href="javascript:void(0);" data-filter=".filter-term-<?php echo esc_attr( $term->term_id ); ?>"><?php echo $term->name; ?></a></li>
    			<?php endforeach; ?>
    		</ul><?php
    	}
    add_action( 'pojo_before_content_loop', pojo_before_content_loop, 20 );

    ?

    בתגובה ל: custom post type עם page builder בתבנית titanium #42587

    skymaster
    משתתף

    מחקתי, כך זה נראה כעת:

    // display trips filters categories 
    	function pojo_before_content_loop( $display_type ) {
    		if ( 'trips' !== atmb_get_field( 'content' ) || 'hide' === atmb_get_field( 'add_filter_by_category' ) )
    			return;
    		
    		$taxonomy_terms = atmb_get_field( 'taxonomy_terms', false, Pojo_MetaBox::FIELD_CHECKBOX_LIST );
    		if ( empty( $taxonomy_terms ) )
    			return;
    		
    		$terms = get_terms( 'categories', array(
    			'include' => $taxonomy_terms,
    		) );
    		
    		if ( is_wp_error( $terms ) )
    			return;
    		
    		?><ul class="category-filters">
    			<li><a href="javascript:void(0);" data-filter="*" class="active"><?php _e( 'All', 'pojo' ); ?></a></li>
    			<?php foreach( $terms as $term ) : ?>
    			<li><a href="javascript:void(0);" data-filter=".filter-term-<?php echo esc_attr( $term->term_id ); ?>"><?php echo $term->name; ?></a></li>
    			<?php endforeach; ?>
    		</ul><?php
    	}
    add_action( 'pojo_before_content_loop' );

    רק שעכשיו הוא צועק עלי ש
    Warning: Missing argument 2 for add_action(), called in /home/coopflam/public_html/baobabtrips/wp-content/themes/titanium-child/functions.php on line 101 and defined in /home/coopflam/public_html/baobabtrips/wp-includes/plugin.php on line 457

    הסתכלתי שם וזה מה שרשום:

    
    function add_action($tag, $function_to_add, $priority = 10, $accepted_args = 1) {
    	return add_filter($tag, $function_to_add, $priority, $accepted_args);
    }
    
    בתגובה ל: custom post type עם page builder בתבנית titanium #42558

    skymaster
    משתתף

    שלי ותיקנתי את הפונקציה:

    
    // Add Pojo trips to smart page
    function pojo31106_add_post_type_to_smart_page( $post_types = array() ) {
    	$post_types[] = 'trips';
    	return $post_types;
    }
    add_filter( 'pf_format_content_list', 'pojo31106_add_post_type_to_smart_page' );
    
    // Add filters to trips smart page
    function pojo31106_smart_page_add_fields( $fields = array() ) {
    	$cpt = 'trips';
    
    	$fields[] = array(
    		'id' => 'content',
    		'type' => Pojo_MetaBox::FIELD_HIDDEN,
    		'std' => $cpt,
    	);
    	
    	// If you want filter by Taxonomy
    	//$fields[] = array(
    	 //'id' => 'taxonomy',
    	 //'type' => Pojo_MetaBox::FIELD_HIDDEN,
    	 //'std' => 'categories',
    	//);
    	
    	$fields[] = array(
    	 'id' => 'taxonomy_terms',
    	 'title' => __( 'Choose Category', 'pojo' ),
    	 'type' => Pojo_MetaBox::FIELD_TAXONOMY_TERM_CHECKBOX,
    	 'taxonomy' => 'categories',
    	);
    	
    	$fields[] = array(
    		'id' => 'display_type',
    		'title' => __( 'Select Content Layout', 'pojo' ),
    		'type' => Pojo_MetaBox::FIELD_SELECT,
    		'options' => array(
    			'' => __( 'Default', 'pojo' ),
    			'trips_three_columns' => __( 'גריד 3 עמודות', 'pojo' ),
    		),
    		'std' => '',
    	);
    	
    	// If you want to display Taxonomy
    	$fields[] = array(
    		'id'      => 'add_filter_by_category',
    		'title'   => __( 'Add Filter By Category', 'pojo' ),
    		'type'    => Pojo_MetaBox::FIELD_SELECT,
    		'options' => array(
    		  '' => __( 'Show', 'pojo' ),
    			'hide' => __( 'Hide', 'pojo' ),
    		),
    		'std' => '',
    	);
    	
    	return $fields;
    }
    add_filter( 'pf_list_posts_cpt-trips', 'pojo31106_smart_page_add_fields' );
    
    // display trips filters categories 
    	public function pojo_before_content_loop( $display_type ) {
    		if ( 'trips' !== atmb_get_field( 'content' ) || 'hide' === atmb_get_field( 'add_filter_by_category' ) )
    			return;
    		
    		$taxonomy_terms = atmb_get_field( 'taxonomy_terms', false, Pojo_MetaBox::FIELD_CHECKBOX_LIST );
    		if ( empty( $taxonomy_terms ) )
    			return;
    		
    		$terms = get_terms( 'categories', array(
    			'include' => $taxonomy_terms,
    		) );
    		
    		if ( is_wp_error( $terms ) )
    			return;
    		
    		?><ul class="category-filters">
    			<li><a href="javascript:void(0);" data-filter="*" class="active"><?php _e( 'All', 'pojo' ); ?></a></li>
    			<?php foreach( $terms as $term ) : ?>
    			<li><a href="javascript:void(0);" data-filter=".filter-term-<?php echo esc_attr( $term->term_id ); ?>"><?php echo $term->name; ?></a></li>
    			<?php endforeach; ?>
    		</ul><?php
    	}
    add_action( 'pojo_before_content_loop', array( &$this, 'pojo_before_content_loop' ), 20 );
    

    אבל עדין עדין מקבל…Parse error: syntax error, unexpected T_PUBLIC
    🙁

    בתגובה ל: custom post type עם page builder בתבנית titanium #42544

    skymaster
    משתתף

    היי יקיר,

    איתרתי את הפונקציה והוספתי ל functions.php באופן הבא:

    	public function pojo_before_content_loop( $display_type ) {
    		if ( 'trips' !== atmb_get_field( 'po_content' ) || 'hide' === atmb_get_field( 'po_add_filter_by_category' ) )
    			return;
    		
    		$taxonomy_terms = atmb_get_field( 'po_taxonomy_terms', false, Pojo_MetaBox::FIELD_CHECKBOX_LIST );
    		if ( empty( $taxonomy_terms ) )
    			return;
    		
    		$terms = get_terms( 'categories', array(
    			'include' => $taxonomy_terms,
    		) );
    		
    		if ( is_wp_error( $terms ) )
    			return;
    		
    		?><ul class="category-filters">
    			<li><a href="javascript:void(0);" data-filter="*" class="active"><?php _e( 'All', 'pojo' ); ?></a></li>
    			<?php foreach( $terms as $term ) : ?>
    			<li><a href="javascript:void(0);" data-filter=".filter-term-<?php echo esc_attr( $term->term_id ); ?>"><?php echo $term->name; ?></a></li>
    			<?php endforeach; ?>
    		</ul><?php
    	}
    add_action( 'pojo_before_content_loop', array( &$this, 'pojo_before_content_loop' ), 20 );

    כמובן שקיבלתי:
    Parse error: syntax error, unexpected T_PUBLIC

    מה עשיתי לא נכון?
    האם תהיה מוכן לעשות איתי חצי שעה team viewer ולעזור לי?
    אשמח גם לשלם לך עבור העזרה.

    בתגובה ל: custom post type עם page builder בתבנית titanium #42522

    skymaster
    משתתף

    תודה על ההכוונה הצלחתי להכניס את ה key הנכון ולהציג את התוכן בצורה של גריד 3 עמודת כפי שרציתי.

    ראיתי שבגלריות ניתן גם להחליט אם רוצים להציג פילטר של הקטגרויות:
    פילטר לפי קטגרויות
    הלכתי ל core/addons/galleries/classes/class-pojo-gallery-cpt.php
    והצלחתי ליצור ב CPT 'trips' שליבאמצעות העתקת הקוד:

    
    			$fields[] = array(
    			'id'      => 'add_filter_by_category',
    			'title'   => __( 'Add Filter By Category', 'pojo' ),
    			'type'    => Pojo_MetaBox::FIELD_SELECT,
    			'options' => array(
    				'' => __( 'Show', 'pojo' ),
    				'hide' => __( 'Hide', 'pojo' ),
    			),
    			'std' => '',
    		);
    

    הבעיה: אני כרגע לא מצליח להציג (בפרונט של הדף) את הפילטור לפי הקטגוריות היחודיות שיצרתי ל CPT שלי..
    יצרתי את הקטגוריות באמצעות הוספת הקוד שלמטה ל functions.php:

    
    add_action( 'init', 'build_taxonomies', 0 );
    
    function build_taxonomies() {
        register_taxonomy( 'categories', 'trips', array( 'hierarchical' => true, 'label' => 'קטגוריות טיולים', 'query_var' => true, 'rewrite' => true ) );
    }
    

    הייתי רוצה שיוצגו כפי שהן מוצגות בגלריות של פוגו':
    פילטר לפי קטגוריות בגלריות

    
    
    
    בתגובה ל: custom post type עם page builder בתבנית titanium #42390

    skymaster
    משתתף
    תגובה זו סומנה כפרטית.
    בתגובה ל: הסרת פלוס והסרת "פורסם ב…" #39894

    skymaster
    משתתף

    תודה עובד לי עם ה css

    שאלה שקשורה – כיצד מבטלים את הרקע האדום שעליו היה איקון ה"פלוס" כאשר עושים הובר לתמונה?


    skymaster
    משתתף

    הסתדרתי טנקס, אפשר לסגור

מוצגות 15 תגובות – 26 עד 40 (מתוך 40 סה״כ)