WordPress.org

Ready to get started?Download WordPress

Forums

Pinterest RSS Widget
[resolved] Increase length of descriptive text (10 posts)

  1. aly22
    Member
    Posted 1 year ago #

    Where might I find a way to increase the length of the Pin description text on output? I would like full titles to show on my WP layout.

    http://wordpress.org/extend/plugins/pinterest-rss-widget/

  2. bkmacdaddy
    Member
    Plugin Author

    Posted 1 year ago #

    Unfortunately the RSS feed from Pinterest does not give the full title, so it is not possible.

  3. stephanmonecke
    Member
    Posted 1 year ago #

    But the RSS feed gives a description. Is there a way to take this instead? :) Thank you in advance!

  4. aly22
    Member
    Posted 1 year ago #

    Great suggestion, stephanmonecke! I would absolutely appreciate that capability.

  5. mferris77
    Member
    Posted 1 year ago #

    Hi all - as stephanmonecke mentions, the full description *is* available in the RSS feed but it takes a little 'massaging' to get it. I was able to get modify the plugin to make this work. While I was doing it I also identified a few other improvements to the plugin. I've made the fully modified plugin available for download but also include instructions on fixing only the description text length discussed in this thread.

    bkmacdaddy, feel free to incorporate this as well as the other changes I've made into your plugin. I've used comments in the code liberally so you can see what I've done. I don't claim to be a php guru so perhaps there are more elegant solutions for some of the things I've done. Other changes I made were:

    - Ability to set the description length (now that the full description is being retrieved)
    - Switched from jQuery resizing of thumbs to use of TimThumb (perhaps a controversial point but a personal preference for me)
    - Ability to switch between normal list display of images to 'compressed', basically floating the DIVs left
    - Ability to place the 'follow me' button in the title of the widget or at the bottom (where it currently is)
    - Added an optional 'description' field so we can insert text below the title of the widget

    Here's the full instructions and a link is at the bottom for the modified plugin download

  6. bkmacdaddy
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks, mferris77.

    As you stated, Tim Thumb is a controversial change and one I originally had in the plugin but then moved to jQuery instead. Too many security issues (at least at the time).

    When I get a chance, however, I will look at implementing your other changes into the "official" version of the plugin. Thanks for your work and for sharing it with everyone.

  7. stephanmonecke
    Member
    Posted 1 year ago #

    Thank you very much mferris77!
    Although the additional options are not working for me (and it didn't display the pictures), with your code and some minor fixes (the description vanished behind the next picture) I hardcoded it and it works like a charm now!

  8. mferris77
    Member
    Posted 1 year ago #

    I too had a problem with images not being displayed and it caused me a couple hours of grief. It turns out that another plugin that I use (Bulletproof security) locks down the use of TimThumb when referencing external images. I had to add a rule in my .htaccess file to allow content from pinterest.com. Here's a link to that discussion if you happen to be using BPS. Thanks for your feedback - I'm glad it helped!

  9. stephanmonecke
    Member
    Posted 1 year ago #

    Indeed I'm using BPS. :) Good to know - thank you! But Ill stick with the workaround now. :)

  10. monsieurchine
    Member
    Posted 1 year ago #

    Thanks mferris77 for this modification of the plugin.

    Now that I've activitated it I have the same problem as you guys had : not displaying the images.
    I don't know if I am using BPS, so i was wondering Stephanmonecke if you could tell me your workaround? What did you changed in the code and what did you hardcoded?

    Cheers!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.