WordPress.org

Ready to get started?Download WordPress

Forums

MimeTypes Link Icons
[resolved] mimetypes with anchors of .pdf#page=X does not work (23 posts)

  1. C0BALT
    Member
    Posted 3 years ago #

    Take for example this pdf link which loads the PDF and brings you to page 4.
    This link does not get iconified by the plugin. I would really like to have this work.

    Take care! Looks promising!

    http://vancouver.ca/parks/cc/falsecreek/website/PDF/fccc-spring2011.pdf#page=4

    http://wordpress.org/extend/plugins/mimetypes-link-icons/

  2. eagerterrier
    Member
    Plugin Author

    Posted 3 years ago #

    Good point @COBALT - I'll work on this next week

    Should have something for you by the end of the month - hang tight...

  3. C0BALT
    Member
    Posted 3 years ago #

    Please feel free to send me a link to a beta version for testing.

  4. eagerterrier
    Member
    Plugin Author

    Posted 3 years ago #

    @COBALT

    Think I have this working. Would you mind giving this a whirl?

    http://www.eagerterrier.co.uk/mime_type_link_images.php.zip

    Unzip it and stick it in place of your current mime_type_link_images.php file in wp-content/plugins/mimetypes-link-icons/

  5. C0BALT
    Member
    Posted 3 years ago #

    1.06 (the linked version in this thread) + 1.07 do not work.

    I've downloaded 1.08 and that is not working for this topic either.

    Sorry for not checking earlier. I will be on top of it now.

    To test you should be able to simply put the link as
    http://xyz.com/file.pdf#page=4
    and see if a icon appears next to it?

    Also, what about mailto, ftp, (custom) links? That would be a nice thing to have covered in the same plugin, although there are a couple out there already.

  6. eagerterrier
    Member
    Plugin Author

    Posted 3 years ago #

    @COBALT - apologies - I had tested the replacement functionality, but not the initial search. It is now done for you in version 1.0.9

  7. C0BALT
    Member
    Posted 3 years ago #

    hmmmm... 1.09 doesn't work at all now?
    all href's are "square box"
    .doc
    .pdf
    .jpg
    .pdf#pagenumber
    None of these have valid links anymore?!?
    The image replacement for .pdf#pagenumber still doesn't work under 1.09

    This is installed on a clean install of wp3.2 and 2011 theme.

    There are further problems on my production site. I can't run this plugin at all on the production site yet. First I need to get this "basic" stuff working then I'll debug it on the real site.

  8. eagerterrier
    Member
    Plugin Author

    Posted 3 years ago #

    working for me...

    http://www.emmacox.org.uk/simon-cowell/117/

    and on others. I've made a slight change which may have affected your version and updated to 1.1.0, which you can get from here - http://www.eagerterrier.co.uk/mime_type_link_images.php.zip

    Then stick it in wp-content/plugins/mimetypes-link-icons/

    thanks

  9. eagerterrier
    Member
    Plugin Author

    Posted 3 years ago #

    Think I can see where it went wrong - In certain scenarios the display CSS variable was getting set after the call to display CSS...

  10. C0BALT
    Member
    Posted 3 years ago #

    try this link.
    http://www.katscreative.com/

    There should be 4 icons
    1 jpg
    1 doc
    2 pdf's one direct, one with the #pagenumber
    The one with the #pagenumber still doesn't work.

    none of the links work, inspect with firebug and you will see that all the href's are replaced with "garbagecharacter"

    WP3.2, and version 1.10 Mime Type Link Images
    This will add file type icons next to links automatically
    Version 1.1.0 | By Toby Cox | Visit plugin site

  11. C0BALT
    Member
    Posted 3 years ago #

    One more note.

    The 2nd pdf (file.pdf#pagenumber) which doesn't have an icon replacement done by your plugin...

    The link to the file works properly.

  12. eagerterrier
    Member
    Plugin Author

    Posted 3 years ago #

    ok - it looks like it's nothing to do with the CSS but with the replace pattern.

    I've done you a version here, which might help.

    take this file -

    http://www.eagerterrier.co.uk/@cobalt.zip

    unzip it. Replace your current

    /wp-content/plugins/mimetypes-link-icons/mime_type_link_images.php file with the one in this folder

    Let me know how you get on...

    If this doesn't work I'm going to need the following two things:

    1. The HTML of your post with the plugin turned off, so I can mimic the page as best I can.

    2. Details of what server you are running - versions of PHP etc

  13. eagerterrier
    Member
    Plugin Author

    Posted 3 years ago #

    also, just tried the only working link on that page and it works on my version here:

    http://www.emmacox.org.uk/simon-cowell/117/

  14. C0BALT
    Member
    Posted 3 years ago #

    OK I downloaded that file also labeled with version 1.1.0.
    replaced the file on the server...
    same thing.
    href's are invalid, exactly the same problem.
    No icon replacement for .pdf#pagenumber

    I don't get it.

    WP3.2RC2 (or wp3.1.3, doesn't matter)
    the one plugin, NOTHING ELSE.

  15. eagerterrier
    Member
    Plugin Author

    Posted 3 years ago #

    also labeled with version 1.1.0.

    ...yeah - I just changed the code, not version numbers...

    I don't get it.

    I don't understand why this would be either. I'm on the same settings as you, so it really is odd. Can you send me:

    1. The HTML of your post with the plugin turned off, so I can mimic the page as best I can.

    2. Details of what server you are running - versions of PHP etc

  16. C0BALT
    Member
    Posted 3 years ago #

    html
    *************

    <div>
    <h2>Outdoor Children's Programs Offered:</h2>
    <a title="link to .DOC" href="http://dunbarcentre.ca/documents/DCCspring2011-final.doc" target="_blank">.DOC Direct Link to Children's Tennis</a>
    
    </div>
    <div>
    <h2>Indoor Children's Programs Offered: JPEG</h2>
    <a title="link to .JPG" href="http://dunbarcentre.ca/documents/DCCspring2011-final.jpg" target="_blank">.JPG Direct Link to Children's Indoor</a>
    
    </div>
    <div>
    <h2>Adult Programs Offered:TOF PDF</h2>
    <a title="link to (top of file) pdf" href="http://dunbarcentre.ca/documents/DCCspring2011-final.pdf" target="_blank">TOF PDF Direct Link to Adult Programs Offered</a>
    
    </div>
    <div>
    <h2>Co-Ed Community Tennis (direct page#) PDF</h2>
    <a title="link to pdf Direct Page" href="http://dunbarcentre.ca/documents/DCCspring2011-final.pdf#page=44" target="_blank">DP PDF Direct Link to Co-Ed Community Tennis</a>
    
    </div>

    *******
    end html

  17. C0BALT
    Member
    Posted 3 years ago #

  18. eagerterrier
    Member
    Plugin Author

    Posted 3 years ago #

    hmm - http://www.emmacox.org.uk/testy-test/323/

    works fine....

    I'm going to need server details...

  19. eagerterrier
    Member
    Plugin Author

    Posted 3 years ago #

    OK - got to give the kids breakfast and get them off to school, then going to work

    Can you leave that page up for a couple of hours, or do you need me to grab it now?

  20. C0BALT
    Member
    Posted 3 years ago #

    write me at john(*)shootedit.com
    and I'll give you login access too...
    This can stay up, we can do whatever needs to be done with it.

  21. eagerterrier
    Member
    Plugin Author

    Posted 3 years ago #

    @COBALT - I sent an email this morning. Hope you got it...

    Version 2.0.0 released just now, but I don't think this will address your issue

  22. eagerterrier
    Member
    Plugin Author

    Posted 3 years ago #

    @COBALT

    Got it. 2 errors in the JS corrected.

    Can you download this file

    http://www.eagerterrier.co.uk/@COBALT_JS.zip

    And stick it here

    wp-content/plugins/mimetypes-link-icons/js/mtli_str_replace.js

    Let me know how you get on. If it's all good for you, I can release it as 2.0.1 tomorrow or Thursday

  23. C0BALT
    Member
    Posted 3 years ago #

    V 2.0.1 works fine now with my setup.
    Works with WP3.1.3 and WP3.2RC2.
    No weird workarounds needed.

    Thank-you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic