Closed (works as designed)
Project:
Album Photos
Version:
6.x-2.6
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Nov 2011 at 15:35 UTC
Updated:
10 Jan 2013 at 19:00 UTC
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
Comment #1
lost305 commentedUP
Comment #2
nathaniel commentedI 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.