Palmtree

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 24 total)
  • Author
    Posts
  • in reply to: Change date picker output #1358290
    Palmtree
    Participant

    This reply is private.

    in reply to: Change date picker output #1357665
    Palmtree
    Participant

    This reply is private.

    in reply to: Change date picker output #1357250
    Palmtree
    Participant

    This reply is private.

    • This reply was modified 8 years, 7 months ago by Palmtree.
    in reply to: Change date picker output #1356656
    Palmtree
    Participant

    Hi András,

    You are right, I have modified a bit. Now I went back and used the original code shown below… And still doesn’t work. I pasted into theme’s functions.php

    Is there something I am still missing here? I appreciate if you could take a look at my code.

    add_action( 'wp_footer', function() {
        echo <<<HTML
            <script type="text/javascript">
                if ( 
                    'function' === typeof jQuery
                    && 'function' === typeof jQuery.fn.bootstrapDatepicker
                ) {
                    jQuery.fn.bootstrapDatepicker.dates.jp['titleFormat'] = 'yyyy年m月';
                }
            </script>
    HTML;        
    }, 1000 );
    in reply to: Change date picker output #1356522
    Palmtree
    Participant

    Thank you Barry!

    I have put following code but the screen went complete white…

    add_action( 'wp_footer', function() {
        echo '
            <script type="text/javascript">
                if ( 
                    'function' === typeof jQuery
                    && 'function' === typeof jQuery.fn.bootstrapDatepicker
                ) {
                    jQuery.fn.bootstrapDatepicker.dates.jp['titleFormat'] = 'yyyy年m月';
                }
            </script>';
    }, 1000 );

    Am I missing something?

    in reply to: Change date picker output #1354738
    Palmtree
    Participant

    András thank you for looking at this. I look forward to hearing from you.

    in reply to: Change date picker output #1353804
    Palmtree
    Participant

    This reply is private.

    in reply to: Hide Submenu via functions.php #1319239
    Palmtree
    Participant

    Hello Shelby,
    Thanks for helping me out:)
    I didn’t notice there are two custom post type “events and venue”.

    Have a good day!

    in reply to: Hide Submenu via functions.php #1317162
    Palmtree
    Participant

    Hi Shelby,

    Thanks for your reply:-)
    Yes, I’ve read it but code below (referred from the article)

    
    function tribe_remove_venue_from_events( $default_types ) {
    	if ( ! is_array( $default_types ) || empty( $default_types ) ) {
    		return $default_types;
    	}
    	if ( ( $key = array_search( 'tribe_venue', $default_types ) ) !== false ) {
    		unset( $default_types[ $key ] );
    	}
    	return $default_types;
    }
    
    add_filter( 'tribe_events_register_default_linked_post_types', 'tribe_remove_venue_from_events');

    can only remove “venue” from the main event editing area not from the submenu on the left-hand side.
    Without adding the filter above, I have actually used CSS to hide it but submenu is difficult to hide without using “function remove_menu and remove_submenu_page”

    It would be appreciated if you could look into it. Apart from tribe_venue, the piece of code I’ve pasted in my original post work.

    • This reply was modified 8 years, 9 months ago by Palmtree.
    Palmtree
    Participant

    Yes, it solves the issue!!

    Thank you so much:)

    Palmtree
    Participant

    I have found that the <?php echo tribe_get_organizer( $organizer ) ?> can output organizer’s name only.

    Now what I need is the way to print “URL”. <?php echo tribe_get_organizer_website_link( $organizer ) ?> this piece of code output both “a href link and url text”. I just want code to print URL text only.

    Please help…

    • This reply was modified 8 years, 9 months ago by Palmtree.
    Palmtree
    Participant

    I have found that the “organizer.php” (located in the-events-calendar > src > views > modules > meta) plays the role for the meta information output where I want to modify..

    On the line 35
    It says <?php echo tribe_get_organizer_link( $organizer ) ?>.
    I have changed to <?php echo tribe_get_organizer_website_link( $organizer ) ?>
    The website URL links are now changed to the way I want to but I want the output text <a href="urllink">OUTPUT TEXT</a> to be not the URL address but actual organizer’s name.

    Also I’ve noticed when organizer is just one, the plugin output meta information little bit differently which email, phone and weblinks are all out before going into the organizer’s page. I want this single organizer’s output to be the same as multiple organizer’s output as well. I have commented out from line 39 to 72 where it says not multiple to do this. It works..

    It would be really appreciated if you could help a bit further.
    Thank you.

    Palmtree
    Participant

    Since you cannot provide solution to change how the next / previous month is loaded (determine how far from the top of the website screen), I have just disabled the ajax load by following the link.

    Disable AJAX in Month View

    This way I can at least load the calendar from very top of the screen every time the (previous/current/next) month is displayed.

    Thanks.

    Palmtree
    Participant

    Hi Cliff,

    To share files online, I need to know your email address… otherwise it isn’t private. I don’t want to disclose screencapture or shot in public… I have google drive and dropbox but both works in the same principle.

    By the way, did you read my previous message? I explained bit differently. You did not still understand what I want???? I just want to know if it is possible to load the page from very top of the website via ajax. I am sure you know how to do this.

    Palmtree
    Participant

    This reply is private.

    • This reply was modified 8 years, 10 months ago by Palmtree.
Viewing 15 posts - 1 through 15 (of 24 total)