ouija
Forum Replies Created
-
Forum: Plugins
In reply to: [Say what?] Translating with %sRan into a similar issue, however, the plugin uses a variable defined as
%1$s
instead of simply%s
— any suggestions on how to target this? Works if I edit the plugin string manually and change to %s, but obviously would be broken in a plugin update.Edit: Nevermind, just re-applied the edit and it seems to be working properly now. Strange, must have had a typo in the “original string” field…
- This reply was modified 6 years, 10 months ago by ouija.
Forum: Plugins
In reply to: [WPS Hide Login] How to hide “This has been disabled”I’ve edited the script to simply redirect to the home page defined in WordPress rather than display this message.
To do the same (or change the message that is displayed), simply edit the /wp-content/plugins/wps-hide-login/wps-hide-login.php file and search for the following (at lines 391 and 400 as of this post):
wp_die( __( 'This has been disabled', 'wps-hide-login' ), 403 );
and replace both occurrences with:
wp_redirect( get_home_url(), 301 ); exit;
Or you can chose to edit the
This has been disabled
text as you see fit.Hope this helps ??
- This reply was modified 7 years, 1 month ago by ouija.
Forum: Plugins
In reply to: [YITH WooCommerce Product Add-Ons] action or hook to display add-on options?Apologies, but the site is currently on a development server inaccessible to the public, however I’ve managed to get around this by overriding the ‘add to cart’ button on these product archive pages, which then forward to the single product page and display all the available add on options and such.
I have a feeling that the plugin may not work with the ajax add to cart method from pages other than the single product page, but I could be wrong?
Anyways, I’ve come up with a somewhat decent solution to get around this for now. Thanks for your response!
- This reply was modified 7 years, 2 months ago by ouija.
With some luck and a little ingenuity, I’ve managed to resolve this issue using a custom php page that I’ve written myself, however, if there is an actual method developed for this, please let me know! Thanks!
Forum: Themes and Templates
In reply to: Flexslider issue, Image keeps jumping down!Try using
useCSS : false
in your javascript initialization for flexslider and see if that helps? A long shot but might be worth a try.Looking quickly at your css, I would try changing
.flexslider .slides img {max-width: 100%; display: block;}
to.flexslider .slides img {max-width: 99%; display: block;}
or maybe ‘.flexslider .slides img {max-width: 100%; display: inline-block;}` or a variation of the two and see if maybe that helps.Forum: Fixing WordPress
In reply to: str_replace on variable for $post->post_titleLittle late to post maybe, but did you try using htmlspecialchars?
I was interested in the very same thing, so today I took the initiative and managed to get this to work. I also managed to disable Shadowbox-JS in conjunction with WPTouch in that you can choose to disable Shadowbox-JS only when viewing the mobile theme and leave it enabled when the user turns off the mobile theme by click the toggle in the footer of the WPTouch template.
Please note that I have tested this and confirmed working on both an iPhone 3GS and iPod Touch, and used a Firefox plugin to emulate it working for the iPad. Please let me know if you have any issues or concerns.
To disable Shadowbox-JS completely across the site when it is being viewed using an iPhone, iPod, or iPad, edit the “shadowbox-js.php” file and near the end of that file (at line 168) look for the line:
} else { if ( @include ( dirname ( __FILE__ ) . '/inc/frontend.php' ) ) { $ShadowboxFrontend = new ShadowboxFrontend (); } }
and replace it with the following:
} else { if ( @include ( dirname ( __FILE__ ) . '/inc/frontend.php' ) ) { // detect if iPhone/iPad/iPod and disable shadowbox if true $browser = strpos($_SERVER['HTTP_USER_AGENT'],"iPhone"); if ($browser == false) { $browser = strpos($_SERVER['HTTP_USER_AGENT'],"iPod"); if ($browser == false) { $browser = strpos($_SERVER['HTTP_USER_AGENT'],"iPad"); if ($browser == false) { $ShadowboxFrontend = new ShadowboxFrontend (); } } } // end detection }
.. and now Shadowbox-JS is now automatically disabled when your site is viewed on either an iPod, iPhone or iPad. (You can add/remove/change the HTTP_USER_AGENT lines to your liking if you only want to disable it on iPad or have it include another platform like Android or whatever you like)
If you use WPTouch and would like to disable Shadowbox-JS *only* when the user is viewing it under the mobile theme, and have it re-enable when they view the full site (which is kind of pointless as Shadowbox still won’t work properly on any iDevice) but if you want it to work this way, you’ll first need to add the iPad User Agent to the WPTouch “wptouch.php” file (otherwise the mobile theme will not display when viewing on an iPad). Edit around line 242 of the “wptouch.php” file and add the iPad user agent to the $useragents array:
"iPad", // Apple iPad
Now edit the “shadowbox-js.php” file and (at line 168) look for the line:
} else { if ( @include ( dirname ( __FILE__ ) . '/inc/frontend.php' ) ) { $ShadowboxFrontend = new ShadowboxFrontend (); } }
and replace it with the following:
} else { if ( @include ( dirname ( __FILE__ ) . '/inc/frontend.php' ) ) { // detect if iPhone/iPad/iPod and disable shadowbox if true if (strpos($_SERVER['HTTP_USER_AGENT'],"iPhone") | strpos($_SERVER['HTTP_USER_AGENT'],"iPad") | strpos($_SERVER['HTTP_USER_AGENT'],"iPod")) { include ('./wp-content/plugins/wptouch/wptouch.php'); if ( bnc_is_iphone() && $wptouch_plugin->desired_view == 'normal' ) { $ShadowboxFrontend = new ShadowboxFrontend (); } } else { $ShadowboxFrontend = new ShadowboxFrontend (); } // end detection }
And that should do it.
Enjoy.
Forum: Plugins
In reply to: Stream Video Player with Shadowbox or Lightbox?Doesn’t work with IE8 (video not loaded).
Forum: Plugins
In reply to: [Plugin: Shadowbox JS] blank shadowbox in IE when linking to FlashI am experiencing this same issue. I really hate IE with a passion.
Forum: Plugins
In reply to: [Plugin: Audio Player] Problems in Opera and IE8I am having the same issue. I had it working prior to updating wordpress to the latest version, but have no idea what changes I made to get it working (none I thought) and now it does not work. Any help would be greatly appreciated. ??