Forum Replies Created

Viewing 15 replies - 181 through 195 (of 273 total)
  • Plugin Author Kyle Phillips

    (@kylephillips)

    That is one way you could do it… it would definitely give you more control over the output/styling of the list.

    An alternate way of doing it is by passing the categories into the the_user_favorites_list() function’s $filters parameter. (this is a new parameter added in the last release).

    If you visit the plugin website (https://favoriteposts.com/), and scroll down until you see “Using the Filters Parameter”, you’ll see an example of how to pass those in.

    I wouldn’t necessarily say either one is best practice with the plugin… just depends on your use case. The one advantage of using the template function is it will update dynamically on page load, which resolves conflicts with any server-side page caching. If you go the manual route and that’s an issue, it’s something to keep in mind.

    Plugin Author Kyle Phillips

    (@kylephillips)

    RE: button being visible to non-registered users…
    If you’ve disabled favorites for anonymous users under Settings > Favorites > Users, and the button is still showing up, I’m guessing you have caching enabled. If you delete your cache and visit the effected pages as a non-registered user, you should be good to go.

    RE: disabled buttons/custom text for non-logged in users…
    This is something you could do in your template. Do a basic is_user_logged_in() check, and if they are show the button using the template function the_favorites_button(). If not, you could display the required messaging/UI.

    Plugin Author Kyle Phillips

    (@kylephillips)

    Do you know what version of PHP your server is running?
    Nested Pages requires version 5.3.2 or higher.

    Forum: Reviews
    In reply to: [Nested Pages] Amazing
    Plugin Author Kyle Phillips

    (@kylephillips)

    Hiding the menu options while menu sync is disabled didn’t occur to me… I’ll be sure to include that in an upcoming update. Thanks for the suggestion!

    RE: LTS support/premium… this has been brought up before, but I’m hesitant to go that route for various reasons. Rest assured, I developed and maintain this plugin for client use myself (I’m in the same boat), so I wouldn’t worry about this becoming abandonware.

    Plugin Author Kyle Phillips

    (@kylephillips)

    This should be fixed in the latest release. Buttons are now disabled until the favorite is saved and the server returns a response.

    Plugin Author Kyle Phillips

    (@kylephillips)

    The data is pulled using PHP initially, but if page caching is enabled, the rendered buttons/data will most likely be incorrect. The AJAX call updates the buttons on load to counter this.

    Regardless, the latest release includes an option to disable the loading indication on page load. It is now turned off by default.

    Plugin Author Kyle Phillips

    (@kylephillips)

    You can use the [user_favorites] shortcode like any other shortcode. If you add that in your content for the page, it’ll render the list of favorites.

    If you’re looking to customize the display of the favorites to be more like a typical archive page, there’s not really an automated way to do that. You’d need to create a template and use the template functions to loop through the favorites:

    https://gist.github.com/kylephillips/9fe12f195c671c989af3

    Plugin Author Kyle Phillips

    (@kylephillips)

    No current plans to add an “automatic” template page.

    The aim of this plugin is to keep plugin-generated markup to an absolute minimum and provide theme developers and designers with more control over presentation (and access to data).

    In your case, you could create a template to your specs by using the get_user_favorites() template function, and passing the array of results into a new WP_Query. From there, you could loop through the query results like any other WP loop.

    An example in use:
    https://gist.github.com/kylephillips/9fe12f195c671c989af3

    Plugin Author Kyle Phillips

    (@kylephillips)

    Version 1.1.1, just released, now includes an option to add a “loading indication” to the button(s). It may help provide a visual indication that a) the initial button is loading, and b) when someone favorites a post, something is going on in the background.

    As an example, it’s up on the plugin website (it’s on slower shared hosting, so it should be noticeable): favoriteposts.com.

    In your case, you’d probably want to use the provided hooks to change out the loading gifs to match your theme. There’s documentation on how to do that on the plugin site.

    I know it’s more of a “band-aid” fix, but I can’t currently think of a better way. The button “update” needs to trigger once the document is ready (with page cache enabled), and if other page elements/resources are delaying that, there’s not much to do.

    Plugin Author Kyle Phillips

    (@kylephillips)

    Version 1.1.1, just released, should make it easier to get what you’re looking for. You can now pass in an additional array of filters to the template function to limit what is displayed in the list.

    If you visit the plugin site and jump down to the “Using the Filters Parameter”, you’ll see an example:
    favoriteposts.com

    The “Post types” filter is available in the shortcode. You can include a comma separated list of post types to limit:

    [user_favorites user_id="" include_links="true" site_id="" post_types="post,movies,music"]

    If you’d like to filter by taxonomy/terms, you’ll need to use the function (for now).

    Plugin Author Kyle Phillips

    (@kylephillips)

    Version 1.1.1, just released, includes this feature.

    It’s available in a template function:
    get_user_favorites_count($user_id = null, $site_id = null, $filters = null);

    and as a shortcode:
    [user_favorite_count user_id="" site_id="" post_types=""]

    The “filters” parameter in the function is new, and relates to additional new features. The site documentation has been updated (a bit lengthy to explain here):
    favoriteposts.com

    Plugin Author Kyle Phillips

    (@kylephillips)

    dzug,

    Does the last page in your list happen to be in the trash?

    Another user found a bug (and the fix) that causes this to happen for that reason.

    The patch hasn’t been pushed yet, but I’ll push the update soon. This is the only case I’ve been able to recreate the issue some seem to be having.

    Forum: Plugins
    In reply to: [Favorites] Multisite
    Plugin Author Kyle Phillips

    (@kylephillips)

    Favorite counts (number of times a post has been favorited) shouldn’t be effected at all (not even in drh192’s case above).

    The code above alters the way logged-in users’ favorites are saved. Favorite “counts” are saved as post meta for the associated post.

    Plugin Author Kyle Phillips

    (@kylephillips)

    There aren’t currently any functions that exist that get favorite counts on a user basis, but that’s a good idea and should be relatively straight-forward to implement.

    I’ll add it to the list of features to build out for a future version.

    Forum: Plugins
    In reply to: [Favorites] Multisite
    Plugin Author Kyle Phillips

    (@kylephillips)

    As of v1.1.0 (just released), Favorites is multisite compatible. Additional (optional) parameters have been added to the template functions and shortcodes.

Viewing 15 replies - 181 through 195 (of 273 total)