andrewfburton
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Responsive Menu] JS-Error: TypeError: $.browser is undefinedHi Nirmal!
Your reply really made me think, and I realized the problem was with loading custom scripts with the wp_enqueue_scripts action. Setting a priority of 9 solved the issue.
Thanks again for a great plugin!
Regards
AndyForum: Plugins
In reply to: [WP Responsive Menu] JS-Error: TypeError: $.browser is undefinedHi Nirmal!
Was investigating the issue a bit:
jQuery.browser has been removed with jQuery 1.9 (as is explained here: https://api.jquery.com/jquery.browser/).
Unless you want to check for Firefox using Modernizr you could simply add JQuery Migrate to your plugin. You can find the latest release here: https://blog.jquery.com/2013/05/08/jquery-migrate-1-2-1-released/
All you have to do then is add the file to your js directory and load it via wp_enqueue_script. In my local environment it resolved the issue.
Hope this helps.
Not sure if you’re still looking for a solution but I found this plugin by Marco Malesi very useful:
https://www.ads-software.com/plugins/wp-attachments/
On the Edit Post page it shows the attachment(s) inside a metabox. You can edit, unattach or delete each attachment.
Hope this helps.
Forum: Plugins
In reply to: [BP | You are blocked] Override query argumentsThank you very much, Mathieu! This has been most helpful.
Forum: Plugins
In reply to: [BP | You are blocked] Problem with translation a pluginHi! I checked the main plugin file “buddypress-block.php” and could not find the code necessary to load the plugin textdomain (see here the Codex: https://codex.www.ads-software.com/Function_Reference/load_plugin_textdomain).
The author has already prepared the text strings for translation. He even added the text domain ‘bpblock’. All that is needed is to load the function mentioned in the Codex.
Until the author solves this, you can add yourself this line to “buddypress-block.php”, function “bpb_load_plugin”, about line 38 will do:
load_plugin_textdomain('bpblock', FALSE, dirname(plugin_basename(__FILE__)).'/lang/');
The directory “lang” already exists inside the plugin directory. So if you have language files ready, you can put them there. They will have to be named: “bpblock-xx_XX.po” and “bpblock-xx_XX.mo”.
If you want to do a translation the quick way without using “Poedit”, I recommend this plugin:
https://www.ads-software.com/plugins/codestyling-localization/
It’s easy to use. You just add a new language, read the existing strings and then translate them one by one. :-).
Hope this helps.
Forum: Plugins
In reply to: [Drop Cap Shortcode] Why new style sheet?Hi!
I noticed that the plugin loads its stylesheet on line 214 of the plugin file using “wp_head”:add_action( 'wp_head', 'dropcap_css' );
You could change that to the following and see if the stylesheet loads in the header:
add_action( 'wp_enqueue_scripts', 'dropcap_css' );
I’ve tested it and it shows up inside the <head> element. Perhaps the author wants to change it in the next version, since “wp_head” is not really used anymore for loading scripts and styles.
Hope this helps!
Forum: Plugins
In reply to: [Send link to friend] Friend still has to copy/paste link from emailHi BigDogK!
Was faced with the same issue. Not sure how familiar you are with PHP but to make it a clickable link all you have to do is change line 234 of “send-link-to-friend.php”.
Just search for the variable “$to_sendlink” and you should find the following:
$to_sendlink = $_POST['sendlink'];
Change it to:
$to_sendlink = '<a href="' . $_POST['sendlink'] . '">' . $_POST['sendlink'] . '</a>';
Hope this helped you! ??
Forum: Plugins
In reply to: [White Label CMS] How to hide Activity panel?Hi!
As a short-term solution you could go into wlcms-plugin.php to the function wlcms_remove_right_now() on line 159:
Replace ‘dashboard_right_now’ with ‘dashboard_activity‘.In “Dashboard Panels” it will still say “Hide ‘Right Now'” but it will actually remove the “Activity” panel.
Thank you guys for White Label CMS!
Forum: Themes and Templates
In reply to: [Chun] Portfolio post view on front pageHi Mirko!
Not sure if you’re still looking for a solution, but here are the steps:
1.
Create a page from “Pages” that you want to use as the front page. Call it anything you want.2. In that new page you created select the template “Portfolio” from the metabox “Page Attributes”. Click “Publish”.
3. Go the WP Settings – Reading. Click the radio button “A static page” then select as “Front Page” the page you just created, which is using the “Portfolio” template. Click “Save Changes” and visit your site.
Hope this helped!
AndyForum: Plugins
In reply to: [ThumbSniper] "Exclude Pages" not working for custom post typesHi!
Only took a minute or so to make the “Disable ThumbSniper on this page” option work on CPT by adding a few bits to “thumbsniper_basic_options.php.” If you like I mail you the changes. “Exclude pages” for CPT I still haven’t figured out yet though :-).