Forum Replies Created

Viewing 15 replies - 1 through 15 (of 36 total)
  • Hi sareiodata! Any way I can help to fix that bug? I need to use the plugin when WordPress language is “Spanish”.

    Thanks in advance and keep the good work.

    Best regards,
    David.

    That’s right, I had to add “Define Columns” for the plugin to show me the invoice content (I filled all the other options first hoping I could create the columns latter).

    Thanks for the plugin.

    Thread Starter davoscript

    (@davoscript)

    Scribu, everytime I try to save a widget’s title change I get the following JS error in firebug:

    in editor.js (and editor.min.js)

    this.save_button is undefined
    this.save_button.click();

    I checked the JS and noticed that the when I edit the title of a text widget the “start_editing” method from FrontEndEditor.fieldTypes.group is used, but then I hit ESC or ENTER the launched functions are defined in the FrontEndEditor.fieldTypes.input object.

    You have any tip on how to solve this or where to check?

    Regards,
    David.

    Thread Starter davoscript

    (@davoscript)

    Oh, that sounds like a JS conflict to me, have you checked with firebug or something? are you using other plugins that might be loading jQuery, Mootools or other libary?

    Thread Starter davoscript

    (@davoscript)

    Diesel12, you should check if the URLs for the JS and CSS files included by FEE, if they are wrong it might be an issue with a filter added by the Mapped Domain plugin to try to figure out the new mapped URL.

    Regards,
    David.

    Thread Starter davoscript

    (@davoscript)

    Hello praveen88, actually havent seen that, but check this plugin https://www.ads-software.com/extend/plugins/quick-post-widget/

    Good luck!

    Thread Starter davoscript

    (@davoscript)

    You are super-right, I actually was trying to generate the right URL with functions from the API, but then I tried this and I was like “ok , perfect” but was too sleepy anyway.. haha.

    The problem that I see is that you can’t do something like grab the whole URL and substr the “home ulr” because they are different:

    In the plugin_url filter you recieve:
    https://subdomain.mynetwork.com/wp-content/mu-plugins/plugin-A/file.js

    But all the functions I’ve tried to get wordpress URLs use the mapped domain instead, like:
    https://mapped-domain.com/wp-content

    This makes it hard to substr the first part of the URL ??

    Anyway, I’ll be updating this thread if I have more luck.

    Thanks a lot for your time Ron, I don’t know if you realize, but sharing some lines with you guys, code rockstarts! is just amazing! ??

    Regards!

    Thread Starter davoscript

    (@davoscript)

    People, I’ve been commeting about this on my website with Scribu https://davoscript.com/2012/02/07/front-end-editor-and-wordpress-mu-domain-mapping-plugins/#comments and after some research I’ve found that the problem is actually with WordPress MU Domain Mapping plugi, check out this code:

    domain_mapping.php Line #656

    // fixes the plugins_url
    function domain_mapping_plugins_uri( $full_url, $path=NULL, $plugin=NULL ) {
    	return get_option( 'siteurl' ) . substr( $full_url, stripos( $full_url, PLUGINDIR ) - 1 );
    }
    
    function domain_mapping_themes_uri( $full_url ) {
    	return str_replace( get_original_url ( 'siteurl' ), get_option( 'siteurl' ), $full_url );
    }
    
    if ( defined( 'DOMAIN_MAPPING' ) ) {
    	add_filter( 'plugins_url', 'domain_mapping_plugins_uri', 1 );

    The domain_mapping_plugins_uri function is used to filter the plugins_url function and return the plugins folder (or file inside it) url with the mapped domain, it does it by searching “wp-content/plugins” but it fails when the plugin is loaded from the “wp-content/mu-plugins”. This can be fixed by validating if the passed URL contains the “mu-plugins” string or not.

    This is the fix I added:

    // fixes the plugins_url
    function domain_mapping_plugins_uri( $full_url, $path=NULL, $plugin=NULL ) {
      if ( !empty($plugin) && 0 === strpos($full_url, 'wp-content/mu-plugins') )
        $mapped_url = get_option( 'siteurl' ) . substr( $full_url, stripos( $full_url, 'wp-content/mu-plugins' ) - 1 );
      else
        $mapped_url = get_option( 'siteurl' ) . substr( $full_url, stripos( $full_url, 'wp-content/plugins' ) - 1 );
    	return $mapped_url;
    }

    Note that I use “wp-content/plugins” and “wp-content/mu-plugins” instead of the “PLUGINDIR” constant which is deprecated by the way.

    Please not that this is not an official fix, since I’m not the author of the plugin, however I hope this can solve this problem for other people as it did for me, so you can enjoy and empower your network with this 2 amazing wordpress plugins!

    Regards,
    Davo.

    Thread Starter davoscript

    (@davoscript)

    Hello all, guys.. you still get this errors? I’ve been testing “Widget Calsses” with many wordpress installations and still no errors.

    Regards

    Ok I think we missed something important, pay attention to this line:

    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else : ?>

    That means that what’s under that line will be visible only if there are no widgets hooked to the sidebar, so all the changed that we’ve tried before won’t work if you have widgets in your sidebar. Unfortunately the WP native links widget doesn’t allow you to set the “order” in wich the links are displayed.

    Let’s see.. do you have another widgets hooked in the sidebar besides the links widget? If that’s the case.. try this:

    <div id="sidebar1">
    
    <div id="sidebarwrapper">
    
    	<ul>
    	<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : ?>
    
    <div class="widgets">
    
            <li>
            <h2><?php _e('Links'); ?></h2>
                <ul>
                 <?php wp_list_bookmarks('orderby=rating'); ?>
                 </ul>
            </li>
    
    </div><!--End widgets-->
    
    <?php else : ?>
    
    <div class="widgets">
            <li>
            <h2><?php _e('Categories'); ?></h2>
                <ul>
                <?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
                </ul>
            </li>
    
    </div><!--End widgets-->
    
            <li>
            <h2><?php _e('Archives'); ?></h2>
                <ul>
                <?php wp_get_archives('type=monthly'); ?>
                </ul>
            </li>
    
    	<?php endif; ?>
    	</ul>
    
    </div>
    </div>

    That will show the links widget at the bottom of the sidebar without using the Links Widget (as we are hardcodeing it in the sidebar.php). You will need to delete the widget from the dashboard of course.

    Let me know how it goes and send me a link where I can see your site =)

    Best regards,
    David.

    Did you changed the rating of the links in the dashboard when using the “rating” option?

    Regards.

    Hi, yes, what you need to do is to overwrite the CSS properties that the Theme is adding to your html, for example if you want that your links not to have an image as background (supposing the arrow is an image), you could do one of the next techniques:

    #1 You can specify the CSS in the tag itself:
    <a href="https://www.www.ads-software.com" style="background-image:none;" >Wordpress</a>

    #2 Add a CSS Class in your HTML/Text Widget:

    <div class="myStyle">
      <a href="https://www.www.ads-software.com" >Wordpress</a>
    </div>

    Then in your style.css file:

    .myStyle a{
      color:#000;
      background-image: none;
    }

    That will overwrite the background property and will specify the color of the text too. You can add as many properties as you wish.

    Let me know if this help you or if you need more detailed explanation.

    Regards.

    Hi, the problem is that the bottom posts (the ones that uses the excrept) are inside the container of the top post (full post). This might be due to an unclosed tag.

    The div you have to check is the one that has the class “storycontent”.

    Check that and let me know how it goes.

    Regards,
    David.

    Ok got it.. try adding the background in the anchor tag, like this:

    echo '<a href=' . $name . ' style="background:'. $image_url .';"></a>';

    Let me know how it goes.

    Hi

    Since you are developing something really simple I think that’s the best approach, and yes the CSS you applied to the “a” is what you needed. The only “bad point” of that is that it restrict the image size, since they won’t “adapt”. But as you said you’ll be adding more options and features as you learn.

    Well done Garfield! good luck with the code.

Viewing 15 replies - 1 through 15 (of 36 total)