Fork me on GitHub

Can't display images in pnWinery module  Bottom

  • I am using pnWinery and for some reason, can't display the images in the module in pnuser.php

    This is the code in the pnuser.php file:

    Quote

    $columns[] = $output->Text('');



    $columns[] = $output->URL(pnVarPrepForDisplay(pnModURL('pnWinery',

    'user',

    'view')),

    _PNWINERYVIEW);



    $columns[] = $output->Text('');



    I'm trying to display an image on either side of the text in the center, but I can only see broken images.

    In my settings, I have set permissions for img with parameters, and even tried Allowed just to see if it would change, but it didn't.

    I'm using PN 7.2.6.

    Anyone know if I'm writing this incorrectly?
  • First I would try forward slashes in the file path.

    To be HTML compliant you sould probably have double quotes around the values and include 'alt="some value"' with the img attributes.
  • That worked! I guess I've been staring at PHP for too long.
    I didn't even put that code in there, it was there to start with. (lame excuse)

    Thanks!!
  • That worked! I guess I've been staring at PHP for too long.
    I didn't even put that code in there, it was there to start with. (lame excuse)

    Thanks!!

This list is based on users active over the last 60 minutes.