Forum Replies Created

Viewing 15 replies - 1 through 15 (of 39 total)
  • Thread Starter jorrit91

    (@jorrit91)

    Wow, you’re a life saver! I actually had a custom function declining roles other than administrators access to the admin dashboard. That was it.

    Thanks a lot!

    Thread Starter jorrit91

    (@jorrit91)

    Hi Konstantinos,

    thanks for your detailled explanation! I’ve gone for a different approach, it’s often pretty funny to discover that there are a lot of ways to solve a problem 😉

    My client currently has an offline calendar. Employees just fill in when they want to use what. I ended up making actually just that, but then online. The Events Calendar plugin creates a custom post type called “Events” and displays all posts on the front-end in a calendar-view. I’ve connected The Events Calendar with User Frontend Pro, so employees can easily create new “Events” from the front-end, these events will immediately be visible in the calendar view… Exactly what they wanted!

    Thanks for you tips, and if anyone finds this helpful: enjoy yourself!

    • This reply was modified 8 years, 11 months ago by jorrit91.
    Thread Starter jorrit91

    (@jorrit91)

    I’m sorry, you’re completely right. Got it all working now, thanks a bunch!

    Thread Starter jorrit91

    (@jorrit91)

    That doesn’t seem to be working:

    Any idea why?

    Thread Starter jorrit91

    (@jorrit91)

    DaDoubleFuq, now it stopped working again… I have no idea where to start guys, can anyone help?

    Thread Starter jorrit91

    (@jorrit91)

    Dafuq, I’ve restarted the VPS and everything is working again. But I still don’t know what caused the problem… Any suggestions?

    Thread Starter jorrit91

    (@jorrit91)

    You guys… Please help me, I’ve created a XML that can be spidered by a big dutch Real Estate website, and I can’t reach it like this…

    Thread Starter jorrit91

    (@jorrit91)

    This is what I’ve tried:

    Check this link. I followed this comment of the best answer:

    • This worked for me too, only had to change it in the section of apache2.conf for the location of my server files, /var/www in my case.

    This didn’t have any effect on my site.

    I’ve searched the server for some other files where “AllowOverride None” was set, and I’ve found some, but this is unknown territory for me, I’m scared of just editing lines I don’t understand…

    Thread Starter jorrit91

    (@jorrit91)

    Oh. Well. Shit.
    I’m thinking it must be some kind of js conflict with another js file right? I’ve tried to enqueue the necessary bootstrap scripts to make the tabs bootstrap style, which worked great on desktop, but on touch devices/in touch device mode it didn’t work.
    Do you have any idea or maybe know someone who can help?

    Thread Starter jorrit91

    (@jorrit91)

    Hi Andrew, I’ve tried it with the minified version of the file… Not working either. You can check it here. Just to check whether we’re on the same page, the problem is that the tabs won’t open on touch devices. The odd scroll animation isn’t my main concern, I can live with that. Have you ever seen a problem like this? It’s so annoying..!

    Thread Starter jorrit91

    (@jorrit91)

    Hi Andrew, here I am again..:(
    So, I’ve recorded my screen to show you what happens when I toggle Device Mode in Chrome. You can check the stuff that’s happening (or not-happening) here. So, your code doesn’t seem to do anything when I’m in “Touch Device Mode”, I still can’t open the tabs. In the video you can see me trying it two times. One time without refreshing the page after toggling Device Mode, after that I refresh the page and enter the code again.

    So, did you get to this step:
    https://ww.wp.xz.cn/support/topic/jquery-tabs-not-working-on-mobile?replies=29#post-8241635

    Yes, I’ve tried to enter the code in

    jQuery(document).ready(function() {
    	jQuery( "#listing-tabs" ).tabs();
    	jQuery( "#inquiry-form" ).validate();
    	jQuery( ".iframe-wrap" ).fitVids();
    });

    So this was the result:

    jQuery(document).ready(function() {
    	jQuery( "#listing-tabs" ).tabs();
    		var $ = jQuery,
    		    tabLinks = $('.ui-tabs-anchor');
    
    		tabLinks.on('click', function(event) {
    		var destination = $(this).attr('href');
    
    		// Remove the current scroll effect
    		$('html, body').stop();
    
    		// Write it yourself.
    		$('html, body').animate({
    		        scrollTop: $(destination).offset().top
    			}, 1000);
    		});
    	jQuery( "#inquiry-form" ).validate();
    	jQuery( ".iframe-wrap" ).fitVids();
    });

    But it didn’t change anything…

    The file containing this code is “single-listing.js” and it’s located in “wp-content/plugins/wp-listings-barbel/includes/js”.

    So, I’m still searching, I hope you’ve had a great weekend and somehow gained some energy to help me find the root of this problem. You’ve already been very helpful, thanks!

    Thread Starter jorrit91

    (@jorrit91)

    Ah, I see what you mean, but resizing the browser windows is something different than “imitating” a touch device, right? I’m simulating a touch device by click Toggle Device Mode icon right next to the Element Inspector (second icon on the left, colored in blue, see this screenshot)

    Thread Starter jorrit91

    (@jorrit91)

    Hi Andrew, okay, I’m back, sooner than expected, but unupdated. Pff…
    You’re talking about this code right?

    var $ = jQuery,
        tabLinks = $('.ui-tabs-anchor');
    
    tabLinks.on('click', function(event) {
        var destination = $(this).attr('href');
    
        // Remove the current scroll effect
        $('html, body').stop();
    
        // Write it yourself.
        $('html, body').animate({
            scrollTop: $(destination).offset().top
        }, 1000);
    });

    I’ve inserted this in “Console” and pressed enter. When I’m on my desktop it’s giving me a different scrolling animation indeed, going to the respective area. No difference when I switch Device Mode…

    Thread Starter jorrit91

    (@jorrit91)

    Fucking hell. I’ve completely messed up. After updating all plugins and the theme on my local copy first, I decided to do the same thing to the online version. And now everything is messed up. That’s why I wanna get rid of these bloated themes. I’ll report back to you. Thanks for now, you’re fantastic!

    Thread Starter jorrit91

    (@jorrit91)

    I’m sorry, I tried it locally on a clone of the website we’re talking about. I’ve now added your suggestion to the online version. You can check it here.

    By the way, I’ve updated all plugins, didn’t solve the issue…:(

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