Plogger Support Forum - change title in large preview from caption to filename in svn 573 Fri, 29 Mar 2024 12:36:00 +0000 http://www.plogger.org/forum/ Lussumo Vanilla 1.1.10 change title in large preview from caption to filename in svn 573 http://www.plogger.org/forum/comments.php?DiscussionID=2146&Focus=8582#Comment_8582 http://www.plogger.org/forum/comments.php?DiscussionID=2146&Focus=8582#Comment_8582 Sun, 31 Aug 2008 06:25:59 +0000 PieperLy
change in plog-includes/plog-functions.php
go to function (ca. line 100) function generate_title()

go here to
case 'picture' section

....
case 'picture':
//new line with global $config
global $config;
$row = get_picture_by_id($GLOBALS['plogger_id']);
$picture_name = get_caption_filename($row);
//new line with new variable $filename
$filename = basename($row["path"]);
$row = get_album_by_id($row["parent_album"]);
$album_name = SmartStripSlashes($row["name"]);

$row = get_collection_by_id($row["parent_id"]);
$collection_name = SmartStripSlashes($row["name"]);
//change the end of line from $picture_name to $filename
$breadcrumbs = $collection_name . ' » ' . $album_name . ' » ' . $filename;

this change in large picture preview the title from picture-caption to picure-filename
the new title is:
galleryname » collectionname » albumname » picture-filename
a nice day @all
uwe]]>
change title in large preview from caption to filename in svn 573 http://www.plogger.org/forum/comments.php?DiscussionID=2146&Focus=8587#Comment_8587 http://www.plogger.org/forum/comments.php?DiscussionID=2146&Focus=8587#Comment_8587 Sun, 31 Aug 2008 11:55:42 +0000 kimparsell
The reason that the code was changed in the latest version to show the caption in the breadcrumbs, if it exists, was for SEO purposes per this thread.

Many users have requested a more SEO-friendly gallery, and this change was made to begin taking Plogger in that direction.

If you prefer to have the filename rather than the caption in the breadcrumbs, then the changes you've made to your gallery installation are fine.]]>
change title in large preview from caption to filename in svn 573 http://www.plogger.org/forum/comments.php?DiscussionID=2146&Focus=8590#Comment_8590 http://www.plogger.org/forum/comments.php?DiscussionID=2146&Focus=8590#Comment_8590 Sun, 31 Aug 2008 12:09:15 +0000 PieperLy
best wishes from germany
uwe]]>