CharlyLeetham
Forum Replies Created
-
Forum: Plugins
In reply to: [Download Manager] OneDrive Integration – Register An AppDoes this mean that it’s not possible to share OneDrive files through WPDM at this point?
Forum: Plugins
In reply to: [Mailing Group Listserv] Messages not going to ListYes, I did that. And the mail is not going to the list.
Nevermind. I found it in the help menu.
Forum: Plugins
In reply to: [Essential Real Estate] Recurring Issue with Google MapsThis is due to the changes that Google has made to the API codes.
You need to create your Google API by following this process:
https://developers.google.com/maps/documentation/javascript/get-api-keyThen head to your Google Cloud Platform dashboard (https://console.cloud.google.com/home/dashboard) and select the project you want to add the API’s to.
Under the Billing menu item on the left, make sure you have a billing account selected (this is new as of a few months ago)
Under the API’s and Services, you need to enable the Maps Javascript API and Geocoding API for the location to work. If you want to use Places Near Me, you also need to enable the Places API.
I hope that helps a little.
Forum: Plugins
In reply to: [Essential Real Estate] How to reorder single property page sectionsHi Kami,
If we modify the priority of the hooks in that file, they will override when the plugin updates.
How can we do this in our child themes to make sure the changes aren’t lost?
Forum: Plugins
In reply to: [MyBookTable Bookstore by Stormhill Media] Rearrange Order of BooksI believe the order is done by date published. Go to your book entries and change the publish date for the one you want at the top to be today and the one you want to be at the bottom to be before all the others are published.
I think that will work.
Forum: Plugins
In reply to: [MyBookTable Bookstore by Stormhill Media] Multiple My Book TablesHi,
This is how we set up a site using My Book Table.
https://dreamstonepublishing.com/project-type/our-books/ This is all the books, using the mbt shortcode to get the grid view for the books at the top and the list view for the different Genres underneath that using the “list” display type.
There’s a good explanation on how to use the shortcode to segment your views here: https://www.authormedia.com/how-to-harness-the-magic-of-mybooktable-with-shortcodes/
We then used the genre category pages to get the same grid view for the books in each category / genre.
Categories / genres work just like categories would for the normal post type. They’re a way of organising information into logical groups for ease of display.
Forum: Plugins
In reply to: [MyBookTable Bookstore by Stormhill Media] Multiple My Book TablesCould you use two categories? Steampunk and Non-Fiction and then use the category shortcode to list them?
[ mybooktable genre=”steampunk”] and [ mybooktable genre=”non-fiction”]Forum: Plugins
In reply to: [WassUp Real Time Analytics] Bug: WordPress Lightboxes Are DisabledThe issue is in wp-content/plugins/wassup/js/thickbox/thickbox.css
Line 12: display is set to none.Changing this fixes the TB_overlayBG issue but there are still formatting issues introduced by the css file on the overlays.
The issue appears to be in /wp-content/plugins/wassup/lib/wassup.class.php line 2537 where the variable $menuarg is force set. This is forcing the wassup plugin to load the ‘custom thickbox’ styles regardless of which admin page is loaded.
I commented out line 2537
//$menuarg=”wassup”;And the problem was resolved.
Of course, this will be overwritten if the plugin is reinstalled or updated and the problem not resolved.
Forum: Plugins
In reply to: [JW Player for Flash & HTML5 Video] JS enqueued on all admin pagesHi, Thanks Jason Bahl for your well documented fix.
We’re using WooThemes Canvas with custom upload metaboxes and noted the upload box would return a blank screen, although it would input the file into the correct field.
We we clicked the ‘use as image’ button, we received the following error:
Uncaught Error: Syntax error, unrecognized expression: [jwplayer mediaid=397] (the media id would change based on the file uploaded.We implemented the fix suggested by Jason and the problem was resolved.
Currently using JW Player Version 2.1.1 on WP 3.8It would be great to have the fix permanently included so we don’t have to patch each time we update.
Forum: Plugins
In reply to: [Membership Simplified] jQuery ErrorFurther to this error, it appears to be related jQuery Tools and it’s compatibility with the latest versions of jQuery.
Some of the impact of this issue was:
- Unable to open Screen Options
- Unable to edit permalink whilst in the edit screen
- Unable to use the Media uploader on the edit screen
I have modified functions.php file and commented out lines 155 and 157 to stop jquery tools loading.
What is jQuery Tools used for? What is the impact of not loading this extension?
Forum: Plugins
In reply to: [PilotPress] BreakingCouldn’t get this working when the home url differed to the site url. When non-members tried to login (like the site admins), they were redirected to the WordPress folder url and received a “page not found” error.
This seems to be because site_url has been used in a number of the redirect and cookie statements.
In the pilotpress.php file I modified certain instances of site_url to home_url.
Changes as follows:
Line 1350:
$cookie_domain = str_replace($this->get_protocol(),"",home_url());
Line 1395:
wp_redirect(home_url());
Line 1405:
wp_redirect(home_url());
Line 1436:
Changed the site_url function to include the path in the function call, not append it to the returned valued:wp_redirect(site_url("/wp-login.php?checkemail=confirm"));
Line 1460:
wp_redirect(home_url());
Line 1606:
wp_redirect(home_url());
Line 1999:
$redirect = home_url($_SERVER['REQUEST_URI']);
Still testing but the problem seems to have disappeared.
Forum: Fixing WordPress
In reply to: How to remove the space between the header and the menu?I agree with Govpatel, change:
#horiz-menu, #horiz-menu ul {
border-width: 0;
font-weight: bold;
height: 42px;
list-style: none outside none !important;
margin: 0;
padding: 10px;
width: 1100px;
}to
#horiz-menu, #horiz-menu ul {
border-width: 0;
font-weight: bold;
height: 42px;
list-style: none outside none !important;
margin: 0;
padding: 0 10px 0;
width: 1100px;
}I would also change:
#header {
height: 72px;
margin: 0 auto;
padding: 19px 0;
width: 960px;
}to
#header {
height: 102px;
margin: 0 auto;
padding: 0 0;
width: 960px;
}AND to remove the space under the nav bar to the content:
change
#navwrapper {
background: url(“”) no-repeat scroll 0 0 transparent;
height: 72px;
margin: 0 auto;
padding: 0;
width: 940px;
}#navwrapper {
background: url(“”) no-repeat scroll 0 0 transparent;
height: 42px;
margin: 0 auto;
padding: 0;
width: 940px;
}Forum: Fixing WordPress
In reply to: Remove Recent CommentsHi Ronito,
Is the sidebar a ‘widgetized’ sidebar? If so, then go to wp-admin -> appearance -> widgets and drop a blank text box into the sidebar. That should remove any coded defaults from the sidebar.
Charly.
Forum: Fixing WordPress
In reply to: Linking to Jquery the right wayHi Preeminent,
Yes and No – Plugins are really a series of functions run in a specific order, or at specific times.
With WordPress, you can add functions that you would normally run in a plugin from functions.php. Essentially, anything that is available for plugins, can be used in functions.php.
The code I provided is to load JQuery from Google in your header. It can be called in a plugin, or it can be called directly from the functions.php file.
The add_action on ‘wp_print_scripts’ will run all the commands in the function you define:
https://codex.www.ads-software.com/Function_Reference/add_actionThe call of
add_action('wp_print_scripts','add_google_jquery');
Basically tells WordPress to run your function add_google_jquery just before WordPress prints registered JavaScript scripts into the page header (wp_print_scripts).
The function itself uses the wordpress enqueue script function to make sure that jQuery is loaded properly.
Once you have all the code in, jQuery will automatically be loaded when you site loads. (I made a small mod to the code below by removing the ( ) around the link to the google jquery).
function add_google_jquery() { if ( !is_admin() ) { wp_deregister_script('jquery'); wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js', false); wp_enqueue_script('jquery'); } } add_action('wp_print_scripts ', 'add_google_jquery');
It’s worthwhile spending some time looking at the Action Reference for WordPress:
https://codex.www.ads-software.com/Plugin_API/Action_ReferenceTo load you scripts in the footer, you need to look at the wp_enqueue_script function:
https://codex.www.ads-software.com/Function_Reference/wp_enqueue_scriptCurrently, the function above will load jQuery into the header.
To load your script in the footer, you would use:
function add_google_jquery() { if ( !is_admin() ) { wp_deregister_script('jquery'); wp_enqueue_script('jquery','https://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js',,'1.4.1',true); } } add_action('wp_print_scripts ', 'add_google_jquery');
In the above example, I’ve removed the wp_register_script and done it all in the wp_enqueue_script function.
I would recommend testing loading the function in your header first and then test the moving of the script to the footer.
To test if this working, load your site without the function active. Check your page source and see what / where jquery is loaded – in most standard WP Themes, it’s called from the wp-includes folder.
Activate your function, load your site with the function activated and check the page source again. If the function is working correctly, you’ll see jquery being loaded from the Google CDN.
Charly