I have been trying to move url link found in the fiel info under the image. have not any luck. If anyone know how? Id appricaite the help. I have look and did a serch of the forums and looked in the docs. If the info is there I missed it.
Thanks in advance
Augustin
Filter & Sort File Information Fields on Image Display Page (http://forum.coppermine-gallery.net/index.php/topic,27407.0.html)
Is this the portion that the code would be in?
// Create the absolute URL for display in info
$info[$lang_picinfo['URL']] = '<a href="' . $CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') .basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . '" >' . $CONFIG["ecards_more_pic_target"] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') . basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . '</a>';
// with subdomains the variable is $_SERVER["SERVER_NAME"] does not return the right value instead of using a new config variable I reused $CONFIG["ecards_more_pic_target"] no trailing slash in the configure
// Create the add to fav link
$ref = $REFERER ? "&ref=$REFERER" : '';
if (!in_array($CURRENT_PIC_DATA['pid'], $FAVPICS)) {
$info[$lang_picinfo['addFavPhrase']] = "<a href=\"addfav.php?pid=" . $CURRENT_PIC_DATA['pid'] . $ref . "\" >" . $lang_picinfo['addFav'] . '</a>';
} else {
$info[$lang_picinfo['addFavPhrase']] = "<a href=\"addfav.php?pid=" . $CURRENT_PIC_DATA['pid'] . $ref . "\" >" . $lang_picinfo['remFav'] . '</a>';
}
Would I move this part?
.basename($_SERVER['PHP_SELF']) . "?pos=-$CURRENT_PIC_DATA[pid]" . '" >'
to the bgining of the code page?
If you're that keen to edit the code: find the section that controls the output, not the section that defines the array. Using the plugin I refered to will enable you not having to fiddle with the core code. You'll have a nice little interface instead where you can move stuff around. Why don't you give the plugin a try?
My mistake. I didn't realize your 1st comment was a link.
Thanks
I have installed the plugin.I works a s intended. But it does not "MOVE" the url link to the "TOP" of the image. That is what I am trying to do.
Thanks
The plugin will only allow you to sort and filter the items within the pic info section. It will not allow you to move part of the pic info section outside of the pic info (above the image display).
I know that.
My oringinal question was what code do I need to edit to make it on top of the image.
Thanks
Without having looked into this in detail, I'd say: a lot of it ;).