Hello,

I was hoping someone can help me with this little dilemma.

I wanted to set the links of the thumbnails to the picture page to NOFOLLOW, but I can't figure it out (maybe because I don't know PHP).

I have tracked it down to this snippet of code in the modules/photos/photos.module file:

    foreach($images as $image){
      $item[] = theme('photos_imagehtml', $image['thumb'][$label], array('filename' => $image['filename']. ' - ' .t('By: @name', array('@name' => $image['name'])), 'href' => 'photos/image/'.$image['fid']));
    }

I see I can alter the link, but I can't add a new attribute (rel="nofollow").

Can someone please tell me how to do this?
I would really appreciate it.

Thank you for your time.

Comments

lost305’s picture

UP

nathaniel’s picture

Category: task » support
Status: Active » Closed (works as designed)

I think you will actually want to look in the photos_imagehtml.tpl.php file found in photos/tpl. You can copy it to your theme folder and modify it as needed.