Forum Replies Created

Viewing 15 replies - 16 through 30 (of 41 total)
  • Thread Starter sublines

    (@sublines)

    Hi Daniel,

    I am useing the code from GH at my site.
    I’ve copied the raw text from https://github.com/tiptoppress/category-posts-widget/blob/master/cat-posts.php and pasted it into the cat-posts.php in my plugin directory.

    The only change I have made is on line 2058 where I have replaced
    cwp_namespace.fluid_images.Widgets['<?php echo esc_attr( $num ); ?>'] = new cwp_namespace.fluid_images.WidgetPosts(cwp_namespace.fluid_images.widget,<?php echo esc_attr( $ratio ); ?>);
    with
    cwp_namespace.fluid_images.Widgets['<?php echo esc_attr( $num ); ?>'] = new cwp_namespace.fluid_images.WidgetPosts(cwp_namespace.fluid_images.widget,1);
    because as I’ve said, if I dont replace

    <?php echo esc_attr( $ratio ); ?>

    inside the code, I still get the same

    Uncaught ReferenceError: NAN is not defined

    error, even with the new code from GH.

    Are there also other files from GH which I should download and use to replace with the files from the ww.wp.xz.cn SVG?

    Thread Starter sublines

    (@sublines)

    I have placed three category post widgets in the widget area and never used the shortcode.

    You can see the widgets live here.

    Scroll down past the content grid, the sidebar is located below the page instead of on the side. There you will find three widgets next to each other with the titles “Geschichten der Gegenwart”, “Jetzt aber!” and “Gespräche”.
    Those are category post widgets, each set up to list the titles of the five most recent posts from their category.

    In the source code, you will see them as
    <aside id=”category-posts-3″ class=”widget cat-post-widget”></aside>,
    <aside id=”category-posts-2″ class=”widget cat-post-widget”></aside>
    and <aside id=”category-posts-4″ class=”widget cat-post-widget”></aside>

    Thread Starter sublines

    (@sublines)

    Hi Mark and Daniel, thanks for the quick reply!

    @mark-k, I am not sure I understand what you mean. I haven’t set any height to the widgets and I also can’t find any setting for that. The settings of the widgets in question are set to only show the titles of the 5 most recent posts from a specified category – they don’t show the posts image, author, description or anything else.

    @kometschuh, I have replaced the cat-posts.php with the file you told me but I am still getting the same error in the console:

    Uncaught ReferenceError: NAN is not defined

    I can still apply the same temporary hotfix by changing the following line of code inside your file on line 2058 from
    cwp_namespace.fluid_images.Widgets['<?php echo esc_attr( $num ); ?>'] = new cwp_namespace.fluid_images.WidgetPosts(cwp_namespace.fluid_images.widget,<?php echo esc_attr( $ratio ); ?>);
    to
    cwp_namespace.fluid_images.Widgets['<?php echo esc_attr( $num ); ?>'] = new cwp_namespace.fluid_images.WidgetPosts(cwp_namespace.fluid_images.widget,1);

    Any ideas why

    <?php echo esc_attr( $ratio ); ?>

    causes the script to output “NAN”?

    Thread Starter sublines

    (@sublines)

    Changing
    cwp_namespace.fluid_images.Widgets['<?php echo esc_attr( $number ); ?>'] = new cwp_namespace.fluid_images.WidgetPosts(cwp_namespace.fluid_images.widget,<?php echo esc_attr( $ratio ); ?>);
    to
    cwp_namespace.fluid_images.Widgets['<?php echo esc_attr( $number ); ?>'] = new cwp_namespace.fluid_images.WidgetPosts(cwp_namespace.fluid_images.widget,1);
    inside cat-posts.php works for me as a temporary hotfix but obviously this can’t be a permanent solution.
    Any ideas though why this line was causing a bug on my site?

    Thread Starter sublines

    (@sublines)

    I have found the answer in the template-tags.php.
    For others having the same question:

    replace

    the_author_posts_link();

    with

    multiple_authors_posts_links();

    Thread Starter sublines

    (@sublines)

    Hi Raul, thanks for the reply and quick action!

    I had deactivated the HTML minification in your plugin settings after the bug occured and installed the MINIFY HTML plugin instead which solved the issues.

    In that plugin, I noticed that you can select the following options:
    “Remove relative domain from internal URLs” and “Remove schemes (HTTP: and HTTPS:) from all URLs”.
    Both are deactivated by default and my guess is that activating them would cause the same problems as your plugin did in the previous version.

    Maybe you can add these options to your plugin as well so people can deactivate them if they cause problems for them.

    Thanks again and keep up the good work!

    I’m having the same issue. I will switch to PublishPress soon (60€) which has acquired and incorporated the Plugin Bylines.io, which was made by on of the authors of Co-Authors Plus.
    Co-Authors Plus itself hasn’t been updated for several months and many of its bugs have been fixed in the development of Bylines and then in PublishPress.

    I will let you know if switching to PublishPress has solved this bug for me.

    You can paste this code into your child themes css file or use a plugin to add custom code to your theme (see how).

    Forum: Plugins
    In reply to: [Co-Authors Plus] Bug

    I know this question is old but the solution to this problem was terrible so I want to offer a new one. Using jquery to manipulate the dom is a dirty fix and not everyone will want to use javascript at all.

    First of all, this wont work with posts that have more than three authors.
    Second, the solution posted above will ad a whitespace every single time the script finds the word “und” anywhere on the page.

    A much cleaner solution would be to use css. This will work across browsers and in all languages.

    a.author.url.fn:before,
    a.author.url.fn:nth-last-child(2):after {
        content: " ";
    }

    This code adds a whitespace character before every author name and a whitespace character before the word “and” (or whichever translation of it you use) like so:
    Name1,Name2andName3
    -> becomes ->
    Name1, Name2 and Name3

    The added whitespace character before the first name gets omitted by the browser automatically.

    • This reply was modified 8 years, 3 months ago by sublines.

    Hi Estorius,

    I’ve had the same issue and could fix it with the following css code:

    a.author.url.fn:before,
    a.author.url.fn:nth-last-child(2):after {
        content: " ";
    }

    This code adds a whitespace character before every author name and a whitespace character before the word “and” like so:
    Name1,Name2andName3
    -> becomes ->
    Name1, Name2 and Name3

    The added whitespace character before the first name gets omitted by the browser automatically. It also works with any other language.

    Hope this helped!

    Thread Starter sublines

    (@sublines)

    Thank you for the quick reply.
    The files seem to come from this Plugin: Social Share Buttons by Supsystic

    I’ll open a support thread over there.

    Thanks again!

    I have the same issue and I am not using Cloudflare and have almost all options turned off.

    Thread Starter sublines

    (@sublines)

    Hi hemisferio2,

    the first time I had to install the older version I uninstalled the plugin and then installed the plugin using the files from the older version. That was a mistake because I then had to create new contact forms which took me a while..

    The second time I had to install the older version I simply unzipped the file and copied them to the plugin directory on my webserver, simply overwriting the new version with the old version. That worked perfectly fine.

    You can get the zip files for the older plugin versions here:
    https://ww.wp.xz.cn/plugins/contact-form-7/developers/

    I got a blank site after updating as well.
    Deactivating the plugin fixes the blank screen problem but then I can’t use the contact form..

    To everyon who has the same problem, you can get the older version here:
    https://ww.wp.xz.cn/plugins/contact-form-7/developers/

    Please look into it asap. Thanks

    • This reply was modified 9 years, 6 months ago by sublines. Reason: added link to older version
    Thread Starter sublines

    (@sublines)

    Hi, thanks for taking your time.

    I do not have “Hide on home page” option enabled.
    My options look like this: https://snag.gy/d8GH1t.jpg
    (update: I now have “Share only post link” option enabled but still nothing is showing up)

    I believe this is a problem caused by my theme.
    What I could use is a piece of php code that I can easily paste into my theme file that generates the homepage grid.

    Thanks in advance!

Viewing 15 replies - 16 through 30 (of 41 total)