Anonymous user view links: Delete, Set to Cover and can edit a name and descript
k74 - March 22, 2009 - 12:58
| Project: | album photos |
| Version: | 6.x-2.6-beta3 |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
When a anonymous user go to http://www.example.com/photos/image, links appear: Delete, Set to Cover and can edit a name and description of the image, logically we have not given permission to do these changes and can not really, but you can remove the links to not appear?
which causes the bots from Google and other attempts to track these links and curiously recorded in the votes of each image ...
Everything from the version 2.6 beta 1

#1
Try patch:
<?php
Index: photos.page.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/photos/inc/Attic/photos.page.inc,v
retrieving revision 1.1.2.1
diff -u -r1.1.2.1 photos.page.inc
--- photos.page.inc 6 Mar 2009 08:22:41 -0000 1.1.2.1
+++ photos.page.inc 22 Mar 2009 18:40:29 -0000
@@ -45,10 +45,10 @@
$album['links'] = _photos_order_link('photos/image', photos_get_count('site_image'), 0, 1);
}
$com = variable_get('photos_comment', 0);
- if($ac->uid == $user->uid){
+ if($user->uid && $ac->uid == $user->uid){
$edit = 1;
}
- $vote = variable_get('photos_vote', 0);
+ $vote = variable_get('allowed to vote', 0);
$label = variable_get('photos_display_list_imagesize', false);
while($data = db_fetch_array($result)){
$image = photos_get_info(0, $data);
Success, CVS operation completed
?>
#2
Ok, with the beta 3 no links appear, but how can I erase the votes recorded by google bot and other bots? or delete all the votes