1. Have feature suggestions for the WordPress plugin? Post or vote here.
    Dismiss Notice

Resolved Some questions about the plugin

Discussion in 'WordPress' started by Adhen, Oct 6, 2015.

  1. Adhen

    Adhen New Member

    Hm, this line disappears when I disable the Sync logged-in cookie option in your plugin options...
     
  2. Adhen

    Adhen New Member

    No I don't know. When I disable the Sync logged-in cookie option, the line disappears.

    Hm I've tested the login sync a while and found out, that I f I login in the forum, I am not logged in in the Blog. When I login to blog over the frontend, I am logged in in the Blog but not in the forum. When I loggedin to the dashboard, I am logged in in the forum too. But the normal Users wont have access to the dashboard. And the error still appears -.-
     
  3. xfrocks

    xfrocks XenForo rocks! Staff Member

    If it is the case then something must have changed the url, it should be
    https://finalfantasydojo.de/forum/api/index.php?assets/sdk&prefix=xfac (notice the query string, it has been stripped off from your site). Do you have any other plugin that may change / optimize js etc.?
     
  4. Adhen

    Adhen New Member

    Hm, I think I found the problem in the functions.php:

    function remove_cssjs_ver( $src ) {
    if (!strpos($src,'google'))
    $parts = explode( '?', $src );
    else
    $parts[0] = $src;

    return $parts[0];
    }
    add_filter( 'style_loader_src', 'remove_cssjs_ver', 10, 2 );
    add_filter( 'script_loader_src', 'remove_cssjs_ver', 10, 2 );

    This removes Versions from css and php files. So it removes all after the ? from the php file. Hm, but when I try this:

    function remove_cssjs_ver( $src ) {
    if (!strpos($src,'google') || !strpos($src,'forum'))
    $parts = explode( '?', $src );
    else
    $parts[0] = $src;

    return $parts[0];
    }
    add_filter( 'style_loader_src', 'remove_cssjs_ver', 10, 2 );
    add_filter( 'script_loader_src', 'remove_cssjs_ver', 10, 2 );

    It doesn't change anything...
     
  5. xfrocks

    xfrocks XenForo rocks! Staff Member

    Is this some plugin of yours? It would not recommend missing our with version query in script urls. Sometime they are needed for proper cache busting.
     
  6. Adhen

    Adhen New Member

    This is some security stuff, to prevent that other people can se the used wordpress version. Wenn I tried to ignore the api php file but it doesn't work. Do you know how I can skip the file from your plugin?
     
  7. xfrocks

    xfrocks XenForo rocks! Staff Member

    You may try this

    Code:
    function remove_cssjs_ver( $src ) {
    if (!strpos($src,'google') && !strpos($src,'index.php'))
    $parts = explode( '?', $src );
    else
    $parts[0] = $src;
    
    return $parts[0];
    }
     
  8. Adhen

    Adhen New Member

    Thank you, its working!
     
    xfrocks likes this.
Loading...