Forum Replies Created

Viewing 15 replies - 76 through 90 (of 182 total)
  • Thread Starter RafaelDeJongh

    (@rafaeldejongh)

    @mazedulislamkhan

    That’s the thing, your API’s page is not properly documented, lots of lacking actions and filters, especially the ones I actually require here.

    If it was properly documenten I could perhaps make it myself, but now I need to search so far with hooks that aren’t properly documented that I don’t know where I should start.

    For example you no where define the twitter hooks or explain how they’re used, how am I able to check which hooks I should use for my use case?

    I’ve seen you guys helping people with similar problems in this forum as well, so why aren’t you doing it this time?

    Thread Starter RafaelDeJongh

    (@rafaeldejongh)

    @jamiefryatt

    Why did you remove your post?

    Thread Starter RafaelDeJongh

    (@rafaeldejongh)

    @mazedulislamkhan

    This is regarding your plugins hooks which are very badly documented. I don’t see why you wouldn’t be able to help me as it is related to the plugin. I require some further insight to which hooks to use to manipulate the things I require.

    If it breaks the website then I’m responsible for using that code and can find my own way to fix it, so you don’t really need to risk anything on that.

    What I do need is someone that can inform me how to actually properly get this code snippet working with the new hooks!

    Thread Starter RafaelDeJongh

    (@rafaeldejongh)

    To clarify, I’m after adding a default image as a first entry in the og:image so there will always be an og:image present (user defined) that’s in the first place next to other og:images that can be found on the page.

    The action that allows an OG image to be added seemed to be the thing I was looking for. But now the only thing I’m wondering if the following code I made up is the proper way to deal with it:

    $default_opengraph = 'https://www.rafaeldejongh.com/…/RafaelDeJongh-Web-Developer…';
    function add_default_opengraph($object){global $default_opengraph; $object->add_image($default_opengraph);}
    add_action('wpseo_add_opengraph_images','add_default_opengraph');
    function default_opengraph(){global $default_opengraph; return $default_opengraph;}
    add_filter('wpseo_twitter_image','default_opengraph');

    As well as this one doesn’t add additional twitter:images but as far as I know there should also only be one for this.

    Any further information on code improvements it’s very much appreciated!

    Thread Starter RafaelDeJongh

    (@rafaeldejongh)

    Yea that’s the exact thing, very annoying and really hope this won’t be moved back too much, Jetpack is getting so bloated and has so many faults that it might perhaps be time for me to reconsider the use of it to be honest.

    Either way thanks for the followup!

    Thread Starter RafaelDeJongh

    (@rafaeldejongh)

    I do need and use the carousel that’s not what I’m asking. I just don’t need or want the useless meta data that get added to non carousel gallery images. As the example are images from my featured blog posts.

    Still the same error after redownloading/reinstalling. No V1.1.1 to see yet.

    Warning: require_once(/home/jmjlegac/public_html/wp-content/plugins/heartbeat-controlautoloader.php): failed to open stream: No such file or directory in /home/jmjlegac/public_html/wp-content/plugins/heartbeat-control/heartbeat-control.php on line 36
    
    Fatal error: require_once(): Failed opening required '/home/jmjlegac/public_html/wp-content/plugins/heartbeat-controlautoloader.php' (include_path='.:/opt/alt/php71/usr/share/pear') in /home/jmjlegac/public_html/wp-content/plugins/heartbeat-control/heartbeat-control.php on line 36
    • This reply was modified 8 years, 7 months ago by RafaelDeJongh.

    Also having this problem, I do have honeypot enabled and I do like to keep it that way as I find the lack of build in honeypot a bit sad. But yea this is really slowing down my website!

    Thread Starter RafaelDeJongh

    (@rafaeldejongh)

    Aha perfect thanks for the fast reply and fix!

    Thread Starter RafaelDeJongh

    (@rafaeldejongh)

    Found out you can do this by adding the following rule to the following lines: 731 & 761:

    array('Content-Type: text/html; charset=UTF-8','From: My Site Name <support@example.com')

    Make sure to add a comma after the previous code indication and then you should be good to go!

    Thread Starter RafaelDeJongh

    (@rafaeldejongh)

    Not sure why this thread was never replied to or supported in anyway but after searching through various possible menu position filters I finally found the file/location to change it.

    This being: plugin-fw/lib/yit-plugin-panel.php 115

    Changing

    $position = apply_filters( 'yit_plugins_menu_item_position', '62.32' );

    To

    $position = apply_filters( 'yit_plugins_menu_item_position', '99' );

    Made it that the icon shown below the separator where normally such plugins as these should be placed. Or if anything this shouldn’t be a separated icon but more of a submenu of WooCommerce!

    I would friendly suggest that all Yith plugins would actually partake this as it’s very annoying to have them listed between the default icons where you do not want/expect any other plugin options to be!

    Thread Starter RafaelDeJongh

    (@rafaeldejongh)

    A hotfix for this would probably to add the following piece of code inside the script just above the line of the error:

    if(typeof iclSaveForm === undefined){var iclSaveForm;}

    Pretty much just checks if the variable is undefined and if it is “defines” it.
    Not exactly sure yet what kind of effect/influence this will have on the actual plugin, but with this it does “fix” the BPS layout problem.

    I also noticed that my support license expired a couple months ago for WPML so sadly I can’t partake in actually asking the question myself yet (until I extend it for another year).

    Either way thanks!

    • This reply was modified 8 years, 10 months ago by RafaelDeJongh.
    Thread Starter RafaelDeJongh

    (@rafaeldejongh)

    Okay thank you for the in depth information.

    On my test website, I’ve disabled all plugins except WPML/BPS and WooCommerce as these are the three components that are at least required for everything to work.

    Even then the error appeared on the BPS page and these where the scripts that were dequeued:

    Script Dequeued: sitepress-scripts
    Script Dequeued: wcml-lang-notice
    Script Dequeued: wcml-pointer
    Script Dequeued: wcml-messages
    Script Dequeued: thickbox
    Script Dequeued: installer-admin
    Style Dequeued: wpml-select-2
    Style Dequeued: wcml_admin
    Style Dequeued: thickbox
    Style Dequeued: installer-admin

    But yea I do think it’s more related to WPML’s code so I’ll contact them! Thanks a bunch for your vastly replies and support!

    Thread Starter RafaelDeJongh

    (@rafaeldejongh)

    Yea I see, the pages indeed load super slow with this enabled, to be honest it’s better to just have a broken layout than wait for the page to load.

    And while the script loads on every page, it doesn’t have any problems other than the BPS plugin.

    But that said as mentioned in my previous message it also happens on another WordPress installation with these plugins enabled.

    So not sure why you’re not able to reproduce this problem.

    Edit:

    I think because some scripts are dequeued on the BPS pages that the problem on this page is happening. Because one of the variables was set in a dequeued script file. Maybe it’s possible to also deque that script by default while on BPS pages?

    • This reply was modified 8 years, 10 months ago by RafaelDeJongh.
    • This reply was modified 8 years, 10 months ago by RafaelDeJongh.
    • This reply was modified 8 years, 10 months ago by RafaelDeJongh.
    • This reply was modified 8 years, 10 months ago by RafaelDeJongh.
    • This reply was modified 8 years, 10 months ago by RafaelDeJongh.
    Thread Starter RafaelDeJongh

    (@rafaeldejongh)

    Here’s a followup of your question:

    BPS UI|UX Debug: Scripts|Styles Dequeued
    Script Dequeued: sitepress-scripts
    Script Dequeued: wcml-lang-notice
    Script Dequeued: wcml-pointer
    Script Dequeued: wcml-messages
    Script Dequeued: thickbox
    Script Dequeued: installer-admin
    Script Dequeued: media-editor
    Script Dequeued: media-audiovideo
    Script Dequeued: mce-view
    Script Dequeued: image-edit
    Script Dequeued: jetpack-gallery-settings
    Style Dequeued: wpml-select-2
    Style Dequeued: wcml_admin
    Style Dequeued: thickbox
    Style Dequeued: installer-admin
    Style Dequeued: media-views
    Style Dequeued: imgareaselect
Viewing 15 replies - 76 through 90 (of 182 total)