Forums

[Plugin: NextGEN Gallery] Here's how to change default singlepic image size (currenty 320x240) (5 posts)

  1. mikebeauchamp
    Member
    Posted 2 years ago #

    Hey all,
    I noticed a few threads where people were asking to be able to change the default w=320 h=240 when inserting a singlepic through the media manager thing.

    I really wanted to change it myself too, but unfortunately there isn't an easy way of doing it. But if you really want to (if you're like me and you don't want to change it to a different size every time you insert an image) you can make a quick change.

    in wp-content/plugins/nextgen-gallery/admin/ you can edit the media-upload.php file on line 46-47:

    if ($image['size'] == "singlepic")
         $html = "[singlepic id=$send_id w=320 h=240 float={$image['align']}]";

    That's the line that makes the singlepic shortcode to be inserted into your post. If you just change the w and h to whatever you want, it will always default to that. Hope that helps a few people!

    Mike

  2. mikebeauchamp
    Member
    Posted 2 years ago #

    Oh also, line 112 of wp-content/plugins/nextgen-gallery/admin/tinymce/window.php needs to be edited if you use the "add nextgen gallery" button in the editor.

    The previous post changes the default singlepic size if you insert it through the Upload/Insert "insert an image" button.

    Mike

  3. focx
    Member
    Posted 2 years ago #

    Mike, you made my day. I looked for this a couple of months ago and didn't find it. Now I tried again but only found the window.php part, not the media-upload.php.

    It's working perfectly! Thanks! :D

  4. exit6
    Member
    Posted 2 years ago #

    Saved me (and my client) a huge hassle too! Thanks!

  5. shyuan
    Member
    Posted 1 year ago #

    Hi,

    thanks! :D

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.