Coder Social home page Coder Social logo

related-posts-for-wp's People

Contributors

barrykooij avatar dannyvankooten avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

related-posts-for-wp's Issues

iconv() barfs during wizard run

Woops! Something went wrong while linking.Response:
Notice: iconv(): Detected an incomplete multibyte character in input string in C:\server\www\dev\wp-content\plugins\related-posts-for-wp\classes\class-related-word-manager.php on line 170

Notice: iconv(): Detected an incomplete multibyte character in input string in C:\server\www\dev\wp-content\plugins\related-posts-for-wp\classes\class-related-word-manager.php on line 170

Notice: iconv(): Detected an incomplete multibyte character in input string in C:\server\www\dev\wp-content\plugins\related-posts-for-wp\classes\class-related-word-manager.php on line 170

Notice: iconv(): Detected an incomplete multibyte character in input string in C:\server\www\dev\wp-content\plugins\related-posts-for-wp\classes\class-related-word-manager.php on line 170
0

This is on (mostly) WP test data, shouldn't have anything crazy in it.

Add a log to install wizard steps

When there are a lot of posts, it takes a while before the progress bar visually increases. Add a log that is closed by default and can be opened to display live updates of the linking process.

Global performance optimalization

Did some testing with more than 10.000 posts tonight and the wizard takes forever. Not sure if this can be optimized but will be well worth the try.

mylocalsite.dev/wp-admin/?page=rp4wp_install

I encountered a problem with my local install when I was testing related posts for wp. The problem first appeared when I tried to install another plugin - I was immediately taken to the screen to finish the installation of RPFW again to build the links, thought that was odd. After that I began getting errors that I did not have sufficient permission to activate plugins. I deleted RPFW and other plugin, but still get this error whenever I try to activate any plugin.

mylocalsite.dev/wp-admin/?page=rp4wp_install

You do not have sufficient permissions to access this page.

I tried deleting my user id and setting up another Admin user. No help.

Deleted the cache in the database referring to RPFW. Think this began after the last update on your plugin.

Any suggestions?

More info (or at least a link) when adding related posts

I think the experience of selecting related posts manually could be improved by providing some additional information along with the post title. Some quick ideas (I'm sure there are more), listed in order of how helpful I think they'd be:

  • A link to view the post in a new tab
  • A small version of the featured image of the post
  • The date of the post

Thanks for considering!

Post from .org forum: https://wordpress.org/support/topic/feature-request-more-info-or-at-least-a-link-when-adding-related-posts

Indexation crashes

The Related Posts plugin by Barry crashed 3/4 of the way. Trying to reactivating the Index Wizard resulted in the following error:

Woops! Something went wrong while linking.

Response:

<div id='error'>
            <p class='wpdberror'><strong>WordPress database error:</strong> [Duplicate entry &#039;529611-een&#039; for key &#039;PRIMARY&#039;]<br />
            <code>INSERT INTO `wp_rp4wp_cache` (`post_id`,`word`,`weight`,`post_type`) VALUES (529611,&#039;een&#039;,0.011547,&#039;post&#039;)</code></p>
            </div><div id='error'>
            <p class='wpdberror'><strong>WordPress database error:</strong> [Duplicate entry &#039;529036-één&#039; for key &#039;PRIMARY&#039;]<br />
            <code>INSERT INTO `wp_rp4wp_cache` (`post_id`,`word`,`weight`,`post_type`) VALUES (529036,&#039;één&#039;,0.003521,&#039;post&#039;)</code></p>
            </div><div id='error'>
            <p class='wpdberror'><strong>WordPress database error:</strong> [Duplicate entry &#039;527724-één&#039; for key &#039;PRIMARY&#039;]<br />
            <code>INSERT INTO `wp_rp4wp_cache` (`post_id`,`word`,`weight`,`post_type`) VALUES (527724,&#039;één&#039;,0.003691,&#039;post&#039;)</code></p>
            </div><div id='error'>
            <p class='wpdberror'><strong>WordPress database error:</strong> [Duplicate entry &#039;527400-één&#039; for key &#039;PRIMARY&#039;]<br />
            <code>INSERT INTO `wp_rp4wp_cache` (`post_id`,`word`,`weight`,`post_type`) VALUES…

What did happen though is that 4 normal posts got added with me as the author and Related Posts link as the post title (and slug).

Check and update wizard on page load

When the user leaves the wizard page and comes back later we automatically skip the already indexed (step 1) or linked (step 2) posts. But the progress bar starts at 0% again because it's total(100%) changed (it's excluding already index/linked posts).

What we need to do is keep the total posts as 100% and update the progress bar on page load relative to all posts. This way the user can see that the wizard isn't starting over again but is continuing where the user left.

Add a filter for the post titles in link manager class

In related-posts-for-wp / classes / class-post-link-manager.php around L361 add a filter around the post title output so we get a chance to trim the post title length if wanted.

Use case: on a blog with post titles differing a lot in length of post title you otherwise get strange height/float issues if using other template design than the default (CSS).

Thanks!

Nog recognized as a plugin

After cloning the repository in my plugins directory WordPress doesn't show it on my Plugins overview page. Cache issue maybe?

Let me know if you need login details.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.