Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author AITpro

    (@aitpro)

    Yep i see what you are saying. This is not a good query string ?8b9079. A good query string would look like this ?src=8b9079. So this is either a malformed query string caused by code that is not generating the full valid query string or a bad query string due to using bad coding practices.

    I could create some sort of skip rule that would allow this, but i think that it is better that you contact the plugin author and have them fix the query string coding to display a valid query string.

    Thread Starter iGidas

    (@igidas)

    Thank you for a fast reply. As I understood, it is not a problem with BP security? And not this plugin creates this query string?

    Plugin Author AITpro

    (@aitpro)

    BPS does not create query strings so yes, that plugin created that broken / malformed / incomplete query string in its coding. BPS is not blocking whatever is being blocked in that plugin because of that bad query string. I will test the WP Image Tooltip plugin to see what is actually being blocked, but my results may not be the same as yours since you appear to be doing some sort of combination usage with the Jquery Colorbox plugin and this plugin. Jquery Colorbox has been tested before with BPS and there are not any conflicts. I’ll post my findings back here after testing WP Image Tooltip.

    FYI – the last time this plugin was updated was a year and half ago and it is stated that it is compatible to 2.9.2.
    Compatible up to: 2.9.2
    Last Updated: 2010-12-26

    Thread Starter iGidas

    (@igidas)

    WP Image Tooltip was working correctly till BP Security installation. Ok, thank you for support, let me know the results.

    Plugin Author AITpro

    (@aitpro)

    Well that is great that it was still working after not being updated for over a year and half, but when you choose plugins that have not been updated in a very, very long time then you want to be very, very cautious and just be sure to go through all the coding to make sure that it is good coding and compatible coding with the new WP 3.0 Core coding.

    This plugin does not have an options page and this is the only help instructions:
    Just upload an image using post or page editor and insert a link to that image, put the class attribute ‘tooltip’ and voilรก, now you have image tooltips when hovering your link. Thanks to clueTip jQuery plugin makers.

    From what i am understanding and what this help is saying this is the exact test i will perform. I will not try to make a hover tooltip on an image because that is not how this plugin appears to be designed or to be used. If you have done some kind of custom coding then i will not be able to test that scenario. I will be creating a link as instructed and adding the class attribute to that link as instructed.

    Plugin Author AITpro

    (@aitpro)

    Ok test completed – it works perfectly. There is no conflict with BPS when this plugin is used as instructed. This is actually a very nice little plugin that i might use somewhere – after i have recoded it of course to current standards.

    Test:
    Created a link to an image that was uploaded to /uploads, added class=”tooltip” to the link and it works perfectly.

    Test2:
    I actually tested with jQuery Colorbox and applied the class to the URL and it also works perfectly.

    [script tag removed] a class="tooltip" href="http://www.example.com/wp-content/uploads/2012/05/banner-772x250.png" [script tag removed] <img class="alignnone size-medium wp-image-5" title="banner-772x250" src="http://www.example.com/wp-content/uploads/2012/05/banner-772x250-300x97.png" alt="" width="300" height="97" /></a>

    Plugin Author AITpro

    (@aitpro)

    I checked your website source code after learning how this plugin works and you never added class=”tooltip” to any of your image links. In other words, you are not using this plugin as instructed and this never had anything at all to do with BPS. It is not cool to lie in order to get help, just ask for help.

    Thread Starter iGidas

    (@igidas)

    Thanks for respond, but I am not laying ๐Ÿ™‚ All I did to the code of WP Image Tooltip is just changed the class plugin should look for from “tooltip” to “cboxElement”. I changed this part of Image-tooltip.php file:

    jQuery(document).ready(function($) {
    			$('a.cboxElement').cluetip({
    				fx: {
    				  open: 'fadeIn', // can be 'show' or 'slideDown' or 'fadeIn'
    				  openSpeed:  '1'
    				},
    				ajaxCache: false,
    				clickThrough: true,
    				dropShadow:	false,
    				cursor:	'default',
    				topOffset: 20,
        				leftOffset: 20,
    				local: false,
    				tracking:false,
    				//waitImage:true,
    				showTitle:false,
    				attribute:'href',
    				//height:'" . $imagetooltip_size[0] . "',
    				//width:'"  . $imagetooltip_size[1] . "',
    				height:52,
    				width:52,
    				sticky: false,
    				arrows:false
    			});

    It’s just variables. I had to look for “cboxElement” class because plugin “jquery Colorbox” automatically adds this class to post images and so I don’t need to add another class like “tooltip” manually. I modified css file of plugin “WS Image Tooltips” too, using correct syntax.

    As I mentioned before, these changes were tested and worked in Chrome, Firefox, even Internet Explorer. And even using proxy with browser caches deleted (to be sure that i am just a random guest for my site). After BP install, tooltips began to not to show correctly. Firstly, I didn’t see that strange string in image url, so I re-installed “WP Image Tooltip”. But problem still exists. Maybe I could try to comment some lines in BP security created .htaccess file, because where are lot of lines with Rewrite rules. I am just not a specialist, to know what lines or what code could make that strange strong appear. Thank you for your time.

    Thread Starter iGidas

    (@igidas)

    *strange string

    Thread Starter iGidas

    (@igidas)

    I looked to my .htaccess file. And found that

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    this code appears twice. Is a bug with BP and W3 Total Cache, that after activating security mode and after rebuilding cache configuration this code is left? And maybe where are some other errors in this file?

    Thread Starter iGidas

    (@igidas)

    Oh, i forgot to give you a code of file: http://pastebin.com/Sh6UYvGt

    Plugin Author AITpro

    (@aitpro)

    Oh sorry. You have done custom coding then. I missed that. I have no way of testing that custom coding. I guess you will just have to figure out what is different about your custom coding then the coding that is in the plugin already? Not really sure what else to tell you here. Both jQuery Colorbox and WP Image Tooltip work fine apart and when used together with the standard coding in both of those plugins.

    There are few things that cause the default WP .htaccess code to be duplicated in the root .htaccess file.

    1. Other plugins that are using the WordPress flush_rewrite_rules( $hard ) function have not used this WP function correctly, which causes this problem.

    2. Using the cPanel HotLink Protection tool – it has been broken since 2008.

    3. Other plugins are attempting to write the default WordPress .htaccess code to your root .htaccess file in some other function of that plugin.

    4. Updating your custom permalink structure removes the BPS .htaccess code and adds the default WordPress .htaccess code.

    The .htaccess file you posted in pastebin does not contain any of the BPS .htaccess security filters. W3TC .htaccess code needs to come first before any other rewriting .htaccess code.

    I suggest that you create new Master .htaccess files with AutoMagic, activate all BulletProof Modes and then redeploy / auto-install W3TC.

    Thread Starter iGidas

    (@igidas)

    Ok, I’ll give it a try. Thank you for your honest support ๐Ÿ™‚

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘[Plugin: BulletProof Security] How to remove a string from image url?’ is closed to new replies.