ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

no images, not even HTML code

June 28, 2011 3:01pm

Subscribe [3]
  • #1 / Jun 28, 2011 3:01pm

    felixperson

    4 posts

    Ok so I just took over a site for a company who had a falling out with the freelance designer who built the web site in expression engine. I am a proficient web designer and know many forms of code, but I’m at a loss here.

    On the template that won’t show the pictures this is the EE code using image sizer:

        <div class=“memberPhotolarge”>
          {exp:imgsizer:size src="{member_photo}” width=“185” height=“260”}
                  {sized}
              {/exp:imgsizer:size}
        </div><!—end memberPhotolarge—>

    and this is how it displays in the html code:

        <div class=“memberPhotolarge”>
         
        </div><!—end memberPhotolarge—>

    So the code doesn’t even get put in to place the image. The upload location is fine and the files are all there, I’m at a loss?

  • #2 / Jun 30, 2011 1:50am

    Rob Allen

    3114 posts

    Looks like you’re missing some code, you should have an IMG tag inside the IMGSIZER tag pair…

    {exp:imgsizer:size src="{member_photo}" width="185" height="260"}
    {sized}
    {/exp:imgsizer:size}
  • #3 / Jun 30, 2011 12:39pm

    felixperson

    4 posts

    I tried changing the SRC in the code to IMG and IMAGE but it still does nothing. I even tried to add a new IMG or IMAGE tag but still nothing.

  • #4 / Jun 30, 2011 1:18pm

    Rob Allen

    3114 posts

    Did you try the code exactly as I gave you?

    As a test try using a file that you know is on the server (replace /path/to/your/file.jpg with the URL of an existing image) as follows:

    {exp:imgsizer:size src="/path/to/your/file.jpg" width="185" height="260"}
    {sized}
    {/exp:imgsizer:size}
  • #5 / Jun 30, 2011 2:18pm

    felixperson

    4 posts

    Sorry I just noticed that not all the code showed this is it:

    <div class=“memberPhotolarge”><br />     {exp:imgsizer:size src="{member_photo}” width=“185” height=“260”}<br />       {sized}<br />     {/exp:imgsizer:size}<br /> </div><!—end memberPhotolarge—>

    and in the html it shows:

    <div class=“memberPhotolarge”></div><!—end memberPhotolarge—>

    and I just tried to give it a direct path like suggested and but it is stil not even building any img tag in the html. Is there a chance that the plugin is gone or broken, and if so where and how would I check that in EE?

  • #6 / Jun 30, 2011 10:20pm

    Rob Allen

    3114 posts

    What version of EE are you using?

    Yes it’s a good idea to make sure the plugin file is there, you can download the latest version from
    http://devot-ee.com/add-ons/image-sizer/

  • #7 / Jun 30, 2011 11:21pm

    felixperson

    4 posts

    It’s version 1.6.9

    I checked in the plug-in directory and found the plug-in there. It’s strange because even after they switched servers everything was fine, then about 2 week later just those images broke. All else is fine though.

    Is there a way to trace the directory where it is trying to pull “{member_photo}” from?

  • #8 / Jul 04, 2011 4:03pm

    Wouter Vervloet

    758 posts

    Hi felixperson,

    If you turn on template debugging you can probably see where things go awry. Image Sizer has some pretty extensive template logging built in. If you ask me it probably has something to do with the write permissions on the /images/sized/ folder.

    Regards,
    Wouter

  • #9 / Jul 05, 2011 3:37pm

    felixperson

    4 posts

    It was the permissions on the folder. Thanks for the help all!

  • #10 / Jul 05, 2011 4:28pm

    Wouter Vervloet

    758 posts

    Glad I could be of help…

    Wouter

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases