Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • lizzious

    (@lizzious)

    Hi Dan,

    I didn’t expect you to reply me so fast. Good to hear you’re paying attention to your plugins, unlike some other plugin authors. Okay, let’s answer your questions.

    With ‘external’ images I mean the images hosted elsewhere, images that are not uploaded using WordPress media uploader (into the folder wp-content/uploads/). For example Google’s logo (http://www.google.nl/images/logos/ps_logo2.png).
    Whether you add it to the post via the image attachment box or directly into html make no difference. People can add it via ‘Add media file from URL’ in the media uploader or just write <img src="http://www.google.nl/images/logos/ps_logo2.png">. Both won’t work. Not only are the external images not resized, they won’t display at all.

    Yes, the images lose their aspect ratio, as well as scaled to the wrong width for mobile devices. This has nothing to do with timthumb, as I’ve tested it by removing timthumb from the code. The image width and height (<img width="" height="") are wrong.

    The code I copied from another plugin and pasted into Mobile Smart works perfectly. I will upload the new mobile-smart.php page somewhere so you can check it out.

    lizzious

    (@lizzious)

    Hi Dan,

    I found an error which made it impossible to generate resized images. It is on line 876 in mobile-smart.php, MOBILESMART_PLUGIN_URL should be MOBILESMART_PLUGIN_PATH, I think you forgot to change.
    Also, I have changed the slash and WP_PLUGIN_DIR into WP_PLUGIN_URL on line 40, from:
    define('MOBILESMART_PLUGIN_PATH', WP_PLUGIN_DIR . '\mobile-smart'); to
    define('MOBILESMART_PLUGIN_URL', WP_PLUGIN_DIR . '/mobile-smart');

    After these changes, the images are finally resized, but only for the images uploaded in WordPress, not external images. I think it’s because on line 833 you defined $site_url to search for get_bloginfo only. Other than this, the dimensions of the images aren’t resized correctly as well.
    As I am not sure how to fix this, I decided to replace all the image resize code in mobile-smart.php with another image resize code I copied from another plugin.

    I don’t know how to contact you, so I try this way, hope you read it.

    Anyways, Mobile Smart is a very good plugin, keep up the good work!

    Yeah! I’ve been searching for such plugin for quite long time!!! It’s quite a simple feature, I can’t believe that it isn’t a standard feature.

    In 1 post, have several groups of photos from same gallery.
    Maybe something like:

    Photos of Landscapes:
    [gallery group="landscape"]
    sflaskjflwjerlwjrlkwjkrl

    Photos of Cities:
    [gallery group="city"]
    blablalbla text

    And in the gallery (Add New Media feature) make it possible to create a group and drag the photos into the group. Then a button: “insert group into the post”

    Forum: Plugins
    In reply to: Image Gallery

    I think I can answer your question, but I see that you have posted this 1 month ago, which means that you might have find the solution by the time.

    You just add medium sized picture into the post with the Add Image feature, then you insert <more> tag above the part of the post that people have to click in the article to be able to view. Under the <more> tag, you add [gallery]

Viewing 4 replies - 1 through 4 (of 4 total)