Peter Hoppe

Forum Replies Created

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • in reply to: Map View not working (JS error) #961646
    Peter Hoppe
    Participant

    The theme developer ended up fixing the issue with a patch for the theme. Contact your theme author (looks like you’re using Avada through Themeforest).

    in reply to: Map View not working (JS error) #953255
    Peter Hoppe
    Participant

    Thanks George. Any luck yet?

    in reply to: Map View not working (JS error) #951229
    Peter Hoppe
    Participant

    Yes, sir. I really appreciate you guys helping get this fixed. Thanks again.

    in reply to: Map View not working (JS error) #951218
    Peter Hoppe
    Participant

    This reply is private.

    in reply to: Map View not working (JS error) #950902
    Peter Hoppe
    Participant

    This reply is private.

    in reply to: Map View not working (JS error) #950900
    Peter Hoppe
    Participant

    Hey George, the plugin developer said he did test the code in chunks and that the code pasted above is the snippet causing problems. Without that bit of code, the map view works fine. But with it, it does not. He said this snippet shouldn’t affect the plugin, but somehow it is. Any ideas?

    I forgot to mention it before, but yes, I’ve tested the code selectively, and the code I’ve pasted before is causing the problem in the plugin. Without this part all works fine. – Plugin developer

    in reply to: Map View not working (JS error) #950532
    Peter Hoppe
    Participant

    Thanks George. I sent this thread to the theme author and he came back with this:

    Indeed, the theme extends Array prototype with the following code, as stated in the last post of the topic you’ve shown

           Array.prototype.unique = function() {
               return this.filter(function(value, index, array) {
                   return array.indexOf(value, index + 1) < 0;
               });
           };
    

    but it should not affect plugin’s script. I was suspecting some conflict, so I’ve changed name of the function, but it’s the same. I don’t know what happens in the plugin, which causes the mess. I’m sorry we send you back and forward, but please consult what I wrote with the plugin support.

    in reply to: Map View not working (JS error) #949978
    Peter Hoppe
    Participant

    Ok, I added that line of code to my wp-config.php file.

    in reply to: Map View not working (JS error) #949850
    Peter Hoppe
    Participant

    This reply is private.

    • This reply was modified 11 years, 1 month ago by George.
    in reply to: Hide Events Tab from Subscribers' WP Dashboard/Admin #947914
    Peter Hoppe
    Participant

    Yeah, I prefer not to keep adding plugins when a little code to functions.php will do the trick. Here’s what I added for now – it’s not perfect but hides the tab for now. Is there a way I can improve this? While this code hides the tab, there is still a small gap between the Dashboard and Profile tabs.

    function scents_remove_events() {
    if ( !current_user_can( ‘manage_options’ ) ) {
    remove_menu_page( ‘edit.php?post_type=tribe_events’ );
    }
    }
    add_action( ‘admin_init’, ‘scents_remove_events’ );

    in reply to: Hide Events Tab from Subscribers' WP Dashboard/Admin #947804
    Peter Hoppe
    Participant

    FYI: I have found the tutorial for hiding the Events tab from the Admin Top Bar, but nothing for removing it from the sidebar (next to Profile and Dashboard).

    Peter

Viewing 11 posts - 1 through 11 (of 11 total)